2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
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:=142bb9d126a67215597d115ed551955e79889fad
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
24 include $(INCLUDE_DIR)/package.mk
29 TITLE:=IPv6 Routing Advertisement Daemon
30 DESCRIPTION:=IPv6 Routing Advertisement Daemon.
31 URL:=http://v6web.litech.org/radvd/
34 define Package/radvd/conffiles
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
40 $(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="$(TARGET_CFLAGS)" \
43 --target=$(GNU_TARGET_NAME) \
44 --host=$(GNU_TARGET_NAME) \
45 --build=$(GNU_HOST_NAME) \
51 --datadir=/usr/share \
52 --includedir=/usr/include \
53 --infodir=/usr/share/info \
55 --libexecdir=/usr/lib \
56 --localstatedir=/var \
57 --mandir=/usr/share/man \
60 $(DISABLE_LARGEFILE) \
62 --with-configfile=/etc/radvd.conf \
63 --with-logfile=/var/log/radvd.log \
64 --with-pidfile=/var/run/radvd.pid \
69 rm -rf $(PKG_INSTALL_DIR)
70 mkdir -p $(PKG_INSTALL_DIR)
71 $(MAKE) -C $(PKG_BUILD_DIR) \
73 $(MAKE) -C $(PKG_BUILD_DIR) \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
78 define Package/radvd/install
79 $(INSTALL_DIR) $(1)/etc
80 $(INSTALL_DATA) ./files/radvd.conf $(1)/etc/radvd.conf
81 $(INSTALL_DIR) $(1)/etc/init.d
82 $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
83 $(INSTALL_DIR) $(1)/usr/sbin
84 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
85 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
88 $(eval $(call BuildPackage,radvd))