From 935da01f9b89ab774b748b9b0d65d3c470cec882 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 14 May 2010 18:28:21 +0000 Subject: [PATCH] nfs-utils: initial import (verified compilation) --- nfs-utils/.footprint | 49 ++++++++++++++++++++++++++++++++++++++++++++ nfs-utils/.md5sum | 4 ++++ nfs-utils/Pkgfile | 34 ++++++++++++++++++++++++++++++ nfs-utils/exports | 5 +++++ nfs-utils/nfs | 26 +++++++++++++++++++++++ nfs-utils/nfsserver | 32 +++++++++++++++++++++++++++++ 6 files changed, 150 insertions(+) create mode 100644 nfs-utils/.footprint create mode 100644 nfs-utils/.md5sum create mode 100644 nfs-utils/Pkgfile create mode 100644 nfs-utils/exports create mode 100644 nfs-utils/nfs create mode 100644 nfs-utils/nfsserver diff --git a/nfs-utils/.footprint b/nfs-utils/.footprint new file mode 100644 index 0000000..9d9b460 --- /dev/null +++ b/nfs-utils/.footprint @@ -0,0 +1,49 @@ +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/exports +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/nfs +-rwxr-xr-x root/root etc/rc.d/nfsserver +drwxr-xr-x root/root sbin/ +-r-s--x--x root/root sbin/mount.nfs +lrwxrwxrwx root/root sbin/umount.nfs -> mount.nfs +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man5/ +-rw-r--r-- root/root usr/man/man5/exports.5.gz +-rw-r--r-- root/root usr/man/man5/nfs.5.gz +drwxr-xr-x root/root usr/man/man7/ +-rw-r--r-- root/root usr/man/man7/nfsd.7.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/exportfs.8.gz +-rw-r--r-- root/root usr/man/man8/mount.nfs.8.gz +-rw-r--r-- root/root usr/man/man8/mountd.8.gz +-rw-r--r-- root/root usr/man/man8/nfsd.8.gz +-rw-r--r-- root/root usr/man/man8/nfsstat.8.gz +lrwxrwxrwx root/root usr/man/man8/rpc.mountd.8.gz -> mountd.8.gz +lrwxrwxrwx root/root usr/man/man8/rpc.nfsd.8.gz -> nfsd.8.gz +lrwxrwxrwx root/root usr/man/man8/rpc.sm-notify.8.gz -> sm-notify.8.gz +lrwxrwxrwx root/root usr/man/man8/rpc.statd.8.gz -> statd.8.gz +-rw-r--r-- root/root usr/man/man8/rpcdebug.8.gz +-rw-r--r-- root/root usr/man/man8/showmount.8.gz +-rw-r--r-- root/root usr/man/man8/sm-notify.8.gz +-rw-r--r-- root/root usr/man/man8/statd.8.gz +-rw-r--r-- root/root usr/man/man8/umount.nfs.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/exportfs +-rwxr-xr-x root/root usr/sbin/nfsstat +-rwxr-xr-x root/root usr/sbin/rpc.mountd +-rwxr-xr-x root/root usr/sbin/rpc.nfsd +-rwxr-xr-x root/root usr/sbin/rpc.statd +-rwxr-xr-x root/root usr/sbin/rpcdebug +-rwxr-xr-x root/root usr/sbin/showmount +-rwxr-xr-x root/root usr/sbin/sm-notify +-rwxr-xr-x root/root usr/sbin/start-statd +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x root/root var/lib/nfs/ +-rw-r--r-- root/root var/lib/nfs/etab (EMPTY) +-rw-r--r-- root/root var/lib/nfs/rmtab (EMPTY) +drwx------ nobody/root var/lib/nfs/sm.bak/ +drwx------ nobody/root var/lib/nfs/sm/ +-rw------- nobody/root var/lib/nfs/state (EMPTY) +-rw-r--r-- root/root var/lib/nfs/xtab (EMPTY) diff --git a/nfs-utils/.md5sum b/nfs-utils/.md5sum new file mode 100644 index 0000000..40dd82e --- /dev/null +++ b/nfs-utils/.md5sum @@ -0,0 +1,4 @@ +c5ccf58f5f9f57aba75c8b72219eb6e6 exports +3aaf176fc070285923e89b30df970b4a nfs +dad92f64db3266c7757f71bb53ee8f35 nfs-utils-1.2.2.tar.bz2 +7bce7bc5cb40a18ae76c6c1328382119 nfsserver diff --git a/nfs-utils/Pkgfile b/nfs-utils/Pkgfile new file mode 100644 index 0000000..36bdfe9 --- /dev/null +++ b/nfs-utils/Pkgfile @@ -0,0 +1,34 @@ +# Description: NFS utilities +# URL: http://nfs.sourceforge.net/ +# Maintainer: Juergen Daubert, jue at crux dot nu +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: util-linux-ng libcap + +name=nfs-utils +version=1.2.2 +release=1 +source=(http://dl.sourceforge.net/nfs/$name-$version.tar.bz2 \ + exports nfs nfsserver) + +build () { + cd $name-$version + + ./configure --prefix=/usr \ + --build=$CHOST \ + --host=$CTARGET \ + --mandir=/usr/man \ + --enable-nfsv3 \ + --disable-nfsv4 \ + --disable-gss \ + --disable-tirpc \ + --with-statedir=/var/lib/nfs \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + + rm $PKG/sbin/{mount,umount}.nfs4 + + install -D -m 755 $SRC/nfs $PKG/etc/rc.d/nfs + install -D -m 755 $SRC/nfsserver $PKG/etc/rc.d/nfsserver + install -D -m 644 $SRC/exports $PKG/etc/exports +} diff --git a/nfs-utils/exports b/nfs-utils/exports new file mode 100644 index 0000000..1f16101 --- /dev/null +++ b/nfs-utils/exports @@ -0,0 +1,5 @@ +# +# /etc/exports: access control list for exported filesystems. See exports(5). +# + +# End of file diff --git a/nfs-utils/nfs b/nfs-utils/nfs new file mode 100644 index 0000000..4dabc7b --- /dev/null +++ b/nfs-utils/nfs @@ -0,0 +1,26 @@ +#!/bin/sh +# +# /etc/rc.d/nfs: start/stop nfs client +# + +case $1 in +start) + /usr/sbin/sm-notify + /usr/sbin/rpc.statd + /bin/mount -a -t nfs + ;; +stop) + /bin/umount -a -t nfs + killall -q /usr/sbin/rpc.statd + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file diff --git a/nfs-utils/nfsserver b/nfs-utils/nfsserver new file mode 100644 index 0000000..392809e --- /dev/null +++ b/nfs-utils/nfsserver @@ -0,0 +1,32 @@ +#!/bin/sh +# +# /etc/rc.d/nfsserver: start/stop nfs server +# + +case $1 in +start) + /bin/mount -t nfsd nfsd /proc/fs/nfsd + /usr/sbin/exportfs -r + /usr/sbin/rpc.mountd + /usr/sbin/rpc.statd --no-notify + /usr/sbin/rpc.nfsd 8 + /usr/sbin/sm-notify + ;; +stop) + killall -q -2 nfsd + killall -q /usr/sbin/rpc.statd + killall -q /usr/sbin/rpc.mountd + /usr/sbin/exportfs -au + /bin/umount /proc/fs/nfsd + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of -- 2.26.2