summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2010-03-02 11:27:07 +0100
committerJuergen Daubert <jue@jue.li>2010-03-02 11:27:07 +0100
commit9ee53d4e17f99784b3312edf0987fa9275f2db32 (patch)
treec624f9f566235bae9aaaf19aa14310eda077020e
parentd94af2f0b076730056f7e0574eef71c38b39fe83 (diff)
downloadopt-9ee53d4e17f99784b3312edf0987fa9275f2db32.tar.gz
opt-9ee53d4e17f99784b3312edf0987fa9275f2db32.tar.xz
nfs-utils: moved from core to opt
-rw-r--r--nfs-utils/.footprint49
-rw-r--r--nfs-utils/.md5sum4
-rw-r--r--nfs-utils/Pkgfile31
-rw-r--r--nfs-utils/exports5
-rw-r--r--nfs-utils/nfs26
-rw-r--r--nfs-utils/nfsserver32
6 files changed, 147 insertions, 0 deletions
diff --git a/nfs-utils/.footprint b/nfs-utils/.footprint
new file mode 100644
index 000000000..9d9b4603c
--- /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 000000000..40dd82ec4
--- /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 000000000..db5345658
--- /dev/null
+++ b/nfs-utils/Pkgfile
@@ -0,0 +1,31 @@
+# Description: NFS utilities
+# URL: http://nfs.sourceforge.net/
+# Maintainer: Juergen Daubert, jue at crux 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 \
+ --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 000000000..1f16101fb
--- /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 000000000..4dabc7b94
--- /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 000000000..392809e18
--- /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

Generated by cgit