# HG changeset patch # User Eric Joseph-Alexandre # Date 1201900635 -3600 # Node ID b5daf049ece974961df32d00d03c6cf6f06afacf # Parent 0a43c4b80c535743f0a952a195b1d1d69b6bdf50 Add : unfs3 - User-lanf NFSv3 server diff -r 0a43c4b80c53 -r b5daf049ece9 unfs3/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/unfs3/receipt Fri Feb 01 22:17:15 2008 +0100 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="unfs3" +VERSION="0.9.20" +CATEGORY="extra" +SHORT_DESC="User-land NFSv3 Server" +MAINTAINER="Erjo " +DEPENDS="portmap" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://unfs3.sourceforge.net/" +WGET_URL="http://ovh.dl.sourceforge.net/sourceforge/unfs3/${TARBALL}" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --sysconfdir=/etc \ + --mandir=/usr/share/man $CONFIGURE_ARGS + + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + install -g root -o root -m 0755 -s $src/unfsd $fs/usr/bin + + mkdir -p $fs/etc/init.d + install -g root -o root -m 0644 stuff/etc/export $fs/etc + install -g root -o root -m 0755 stuff/etc/init.d/unfsd $fs/etc/init.d +} + +post_install() +{ + + echo -e "\nTo starts $PACKAGE server you can run :\n" + echo "/etc/init.d/$PACKAGE start" + echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" +} diff -r 0a43c4b80c53 -r b5daf049ece9 unfs3/stuff/etc/export --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/unfs3/stuff/etc/export Fri Feb 01 22:17:15 2008 +0100 @@ -0,0 +1,3 @@ +# NFS export file +# +# /home (ro) diff -r 0a43c4b80c53 -r b5daf049ece9 unfs3/stuff/etc/init.d/unfsd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/unfs3/stuff/etc/init.d/unfsd Fri Feb 01 22:17:15 2008 +0100 @@ -0,0 +1,57 @@ +#!/bin/sh +# /etc/init.d/unfsd : Start, stop and restart NFSv3 Server on SliTaz, at +# boot time or with the command line. +# +# To start NFSv3 Server at boot time, just put dropbear in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=unfsd +DESC="NFSv3 Server" +DAEMON=/usr/bin/unfsd +OPTIONS= +PIDFILE=/var/run/$NAME.pid + + +test -f $DAEMON || exit 0 + +case "$1" in + start) + if [ -f $PIDFILE ] ; then + echo "$NAME already running." + exit 1 + fi + + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + + # registering PID + if [ $? -eq 0 ]; then + pidof -s $NAME > $PIDFILE + fi + ;; + stop) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + rm -f $PIDFILE + status + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: $DAEMON {start|stop|reload|restart}" + exit 1 + ;; +esac + +exit 0 +