summaryrefslogtreecommitdiffstats
path: root/main/rpcbind/APKBUILD
blob: 3574ffece0a2080a363da2fe02330818400b0356 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rpcbind
pkgver=0.2.0
pkgrel=0
pkgdesc="portmap replacement which supports RPC over various protocols"
url="http://rpcbind.sourceforge.net"
license="custom"
depends=
makedepends="libtirpc-dev"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
	0001-uclibc-nss.patch
	0002-uclibc-rpcsvc-defines.patch
	rpcbind.initd
	rpcbind.confd"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in "$srcdir"/*.patch; do
		patch -p1 -i "$i" || return 1
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr --bindir=/sbin
	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="1a77ddb1aaea8099ab19c351eeb26316  rpcbind-0.2.0.tar.bz2
6d9718d8bdab633ef7cf83225aaed367  0001-uclibc-nss.patch
944234c5ef6902d25bd6dfc95f979ed6  0002-uclibc-rpcsvc-defines.patch
381a2722c69b4597af532381f1ffeae0  rpcbind.initd
1ad5c8dcf432c8f23ba740f4c32a7c60  rpcbind.confd"