2009-10-08 09:34:36 +00:00
|
|
|
#
|
2012-05-28 14:56:51 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-07-24 18:42:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=radvd
|
2012-07-24 22:26:25 +00:00
|
|
|
PKG_VERSION:=1.9.1
|
2012-09-12 09:42:44 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-24 18:42:41 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
|
|
|
|
http://download.sourcemage.org/mirror
|
2012-07-24 22:26:25 +00:00
|
|
|
PKG_MD5SUM:=e807ad7e9a76d46b6133df391385cd31
|
2011-01-29 01:04:03 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2006-07-24 18:42:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-07-18 10:32:55 +00:00
|
|
|
define Package/radvd/Default
|
2013-05-14 15:02:57 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-07-18 10:32:55 +00:00
|
|
|
TITLE:=IPv6 Routing Advertisement
|
2006-07-24 18:42:41 +00:00
|
|
|
URL:=http://v6web.litech.org/radvd/
|
2012-07-24 22:26:25 +00:00
|
|
|
DEPENDS:=+kmod-ipv6 +libdaemon
|
2006-07-24 18:42:41 +00:00
|
|
|
endef
|
|
|
|
|
2011-07-18 10:32:55 +00:00
|
|
|
define Package/radvd
|
|
|
|
$(call Package/radvd/Default)
|
|
|
|
TITLE+= Daemon
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/radvd/description
|
2011-07-18 10:32:55 +00:00
|
|
|
radvd is the router advertisement daemon for IPv6. It listens to router
|
|
|
|
solicitations and sends router advertisements as described in "Neighbor
|
|
|
|
Discovery for IP Version 6 (IPv6)" (RFC 4861). With these advertisements hosts
|
|
|
|
can automatically configure their addresses and some other parameters. They also
|
|
|
|
can choose a default router based on these advertisements.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/radvdump
|
|
|
|
$(call Package/radvd/Default)
|
|
|
|
TITLE+= Dumper
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/radvdump/description
|
|
|
|
radvdump prints out the contents of incoming router advertisements sent by radvd
|
|
|
|
or some other software implementing (parts of) "Neighbor Discovery for IP
|
|
|
|
Version 6 (IPv6)" (RFC 4861).
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2011-01-29 01:04:03 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--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
|
|
|
|
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
|
2009-10-08 09:34:36 +00:00
|
|
|
$(INSTALL_CONF) ./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/
|
2011-07-18 10:32:55 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/radvdump/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
|
2006-07-24 18:42:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,radvd))
|
2011-07-18 10:32:55 +00:00
|
|
|
$(eval $(call BuildPackage,radvdump))
|