ee95baba456c1162db4ae8c2974d91b3ababd640
[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.7
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:=5ec417bde33964a07231ddf6353177c8
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 MAKE_FLAGS += \
41 radvd_LDADD=""
42
43 define Package/radvd/conffiles
44 /etc/config/radvd
45 endef
46
47 define Package/radvd/install
48 $(INSTALL_DIR) $(1)/etc/config
49 $(INSTALL_CONF) ./files/radvd.config $(1)/etc/config/radvd
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,radvd))