2006-07-24 18:42:41 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=radvd
|
2008-11-24 10:05:54 +00:00
|
|
|
PKG_VERSION:=1.2
|
2006-07-24 18:42:41 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
|
|
|
|
http://download.sourcemage.org/mirror
|
2008-11-24 10:05:54 +00:00
|
|
|
PKG_MD5SUM:=614876420d76cd2bb5bcb49760c8b9e3
|
2006-07-24 18:42:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/radvd
|
2006-12-09 16:56:38 +00:00
|
|
|
SECTION:=ipv6
|
|
|
|
CATEGORY:=IPv6
|
2006-07-24 18:42:41 +00:00
|
|
|
TITLE:=IPv6 Routing Advertisement Daemon
|
|
|
|
URL:=http://v6web.litech.org/radvd/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/radvd/description
|
|
|
|
IPv6 Routing Advertisement Daemon.
|
|
|
|
endef
|
|
|
|
|
2006-07-24 18:42:41 +00:00
|
|
|
define Build/Configure
|
2008-11-24 10:05:54 +00:00
|
|
|
$(call Build/Configure/Default,\
|
|
|
|
--with-configfile=/etc/radvd.conf \
|
|
|
|
--with-logfile=/var/log/radvd.log \
|
|
|
|
--with-pidfile=/var/run/radvd.pid \
|
|
|
|
)
|
2006-07-24 18:42:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
radvd_LDADD=""
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
2008-09-09 09:11:41 +00:00
|
|
|
define Package/radvd/conffiles
|
|
|
|
/etc/config/radvd
|
|
|
|
endef
|
|
|
|
|
2006-07-24 18:42:41 +00:00
|
|
|
define Package/radvd/install
|
2008-07-11 21:31:04 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/radvd.config $(1)/etc/config/radvd
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
|
2006-07-24 18:42:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,radvd))
|