APKBUILD 2.04 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quagga
3
pkgver=0.99.15
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6 7
pkgdesc="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
url="http://quagga.net/"
license="GPL-2"
8
depends="iproute2"
9
makedepends="readline-dev ncurses-dev gawk
Natanael Copa's avatar
Natanael Copa committed
10
	autoconf automake libtool"
11
install="$pkgname.pre-install $pkgname.post-install"
Natanael Copa's avatar
Natanael Copa committed
12 13 14 15
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-del-routes.patch
16
	quagga-revert-confed-check.patch
Natanael Copa's avatar
Natanael Copa committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
	bgpd.initd
	ospf6d.initd
	ospfd.initd
	ripd.initd
	ripngd.initd
	zebra.initd
	zebra.confd
	"

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
}
62
md5sums="8975414c76a295f4855a417af0b5ddce  quagga-0.99.15.tar.gz
Natanael Copa's avatar
Natanael Copa committed
63 64
8f99d41a8ed79e51704e8f655d255f29  quagga-0.99.11-link-libcap.patch
1cbcf60a637b2577dee4d6df711e1247  quagga-0.99.11-del-routes.patch
65
9a9ad8ac543901f3eab6a6f2a914b69d  quagga-revert-confed-check.patch
66 67 68 69 70 71 72
c4c3b174b1e3400a143407fcc3d27cf5  bgpd.initd
92aba039c049050c48abf984c2db7e2b  ospf6d.initd
878328ead225e6eb5f5f77f05ab39106  ospfd.initd
5945863133a0db33898c5c39ef23663c  ripd.initd
cda4115283d9f4a8304fec1b6881a7eb  ripngd.initd
be935134c5e3400989b427d7c114e634  zebra.initd
34e06a1d2bc602ce691abc9ed169dd15  zebra.confd"