From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/radvd/Config.in | 11 +++++++++ package/radvd/Makefile | 43 ++++++++++++++++++++++++++++++++++++ package/radvd/files/radvd.conf | 22 ++++++++++++++++++ package/radvd/files/radvd.init | 29 ++++++++++++++++++++++++ package/radvd/ipkg/radvd.conffiles | 1 + package/radvd/ipkg/radvd.control | 5 +++++ package/radvd/ipkg/radvd.postinst | 3 +++ package/radvd/patches/no-libfl.patch | 12 ++++++++++ 8 files changed, 126 insertions(+) create mode 100644 package/radvd/Config.in create mode 100644 package/radvd/Makefile create mode 100644 package/radvd/files/radvd.conf create mode 100644 package/radvd/files/radvd.init create mode 100644 package/radvd/ipkg/radvd.conffiles create mode 100644 package/radvd/ipkg/radvd.control create mode 100644 package/radvd/ipkg/radvd.postinst create mode 100644 package/radvd/patches/no-libfl.patch (limited to 'package/radvd') diff --git a/package/radvd/Config.in b/package/radvd/Config.in new file mode 100644 index 000000000..2ed97bb82 --- /dev/null +++ b/package/radvd/Config.in @@ -0,0 +1,11 @@ +config ADK_PACKAGE_RADVD + prompt "radvd............................. IPv6 Routing Advertisement Daemon" + depends on ADK_IPV6 + tristate + default n + select ADK_KPACKAGE_KMOD_IPV6 + help + Routing Advertisement Daemon for IPv6 + + http://v6web.litech.org/radvd/ + diff --git a/package/radvd/Makefile b/package/radvd/Makefile new file mode 100644 index 000000000..2d031e0a3 --- /dev/null +++ b/package/radvd/Makefile @@ -0,0 +1,43 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= radvd +PKG_VERSION:= 0.7.3 +PKG_RELEASE:= 8 +PKG_MD5SUM:= 56ce3f8cbf5966a0d531c21813320423 + +MASTER_SITES:= http://v6web.litech.org/radvd/dist/ \ + http://download.sourcemage.org/mirror/ +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,RADVD,radvd,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ARGS+= --with-configfile=/etc/radvd.conf \ + --with-logfile=/var/log/radvd.log \ + --with-pidfile=/var/run/radvd.pid + +do-build: + $(MAKE) -C $(WRKBUILD) \ + radvd_LDADD="" + mkdir -p $(WRKINST) + $(MAKE) -C $(WRKBUILD) \ + DESTDIR="$(WRKINST)" \ + install + +do-install: + ${INSTALL_DIR} ${IDIR_RADVD}/etc + ${INSTALL_DATA} ./files/radvd.conf ${IDIR_RADVD}/etc/ + ${INSTALL_DIR} ${IDIR_RADVD}/etc/init.d + ${INSTALL_BIN} ./files/radvd.init ${IDIR_RADVD}/etc/init.d/radvd + ${INSTALL_DIR} ${IDIR_RADVD}/usr/sbin + ${INSTALL_BIN} ${WRKINST}/usr/sbin/radvd ${IDIR_RADVD}/usr/sbin/ + ${INSTALL_BIN} ${WRKINST}/usr/sbin/radvdump ${IDIR_RADVD}/usr/sbin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/radvd/files/radvd.conf b/package/radvd/files/radvd.conf new file mode 100644 index 000000000..06d835704 --- /dev/null +++ b/package/radvd/files/radvd.conf @@ -0,0 +1,22 @@ +# For more examples, see the radvd documentation. + +interface br0 +{ + AdvSendAdvert off; + +# +# Disable Mobile IPv6 support +# + AdvHomeAgentFlag off; + +# +# example of a standard prefix +# + prefix fec0:0:0:1::/64 + { + AdvOnLink on; + AdvAutonomous on; + AdvRouterAddr off; + }; + +}; diff --git a/package/radvd/files/radvd.init b/package/radvd/files/radvd.init new file mode 100644 index 000000000..ba2b60535 --- /dev/null +++ b/package/radvd/files/radvd.init @@ -0,0 +1,29 @@ +#!/bin/sh +#FWINIT 51 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${radvd:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + echo 1 > /proc/sys/net/ipv6/conf/all/forwarding + /usr/sbin/radvd + ;; + +stop) + killall radvd + echo 0 > /proc/sys/net/ipv6/conf/all/forwarding + ;; + +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? diff --git a/package/radvd/ipkg/radvd.conffiles b/package/radvd/ipkg/radvd.conffiles new file mode 100644 index 000000000..a1418c0a1 --- /dev/null +++ b/package/radvd/ipkg/radvd.conffiles @@ -0,0 +1 @@ +/etc/radvd.conf diff --git a/package/radvd/ipkg/radvd.control b/package/radvd/ipkg/radvd.control new file mode 100644 index 000000000..67df96e73 --- /dev/null +++ b/package/radvd/ipkg/radvd.control @@ -0,0 +1,5 @@ +Package: radvd +Priority: optional +Section: net +Depends: kmod-ipv6 +Description: Routing Advertisement Daemon for IPv6 diff --git a/package/radvd/ipkg/radvd.postinst b/package/radvd/ipkg/radvd.postinst new file mode 100644 index 000000000..8e3ea08f6 --- /dev/null +++ b/package/radvd/ipkg/radvd.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf radvd radvd NO diff --git a/package/radvd/patches/no-libfl.patch b/package/radvd/patches/no-libfl.patch new file mode 100644 index 000000000..e17a127c9 --- /dev/null +++ b/package/radvd/patches/no-libfl.patch @@ -0,0 +1,12 @@ +diff -urN radvd-0.7.3.old/scanner.l radvd-0.7.3/scanner.l +--- radvd-0.7.3.old/scanner.l 2004-10-26 07:30:34.000000000 +0200 ++++ radvd-0.7.3/scanner.l 2005-04-05 00:01:42.000000000 +0200 +@@ -21,6 +21,8 @@ + + extern char *conf_file; + ++int yywrap(void) { return 1; } ++ + int num_lines = 1; + %} + -- cgit v1.2.3