aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rtapd/APKBUILD
blob: f568fb7601c72d1a739274c49ffdcd5045087b0d (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
41
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=rtapd
_altpkgname="rtnppd"
_builddir="$pkgname"
pkgver=1.7
pkgrel=0
pkgdesc="daemon for routing packets to rtnppd"
url="http://sourceforge.net/projects/rtnppd/"
license="GPL"
depends=""
makedepends="postgresql-dev"
install=
subpackages=""
source="http://downloads.sourceforge.net/$_altpkgname/$pkgname-$pkgver.tar.gz
	Makefile.patch
	$pkgname.initd
	$pkgname.confd"

build() {
	cd "$srcdir"/"$_builddir"
	echo "Applying Patch"
	patch -p1 < ../Makefile.patch || return 1
	make || return 1
}
package() {
	cd "$srcdir"/"$_builddir"
	#make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install -m755 -D ./rtapd "$pkgdir"/usr/sbin/rtapd
	install -m755 -D ./vsnppd "$pkgdir"/usr/sbin/vsnppd
	install -m644 -D ./rtapd.conf "$pkgdir"/etc/rtnppd/rtapd.conf
	install -m644 -D ./tap_dev.conf "$pkgdir"/etc/rtnppd/tap_dev.conf
	install -m644 -D ./tap_route.conf "$pkgdir"/etc/rtnppd/tag_route.conf
}

md5sums="f3354efde507d29813754c8f4af7fa02  rtapd-1.7.tar.gz
7ea62a8bb13e2069164d8639b8c02aad  Makefile.patch
bd5aa6b7477064be5966962b90be55b5  rtapd.initd
4378fc49b27dcc6ab7f2316ea2453338  rtapd.confd"