aboutsummaryrefslogtreecommitdiffstats
path: root/main/rpcbind/APKBUILD
blob: 4d12baf5c05f176231e590de6abecbdd1bdb4349 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rpcbind
pkgver=0.2.3
pkgrel=1
pkgdesc="portmap replacement which supports RPC over various protocols"
url="http://rpcbind.sourceforge.net"
arch="all"
license="custom"
depends=
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="libtirpc-dev autoconf automake bsd-compat-headers"
subpackages="$pkgname-dbg $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://git.infradead.org/users/steved/rpcbind.git/snapshot/95cb04e539a74dbf53e87a13c291389a3e6d4f1d.tar.gz
	0002-uclibc-rpcsvc-defines.patch
	musl-poll.patch
	musl-sunrpc.patch
	rpcbind.initd
	rpcbind.confd
	0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch
	CVE-2015-7236.patch"

_builddir="$srcdir"/rpcbind-95cb04e
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoreconf -fisv || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--bindir=/sbin \
		--enable-warmstarts \
		--with-statedir=/var/lib/rpcbind \
		--with-rpcuser=rpc \
		--enable-debug \
		--with-systemdsystemunitdir='no' \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm755 "$srcdir"/rpcbind.initd "$pkgdir"/etc/init.d/rpcbind
	install -Dm644 "$srcdir"/rpcbind.confd "$pkgdir"/etc/conf.d/rpcbind
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/rpcbind/COPYING
}
md5sums="01eb2544467d6239c1a1de8ab19d2bcf  rpcbind-0.2.3.tar.gz
bea09b7ec434264756ec7c09da59b8bf  0002-uclibc-rpcsvc-defines.patch
30bf8bbad7e28239a4fdd5f075640663  musl-poll.patch
7825226deb532d8b91380e5425304965  musl-sunrpc.patch
4fbc48760c73976457349150779b3b8b  rpcbind.initd
2517c71cdb08f133b0d50055a44c56de  rpcbind.confd
cab57f0dcff8425e5a00241f6e75e64a  0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch
940f7bed3ee84d3f827a2bfd6f19c624  CVE-2015-7236.patch"
sha256sums="7d0bbc262138c5f9f2b42f53c1953bf5440379cfe3a926fc400926b44bba6d81  rpcbind-0.2.3.tar.gz
86f56219652ce4e8009b6bb28c8a970fff55fff22c244d10efbe6e097a2e66f9  0002-uclibc-rpcsvc-defines.patch
91b795f046e956ded5d16b77867a6c8199f4b221e4cab467865b16f26b8bfd32  musl-poll.patch
8852c055fa257113d3df3525a5600e6f02f4eacba29cf98a8c0c714e4551cfc9  musl-sunrpc.patch
ed0906acfda9f038776530ef56fcbea8627837f707682ce7311e10c7259cfb15  rpcbind.initd
55bcd47a4d0f194f09e6abb13695853459f869b54ce09ef051e55efcd8ad3903  rpcbind.confd
a1af9dd7631205d35d8bae464b5eb9965ec16952fb9479d1e58dd2fbd40f3ec3  0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch
e7aafff7fe20a5d9fdb0f93a5b6824e136934f4fbb20d210f398e851cb13f419  CVE-2015-7236.patch"
sha512sums="632c1025a562adfd2487aa22f5d8f3a49b93a16beb202c7736eae7e466ca481f0b6ea4c71842bd577555ab823ba10ec8e13d78a6f1d15f57b3b23bcc5893bd61  rpcbind-0.2.3.tar.gz
205dcf072055f3ff0477b26f63be7e228244bcaeaf3670ad9f5a9a39faa9d58f89b9eb2a98d79059a749b6ff834d37c260e71a8b06507027e315b29152b2a94d  0002-uclibc-rpcsvc-defines.patch
9ff75b07622f12dd8363ad21709bd60addcb7d428aa9e181467e8da0c4ac087653934fdfb7bcec31c52b43a96a1829793cee18e68878d5cc69fa920865bdbad8  musl-poll.patch
f8782018825e176adcb323c93cdf44612914a7a71e12f2dd4afb1593c62b91709fcf62246cc4e57ae2527d117cb05eabfc8436958da524186490615bf50c0bd4  musl-sunrpc.patch
1cd655d86226a45fa3e927f8ac2bb580537644d2fb3684e0f4a956bf3721c95d95b8b8c1d9a2a742fb714eeba9277e0400a7493bf1bf676466d70adb2b35a88e  rpcbind.initd
0641087162ebc8fb10c5cb329105261d77cad073daed3f9a6c92574177298cd8a19a87b62dde14161cc554b5e68680cfd870b5334f3cfd8d6074ec8a43f4dfe3  rpcbind.confd
a2e2d2539b5943c93a9d44f11679ff5b7ca958b49040015a50e6a6bb865663031993e2888453b3c4ee0bef74f1eecc39a1b785ffcb1b596b156d24741154c2b5  0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch
c91628b6e5758a02790651d914f35c10d19807955721d910a4d391cde0071efee169cfddd788855677bc1d509fba3a1bc5e40601d327a5f7f8487ad8f06b197a  CVE-2015-7236.patch"