Update of /cvsroot/leaf/src/bering-uclibc4/source/nfs-utils In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21992
Added Files: buildtool.cfg buildtool.mk idmapd.conf nfs-utils-1.2.3.tar.bz2 nfs-utils.default nfs-utils.exports nfs-utils.init Log Message: Network File System server package --- NEW FILE: nfs-utils-1.2.3.tar.bz2 --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nfs-utils.default --- # # Defaults for nfs-utils initscript (/etc/init.d/nfs-utils) # This is a POSIX shell fragment # # Should we run rpc.nfsd at all? NFSPDRUN="yes" # Command-line options for rpc.nfsd # Select from: # -d or --debug # -H or --host hostname # -p or --port port # -N or --no-nfs-version vers # -s or --syslog # -T or --no-tcp # -U or --no-udp NFSDOPTS="--no-nfs-version 2 --no-nfs-version 3" # Number of threads for nfsd NFSDCOUNT="4" # # Should we run rpc.mountd at all? MOUNTDRUN="yes" # Command-line options for rpc.mountd # Select from: # -d or --debug kind (all, auth, call, general, parse) # -F or --foreground # -f or --exports-file filename (default is /etc/exports) # -g or --manage-gids # -H or --ha-callout prog # -o or --descriptors num # -N or --no-nfs-version vers # -n or --no-tcp # -p or --port port # -r or --reverse-lookup # -s or --state-directory-path # -t or --num-threads num # -V or --nfs-version num MOUNTDOPTS="--nfs-version 4" # # Should we run rpc.statd at all? STATDRUN="no" # Command-line options for rpc.mountd # Select from: # -d or --no-syslog # -F or --foreground # -H # -L # -N # -n or --name # -o or --outgoing-port # -P # -p or --port # -v or -V STATDOPTS="" # # Should we run rpc.idmapd at all? IDMAPDRUN="yes" # Command-line options for rpc.idmapd # Select from: # -C # -c configurationfile # -d domain # -f # -G groupname # -p path # -S # -U username # -v IDMAPDOPTS="" --- NEW FILE: nfs-utils.init --- #!/bin/sh # # /etc/init.d/nfs-utils: start and stop NFS server daemons # RCDLINKS="0,K10 2,S90" PATH=/sbin:/bin:/usr/sbin:/usr/bin # Crude check for "portmap" dependency [ -x /sbin/portmap ] || echo "Warning: NFS daemon needs /sbin/portmap for full functionality" # Check for existence of daemon executables [ -x /usr/sbin/rpc.idmapd ] || exit 2 [ -x /usr/sbin/rpc.nfsd ] || exit 2 [ -x /usr/sbin/rpc.mountd ] || exit 2 [ -x /usr/sbin/rpc.statd ] || exit 2 [ -x /usr/sbin/exportfs ] || exit 2 # Include nfs-utils settings if available if [ -f /etc/default/nfs-utils ] ; then . /etc/default/nfs-utils fi # Define fall-back default settings [ -z "$NFSDOPTS" ] && NFSDOPTS="" [ -z "$NFSDCOUNT" ] && NFSDCOUNT="8" [ -z "$MOUNTDOPTS" ] && MOUNTDOPTS="" [ -z "$STATDOPTS" ] && STATDOPTS="" [ -z "$IDMAPDOPTS" ] && IDMAPDOPTS="" RETVAL=0 # See how we were called case "$1" in start) # Create required directories mkdir -p /var/lib/nfs/sm /var/lib/nfs/v4recovery # Create working files touch /var/lib/nfs/etab /var/lib/nfs/rmtab /var/lib/nfs/xtab /var/lib/nfs/state # Start daemons /usr/sbin/exportfs -r if [ "$NFSPDRUN" == "yes" ]; then echo -n "Starting NFS daemon: " start-stop-daemon --start --exec /usr/sbin/rpc.nfsd --quiet -- $NFSDOPTS $NFSDCOUNT RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi fi if [ "$MOUNTDRUN" == "yes" ]; then echo -n "Starting NFS mountd: " start-stop-daemon --start --exec /usr/sbin/rpc.mountd --quiet -- $MOUNTDOPTS RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi fi if [ "$STATDRUN" == "yes" ]; then echo -n "Starting NFS statd: " start-stop-daemon --start --exec /usr/sbin/rpc.statd --quiet -- $STATDOPTS RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi fi if [ "$IDMAPDRUN" == "yes" ]; then echo -n "Starting NFS idmapd: " # First ensure that rpc_pipefs filesystem is available mkdir -p /var/lib/nfs/rpc_pipefs/nfs if ! /sbin/lsmod | grep sunrpc > /dev/null ; then /sbin/modprobe sunrpc fi if ! grep ^rpc_pipefs /proc/mounts > /dev/null ; then mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs fi start-stop-daemon --start --exec /usr/sbin/rpc.idmapd --quiet -- $IDMAPDOPTS RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi fi ;; stop) # Stop daemons if [ "$IDMAPDRUN" == "yes" ]; then echo -n "Shutting down NFS idmapd: " start-stop-daemon --stop --exec /usr/sbin/rpc.idmapd --quiet RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi if grep ^rpc_pipefs /proc/mounts > /dev/null ; then umount /var/lib/nfs/rpc_pipefs fi fi if [ "$STATDRUN" == "yes" ]; then echo -n "Shutting down NFS statd: " start-stop-daemon --stop --exec /usr/sbin/rpc.statd --quiet RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi fi if [ "$MOUNTDRUN" == "yes" ]; then echo -n "Shutting down NFS mountd: " start-stop-daemon --stop --exec /usr/sbin/rpc.mountd --quiet RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi fi if [ "$NFSPDRUN" == "yes" ]; then echo -n "Shutting down NFS daemon: " # The "--start" below really is correct. We start the # user-space daemon and ask it to stop the kernel daemon(s) start-stop-daemon --start --exec /usr/sbin/rpc.nfsd --quiet -- stop RETVAL=$? if [ $RETVAL == "0" ]; then echo "succeeded." else echo "failed." fi fi ;; restart) $0 stop sleep 1 $0 start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit 0 --- NEW FILE: buildtool.mk --- ############################################################# # # buildtool makefile for nfs-utils # ############################################################# include $(MASTERMAKEFILE) NFSUTILS_DIR:=$(shell $(BT_TGZ_GETDIRNAME) $(NFSUTILS_SOURCE) 2>/dev/null ) ifeq ($(NFSUTILS_DIR),) NFSUTILS_DIR:=$(shell cat DIRNAME) endif NFSUTILS_TARGET_DIR:=$(BT_BUILD_DIR)/nfs-utils # Option settings for 'configure': # Disable tiprc to avoid build failure checking for clnt_tli_create() # Disable uuid to avoid the need for libblkid # Disable gss to avoid the need for libgssglue etc. CONFOPTS:= --build=$(GNU_TARGET_NAME) --host=$(GNU_HOST_NAME) \ --disable-tirpc --disable-uuid --disable-gss $(NFSUTILS_DIR)/.source: bzcat $(NFSUTILS_SOURCE) | tar -xvf - echo $(NFSUTILS_DIR) > DIRNAME # Patch support/include/sockaddr.h to avoid attempt to #include <libio.h> ( cd $(NFSUTILS_DIR) ; perl -i -p -e 's,#include <libio.h>,,' support/include/sockaddr.h ) touch $(NFSUTILS_DIR)/.source source: $(NFSUTILS_DIR)/.source # Need libwrap (TCP_WRAPPERS) for the "configure" step, so run configure # as part of "build" rather than "source" so that dependency is resolved $(NFSUTILS_DIR)/.configure: $(NFSUTILS_DIR)/.source ( cd $(NFSUTILS_DIR) ; ./configure $(CONFOPTS) ) touch $(NFSUTILS_DIR)/.configure build: $(NFSUTILS_DIR)/.configure mkdir -p $(NFSUTILS_TARGET_DIR) $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(NFSUTILS_DIR) $(MAKE) -C $(NFSUTILS_DIR) DESTDIR=$(NFSUTILS_TARGET_DIR) install # $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/exportfs cp -f $(NFSUTILS_TARGET_DIR)/usr/sbin/exportfs $(BT_STAGING_DIR)/usr/sbin $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/nfsstat cp -f $(NFSUTILS_TARGET_DIR)/usr/sbin/nfsstat $(BT_STAGING_DIR)/usr/sbin $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.mountd cp $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.mountd $(BT_STAGING_DIR)/usr/sbin $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.nfsd cp -f $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.nfsd $(BT_STAGING_DIR)/usr/sbin $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.statd cp -f $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.statd $(BT_STAGING_DIR)/usr/sbin $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.idmapd cp -f $(NFSUTILS_TARGET_DIR)/usr/sbin/rpc.idmapd $(BT_STAGING_DIR)/usr/sbin $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/showmount cp -f $(NFSUTILS_TARGET_DIR)/usr/sbin/showmount $(BT_STAGING_DIR)/usr/sbin $(BT_STRIP) $(BT_STRIP_BINOPTS) $(NFSUTILS_TARGET_DIR)/usr/sbin/sm-notify cp -f $(NFSUTILS_TARGET_DIR)/usr/sbin/sm-notify $(BT_STAGING_DIR)/usr/sbin mkdir -p $(BT_STAGING_DIR)/etc/default/ mkdir -p $(BT_STAGING_DIR)/etc/init.d/ cp -a nfs-utils.default $(BT_STAGING_DIR)/etc/default/nfs-utils cp -a nfs-utils.exports $(BT_STAGING_DIR)/etc/exports cp -a nfs-utils.init $(BT_STAGING_DIR)/etc/init.d/nfs-utils cp -a idmapd.conf $(BT_STAGING_DIR)/etc/ clean: rm -rf $(NFSUTILS_TARGET_DIR) $(MAKE) -C $(NFSUTILS_DIR) clean rm -f $(NFSUTILS_DIR)/.configure srcclean: clean rm -rf $(NFSUTILS_DIR) -rm DIRNAME --- NEW FILE: nfs-utils.exports --- # Sample /etc/exports for nfs-utils # # The following line would make local directory /export/media available # for mounting by host 192.168.1.1, as read-write, and also for any host # on the local network, as read-only. Both use option "no_subtree_check". # # /export/media -no_subtree_check 192.168.1.1(rw) 192.168.1.0/24(ro) # # # The following line would make local directory /export/media available # for mounting by any host on the local network, as read-write, using NFSv4 # # /export/media 192.168.1.0/24(rw,fsid=0) --- NEW FILE: buildtool.cfg --- <File buildtool.mk> Server = cvs4-sourceforge Directory = nfs-utils Revision = HEAD </File> <File nfs-utils-1.2.3.tar.bz2> Server = cvs4-sourceforge Directory = nfs-utils Revision = HEAD envname = NFSUTILS_SOURCE </File> <File nfs-utils.default> Server = cvs4-sourceforge Directory = nfs-utils Revision = HEAD </File> <File nfs-utils.exports> Server = cvs4-sourceforge Directory = nfs-utils Revision = HEAD </File> <File nfs-utils.init> Server = cvs4-sourceforge Directory = nfs-utils Revision = HEAD </File> <Package> <nfs-utils> Version = 1.2.3 Revision = 1 Help <<EOF The user-space daemons required for an NFS server where nfsd support is included in the kernel. Includes rpc.nfsd, rpc.idmapd, rpc.mountd, rpc.statd, exportfs and supporting utilities. Homepage: http://sourceforge.net/projects/nfs/ Requires: portmap.lrp, libnfsidmap.lrp (for rpc.idmapd), libevent.lrp (for rpc.idmapd) LRP package by __PACKAGER__, __BUILDDATE__ EOF PackageType = lrp PackageName = nfs-utils <Permissions> Files = 644 Directories = 755 </Permissions> <Owner> Files = root:root Directories = root:root </Owner> <Contents> <File> Filename = usr/sbin/exportfs Source = usr/sbin/exportfs Type = binary Permissions = 755 </File> <File> Filename = usr/sbin/ Source = usr/sbin/rpc.* Type = binary Permissions = 755 </File> <File> Filename = usr/sbin/showmount Source = usr/sbin/showmount Type = binary Permissions = 755 </File> <File> Filename = usr/sbin/sm-notify Source = usr/sbin/sm-notify Type = binary Permissions = 755 </File> <File> Filename = etc/default/nfs-utils Source = etc/default/nfs-utils Description = nfs-utils daemon settings Type = binary Type = conf Type = local </File> <File> Filename = etc/exports Source = etc/exports Description = nfs-utils exportfs configuration Type = binary Type = conf Type = local </File> <File> Filename = etc/idmapd.conf Source = etc/idmapd.conf Description = rpc.idmapd daemon configuration Type = binary Type = conf Type = local </File> <File> Filename = etc/init.d/nfs-utils Source = etc/init.d/nfs-utils Type = binary Permissions = 755 </File> </Contents> </nfs-utils> </Package> --- NEW FILE: idmapd.conf --- # # Bering-uClibc configuration file for rpc.idmapd # [General] Verbosity = 0 Domain = private.network [Mapping] Nobody-User = nobody Nobody-Group = nogroup [Translation] # Despite the name, this option uses the standard POSIX APIs and so works with # plain /etc/passwd and /etc/group files even without nsswitch Method = nsswitch ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ leaf-cvs-commits mailing list leaf-cvs-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits