summaryrefslogtreecommitdiff
path: root/main/rtapd/APKBUILD
blob: a73eeced1076d1068e8e059b91ee9f99f1a4bb50 (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: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=rtapd
pkgver=1.7
pkgrel=9
pkgdesc="daemon for routing packets to rtnppd"
url="https://sourceforge.net/projects/rtnppd/"
arch="all"
license="GPL"
depends="rtnppd"
makedepends="libpq-dev"
subpackages="$pkgname-dbg $pkgname-openrc"
source="https://downloads.sourceforge.net/rtnppd/rtapd-$pkgver.tar.gz
	musl-strtoq.patch
	Makefile.patch
	$pkgname.initd
	$pkgname.confd"
builddir="$srcdir"/$pkgname
options="!check"

build() {
	make
}
package() {
	#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
}

sha512sums="
a4759b5af9710e8658f38494f88cfd727e6697b4793655fd80555405dd7fd04e69aaef63692991653f75ff7e2702ec068547d82778bf1cb51c3aa3d8a1178f63  rtapd-1.7.tar.gz
57d7c6fe5530bcd6c2c27dfa8c2cf473d27cc6cde4e8eb50e302b5c13ffec180523ba93179586cf031a50abb8274383245c41dc20beb35765f7ce42300845e10  musl-strtoq.patch
77d0fadea46c610e9b4de3b95f5d4c8b596637fff9501c1eddbdb4e23d49869692a223c75dc7a7f2c9ea057972dc6f0fffe477ea88e7fbbc9af010b29e7cb922  Makefile.patch
5452ae881b1d88fdab95b8987f550ef6d26cb60d6697e38b8ab81010aa40dfb9fa4bee8c053069a882fd9f749882cb96777e3a4866299a6651f1e213e6a4448c  rtapd.initd
77c3c5bb295b2f3a8c7271ec52a9d4c02bdebc45d7830cb3b0b64b100a2b2649fb28a3e6b615385f9c50f5c847c12064caf981b1dcca2f78432d230649b326fd  rtapd.confd
"