aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/APKBUILD
blob: b9225f96635ba9bbc98e6625f2b1f5baaf15768a (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nfs-utils
pkgver=1.2.0
pkgrel=0
pkgdesc="kernel-mode NFS"
url="http://nfs.sourceforge.net/"
license="GPL"
depends="portmap"
makedepends="e2fsprogs-dev"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/nfs/$pkgname-$pkgver.tar.bz2
	nfs.initd
	nfs.confd
	nfs.exports
	nfs-utils-no-exec.patch
	nfs-utils-mtab-sym.patch"

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

	for i in "$srcdir"/*.patch; do
		msg "Applying $i"
		patch -p0 -i "${i}" || return 1
	done

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-tcp-wrappers \
		--disable-nfsv4 \
		--enable-uuid \
		--disable-gss \
		--enable-mount \
		--enable-nfsv3 \
		--with-statedir=/var/lib/nfs

	make || return 1
	make -j1 DESTDIR="$pkgdir" install

	install -m755 -D "$srcdir"/nfs.initd "$pkgdir"/etc/init.d/nfs
	install -m644 -D "$srcdir"/nfs.confd "$pkgdir"/etc/conf.d/nfs
	install -m644 -D "$srcdir"/nfs.exports "$pkgdir"/etc/exports
	#mkdir -p "$pkgdir"/usr/lib/nfs
	install -m755 -D tools/rpcgen/rpcgen "$pkgdir"/usr/bin/rpcgen
}

md5sums="779cf81044e92cb51ad590960e7b3671  nfs-utils-1.2.0.tar.bz2
4538f67470c916f8da9c76a17e314906  nfs.initd
09135438d6df50b868bbe5a2260f973c  nfs.confd
4f1bb7b2412ce5952ecb5ec22d8ed99d  nfs.exports
5e0963b0889e779ff36af0299d17d6cb  nfs-utils-no-exec.patch
a3a7338f8de3ac37c1ffc05bdcb77d16  nfs-utils-mtab-sym.patch"