summaryrefslogtreecommitdiffstats
path: root/main/opennhrp/APKBUILD
blob: 610fd53db6b3081e846d31acacb23c5eddda4924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=opennhrp
pkgver=0.12.1
pkgrel=1
pkgdesc="NBMA Next Hop Resolution Protocol daemon"
url="http://sourceforge.net/projects/opennhrp"
arch="all"
license="GPL-2"
depends=
makedepends="c-ares-dev"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
	0001-netlink-ignore-kernel-routes-for-GRE-interfaces.patch
	opennhrp-0.9.3-peer-up-bgp.patch
	$pkgname.initd
	$pkgname.confd
	"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in ../*.patch; do
		msg "Applying $i"
		patch -p1 < $i || return 1
	done
	
	sed -i -e 's/-Werror//' Make.rules
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/opennhrp.initd "$pkgdir"/etc/init.d/opennhrp
	install -Dm644 "$srcdir"/opennhrp.confd "$pkgdir"/etc/conf.d/opennhrp
}
md5sums="31ada6dede3c62dac491002624d34778  opennhrp-0.12.1.tar.bz2
d6dbf1ac009615cea63e0ede894133a0  0001-netlink-ignore-kernel-routes-for-GRE-interfaces.patch
f81539fc92800bb79668dda119a97d1d  opennhrp-0.9.3-peer-up-bgp.patch
ae65f88ccf849ef882669a8b4f0c7fc0  opennhrp.initd
8eee86233728dc0d156bbfee6d98f338  opennhrp.confd"