[packages_10.03.1] merge r27682, r27683
[openwrt/svn-archive/archive.git] / ipv6 / radvd / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=radvd
11 PKG_VERSION:=1.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
16 http://download.sourcemage.org/mirror
17 PKG_MD5SUM:=50b4cfbdfa04d629d80437fd1d9e2aef
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/radvd/Default
24 SECTION:=ipv6
25 CATEGORY:=IPv6
26 TITLE:=IPv6 Routing Advertisement
27 URL:=http://v6web.litech.org/radvd/
28 DEPENDS:=+kmod-ipv6
29 endef
30
31 define Package/radvd
32 $(call Package/radvd/Default)
33 TITLE+= Daemon
34 endef
35
36 define Package/radvd/description
37 radvd is the router advertisement daemon for IPv6. It listens to router
38 solicitations and sends router advertisements as described in "Neighbor
39 Discovery for IP Version 6 (IPv6)" (RFC 4861). With these advertisements hosts
40 can automatically configure their addresses and some other parameters. They also
41 can choose a default router based on these advertisements.
42 endef
43
44 define Package/radvdump
45 $(call Package/radvd/Default)
46 TITLE+= Dumper
47 endef
48
49 define Package/radvdump/description
50 radvdump prints out the contents of incoming router advertisements sent by radvd
51 or some other software implementing (parts of) "Neighbor Discovery for IP
52 Version 6 (IPv6)" (RFC 4861).
53 endef
54
55 CONFIGURE_ARGS += \
56 --with-configfile=/etc/radvd.conf \
57 --with-logfile=/var/log/radvd.log \
58 --with-pidfile=/var/run/radvd.pid
59
60 define Package/radvd/conffiles
61 /etc/config/radvd
62 endef
63
64 define Package/radvd/install
65 $(INSTALL_DIR) $(1)/etc/config
66 $(INSTALL_CONF) ./files/radvd.config $(1)/etc/config/radvd
67 $(INSTALL_DIR) $(1)/etc/init.d
68 $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
69 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
70 $(INSTALL_DATA) ./files/radvd.hotplug $(1)/etc/hotplug.d/iface/05-radvd
71 $(INSTALL_DIR) $(1)/usr/sbin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
73 endef
74
75 define Package/radvdump/install
76 $(INSTALL_DIR) $(1)/usr/sbin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
78 endef
79
80 $(eval $(call BuildPackage,radvd))
81 $(eval $(call BuildPackage,radvdump))