libsrtp: moved to telephony feed
[openwrt.org/packages.git] / ipv6 / dibbler / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=dibbler
PKG_VERSION:=0.8.2
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://klub.com.pl/dhcpv6/dibbler
PKG_MD5SUM:=313044c95af3091607127a05c338d8ec
 
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
 
define Package/dibbler/Default
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=$(CXX_DEPENDS) +libpthread
  TITLE:=Dibbler, a portable DHCPv6 implementation
  URL:=http://klub.com.pl/dhcpv6/
endef
 
define Package/dibbler/Default/description
        Dibbler is a portable DHCPv6 implementation. It supports stateful (i.e.
        IPv6 address granting) as well as stateless (i.e. option granting)
        autoconfiguration for IPv6.
endef
 
define Package/dibbler-client
  $(call Package/dibbler/Default)
  TITLE+= (client)
endef
 
define Package/dibbler-client/conffiles
/etc/dibbler/client.conf
endef
 
define Package/dibbler-client/description
        $(call Package/dibbler/Default/description)
        This package contains the dibbler client.
endef
 
define Package/dibbler-relay
  $(call Package/dibbler/Default)
  TITLE+= (relay)
endef
 
define Package/dibbler-relay/conffiles
/etc/dibbler/relay.conf
endef
 
define Package/dibbler-relay/description
        $(call Package/dibbler/Default/description)
        This package contains the dibbler relay.
endef
 
define Package/dibbler-requestor
  $(call Package/dibbler/Default)
  TITLE+= (requestor)
endef
 
define Package/dibbler-requestor/description
        $(call Package/dibbler/Default/description)
        This package contains the dibbler requestor.
endef
 
define Package/dibbler-server
  $(call Package/dibbler/Default)
  TITLE+= (server)
endef
 
define Package/dibbler-server/conffiles
/etc/dibbler/server.conf
endef
 
define Package/dibbler-server/description
        $(call Package/dibbler/Default/description)
        This package contains the dibbler server.
endef
 
define Package/dibbler-client/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-client $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc/dibbler
        $(INSTALL_CONF) \
                $(PKG_BUILD_DIR)/doc/examples/client.conf \
                $(1)/etc/dibbler/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) \
                ./files/dibbler-client.init \
                $(1)/etc/init.d/dibbler-client
endef
 
define Package/dibbler-relay/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-relay $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc/dibbler
        $(INSTALL_CONF) \
                $(PKG_BUILD_DIR)/doc/examples/relay.conf \
                $(1)/etc/dibbler/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) \
                ./files/dibbler-relay.init \
                $(1)/etc/init.d/dibbler-relay
endef
 
define Package/dibbler-requestor/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-requestor $(1)/usr/sbin/
endef
 
define Package/dibbler-server/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-server $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc/dibbler
        $(INSTALL_CONF) \
                $(PKG_BUILD_DIR)/doc/examples/server.conf \
                $(1)/etc/dibbler/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) \
                ./files/dibbler-server.init \
                $(1)/etc/init.d/dibbler-server
endef
 
$(eval $(call BuildPackage,dibbler-client))
$(eval $(call BuildPackage,dibbler-relay))
$(eval $(call BuildPackage,dibbler-requestor))
$(eval $(call BuildPackage,dibbler-server))
 
comments