wok rev 176
Add : unfs3 - User-lanf NFSv3 server
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Feb 01 22:17:15 2008 +0100 (2008-02-01) |
parents | 0a43c4b80c53 |
children | 16e4ef87e466 |
files | unfs3/receipt unfs3/stuff/etc/export unfs3/stuff/etc/init.d/unfsd |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/unfs3/receipt Fri Feb 01 22:17:15 2008 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="unfs3" 1.7 +VERSION="0.9.20" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="User-land NFSv3 Server" 1.10 +MAINTAINER="Erjo <erjo@slitaz.org>" 1.11 +DEPENDS="portmap" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://unfs3.sourceforge.net/" 1.14 +WGET_URL="http://ovh.dl.sourceforge.net/sourceforge/unfs3/${TARBALL}" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src 1.20 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.21 + --sysconfdir=/etc \ 1.22 + --mandir=/usr/share/man $CONFIGURE_ARGS 1.23 + 1.24 + make 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/usr/bin 1.31 + install -g root -o root -m 0755 -s $src/unfsd $fs/usr/bin 1.32 + 1.33 + mkdir -p $fs/etc/init.d 1.34 + install -g root -o root -m 0644 stuff/etc/export $fs/etc 1.35 + install -g root -o root -m 0755 stuff/etc/init.d/unfsd $fs/etc/init.d 1.36 +} 1.37 + 1.38 +post_install() 1.39 +{ 1.40 + 1.41 + echo -e "\nTo starts $PACKAGE server you can run :\n" 1.42 + echo "/etc/init.d/$PACKAGE start" 1.43 + echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" 1.44 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/unfs3/stuff/etc/export Fri Feb 01 22:17:15 2008 +0100 2.3 @@ -0,0 +1,3 @@ 2.4 +# NFS export file 2.5 +# 2.6 +# /home (ro)
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/unfs3/stuff/etc/init.d/unfsd Fri Feb 01 22:17:15 2008 +0100 3.3 @@ -0,0 +1,57 @@ 3.4 +#!/bin/sh 3.5 +# /etc/init.d/unfsd : Start, stop and restart NFSv3 Server on SliTaz, at 3.6 +# boot time or with the command line. 3.7 +# 3.8 +# To start NFSv3 Server at boot time, just put dropbear in the $RUN_DAEMONS 3.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf 3.10 +# 3.11 +. /etc/init.d/rc.functions 3.12 +. /etc/daemons.conf 3.13 + 3.14 +NAME=unfsd 3.15 +DESC="NFSv3 Server" 3.16 +DAEMON=/usr/bin/unfsd 3.17 +OPTIONS= 3.18 +PIDFILE=/var/run/$NAME.pid 3.19 + 3.20 + 3.21 +test -f $DAEMON || exit 0 3.22 + 3.23 +case "$1" in 3.24 + start) 3.25 + if [ -f $PIDFILE ] ; then 3.26 + echo "$NAME already running." 3.27 + exit 1 3.28 + fi 3.29 + 3.30 + echo -n "Starting $DESC: $NAME... " 3.31 + $DAEMON $OPTIONS 3.32 + status 3.33 + 3.34 + # registering PID 3.35 + if [ $? -eq 0 ]; then 3.36 + pidof -s $NAME > $PIDFILE 3.37 + fi 3.38 + ;; 3.39 + stop) 3.40 + if [ ! -f $PIDFILE ] ; then 3.41 + echo "$NAME is not running." 3.42 + exit 1 3.43 + fi 3.44 + echo -n "Stopping $DESC: $NAME... " 3.45 + kill `cat $PIDFILE` 3.46 + rm -f $PIDFILE 3.47 + status 3.48 + ;; 3.49 + restart) 3.50 + $0 stop 3.51 + $0 start 3.52 + ;; 3.53 + *) 3.54 + echo "Usage: $DAEMON {start|stop|reload|restart}" 3.55 + exit 1 3.56 + ;; 3.57 +esac 3.58 + 3.59 +exit 0 3.60 +