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