aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtirpc/APKBUILD
blob: 891cb1604312c28f61d22cd3bde9af1cbf60e8e7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=0.2.2
pkgrel=1
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="http://libtirpc.sourceforge.net/"
arch="all"
license="GPL2"
depends=
makedepends="libgssglue-dev heimdal-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
	nis.h
	libtirpc-no-des.patch"

depends_dev="libgssglue-dev heimdal-dev"
prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
	# uclibc does not provide nis.h so provide our own
	mkdir src/rpcsvc
	cp "$srcdir"/nis.h src/rpcsvc/

	sh bootstrap && libtoolize
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--enable-gss
	make || return 1
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -D -m644 doc/etc_netconfig "$pkgdir"/etc/netconfig
}
md5sums="74c41c15c2909f7d11d9c7bfa7db6273  libtirpc-0.2.2.tar.bz2
082dff1bc78bdcbac6d305c1534fe3c0  nis.h
1f1afd528c327975e40ffe77b2d9e13d  libtirpc-no-des.patch"