wok rev 172

Add: portmap, unfs3
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 31 22:49:36 2008 +0100 (2008-01-31)
parents 3c1e91a7263a
children cd509ecf0435
files portmap/receipt portmap/stuff/init.d/portmap portmap/stuff/portmap-5beta-compilation_fixes-3.patch portmap/stuff/portmap-5beta-disable-tcp_wrapper.patch portmap/stuff/portmap-5beta-glibc_errno_fix-1.patch unfs3/receipt unfs3/stuff/etc/export unfs3/stuff/etc/init.d/unfsd
line diff
     1.1 --- a/portmap/receipt	Thu Jan 31 22:42:51 2008 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,63 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="portmap"
     1.7 -VERSION="5beta"
     1.8 -CATEGORY="extra"
     1.9 -SHORT_DESC=""
    1.10 -MAINTAINER="Erjo <erjo@slitaz.org>"
    1.11 -DEPENDS=""
    1.12 -TARBALL="${PACKAGE}_${VERSION}.tar.gz"
    1.13 -WEB_SITE="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/portmap.html"
    1.14 -WGET_URL="ftp://ftp.porcupine.org/pub/security/${TARBALL}"
    1.15 -
    1.16 -# rules to configure and make the package.
    1.17 -compile_rules()
    1.18 -{
    1.19 -	# Overwriting default $src definition
    1.20 -	
    1.21 -	src=${PACKAGE}_${VERSION}	
    1.22 -	cd $src
    1.23 -	
    1.24 -	# Applying some patches 
    1.25 -	# see Beyond Linux From Scratch for details.
    1.26 -	patch -Np1 -i ../stuff/portmap-5beta-compilation_fixes-3.patch
    1.27 -	patch -Np1 -i ../stuff/portmap-5beta-glibc_errno_fix-1.patch
    1.28 -	patch -Np1 -i ../stuff/portmap-5beta-disable-tcp_wrapper.patch
    1.29 -	
    1.30 -	# Build e
    1.31 -	make
    1.32 -}
    1.33 -
    1.34 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 -genpkg_rules()
    1.36 -{
    1.37 -	src=${PACKAGE}_${VERSION}	
    1.38 -	_pkg=${PACKAGE}_${VERSION}/_pkg	
    1.39 -	
    1.40 -
    1.41 -	mkdir -p $fs/usr/sbin
    1.42 -	cp -a $src/pmap_dump $fs/usr/sbin
    1.43 -	cp -a $src/pmap_set $fs/usr/sbin
    1.44 -	cp -a $src/portmap $fs/usr/sbin
    1.45 -	strip -s $fs/usr/sbin/*
    1.46 -	
    1.47 -	mkdir -p $fs/etc
    1.48 -	cp -a stuff/init.d $fs/etc
    1.49 -}
    1.50 -
    1.51 -
    1.52 -post_install()
    1.53 -{
    1.54 -	local root
    1.55 -	root=$1
    1.56 -	echo "Processing some post-install commands..."
    1.57 -	
    1.58 -	chown root.root $root/etc/init.d/portmap
    1.59 -	chmod 0755 $root/etc/init.d/portmap
    1.60 -	
    1.61 -	# Post message when installing.
    1.62 -	echo -e "\nTo starts $PACKAGE server you can run :\n"
    1.63 -        echo "/etc/init.d/$PACKAGE start"
    1.64 -	echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
    1.65 -	                        
    1.66 -}
     2.1 --- a/portmap/stuff/init.d/portmap	Thu Jan 31 22:42:51 2008 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,72 +0,0 @@
     2.4 -#!/bin/sh
     2.5 -# /etc/init.d/portmap : Start, stop and restart RPC portmapper on SliTaz, at
     2.6 -# boot time or with the command line.
     2.7 -#
     2.8 -# To start RPC portmapper at boot time, just put dropbear in the $RUN_DAEMONS
     2.9 -# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
    2.10 -#
    2.11 -. /etc/init.d/rc.functions
    2.12 -. /etc/daemons.conf
    2.13 -
    2.14 -NAME=portmap
    2.15 -DESC="RPC portmapper"
    2.16 -DAEMON=/usr/sbin/portmap
    2.17 -OPTIONS=
    2.18 -PIDFILE=/var/run/$NAME.pid
    2.19 -
    2.20 -
    2.21 -test -f $DAEMON || exit 0
    2.22 -
    2.23 -case "$1" in
    2.24 -    start)
    2.25 -   	if [ -f $PIDFILE ] ; then
    2.26 -      		echo "$NAME already running."
    2.27 -      		exit 1
    2.28 -    	fi
    2.29 -
    2.30 -    	echo -n "Starting $DESC: $NAME... "
    2.31 -    	$DAEMON $OPTIONS
    2.32 -    	
    2.33 -    	# registering PID
    2.34 -    	if [ $? -eq 0 ]; then
    2.35 -    		pidof -s $NAME > $PIDFILE
    2.36 -    	fi
    2.37 -    	status
    2.38 - 
    2.39 -	if [ -f /var/run/portmap.upgrade-state ]; then
    2.40 -          echo -n "Restoring old RPC service information..."
    2.41 -          sleep 1 # needs a short pause or pmap_set won't work. :(
    2.42 -	  pmap_set </var/run/portmap.upgrade-state
    2.43 -	  rm -f /var/run/portmap.upgrade-state
    2.44 -          echo "done."
    2.45 -        fi
    2.46 -
    2.47 -	;;
    2.48 -    stop)
    2.49 -        if [ ! -f $PIDFILE ] ; then
    2.50 -           echo "$NAME is not running."
    2.51 -           exit 1
    2.52 -        fi
    2.53 -        echo -n "Stopping $DESC: $NAME... "
    2.54 -        kill `cat $PIDFILE`
    2.55 -        rm -f $PIDFILE
    2.56 -        status
    2.57 -	;;
    2.58 -    restart)
    2.59 -	pmap_dump >/var/run/portmap.state
    2.60 -        $0 stop
    2.61 -        $0 start
    2.62 -	if [ ! -f /var/run/portmap.upgrade-state ]; then
    2.63 -       		sleep 1
    2.64 - 		pmap_set </var/run/portmap.state
    2.65 -	fi
    2.66 -	rm -f /var/run/portmap.state
    2.67 -	;;
    2.68 -    *)
    2.69 -		echo "Usage: $DAEMON {start|stop|reload|restart}"
    2.70 -		exit 1
    2.71 -	;;
    2.72 -esac
    2.73 -
    2.74 -exit 0
    2.75 -
     3.1 --- a/portmap/stuff/portmap-5beta-compilation_fixes-3.patch	Thu Jan 31 22:42:51 2008 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,705 +0,0 @@
     3.4 -Submitted By: Kevin P. Fleming <kpfleming at linuxfromscratch dot org>
     3.5 -Date: 2004-05-02
     3.6 -Initial Package Version: 5beta
     3.7 -Origin: http://archives.linuxfromscratch.org/mail-archives/blfs-dev/2003-January/001960.html
     3.8 -Description: The patch was created from the portmap modified package by Mark Heerdink.
     3.9 -This patch provides the following improvements:
    3.10 -    * Link against dynamic tcp_wrappers.
    3.11 -    * Create an install target for portmap.
    3.12 -    * Compilation and security fixes.
    3.13 -    * Documentation fixes.
    3.14 -
    3.15 -Originally created by Tushar Teredesai, updated by kpfleming to ensure
    3.16 -portmap will compile without tcp_wrappers installed.
    3.17 -diff -Naur portmap_5beta/BLURB portmap_5beta.gimli/BLURB
    3.18 ---- portmap_5beta/BLURB	1996-07-06 16:09:46.000000000 -0500
    3.19 -+++ portmap_5beta.gimli/BLURB	2002-01-07 09:13:58.000000000 -0600
    3.20 -@@ -1,3 +1,6 @@
    3.21 -+
    3.22 -+###############################################################################
    3.23 -+
    3.24 - @(#) BLURB 1.5 96/07/06 23:09:45
    3.25 - 
    3.26 - This is the fifth replacement portmapper release.
    3.27 -diff -Naur portmap_5beta/Makefile portmap_5beta.gimli/Makefile
    3.28 ---- portmap_5beta/Makefile	1996-07-06 16:06:19.000000000 -0500
    3.29 -+++ portmap_5beta.gimli/Makefile	2002-07-15 16:00:07.000000000 -0500
    3.30 -@@ -8,7 +8,7 @@
    3.31 - # if you disagree. See `man 3 syslog' for examples. Some syslog versions
    3.32 - # do not provide this flexibility.
    3.33 - #
    3.34 --FACILITY=LOG_MAIL
    3.35 -+FACILITY=LOG_DAEMON
    3.36 - 
    3.37 - # To disable tcp-wrapper style access control, comment out the following
    3.38 - # macro definitions.  Access control can also be turned off by providing
    3.39 -@@ -16,7 +16,8 @@
    3.40 - # daemon, is always treated as an authorized host.
    3.41 - 
    3.42 - HOSTS_ACCESS= -DHOSTS_ACCESS
    3.43 --WRAP_LIB = $(WRAP_DIR)/libwrap.a
    3.44 -+#WRAP_LIB = $(WRAP_DIR)/libwrap.a
    3.45 -+WRAP_LIB = -lwrap
    3.46 - 
    3.47 - # Comment out if your RPC library does not allocate privileged ports for
    3.48 - # requests from processes with root privilege, or the new portmap will
    3.49 -@@ -71,7 +72,7 @@
    3.50 - # With verbose logging on, HP-UX 9.x and AIX 4.1 leave zombies behind when
    3.51 - # SIGCHLD is not ignored. Enable next macro for a fix.
    3.52 - #
    3.53 --# ZOMBIES = -DIGNORE_SIGCHLD	# AIX 4.x, HP-UX 9.x
    3.54 -+ZOMBIES = -DIGNORE_SIGCHLD	# AIX 4.x, HP-UX 9.x
    3.55 - 
    3.56 - # Uncomment the following macro if your system does not have u_long.
    3.57 - #
    3.58 -@@ -81,7 +82,7 @@
    3.59 - # libwrap.a object library. WRAP_DIR should specify the directory with
    3.60 - # that library.
    3.61 - 
    3.62 --WRAP_DIR= ../tcp_wrappers
    3.63 -+WRAP_DIR= $(TCPD_DIR)
    3.64 - 
    3.65 - # Auxiliary object files that may be missing from your C library.
    3.66 - #
    3.67 -@@ -99,22 +100,31 @@
    3.68 - 
    3.69 - # Comment out if your compiler talks ANSI and understands const
    3.70 - #
    3.71 --CONST   = -Dconst=
    3.72 -+#CONST   = -Dconst=
    3.73 - 
    3.74 - ### End of configurable stuff.
    3.75 - ##############################
    3.76 - 
    3.77 -+GLIBC=$(shell grep -s -c __GLIBC__ /usr/include/features.h)
    3.78 -+
    3.79 -+ifeq ($(GLIBC),0)
    3.80 -+LIBS   += # -lbsd
    3.81 -+else
    3.82 -+LIBS   += -lnsl
    3.83 -+endif
    3.84 -+
    3.85 -+
    3.86 - SHELL	= /bin/sh
    3.87 - 
    3.88 --COPT	= $(CONST) -Dperror=xperror $(HOSTS_ACCESS) $(CHECK_PORT) \
    3.89 -+COPT	= $(CONST) $(HOSTS_ACCESS) $(CHECK_PORT) \
    3.90 - 	$(SYS) -DFACILITY=$(FACILITY) $(ULONG) $(ZOMBIES) $(SA_LEN) \
    3.91 - 	$(LOOPBACK) $(SETPGRP)
    3.92 --CFLAGS	= $(COPT) -O $(NSARCHS)
    3.93 -+CFLAGS	= -Wall $(COPT) -O2 $(NSARCHS)
    3.94 - OBJECTS	= portmap.o pmap_check.o from_local.o $(AUX)
    3.95 - 
    3.96 - all:	portmap pmap_dump pmap_set
    3.97 - 
    3.98 --portmap: $(OBJECTS) $(WRAP_DIR)/libwrap.a
    3.99 -+portmap: $(OBJECTS) # $(WRAP_DIR)/libwrap.a
   3.100 - 	$(CC) $(CFLAGS) -o $@ $(OBJECTS) $(WRAP_LIB) $(LIBS)
   3.101 - 
   3.102 - pmap_dump: pmap_dump.c
   3.103 -@@ -129,6 +139,17 @@
   3.104 - get_myaddress: get_myaddress.c
   3.105 - 	cc $(CFLAGS) -DTEST -o $@ get_myaddress.c $(LIBS)
   3.106 - 
   3.107 -+install: all
   3.108 -+	install -o root -g root -m 0755 -s portmap ${BASEDIR}/sbin
   3.109 -+	install -o root -g root -m 0755 -s pmap_dump ${BASEDIR}/usr/sbin
   3.110 -+	install -o root -g root -m 0755 -s pmap_set ${BASEDIR}/usr/sbin
   3.111 -+	install -o root -g root -m 0644 portmap.8 ${BASEDIR}/usr/share/man/man8
   3.112 -+	install -o root -g root -m 0644 pmap_dump.8 ${BASEDIR}/usr/share/man/man8
   3.113 -+	install -o root -g root -m 0644 pmap_set.8 ${BASEDIR}/usr/share/man/man8
   3.114 -+#	cat README BLURB >${BASEDIR}/usr/share/doc/portmap/portmapper.txt
   3.115 -+#	gzip -9f ${BASEDIR}/usr/share/doc/portmap/portmapper.txt
   3.116 -+
   3.117 -+
   3.118 - lint:	
   3.119 - 	lint $(COPT) $(OBJECTS:%.o=%.c)
   3.120 - 
   3.121 -diff -Naur portmap_5beta/daemon.c portmap_5beta.gimli/daemon.c
   3.122 ---- portmap_5beta/daemon.c	1992-06-11 15:53:12.000000000 -0500
   3.123 -+++ portmap_5beta.gimli/daemon.c	2002-01-07 09:22:24.000000000 -0600
   3.124 -@@ -36,16 +36,13 @@
   3.125 - #endif /* LIBC_SCCS and not lint */
   3.126 - 
   3.127 - #include <fcntl.h>
   3.128 --
   3.129 --/* From unistd.h */
   3.130 --#define STDIN_FILENO	0
   3.131 --#define STDOUT_FILENO	1
   3.132 --#define STDERR_FILENO	2
   3.133 -+#include <unistd.h>
   3.134 -+#include <sys/types.h>
   3.135 - 
   3.136 - /* From paths.h */
   3.137 - #define _PATH_DEVNULL	"/dev/null"
   3.138 - 
   3.139 --daemon(nochdir, noclose)
   3.140 -+int daemon(nochdir, noclose)
   3.141 - 	int nochdir, noclose;
   3.142 - {
   3.143 - 	int cpid;
   3.144 -diff -Naur portmap_5beta/from_local.c portmap_5beta.gimli/from_local.c
   3.145 ---- portmap_5beta/from_local.c	1996-05-31 08:52:58.000000000 -0500
   3.146 -+++ portmap_5beta.gimli/from_local.c	2002-01-07 09:25:49.000000000 -0600
   3.147 -@@ -35,7 +35,7 @@
   3.148 -  * Mountain View, California  94043
   3.149 -  */
   3.150 - 
   3.151 --#ifndef lint
   3.152 -+#ifdef lint
   3.153 - static char sccsid[] = "@(#) from_local.c 1.3 96/05/31 15:52:57";
   3.154 - #endif
   3.155 - 
   3.156 -@@ -51,6 +51,9 @@
   3.157 - #include <net/if.h>
   3.158 - #include <sys/ioctl.h>
   3.159 - #include <syslog.h>
   3.160 -+#include <stdlib.h>
   3.161 -+#include <string.h>
   3.162 -+#include <unistd.h>
   3.163 - 
   3.164 - #ifndef TRUE
   3.165 - #define	TRUE	1
   3.166 -@@ -96,7 +99,7 @@
   3.167 - 
   3.168 - /* find_local - find all IP addresses for this host */
   3.169 - 
   3.170 --find_local()
   3.171 -+int find_local()
   3.172 - {
   3.173 -     struct ifconf ifc;
   3.174 -     struct ifreq ifreq;
   3.175 -@@ -154,7 +157,7 @@
   3.176 - 
   3.177 - /* from_local - determine whether request comes from the local system */
   3.178 - 
   3.179 --from_local(addr)
   3.180 -+int from_local(addr)
   3.181 - struct sockaddr_in *addr;
   3.182 - {
   3.183 -     int     i;
   3.184 -diff -Naur portmap_5beta/pmap_check.c portmap_5beta.gimli/pmap_check.c
   3.185 ---- portmap_5beta/pmap_check.c	1996-07-07 03:49:10.000000000 -0500
   3.186 -+++ portmap_5beta.gimli/pmap_check.c	2002-01-07 09:37:58.000000000 -0600
   3.187 -@@ -32,7 +32,7 @@
   3.188 -   * Computing Science, Eindhoven University of Technology, The Netherlands.
   3.189 -   */
   3.190 - 
   3.191 --#ifndef lint
   3.192 -+#ifdef lint
   3.193 - static char sccsid[] = "@(#) pmap_check.c 1.8 96/07/07 10:49:10";
   3.194 - #endif
   3.195 - 
   3.196 -@@ -45,6 +45,11 @@
   3.197 - #include <netinet/in.h>
   3.198 - #include <rpc/rpcent.h>
   3.199 - #endif
   3.200 -+#include <sys/types.h>
   3.201 -+#include <unistd.h>
   3.202 -+#ifdef HOSTS_ACCESS
   3.203 -+#include <tcpd.h>
   3.204 -+#endif
   3.205 - 
   3.206 - extern char *inet_ntoa();
   3.207 - 
   3.208 -@@ -110,7 +113,7 @@
   3.209 - 
   3.210 - /* check_default - additional checks for NULL, DUMP, GETPORT and unknown */
   3.211 - 
   3.212 --check_default(addr, proc, prog)
   3.213 -+int check_default(addr, proc, prog)
   3.214 - struct sockaddr_in *addr;
   3.215 - u_long  proc;
   3.216 - u_long  prog;
   3.217 -@@ -128,7 +131,7 @@
   3.218 - 
   3.219 - /* check_privileged_port - additional checks for privileged-port updates */
   3.220 - 
   3.221 --check_privileged_port(addr, proc, prog, port)
   3.222 -+int check_privileged_port(addr, proc, prog, port)
   3.223 - struct sockaddr_in *addr;
   3.224 - u_long  proc;
   3.225 - u_long  prog;
   3.226 -@@ -173,7 +176,7 @@
   3.227 - 
   3.228 - #else
   3.229 - 
   3.230 --check_setunset(addr, proc, prog, port)
   3.231 -+int check_setunset(addr, proc, prog, port)
   3.232 - struct sockaddr_in *addr;
   3.233 - u_long  proc;
   3.234 - u_long  prog;
   3.235 -@@ -197,7 +200,7 @@
   3.236 - 
   3.237 - /* check_callit - additional checks for forwarded requests */
   3.238 - 
   3.239 --check_callit(addr, proc, prog, aproc)
   3.240 -+int check_callit(addr, proc, prog, aproc)
   3.241 - struct sockaddr_in *addr;
   3.242 - u_long  proc;
   3.243 - u_long  prog;
   3.244 -@@ -249,13 +252,13 @@
   3.245 -     };
   3.246 -     struct proc_map *procp;
   3.247 -     static struct proc_map procmap[] = {
   3.248 --	PMAPPROC_CALLIT, "callit",
   3.249 --	PMAPPROC_DUMP, "dump",
   3.250 --	PMAPPROC_GETPORT, "getport",
   3.251 --	PMAPPROC_NULL, "null",
   3.252 --	PMAPPROC_SET, "set",
   3.253 --	PMAPPROC_UNSET, "unset",
   3.254 --	0, 0,
   3.255 -+	{ PMAPPROC_CALLIT, "callit" },
   3.256 -+	{ PMAPPROC_DUMP, "dump" },
   3.257 -+	{ PMAPPROC_GETPORT, "getport" },
   3.258 -+	{ PMAPPROC_NULL, "null" },
   3.259 -+	{ PMAPPROC_SET, "set" },
   3.260 -+	{ PMAPPROC_UNSET, "unset" },
   3.261 -+	{ 0, 0 }
   3.262 -     };
   3.263 - 
   3.264 -     /*
   3.265 -@@ -269,7 +272,7 @@
   3.266 - 
   3.267 - 	if (prognum == 0) {
   3.268 - 	    progname = "";
   3.269 --	} else if (rpc = getrpcbynumber((int) prognum)) {
   3.270 -+	} else if ((rpc = getrpcbynumber((int) prognum)) != NULL) {
   3.271 - 	    progname = rpc->r_name;
   3.272 - 	} else {
   3.273 - 	    sprintf(progname = progbuf, "%lu", prognum);
   3.274 -diff -Naur portmap_5beta/pmap_dump.8 portmap_5beta.gimli/pmap_dump.8
   3.275 ---- portmap_5beta/pmap_dump.8	1969-12-31 18:00:00.000000000 -0600
   3.276 -+++ portmap_5beta.gimli/pmap_dump.8	2002-01-07 09:13:58.000000000 -0600
   3.277 -@@ -0,0 +1,24 @@
   3.278 -+.TH PMAP_DUMP 8 "21th June 1997" Linux "Linux Programmer's Manual"
   3.279 -+.SH NAME
   3.280 -+pmap_dump \- print a list of all registered RPC programs
   3.281 -+.SH SYNOPSIS
   3.282 -+.B pmap_dump
   3.283 -+.SH DESCRIPTION
   3.284 -+The
   3.285 -+.B pmap_dump
   3.286 -+command can be used to restart a running portmapper or to print
   3.287 -+a list of all registered RPC programs on the local host. If you
   3.288 -+want to use the program to restart the portmapper you have to
   3.289 -+redirect the output of
   3.290 -+.B pmap_dump
   3.291 -+to a file. After this you can restart the portmapper and restore
   3.292 -+the list of the registered RPC programs by feeding the output
   3.293 -+of
   3.294 -+.B pmap_dump
   3.295 -+to the
   3.296 -+.B pmap_set
   3.297 -+command.
   3.298 -+.SH SEE ALSO
   3.299 -+.BR pmap_set (8),
   3.300 -+.BR rpc.portmap (8)
   3.301 -+
   3.302 -diff -Naur portmap_5beta/pmap_dump.c portmap_5beta.gimli/pmap_dump.c
   3.303 ---- portmap_5beta/pmap_dump.c	1992-06-11 15:53:16.000000000 -0500
   3.304 -+++ portmap_5beta.gimli/pmap_dump.c	2002-01-07 09:20:19.000000000 -0600
   3.305 -@@ -5,7 +5,7 @@
   3.306 -   * Computing Science, Eindhoven University of Technology, The Netherlands.
   3.307 -   */
   3.308 - 
   3.309 --#ifndef lint
   3.310 -+#ifdef lint
   3.311 - static char sccsid[] = "@(#) pmap_dump.c 1.1 92/06/11 22:53:15";
   3.312 - #endif
   3.313 - 
   3.314 -@@ -23,7 +23,20 @@
   3.315 - 
   3.316 - static char *protoname();
   3.317 - 
   3.318 --main(argc, argv)
   3.319 -+#ifndef INADDR_LOOPBACK
   3.320 -+#define INADDR_LOOPBACK ntohl(inet_addr("127.0.0.1"))
   3.321 -+#endif
   3.322 -+
   3.323 -+static void    get_myloopaddress(addrp)
   3.324 -+struct sockaddr_in *addrp;
   3.325 -+{
   3.326 -+    memset((char *) addrp, 0, sizeof(*addrp));
   3.327 -+    addrp->sin_family = AF_INET;
   3.328 -+    addrp->sin_port = htons(PMAPPORT);
   3.329 -+    addrp->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
   3.330 -+}
   3.331 -+
   3.332 -+int main(argc, argv)
   3.333 - int     argc;
   3.334 - char  **argv;
   3.335 - {
   3.336 -@@ -31,7 +44,7 @@
   3.337 -     register struct pmaplist *list;
   3.338 -     register struct rpcent *rpc;
   3.339 - 
   3.340 --    get_myaddress(&addr);
   3.341 -+    get_myloopaddress(&addr);
   3.342 - 
   3.343 -     for (list = pmap_getmaps(&addr); list; list = list->pml_next) {
   3.344 - 	rpc = getrpcbynumber((int) list->pml_map.pm_prog);
   3.345 -diff -Naur portmap_5beta/pmap_set.8 portmap_5beta.gimli/pmap_set.8
   3.346 ---- portmap_5beta/pmap_set.8	1969-12-31 18:00:00.000000000 -0600
   3.347 -+++ portmap_5beta.gimli/pmap_set.8	2002-01-07 09:13:58.000000000 -0600
   3.348 -@@ -0,0 +1,24 @@
   3.349 -+.TH PMAP_SET 8 "21th June 1997" Linux "Linux Programmer's Manual"
   3.350 -+.SH NAME
   3.351 -+pmap_set \- set the list of registered RPC programs
   3.352 -+.SH SYNOPSIS
   3.353 -+.B pmap_set
   3.354 -+.SH DESCRIPTION
   3.355 -+The
   3.356 -+.B pmap_set
   3.357 -+command can be used to restart a running portmapper or to set
   3.358 -+the list of registered RPC programs on the local host. If you
   3.359 -+want to use the program to restart the portmapper you have to
   3.360 -+redirect the output of
   3.361 -+.B pmap_dump
   3.362 -+to a file. After this you can restart the portmapper and restore
   3.363 -+the list of the registered RPC programs by feeding the output
   3.364 -+of
   3.365 -+.B pmap_dump
   3.366 -+to the
   3.367 -+.B pmap_set
   3.368 -+command.
   3.369 -+.SH SEE ALSO
   3.370 -+.BR pmap_dump (8),
   3.371 -+.BR rpc.portmap (8)
   3.372 -+
   3.373 -diff -Naur portmap_5beta/pmap_set.c portmap_5beta.gimli/pmap_set.c
   3.374 ---- portmap_5beta/pmap_set.c	1996-07-06 16:06:23.000000000 -0500
   3.375 -+++ portmap_5beta.gimli/pmap_set.c	2002-01-07 09:22:10.000000000 -0600
   3.376 -@@ -5,7 +5,7 @@
   3.377 -   * Computing Science, Eindhoven University of Technology, The Netherlands.
   3.378 -   */
   3.379 - 
   3.380 --#ifndef lint
   3.381 -+#ifdef lint
   3.382 - static char sccsid[] = "@(#) pmap_set.c 1.2 96/07/06 23:06:23";
   3.383 - #endif
   3.384 - 
   3.385 -@@ -17,7 +17,9 @@
   3.386 - #include <rpc/rpc.h>
   3.387 - #include <rpc/pmap_clnt.h>
   3.388 - 
   3.389 --main(argc, argv)
   3.390 -+int parse_line(char *buf, u_long *prog, u_long *vers, int *prot, unsigned *port);
   3.391 -+
   3.392 -+int main(argc, argv)
   3.393 - int     argc;
   3.394 - char  **argv;
   3.395 - {
   3.396 -@@ -40,16 +42,16 @@
   3.397 - 
   3.398 - /* parse_line - convert line to numbers */
   3.399 - 
   3.400 --parse_line(buf, prog, vers, prot, port)
   3.401 -+int parse_line(buf, prog, vers, prot, port)
   3.402 - char   *buf;
   3.403 - u_long *prog;
   3.404 - u_long *vers;
   3.405 - int    *prot;
   3.406 - unsigned *port;
   3.407 - {
   3.408 --    char    proto_name[BUFSIZ];
   3.409 -+    char    proto_name[256];
   3.410 - 
   3.411 --    if (sscanf(buf, "%lu %lu %s %u", prog, vers, proto_name, port) != 4) {
   3.412 -+    if (sscanf(buf, "%lu %lu %255s %u", prog, vers, proto_name, port) != 4) {
   3.413 - 	return (0);
   3.414 -     }
   3.415 -     if (strcmp(proto_name, "tcp") == 0) {
   3.416 -diff -Naur portmap_5beta/portmap.8 portmap_5beta.gimli/portmap.8
   3.417 ---- portmap_5beta/portmap.8	1969-12-31 18:00:00.000000000 -0600
   3.418 -+++ portmap_5beta.gimli/portmap.8	2002-01-07 09:13:58.000000000 -0600
   3.419 -@@ -0,0 +1,146 @@
   3.420 -+.\" Copyright (c) 1987 Sun Microsystems
   3.421 -+.\" Copyright (c) 1990, 1991 The Regents of the University of California.
   3.422 -+.\" All rights reserved.
   3.423 -+.\"
   3.424 -+.\" Redistribution and use in source and binary forms, with or without
   3.425 -+.\" modification, are permitted provided that the following conditions
   3.426 -+.\" are met:
   3.427 -+.\" 1. Redistributions of source code must retain the above copyright
   3.428 -+.\"    notice, this list of conditions and the following disclaimer.
   3.429 -+.\" 2. Redistributions in binary form must reproduce the above copyright
   3.430 -+.\"    notice, this list of conditions and the following disclaimer in the
   3.431 -+.\"    documentation and/or other materials provided with the distribution.
   3.432 -+.\" 3. All advertising materials mentioning features or use of this software
   3.433 -+.\"    must display the following acknowledgement:
   3.434 -+.\"	This product includes software developed by the University of
   3.435 -+.\"	California, Berkeley and its contributors.
   3.436 -+.\" 4. Neither the name of the University nor the names of its contributors
   3.437 -+.\"    may be used to endorse or promote products derived from this software
   3.438 -+.\"    without specific prior written permission.
   3.439 -+.\"
   3.440 -+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   3.441 -+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   3.442 -+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   3.443 -+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   3.444 -+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   3.445 -+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   3.446 -+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   3.447 -+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   3.448 -+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   3.449 -+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   3.450 -+.\" SUCH DAMAGE.
   3.451 -+.\"
   3.452 -+.\"     from: @(#)portmap.8	5.3 (Berkeley) 3/16/91
   3.453 -+.\"	$Id: portmap-5beta-compilation_fixes-3.patch,v 1.1 2004/06/08 04:53:09 jim Exp $
   3.454 -+.\"
   3.455 -+.Dd March 16, 1991
   3.456 -+.Dt PORTMAP 8
   3.457 -+.Os BSD 4.3
   3.458 -+.Sh NAME
   3.459 -+.Nm portmap
   3.460 -+.Nd
   3.461 -+.Tn DARPA
   3.462 -+port to
   3.463 -+.Tn RPC
   3.464 -+program number mapper
   3.465 -+.Sh SYNOPSIS
   3.466 -+.Nm portmap
   3.467 -+.Op Fl d
   3.468 -+.Op Fl v
   3.469 -+.Sh DESCRIPTION
   3.470 -+.Nm Portmap
   3.471 -+is a server that converts
   3.472 -+.Tn RPC
   3.473 -+program numbers into
   3.474 -+.Tn DARPA
   3.475 -+protocol port numbers.
   3.476 -+It must be running in order to make
   3.477 -+.Tn RPC
   3.478 -+calls.
   3.479 -+.Pp
   3.480 -+When an
   3.481 -+.Tn RPC
   3.482 -+server is started, it will tell
   3.483 -+.Nm portmap
   3.484 -+what port number it is listening to, and what
   3.485 -+.Tn RPC
   3.486 -+program numbers it is prepared to serve.
   3.487 -+When a client wishes to make an
   3.488 -+.Tn RPC
   3.489 -+call to a given program number,
   3.490 -+it will first contact
   3.491 -+.Nm portmap
   3.492 -+on the server machine to determine
   3.493 -+the port number where
   3.494 -+.Tn RPC
   3.495 -+packets should be sent.
   3.496 -+.Pp
   3.497 -+.Nm Portmap
   3.498 -+must be started before any
   3.499 -+.Tn RPC
   3.500 -+servers are invoked.
   3.501 -+.Pp
   3.502 -+Normally
   3.503 -+.Nm portmap
   3.504 -+forks and dissociates itself from the terminal
   3.505 -+like any other daemon.
   3.506 -+.Nm Portmap
   3.507 -+then logs errors using
   3.508 -+.Xr syslog 3 .
   3.509 -+.Pp
   3.510 -+Option available:
   3.511 -+.Bl -tag -width Ds
   3.512 -+.It Fl d
   3.513 -+(debug) prevents
   3.514 -+.Nm portmap
   3.515 -+from running as a daemon,
   3.516 -+and causes errors and debugging information
   3.517 -+to be printed to the standard error output.
   3.518 -+.It Fl v
   3.519 -+(verbose) run
   3.520 -+.Nm portmap
   3.521 -+in verbose mode.
   3.522 -+.El
   3.523 -+
   3.524 -+This
   3.525 -+.Nm portmap
   3.526 -+version is protected by the
   3.527 -+.Nm tcp_wrapper
   3.528 -+library. You have to give the clients access to
   3.529 -+.Nm portmap
   3.530 -+if they should be allowed to use it. To allow connects from clients of
   3.531 -+the .bar.com domain you could use the following line in /etc/hosts.allow:
   3.532 -+
   3.533 -+portmap: .bar.com
   3.534 -+
   3.535 -+You have to use the daemon name 
   3.536 -+.Nm portmap
   3.537 -+for the daemon name (even if the binary has a different name). For the
   3.538 -+client names you can only use the keyword ALL or IP addresses (NOT
   3.539 -+host or domain names).
   3.540 -+
   3.541 -+For further information please have a look at the
   3.542 -+.Xr tcpd 8 ,
   3.543 -+.Xr hosts_allow 5
   3.544 -+and
   3.545 -+.Xr hosts_access 5
   3.546 -+manual pages.
   3.547 -+
   3.548 -+.Sh SEE ALSO
   3.549 -+.Xr inetd.conf 5 ,
   3.550 -+.Xr rpcinfo 8 ,
   3.551 -+.Xr pmap_set 8 ,
   3.552 -+.Xr pmap_dump 8 ,
   3.553 -+.Xr inetd 8
   3.554 -+.Xr tcpd 8
   3.555 -+.Xr hosts_access 5
   3.556 -+.Xr hosts_options 5
   3.557 -+.Sh BUGS
   3.558 -+If
   3.559 -+.Nm portmap
   3.560 -+crashes, all servers must be restarted.
   3.561 -+.Sh HISTORY
   3.562 -+The
   3.563 -+.Nm
   3.564 -+command appeared in
   3.565 -+.Bx 4.3
   3.566 -diff -Naur portmap_5beta/portmap.c portmap_5beta.gimli/portmap.c
   3.567 ---- portmap_5beta/portmap.c	1996-07-06 16:06:24.000000000 -0500
   3.568 -+++ portmap_5beta.gimli/portmap.c	2002-01-07 09:26:41.000000000 -0600
   3.569 -@@ -37,7 +37,7 @@
   3.570 -  All rights reserved.\n";
   3.571 - #endif /* not lint */
   3.572 - 
   3.573 --#ifndef lint
   3.574 -+#ifdef lint
   3.575 - static char sccsid[] = "@(#) portmap.c 1.6 96/07/06 23:06:23";
   3.576 - #endif /* not lint */
   3.577 - 
   3.578 -@@ -80,6 +80,9 @@
   3.579 -  * Mountain View, California  94043
   3.580 -  */
   3.581 - 
   3.582 -+#if defined(__GLIBC__)
   3.583 -+#include <rpc/xdr.h>
   3.584 -+#endif /* __GLIBC__ */
   3.585 - #include <rpc/rpc.h>
   3.586 - #include <rpc/pmap_prot.h>
   3.587 - #include <stdio.h>
   3.588 -@@ -94,6 +97,8 @@
   3.589 - #ifdef SYSV40
   3.590 - #include <netinet/in.h>
   3.591 - #endif
   3.592 -+#include <sys/types.h>
   3.593 -+#include <unistd.h>
   3.594 - 
   3.595 - extern char *strerror();
   3.596 - #include <stdlib.h>
   3.597 -@@ -148,7 +153,7 @@
   3.598 - #endif
   3.599 - #endif
   3.600 - 
   3.601 --main(argc, argv)
   3.602 -+int main(argc, argv)
   3.603 - 	int argc;
   3.604 - 	char **argv;
   3.605 - {
   3.606 -@@ -350,7 +355,7 @@
   3.607 - 		 */
   3.608 - 		/* remote host authorization check */
   3.609 - 		check_default(svc_getcaller(xprt), rqstp->rq_proc, (u_long) 0);
   3.610 --		if (!svc_sendreply(xprt, xdr_void, (caddr_t)0) && debugging) {
   3.611 -+		if (!svc_sendreply(xprt, (xdrproc_t) xdr_void, (caddr_t)0) && debugging) {
   3.612 - 			abort();
   3.613 - 		}
   3.614 - 		break;
   3.615 -@@ -359,7 +364,7 @@
   3.616 - 		/*
   3.617 - 		 * Set a program,version to port mapping
   3.618 - 		 */
   3.619 --		if (!svc_getargs(xprt, xdr_pmap, &reg))
   3.620 -+		if (!svc_getargs(xprt, (xdrproc_t) xdr_pmap, (caddr_t) &reg))
   3.621 - 			svcerr_decode(xprt);
   3.622 - 		else {
   3.623 - 			/* reject non-local requests, protect priv. ports */
   3.624 -@@ -401,7 +406,7 @@
   3.625 - 				ans = 1;
   3.626 - 			}
   3.627 - 		done:
   3.628 --			if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&ans)) &&
   3.629 -+			if ((!svc_sendreply(xprt, (xdrproc_t) xdr_int, (caddr_t)&ans)) &&
   3.630 - 			    debugging) {
   3.631 - 				(void) fprintf(stderr, "svc_sendreply\n");
   3.632 - 				abort();
   3.633 -@@ -413,7 +418,7 @@
   3.634 - 		/*
   3.635 - 		 * Remove a program,version to port mapping.
   3.636 - 		 */
   3.637 --		if (!svc_getargs(xprt, xdr_pmap, &reg))
   3.638 -+		if (!svc_getargs(xprt, (xdrproc_t) xdr_pmap, (caddr_t) &reg))
   3.639 - 			svcerr_decode(xprt);
   3.640 - 		else {
   3.641 - 			ans = 0;
   3.642 -@@ -447,7 +452,7 @@
   3.643 - 					prevpml->pml_next = pml;
   3.644 - 				free(t);
   3.645 - 			}
   3.646 --			if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&ans)) &&
   3.647 -+			if ((!svc_sendreply(xprt, (xdrproc_t) xdr_int, (caddr_t)&ans)) &&
   3.648 - 			    debugging) {
   3.649 - 				(void) fprintf(stderr, "svc_sendreply\n");
   3.650 - 				abort();
   3.651 -@@ -459,7 +464,7 @@
   3.652 - 		/*
   3.653 - 		 * Lookup the mapping for a program,version and return its port
   3.654 - 		 */
   3.655 --		if (!svc_getargs(xprt, xdr_pmap, &reg))
   3.656 -+		if (!svc_getargs(xprt, (xdrproc_t) xdr_pmap, (caddr_t) &reg))
   3.657 - 			svcerr_decode(xprt);
   3.658 - 		else {
   3.659 - 			/* remote host authorization check */
   3.660 -@@ -474,7 +479,7 @@
   3.661 - 				port = fnd->pml_map.pm_port;
   3.662 - 			else
   3.663 - 				port = 0;
   3.664 --			if ((!svc_sendreply(xprt, xdr_int, (caddr_t)&port)) &&
   3.665 -+			if ((!svc_sendreply(xprt, (xdrproc_t) xdr_int, (caddr_t)&port)) &&
   3.666 - 			    debugging) {
   3.667 - 				(void) fprintf(stderr, "svc_sendreply\n");
   3.668 - 				abort();
   3.669 -@@ -486,7 +491,7 @@
   3.670 - 		/*
   3.671 - 		 * Return the current set of mapped program,version
   3.672 - 		 */
   3.673 --		if (!svc_getargs(xprt, xdr_void, NULL))
   3.674 -+		if (!svc_getargs(xprt, (xdrproc_t) xdr_void, (caddr_t) NULL))
   3.675 - 			svcerr_decode(xprt);
   3.676 - 		else {
   3.677 - 			/* remote host authorization check */
   3.678 -@@ -497,7 +502,7 @@
   3.679 - 			} else {
   3.680 - 				p = pmaplist;
   3.681 - 			}
   3.682 --			if ((!svc_sendreply(xprt, xdr_pmaplist,
   3.683 -+			if ((!svc_sendreply(xprt, (xdrproc_t) xdr_pmaplist,
   3.684 - 			    (caddr_t)&p)) && debugging) {
   3.685 - 				(void) fprintf(stderr, "svc_sendreply\n");
   3.686 - 				abort();
   3.687 -@@ -645,7 +650,7 @@
   3.688 - 	timeout.tv_sec = 5;
   3.689 - 	timeout.tv_usec = 0;
   3.690 - 	a.rmt_args.args = buf;
   3.691 --	if (!svc_getargs(xprt, xdr_rmtcall_args, &a))
   3.692 -+	if (!svc_getargs(xprt, (xdrproc_t) xdr_rmtcall_args, (caddr_t) &a))
   3.693 - 		return;
   3.694 - 	/* host and service access control */
   3.695 - 	if (!check_callit(svc_getcaller(xprt), 
   3.696 -@@ -674,9 +679,9 @@
   3.697 - 			   au->aup_uid, au->aup_gid, au->aup_len, au->aup_gids);
   3.698 - 		}
   3.699 - 		a.rmt_port = (u_long)port;
   3.700 --		if (clnt_call(client, a.rmt_proc, xdr_opaque_parms, &a,
   3.701 --		    xdr_len_opaque_parms, &a, timeout) == RPC_SUCCESS) {
   3.702 --			svc_sendreply(xprt, xdr_rmtcall_result, (caddr_t)&a);
   3.703 -+		if (clnt_call(client, a.rmt_proc, (xdrproc_t) xdr_opaque_parms, (char*) &a,
   3.704 -+		    (xdrproc_t) xdr_len_opaque_parms, (char*) &a, timeout) == RPC_SUCCESS) {
   3.705 -+			svc_sendreply(xprt, (xdrproc_t) xdr_rmtcall_result, (caddr_t)&a);
   3.706 - 		}
   3.707 - 		AUTH_DESTROY(client->cl_auth);
   3.708 - 		clnt_destroy(client);
     4.1 --- a/portmap/stuff/portmap-5beta-disable-tcp_wrapper.patch	Thu Jan 31 22:42:51 2008 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,23 +0,0 @@
     4.4 ---- portmap_5beta/Makefile	Wed Jan 30 00:08:51 2008
     4.5 -+++ Makefile	Wed Jan 30 00:09:33 2008
     4.6 -@@ -15,9 +15,9 @@
     4.7 - # no access control tables. The local system, since it runs the portmap
     4.8 - # daemon, is always treated as an authorized host.
     4.9 - 
    4.10 --HOSTS_ACCESS= -DHOSTS_ACCESS
    4.11 -+#HOSTS_ACCESS= -DHOSTS_ACCESS
    4.12 - #WRAP_LIB = $(WRAP_DIR)/libwrap.a
    4.13 --WRAP_LIB = -lwrap
    4.14 -+#WRAP_LIB = -lwrap
    4.15 - 
    4.16 - # Comment out if your RPC library does not allocate privileged ports for
    4.17 - # requests from processes with root privilege, or the new portmap will
    4.18 -@@ -25,7 +25,7 @@
    4.19 - # ports. You can find out by running "rpcinfo -p"; if all mountd and NIS
    4.20 - # daemons use a port >= 1024 you should probably disable the next line.
    4.21 - 
    4.22 --CHECK_PORT = -DCHECK_PORT
    4.23 -+#CHECK_PORT = -DCHECK_PORT
    4.24 - 
    4.25 - # Warning: troublesome feature ahead!! Enable only when you are really
    4.26 - # desperate!!
     5.1 --- a/portmap/stuff/portmap-5beta-glibc_errno_fix-1.patch	Thu Jan 31 22:42:51 2008 +0100
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,17 +0,0 @@
     5.4 -Submitted By: Tushar Teredesai <tushar@linuxfromscratch.org>
     5.5 -Date: 2003-10-04
     5.6 -Initial Package Version: 5beta
     5.7 -Origin: None
     5.8 -Description: Fix compilation with recent glibc versions.
     5.9 ---- portmap_5beta/portmap.c	2003-03-10 12:32:26.000000000 -0600
    5.10 -+++ portmap_5beta/portmap.c.new	2003-03-10 12:38:01.000000000 -0600
    5.11 -@@ -129,7 +129,8 @@
    5.12 - static void callit();
    5.13 - struct pmaplist *pmaplist;
    5.14 - int debugging = 0;
    5.15 --extern int errno;
    5.16 -+#include <errno.h>
    5.17 -+/* extern int errno; */
    5.18 - 
    5.19 - #include "pmap_check.h"
    5.20 - 
     6.1 --- a/unfs3/receipt	Thu Jan 31 22:42:51 2008 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,41 +0,0 @@
     6.4 -# SliTaz package receipt.
     6.5 -
     6.6 -PACKAGE="unfs3"
     6.7 -VERSION="0.9.20"
     6.8 -CATEGORY="extra"
     6.9 -SHORT_DESC="User-land NFSv3 Server"
    6.10 -MAINTAINER="Erjo <erjo@slitaz.org>"
    6.11 -DEPENDS="portmap"
    6.12 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    6.13 -WEB_SITE="http://unfs3.sourceforge.net/"
    6.14 -WGET_URL="http://ovh.dl.sourceforge.net/sourceforge/unfs3/${TARBALL}"
    6.15 -
    6.16 -# Rules to configure and make the package.
    6.17 -compile_rules()
    6.18 -{
    6.19 -	cd $src
    6.20 -	./configure --prefix=/usr --infodir=/usr/share/info \
    6.21 -	--sysconfdir=/etc \
    6.22 -	--mandir=/usr/share/man $CONFIGURE_ARGS
    6.23 -	
    6.24 -	make
    6.25 -}
    6.26 -
    6.27 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.28 -genpkg_rules()
    6.29 -{
    6.30 -	mkdir -p $fs/usr/bin
    6.31 -	install -g root -o root -m 0755 -s $src/unfsd $fs/usr/bin
    6.32 -	
    6.33 -	mkdir -p $fs/etc/init.d
    6.34 -	install -g root -o root -m 0644 stuff/etc/export $fs/etc
    6.35 -	install -g root -o root -m 0755 stuff/etc/init.d/unfsd $fs/etc/init.d
    6.36 -}
    6.37 -
    6.38 -post_install()
    6.39 -{
    6.40 -
    6.41 -       echo -e "\nTo starts $PACKAGE server you can run :\n"
    6.42 -       echo "/etc/init.d/$PACKAGE start"
    6.43 -       echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
    6.44 -}
     7.1 --- a/unfs3/stuff/etc/export	Thu Jan 31 22:42:51 2008 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,3 +0,0 @@
     7.4 -# NFS export file
     7.5 -#
     7.6 -# /home		(ro)
     8.1 --- a/unfs3/stuff/etc/init.d/unfsd	Thu Jan 31 22:42:51 2008 +0100
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,57 +0,0 @@
     8.4 -#!/bin/sh
     8.5 -# /etc/init.d/unfsd : Start, stop and restart NFSv3 Server on SliTaz, at
     8.6 -# boot time or with the command line.
     8.7 -#
     8.8 -# To start NFSv3 Server at boot time, just put dropbear in the $RUN_DAEMONS
     8.9 -# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
    8.10 -#
    8.11 -. /etc/init.d/rc.functions
    8.12 -. /etc/daemons.conf
    8.13 -
    8.14 -NAME=unfsd
    8.15 -DESC="NFSv3 Server"
    8.16 -DAEMON=/usr/bin/unfsd
    8.17 -OPTIONS=
    8.18 -PIDFILE=/var/run/$NAME.pid
    8.19 -
    8.20 -
    8.21 -test -f $DAEMON || exit 0
    8.22 -
    8.23 -case "$1" in
    8.24 -    start)
    8.25 -   	if [ -f $PIDFILE ] ; then
    8.26 -      		echo "$NAME already running."
    8.27 -      		exit 1
    8.28 -    	fi
    8.29 -
    8.30 -    	echo -n "Starting $DESC: $NAME... "
    8.31 -    	$DAEMON $OPTIONS
    8.32 -    	status
    8.33 -    	
    8.34 -    	# registering PID
    8.35 -    	if [ $? -eq 0 ]; then
    8.36 -   		pidof -s $NAME > $PIDFILE
    8.37 -    	fi
    8.38 -	;;
    8.39 -    stop)
    8.40 -        if [ ! -f $PIDFILE ] ; then
    8.41 -           echo "$NAME is not running."
    8.42 -           exit 1
    8.43 -        fi
    8.44 -        echo -n "Stopping $DESC: $NAME... "
    8.45 -        kill `cat $PIDFILE`
    8.46 -        rm -f $PIDFILE
    8.47 -        status
    8.48 -	;;
    8.49 -    restart)
    8.50 -        $0 stop
    8.51 -        $0 start
    8.52 -	;;
    8.53 -    *)
    8.54 -		echo "Usage: $DAEMON {start|stop|reload|restart}"
    8.55 -		exit 1
    8.56 -	;;
    8.57 -esac
    8.58 -
    8.59 -exit 0
    8.60 -