[package] update radvd to 1.6
[openwrt/svn-archive/archive.git] / ipv6 / radvd / Makefile
1 #
2 # Copyright (C) 2006-2009 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.6
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:=987e0660d68b4501b24dc5a068cea83c
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/radvd
22 SECTION:=ipv6
23 CATEGORY:=IPv6
24 TITLE:=IPv6 Routing Advertisement Daemon
25 URL:=http://v6web.litech.org/radvd/
26 DEPENDS:=+kmod-ipv6
27 endef
28
29 define Package/radvd/description
30 IPv6 Routing Advertisement Daemon.
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default,\
35 --with-configfile=/etc/radvd.conf \
36 --with-logfile=/var/log/radvd.log \
37 --with-pidfile=/var/run/radvd.pid \
38 )
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 radvd_LDADD=""
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 install
47 endef
48
49 define Package/radvd/conffiles
50 /etc/config/radvd
51 endef
52
53 define Package/radvd/install
54 $(INSTALL_DIR) $(1)/etc/config
55 $(INSTALL_CONF) ./files/radvd.config $(1)/etc/config/radvd
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
61 endef
62
63 $(eval $(call BuildPackage,radvd))