blob: 4406f7eb29322a83b7c5c9778bfe759ba56d00bb (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=0.2.4
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"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
0001-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
0002-Misc-header-fixes.patch
libtirpc-no-des.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 \
--enable-gss \
|| return 1
make || return 1
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="847995e8d002cbf1387bda05947be086 libtirpc-0.2.4.tar.bz2
f21a33e797dfe14c9efade5c8fd5a4b0 0001-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
62aada9c8fa7e197000846815a02541c 0002-Misc-header-fixes.patch
80e8f54aab0f5bed37e58ad79fe4ff2b libtirpc-no-des.patch
082dff1bc78bdcbac6d305c1534fe3c0 nis.h"
sha256sums="45c3e21dfc23a5ba501f9dfc6671678316fdfdb8355a1ec404ae2aa2f81943a1 libtirpc-0.2.4.tar.bz2
9ff042aa7ba870d2d581f2815eee9cae7620df6b3a725da4c4d555325a08a05d 0001-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
1565e46325a5321638511d8637686ac02f039c4a99e1c0bcc2ec40f213ff73e3 0002-Misc-header-fixes.patch
5b7c8f6d19f17541902dfd1b1132f2b07e4cc0987152d4e8007243e776d4d47f libtirpc-no-des.patch
7149d53da167168cbad9e75cbab302768f659e59e208763b1bf5df2a6ff3bfdb nis.h"
sha512sums="8b7fec13d34ad0ddfa3832f4a4955607d94f6a691fedcc81a98554345f6c6e64d5f289490a10a80600cebf5b53cfad99c0d78007b88f8f2fbc60cbb8680fc87f libtirpc-0.2.4.tar.bz2
e60fc98c9efaa4675d08e85b669d8dea07b2c7e7b268344e06e172f5751baf6fae7f354149d738f4bbe139ff5b964f1d80d0bfa91a1c9ca94f9ab9489618166d 0001-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
0e40b26c7b71e14ca5481975892795346043f8193a4af233268b3af7b74acac9cff483f9cb6d4bb1b581741ec87e8d6abd536f3d0942ba0f14257c31d22349c9 0002-Misc-header-fixes.patch
9a984a7741deb943f92cd8a9f23d1a0e09a01e91aa88268456ccbb7998b24f50ad431e26400def3a8ba9d6cd345e5abccf5acf9c59708ce8f0653275c2ea5d61 libtirpc-no-des.patch
15edac1e30cc1aa65ca495bae14c6c7455d65ca539b7e5c865c3fbd5a51c76966b37dd34e9a6483aadcaea3602aefb0b48cdb46f877dae1c65dfa6840dfd8c54 nis.h"
|