| 1 | # Description: NFS utilities |
| 2 | # URL: http://nfs.sourceforge.net/ |
| 3 | # Maintainer: Juergen Daubert, jue at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: util-linux-ng tcp_wrappers libcap rpcbind libnfsidmap libevent keyutils |
| 6 | |
| 7 | name=nfs-utils |
| 8 | version=1.2.5 |
| 9 | release=1 |
| 10 | source=(http://downloads.sourceforge.net/project/nfs/$name/$version/$name-$version.tar.bz2 \ |
| 11 | exports idmapd.conf nfs nfsserver $name-${version}_PAGE_SIZE.patch) |
| 12 | |
| 13 | build () { |
| 14 | cd $name-$version |
| 15 | |
| 16 | patch -p1 -i $SRC/$name-${version}_PAGE_SIZE.patch |
| 17 | ./configure --prefix=/usr \ |
| 18 | --mandir=/usr/man \ |
| 19 | --sysconfdir=/etc \ |
| 20 | --with-statedir=/var/lib/nfs \ |
| 21 | --disable-gss \ |
| 22 | --with-tcp-wrappers |
| 23 | make |
| 24 | make DESTDIR=$PKG install |
| 25 | |
| 26 | install -D -m 755 $SRC/nfs $PKG/etc/rc.d/nfs |
| 27 | install -D -m 755 $SRC/nfsserver $PKG/etc/rc.d/nfsserver |
| 28 | install -D -m 644 $SRC/exports $PKG/etc/exports |
| 29 | install -D -m 644 $SRC/idmapd.conf $PKG/etc/idmapd.conf |
| 30 | |
| 31 | install -d $PKG/var/lib/nfs/{rpc_pipefs,v4recovery} |
| 32 | install -d $PKG/etc/exports.d |
| 33 | } |