[patchteam] Add wide-ipv6 packages, thanks Raphael
[openwrt/svn-archive/archive.git] / ipv6 / wide-dhcpv6 / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=wide-dhcpv6
11 PKG_VERSION:=20080615
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=1011e165850fe40d3e332dad2bfd30b3
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/wide-dhcpv6/Default
21 SECTION:=ipv6
22 CATEGORY:=IPv6
23 TITLE:=IPv6 DHCPv6 implementaion for BSD and Linux
24 URL:=http://wide-dhcpv6.sourceforge.net/
25 endef
26
27 define Package/wide-dhcpv6/description
28 WIDE-DHCPv6 is an open-source implementation of Dynamic Host Configuration
29 Protocol for IPv6 (DHCPv6) originally developed by the KAME project. The
30 implementation mainly conforms to the following standards: RFC3315,3319,3633,
31 3646,4075,4272,etc.
32 endef
33
34 define Package/wide-dhcpv6-client
35 $(call Package/wide-dhcpv6/Default)
36 TITLE+= client
37 endef
38
39 define Package/wide-dhcpv6-server
40 $(call Package/wide-dhcpv6/Default)
41 TITLE+= server
42 endef
43
44 define Package/wide-dhcpv6-relay
45 $(call Package/wide-dhcpv6/Default)
46 TITLE+= relay
47 endef
48
49 define Package/wide-dhcpv6-ctl
50 $(call Package/wide-dhcpv6/Default)
51 TITLE+= ctl
52 endef
53
54 define Package/wide-dhcpv6-client/install
55 $(INSTALL_DIR) $(1)/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dhcp6c $(1)/sbin
57
58 $(INSTALL_DIR) $(1)/etc
59 $(INSTALL_DATA) ./files/dhcp6c.config $(1)/etc/dhcp6c.conf
60 endef
61
62 $(eval $(call BuildPackage,wide-dhcpv6-client))
63 $(eval $(call BuildPackage,wide-dhcpv6-server))
64 $(eval $(call BuildPackage,wide-dhcpv6-relay))
65 $(eval $(call BuildPackage,wide-dhcpv6-ctl))