summaryrefslogtreecommitdiffstats
path: root/main/libtirpc/APKBUILD
blob: 72527726023991be01a2a866620f0c16ec3e0b6a (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
80
81
82
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=0.2.5
pkgrel=3
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="http://libtirpc.sourceforge.net/"
arch="all"
license="GPL2"
depends=
depends_dev="krb5-dev"
makedepends="$depends_dev autoconf automake libtool linux-headers
	bsd-compat-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
	0002-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
	0003-Avoid-use-of-internal-glibc-sys-cdefs.h-header.patch
	0004-Add-configure-option-to-disable-DES-authentication.patch
	0005-Fix-compile-error-IPPORT_RESERVED-undeclared.patch
	0006-Define-struct-rpcent-on-non-GNU-libc.patch

	nis.h
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver

	# uclibc/musl does not provide nis.h so provide our own
	mkdir src/rpcsvc
	cp "$srcdir"/nis.h src/rpcsvc/

	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -N -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done

	libtoolize --force && aclocal -I m4 && autoheader && autoconf \
		&& automake --add-missing || return 1
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconf=/etc \
		--disable-authdes \
		|| return 1
	make || return 1
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="8cd41a5ef5a9b50d0fb6abb98af15368  libtirpc-0.2.5.tar.bz2
1f0ae1fe18baf94eeb5c66b116e1ea5d  0002-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
32a70fd0f64c36987f319cd4734ec7ed  0003-Avoid-use-of-internal-glibc-sys-cdefs.h-header.patch
df1805367d42931b05c63fee8bd9eb3f  0004-Add-configure-option-to-disable-DES-authentication.patch
41e2c7652e32bd4029da40c0bb59f914  0005-Fix-compile-error-IPPORT_RESERVED-undeclared.patch
ac7d69dddc7b24aff9914c8b4030f8bb  0006-Define-struct-rpcent-on-non-GNU-libc.patch
821394d42c2a666d9b69452b4cc444b5  nis.h"
sha256sums="62f9de7c2c8686c568757730e1fef66502a0e00d6cacf33546d0267984e002db  libtirpc-0.2.5.tar.bz2
48bbb87c2fdc1ab89f8c719b56abf79b717266079def9e7a578cde7cd9e0ec79  0002-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
5b7af3d430bd4c5659ed22826f392dc07314e896a459d5b51e10424bccb8982a  0003-Avoid-use-of-internal-glibc-sys-cdefs.h-header.patch
90dd942250276b639dd48e2231c05545c5917785587f570f0df6ec3cdccbbe48  0004-Add-configure-option-to-disable-DES-authentication.patch
ebd4c0f311d034107c5aeb02f3d6db3bfa6a02e93d9050cc192d4d9d109f42c7  0005-Fix-compile-error-IPPORT_RESERVED-undeclared.patch
509f53b9bab3d25f4ff2154483b78d614e7e6bfeab82e1027b8b41d1641c1a62  0006-Define-struct-rpcent-on-non-GNU-libc.patch
82657302b530628afd5866b76fc338956ca011d11e995cf6dea5d8b0493278eb  nis.h"
sha512sums="9f8afa1acb04a2c2c558018f2528f8caaa79994a2af2abeed947f914145872ef72988b241e11925c799db0de9ec51fd9baecd2b08150240b22f91e2e55a45194  libtirpc-0.2.5.tar.bz2
0d5711125ebecace4d7268afd272135c9f277a012313b321fbc0e1ab1751931edc3b18a0285cf8a11a70a590d24e323eb2f59f03382ac095ea3839de152c0a50  0002-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
edfa4fda70139874e445b467ba5675e7342976097a63ea348f3c6381494c3cef7d95ac8434a8b58cb28132c9090d3e3be9cd9d447a9a4d18a1b0777be6bb0c94  0003-Avoid-use-of-internal-glibc-sys-cdefs.h-header.patch
9575ca014f4725fa8e9e06a246d1e5c72cc0c7b14ffa402e5eae0a790d88cef2b6fac639e5795e683c1f8caaa99dc0b3880a6dd2d2ed68a1838493ec02334069  0004-Add-configure-option-to-disable-DES-authentication.patch
38ffc51a7336195c3a570b0981588a4ad7dae2099b1a0564bc51cfdc4c34b5617a6dcdcdaed54d99bcdeac49c283f32e523612acfdb849ef6311f88e6887b4a2  0005-Fix-compile-error-IPPORT_RESERVED-undeclared.patch
ea5597069ffc50285f306d860513f5afb3d16f2e067e6c532ffdb6969e2275765d84bfb328c45f66c2c570b115c5f592a2292d1681d601e8d3636e7b650cfdbb  0006-Define-struct-rpcent-on-non-GNU-libc.patch
83be3277aa7539d454273d7579827ff09e6b927e21de0af8a9290733b4bdfdcebfef26c9faffffd005a7631eae8beb4db9f60787f08db92fdd140686fe160c47  nis.h"