diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
commit | b70981b68efcce5256eb11c6cd26ae123b10b6ea (patch) | |
tree | a38be6efae5e2ba15c2e839504632f9b7bfd5f91 /main/quagga/APKBUILD | |
parent | 2b4df81538b8398442d5296650905c70341dd8d3 (diff) | |
download | aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2 aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz |
moved extra/* to main/
and fixed misc build issues
Diffstat (limited to 'main/quagga/APKBUILD')
-rw-r--r-- | main/quagga/APKBUILD | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/main/quagga/APKBUILD b/main/quagga/APKBUILD new file mode 100644 index 0000000000..aaa3fc64d0 --- /dev/null +++ b/main/quagga/APKBUILD @@ -0,0 +1,79 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=quagga +pkgver=0.99.13 +pkgrel=0 +pkgdesc="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP." +url="http://quagga.net/" +license="GPL-2" +depends="iproute2" +makedepends="readline-dev ncurses-dev gawk + autoconf automake libtool" +install="$pkgname.pre-install $pkgname.post-install" +subpackages="$pkgname-dev $pkgname-doc" +source="http://www.quagga.net/download/$pkgname-$pkgver.tar.gz + $pkgname-0.99.11-link-libcap.patch + $pkgname-0.99.11-ipv6-only.patch + $pkgname-0.99.11-del-routes.patch + $pkgname-0.99.11-zombie.patch + $pkgname-0.99.11-fd-leak.patch + bgpd.initd + ospf6d.initd + ospfd.initd + ripd.initd + ripngd.initd + zebra.initd + zebra.confd + $install + " + +build() { + cd "$srcdir"/$pkgname-$pkgver + for i in ../*.patch; do + msg "Applying $i..." + patch -p1 < $i || return 1 + done + + msg "Running autotools..." + aclocal || return 1 + autoconf || return 1 + automake || return 1 + libtoolize || return 1 + + ./configure --prefix=/usr \ + --disable-static \ + --enable-ipv6 \ + --enable-ospf6d \ + --enable-rtadv \ + --enable-user=quagga \ + --enable-group=quagga \ + --enable-vty-group=quagga \ + --enable-vtysh \ + --sysconfdir=/etc/quagga \ + --enable-exampledir=/usr/share/doc/quagga/ \ + --localstatedir=/var/run/quagga \ + || return 1 + + make || return 1 + make DESTDIR="$pkgdir" install + + install -d "$pkgdir"/var/run/quagga + for i in zebra ripd ospfd bgpd ripngd ospf6d; do + install -Dm755 "$srcdir"/$i.initd "$pkgdir"/etc/init.d/$i + done + install -Dm644 "$srcdir/zebra.confd" "$pkgdir"/etc/conf.d/zebra +} +md5sums="55a7d2dcf016580a7c7412b3518cd942 quagga-0.99.13.tar.gz +8f99d41a8ed79e51704e8f655d255f29 quagga-0.99.11-link-libcap.patch +44c517e988273e0e5076d24f3959a125 quagga-0.99.11-ipv6-only.patch +1cbcf60a637b2577dee4d6df711e1247 quagga-0.99.11-del-routes.patch +ce345725f2e7240cebe0fd5ac2b2fc48 quagga-0.99.11-zombie.patch +e2391e19b542ec1743776ca9e36ac11a quagga-0.99.11-fd-leak.patch +cc109a746273bc0d6aee9d758e7524ab bgpd.initd +44547b687343ebfed7524cebc5626067 ospf6d.initd +89b0cf4e70172bfcd195b2869cae28da ospfd.initd +39b8cb21b55de53af38c94c2f5d85917 ripd.initd +120ab1b53975ec86e78266f31e935ab6 ripngd.initd +3490a10510e416ab83d5b4d767136de8 zebra.initd +c38e884372406e9e59616e436cd26388 zebra.confd +44b4c3684e4c7300665bf90fa4520af9 quagga.pre-install +d2181a6401280478b8700cfcee32794e quagga.post-install" |