| 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 libcap |
| 6 | |
| 7 | name=nfs-utils |
| 8 | version=1.2.2 |
| 9 | release=1 |
| 10 | source=(http://dl.sourceforge.net/nfs/$name-$version.tar.bz2 \ |
| 11 | exports nfs nfsserver) |
| 12 | |
| 13 | build () { |
| 14 | cd $name-$version |
| 15 | |
| 16 | ./configure --prefix=/usr \ |
| 17 | --build=$CHOST \ |
| 18 | --host=$CTARGET \ |
| 19 | --mandir=/usr/man \ |
| 20 | --enable-nfsv3 \ |
| 21 | --disable-nfsv4 \ |
| 22 | --disable-gss \ |
| 23 | --disable-tirpc \ |
| 24 | --with-statedir=/var/lib/nfs \ |
| 25 | --sysconfdir=/etc |
| 26 | make |
| 27 | make DESTDIR=$PKG install |
| 28 | |
| 29 | rm $PKG/sbin/{mount,umount}.nfs4 |
| 30 | |
| 31 | install -D -m 755 $SRC/nfs $PKG/etc/rc.d/nfs |
| 32 | install -D -m 755 $SRC/nfsserver $PKG/etc/rc.d/nfsserver |
| 33 | install -D -m 644 $SRC/exports $PKG/etc/exports |
| 34 | } |