aboutsummaryrefslogtreecommitdiffstats
path: root/main/radvd/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-22 06:29:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-22 06:30:49 +0000
commit0a5e89eab97504fe901bdae1c6bb87b360d59aff (patch)
treeb28541b0f1763d6945b10055eaf94b599ad40034 /main/radvd/APKBUILD
parentea1d2187ea42928c1200d87ff6856e0107a70c99 (diff)
downloadaports-0a5e89eab97504fe901bdae1c6bb87b360d59aff.tar.bz2
aports-0a5e89eab97504fe901bdae1c6bb87b360d59aff.tar.xz
main/radvd: moved from testing
Diffstat (limited to 'main/radvd/APKBUILD')
-rw-r--r--main/radvd/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/main/radvd/APKBUILD b/main/radvd/APKBUILD
new file mode 100644
index 0000000000..6861da4988
--- /dev/null
+++ b/main/radvd/APKBUILD
@@ -0,0 +1,56 @@
+# 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"