aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radvd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/radvd')
-rw-r--r--testing/radvd/APKBUILD56
-rw-r--r--testing/radvd/radvd-1.1-gnu-source.patch11
-rw-r--r--testing/radvd/radvd.confd11
-rw-r--r--testing/radvd/radvd.initd67
4 files changed, 0 insertions, 145 deletions
diff --git a/testing/radvd/APKBUILD b/testing/radvd/APKBUILD
deleted file mode 100644
index 6861da4988..0000000000
--- a/testing/radvd/APKBUILD
+++ /dev/null
@@ -1,56 +0,0 @@
-# Contributor: Natanael Copa <ncopa@alpinelinux.org>
-# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-pkgname=radvd
-pkgver=1.8
-pkgrel=1
-pkgdesc="A Router Advertisement daemon"
-url="http://www.litech.org/radvd/"
-arch="all"
-license="BSD with advertising"
-depends=""
-depends_dev=""
-makedepends="flex bison"
-install=""
-subpackages="$pkgname-doc"
-source="http://www.litech.org/radvd/dist/radvd-$pkgver.tar.gz
- radvd-1.1-gnu-source.patch
- radvd.initd
- radvd.confd
- "
-
-_builddir="$srcdir"/radvd-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
-build() {
- cd "$_builddir"
- ./configure --prefix=/usr \
- --sysconfdir=/etc/ \
- --with-pidfile=/var/run/radvd/radvd.pid \
- || return 1
- # work around parallel build issue
- make gram.h && make || return 1
-}
-
-package() {
- cd "$_builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
- mkdir -p "$pkgdir"/var/run/radvd
-
- install -Dm755 "$srcdir"/radvd.initd "$pkgdir"/etc/init.d/radvd \
- || return 1
- install -Dm644 "$srcdir"/radvd.confd "$pkgdir"/etc/conf.d/radvd \
- || return 1
-}
-
-md5sums="50b4cfbdfa04d629d80437fd1d9e2aef radvd-1.8.tar.gz
-c0297515f242d8e8e890d4cdc38bc5b4 radvd-1.1-gnu-source.patch
-ed1e493b9cd46b705886b8934ebc988f radvd.initd
-7593b61c3198d961cc86dd5b85b9f44a radvd.confd"
diff --git a/testing/radvd/radvd-1.1-gnu-source.patch b/testing/radvd/radvd-1.1-gnu-source.patch
deleted file mode 100644
index fc0d883557..0000000000
--- a/testing/radvd/radvd-1.1-gnu-source.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- radvd-1.1.orig/includes.h 2007-10-25 21:29:40.000000000 +0200
-+++ radvd-1.1/includes.h 2008-06-14 12:30:25.000000000 +0200
-@@ -18,6 +18,8 @@
-
- #include <config.h>
-
-+#define _GNU_SOURCE /* needed for struct in6_pktinfo */
-+
- #include <string.h>
- #include <stdio.h>
- #include <stdarg.h>
diff --git a/testing/radvd/radvd.confd b/testing/radvd/radvd.confd
deleted file mode 100644
index e025c6862f..0000000000
--- a/testing/radvd/radvd.confd
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.conf,v 1.1 2006/07/19 13:02:36 uberlord Exp $
-
-# Extra options to pass to radvd
-OPTIONS=""
-
-# Set this to "no" to tell the init script NOT to set up IPv6 forwarding
-# using /proc/sys/net/ipv6/conf/all/forwarding
-# Only change this if you know what you're doing!
-FORWARD="yes"
diff --git a/testing/radvd/radvd.initd b/testing/radvd/radvd.initd
deleted file mode 100644
index 8510ae1cca..0000000000
--- a/testing/radvd/radvd.initd
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.init,v 1.6 2011/12/04 10:14:13 swegener Exp $
-
-CONFIGFILE=/etc/radvd.conf
-PIDFILE=/var/run/radvd/radvd.pid
-SYSCTL_FORWARD=net.ipv6.conf.all.forwarding
-
-extra_started_commands="reload"
-
-depend() {
- need net
- after firewall
-}
-
-checkconfig() {
- if [ ! -f "${CONFIGFILE}" ]; then
- eerror "Configuration file ${CONFIGFILE} not found"
- return 1
- fi
-
- checkpath -d -o radvd:radvd ${PIDFILE%/*}
-}
-
-start() {
- checkconfig || return 1
-
- if [ "${FORWARD}" != "no" ]; then
- ebegin "Enabling IPv6 forwarding"
- sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
- eend $?
- fi
-
- ebegin "Starting IPv6 Router Advertisement Daemon"
- start-stop-daemon --start --exec /usr/sbin/radvd \
- --pidfile "${PIDFILE}" \
- -- -C "${CONFIGFILE}" -p "${PIDFILE}" -u radvd ${OPTIONS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping IPv6 Router Advertisement Daemon"
- start-stop-daemon --stop --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
- eend $?
-
- if [ "${FORWARD}" != "no" ]; then
- ebegin "Disabling IPv6 forwarding"
- sysctl -w "${SYSCTL_FORWARD}=0" > /dev/null
- eend $?
- fi
-}
-
-reload() {
- checkconfig || return 1
-
- if [ "${FORWARD}" != "no" ]; then
- ebegin "Enabling IPv6 forwarding"
- sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
- eend $?
- fi
-
- ebegin "Reloading IPv6 Router Advertisement Daemon"
- start-stop-daemon --stop --signal HUP --oknodo \
- --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
- eend $?
-}