summaryrefslogtreecommitdiffstats
path: root/main/libtirpc/APKBUILD
blob: ecac43adc37c5133754cd050008c2e31cfa8ed22 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=0.2.1
pkgrel=2
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="http://libtirpc.sourceforge.net/"
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
	install -D -m644 doc/etc_netconfig "$pkgdir"/etc/netconfig
}
md5sums="d77eb15f464bf9d6e66259eaf78b2a4e  libtirpc-0.2.1.tar.bz2
082dff1bc78bdcbac6d305c1534fe3c0  nis.h
e386d2893527ed313686eca6314d6675  libtirpc-no-des.patch"