Update of /cvsroot/leaf/src/bering-uclibc4/source/portmap
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv22962

Added Files:
        buildtool.cfg buildtool.mk portmap-6.0.tgz portmap.default 
        portmap.init 
Log Message:
ONCRPC Port Mapper required for NFS Server

--- NEW FILE: portmap-6.0.tgz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: portmap.default ---
# Defaults for portmap initscript (/etc/init.d/portmap)
# This is a POSIX shell fragment
#
# Command-line options for portmap
# Select from:
#         -d: debugging mode
#         -f: don't daemonize, log to standard error
#     -t dir: chroot into dir
#         -v: verbose logging
# -i address: bind to address
#         -l: same as -i 127.0.0.1
#    -u uid : setuid to this uid
#    -g uid : setgid to this gid
#
# For NFSv2 & v3, clients need to contact portmap so use e.g. "-i 192.168.1.254"
# For NFSv4, no need for NFS clients to contact portmap so "-l" is recommended
PORTMAPOPTS="-l"

--- NEW FILE: buildtool.mk ---
#############################################################
#
# buildtool makefile for portmap
#
#############################################################

include $(MASTERMAKEFILE)

PORTMAP_DIR:=$(shell $(BT_TGZ_GETDIRNAME) $(PORTMAP_SOURCE) 2>/dev/null )
ifeq ($(PORTMAP_DIR),)
PORTMAP_DIR:=$(shell cat DIRNAME)
endif
PORTMAP_TARGET_DIR:=$(BT_BUILD_DIR)/portmap

$(PORTMAP_DIR)/.source:
        zcat $(PORTMAP_SOURCE) | tar -xvf -
# omit "-o root -g root" arguments from "install", so can run "make install"
# without being "root"; will get corrected as part of LRP installation
        ( cd $(PORTMAP_DIR) ; sed -i -e "/-o root -g root /s///" Makefile )
        echo $(PORTMAP_DIR) > DIRNAME
        touch $(PORTMAP_DIR)/.source

source: $(PORTMAP_DIR)/.source

build: source
        mkdir -p $(PORTMAP_TARGET_DIR)/sbin
        mkdir -p $(PORTMAP_TARGET_DIR)/usr/share/man/man8
        $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(PORTMAP_DIR)
        $(MAKE) -C $(PORTMAP_DIR) BASEDIR=$(PORTMAP_TARGET_DIR) install
#
        $(BT_STRIP) $(BT_STRIP_BINOPTS) $(PORTMAP_TARGET_DIR)/sbin/portmap
        cp -f $(PORTMAP_TARGET_DIR)/sbin/portmap $(BT_STAGING_DIR)/sbin
        $(BT_STRIP) $(BT_STRIP_BINOPTS) $(PORTMAP_TARGET_DIR)/sbin/pmap_set
        cp -f $(PORTMAP_TARGET_DIR)/sbin/pmap_set $(BT_STAGING_DIR)/sbin
        $(BT_STRIP) $(BT_STRIP_BINOPTS) $(PORTMAP_TARGET_DIR)/sbin/pmap_dump
        cp -f $(PORTMAP_TARGET_DIR)/sbin/pmap_dump $(BT_STAGING_DIR)/sbin
        mkdir -p $(BT_STAGING_DIR)/etc/default/
        mkdir -p $(BT_STAGING_DIR)/etc/init.d/
        cp -a portmap.default $(BT_STAGING_DIR)/etc/default/portmap
        cp -a portmap.init $(BT_STAGING_DIR)/etc/init.d/portmap

clean:
        rm -rf $(PORTMAP_TARGET_DIR)
        $(MAKE) -C $(PORTMAP_DIR) clean

srcclean: clean
        rm -rf $(PORTMAP_DIR)
        -rm DIRNAME


--- NEW FILE: buildtool.cfg ---

<File buildtool.mk>
  Server = cvs4-sourceforge
  Directory = portmap
  Revision = HEAD
</File>

<File portmap-6.0.tgz>
  Server = cvs4-sourceforge
  Directory = portmap
  Revision = HEAD
  envname = PORTMAP_SOURCE   
</File>

<File portmap.default>
  Server = cvs4-sourceforge
  Directory = portmap
  Revision = HEAD
</File>

<File portmap.init>
  Server = cvs4-sourceforge
  Directory = portmap
  Revision = HEAD
</File>


<Package>
  <portmap>
    Version = 6.0
    Revision = 1

    Help <<EOF
      The ONCRPC port mapper utility, required by other utilities which
      rely on RPC (like the NFS server daemons from nfs-utils.lrp).
      See http://neil.brown.name/portmap/
      LRP package by __PACKAGER__, __BUILDDATE__
    EOF

    PackageType = lrp
    PackageName = portmap

    <Permissions>
        Files = 644 
        Directories = 755
    </Permissions>

    <Owner>
      Files = root:root
      Directories = root:root
    </Owner>

    <Contents>
      <File>
        Filename        = sbin/portmap
        Source          = sbin/portmap
        Type            = binary
        Permissions     = 755
      </File>

      <File>
        Filename        = sbin/pmap_set
        Source          = sbin/pmap_set
        Type            = binary
        Permissions     = 755
      </File>

      <File>
        Filename        = sbin/pmap_dump
        Source          = sbin/pmap_dump
        Type            = binary
        Permissions     = 755
      </File>

      <File>
        Filename        = etc/default/portmap
        Source          = etc/default/portmap
        Description     = portmap daemon configuration
        Type            = binary
        Type            = conf
        Type            = local
      </File>

      <File>
        Filename        = etc/init.d/portmap
        Source          = etc/init.d/portmap
        Type            = binary
        Permissions     = 755
      </File>
    </Contents>
  </portmap>
</Package>


--- NEW FILE: portmap.init ---
#!/bin/sh
#
# /etc/init.d/portmap: start and stop RPC port mapper daemon
#
RCDLINKS="0,K11 2,S89"

PATH=/sbin:/bin:/usr/sbin:/usr/bin

# Check for existence of daemon executable
[ -x /sbin/portmap ] || exit 2

# Include portmap settings if available
if [ -f /etc/default/portmap ] ; then
        . /etc/default/portmap
fi

# Define fall-back default settings
[ -z "$PORTMAPOPTS" ] && PORTMAPOPTS=""

RETVAL=0

# See how we were called
case "$1" in
  start)
        # Start daemon
        echo -n "Starting portmap daemon: "
        start-stop-daemon --start --exec /sbin/portmap --quiet -- $PORTMAPOPTS
        RETVAL=$?
        if [ $RETVAL == "0" ]; then
            echo "succeeded."
        else
            echo "failed."
        fi
        ;;
  stop)
        # Stop daemon
        echo -n "Shutting down portmap daemon: "
        start-stop-daemon --stop --exec /sbin/portmap --quiet
        RETVAL=$?
        if [ $RETVAL == "0" ]; then
            echo "succeeded."
        else
            echo "failed."
        fi
        ;;
  restart)
        $0 stop
        sleep 1
        $0 start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit 0


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to