16d377c81ce4e71ce88012f3e22465e5dbbb1140
[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:=1
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
24 SECTION:=ipv6
25 CATEGORY:=IPv6
26 TITLE:=IPv6 Routing Advertisement Daemon
27 URL:=http://v6web.litech.org/radvd/
28 DEPENDS:=+kmod-ipv6
29 endef
30
31 define Package/radvd/description
32 IPv6 Routing Advertisement Daemon.
33 endef
34
35 CONFIGURE_ARGS += \
36 --with-configfile=/etc/radvd.conf \
37 --with-logfile=/var/log/radvd.log \
38 --with-pidfile=/var/run/radvd.pid
39
40 define Package/radvd/conffiles
41 /etc/config/radvd
42 endef
43
44 define Package/radvd/install
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_CONF) ./files/radvd.config $(1)/etc/config/radvd
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
49 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
50 $(INSTALL_DATA) ./files/radvd.hotplug $(1)/etc/hotplug.d/iface/05-radvd
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
54 endef
55
56 $(eval $(call BuildPackage,radvd))