Bump radvd to 1.2, cleanup makefile (#4230)
[openwrt/svn-archive/archive.git] / ipv6 / radvd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=radvd
12 PKG_VERSION:=1.2
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
18 http://download.sourcemage.org/mirror
19 PKG_MD5SUM:=614876420d76cd2bb5bcb49760c8b9e3
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 endef
29
30 define Package/radvd/description
31 IPv6 Routing Advertisement Daemon.
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default,\
36 --with-configfile=/etc/radvd.conf \
37 --with-logfile=/var/log/radvd.log \
38 --with-pidfile=/var/run/radvd.pid \
39 )
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 radvd_LDADD=""
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 install
48 endef
49
50 define Package/radvd/conffiles
51 /etc/config/radvd
52 endef
53
54 define Package/radvd/install
55 $(INSTALL_DIR) $(1)/etc/config
56 $(INSTALL_DATA) ./files/radvd.config $(1)/etc/config/radvd
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
59 $(INSTALL_DIR) $(1)/usr/sbin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
62 endef
63
64 $(eval $(call BuildPackage,radvd))