diff options
Diffstat (limited to 'base/portmap')
-rw-r--r-- | base/portmap/.footprint | 40 | ||||
-rw-r--r-- | base/portmap/.md5sum | 2 | ||||
-rwxr-xr-x | base/portmap/Pkgfile | 27 | ||||
-rw-r--r-- | base/portmap/portmap | 41 |
4 files changed, 110 insertions, 0 deletions
diff --git a/base/portmap/.footprint b/base/portmap/.footprint new file mode 100644 index 000000000..95998588b --- /dev/null +++ b/base/portmap/.footprint @@ -0,0 +1,40 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +drwxr-xr-x root/root etc/rc.d/init.d/ +-rwxr-xr-- root/root etc/rc.d/init.d/netfs +-rwxr-xr-- root/root etc/rc.d/init.d/portmap +drwxr-xr-x root/root etc/rc.d/rc0.d/ +lrwxrwxrwx root/root etc/rc.d/rc0.d/K47netfs -> ../init.d/netfs +lrwxrwxrwx root/root etc/rc.d/rc0.d/K49portmap -> ../init.d/portmap +drwxr-xr-x root/root etc/rc.d/rc1.d/ +lrwxrwxrwx root/root etc/rc.d/rc1.d/K47netfs -> ../init.d/netfs +lrwxrwxrwx root/root etc/rc.d/rc1.d/K49portmap -> ../init.d/portmap +drwxr-xr-x root/root etc/rc.d/rc2.d/ +lrwxrwxrwx root/root etc/rc.d/rc2.d/K47netfs -> ../init.d/netfs +lrwxrwxrwx root/root etc/rc.d/rc2.d/K49portmap -> ../init.d/portmap +drwxr-xr-x root/root etc/rc.d/rc3.d/ +lrwxrwxrwx root/root etc/rc.d/rc3.d/S22portmap -> ../init.d/portmap +lrwxrwxrwx root/root etc/rc.d/rc3.d/S28netfs -> ../init.d/netfs +drwxr-xr-x root/root etc/rc.d/rc4.d/ +lrwxrwxrwx root/root etc/rc.d/rc4.d/S22portmap -> ../init.d/portmap +lrwxrwxrwx root/root etc/rc.d/rc4.d/S28netfs -> ../init.d/netfs +drwxr-xr-x root/root etc/rc.d/rc5.d/ +lrwxrwxrwx root/root etc/rc.d/rc5.d/S22portmap -> ../init.d/portmap +lrwxrwxrwx root/root etc/rc.d/rc5.d/S28netfs -> ../init.d/netfs +drwxr-xr-x root/root etc/rc.d/rc6.d/ +lrwxrwxrwx root/root etc/rc.d/rc6.d/K47netfs -> ../init.d/netfs +lrwxrwxrwx root/root etc/rc.d/rc6.d/K49portmap -> ../init.d/portmap +drwxr-xr-x root/root etc/rc.d/rcsysinit.d/ +drwxr-xr-x root/root etc/sysconfig/ +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/pmap_dump +-rwxr-xr-x root/root sbin/pmap_set +-rwxr-xr-x root/root sbin/portmap +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/sbin/ +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/pmap_dump.8.gz +-rw-r--r-- root/root usr/share/man/man8/pmap_set.8.gz +-rw-r--r-- root/root usr/share/man/man8/portmap.8.gz diff --git a/base/portmap/.md5sum b/base/portmap/.md5sum new file mode 100644 index 000000000..fe19b4305 --- /dev/null +++ b/base/portmap/.md5sum @@ -0,0 +1,2 @@ +8190d7eae328566fc14a92a581dec3e9 portmap +ac108ab68bf0f34477f8317791aaf1ff portmap-6.0.tgz diff --git a/base/portmap/Pkgfile b/base/portmap/Pkgfile new file mode 100755 index 000000000..e37fafae4 --- /dev/null +++ b/base/portmap/Pkgfile @@ -0,0 +1,27 @@ +# Description: used to forward RPC requests to RPC daemons +# URL: http://neil.brown.name/portmap/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: tcp_wrappers + +name=portmap +version=6.0 +release=1 +source=( http://neil.brown.name/$name/$name-$version.tgz\ + portmap) + + +build() { +source /etc/blfs-bootscripts +wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 +tar xvf $scripts-$scriptsversion.tar.bz2 +cd ${name}_$version +install -d $PKG/{sbin,usr/{sbin,share/man/man8}} +make +make BASEDIR=$PKG install +cd ../$scripts-$scriptsversion +make DESTDIR=$PKG install-portmap +make DESTDIR=$PKG install-netfs +mkdir -p $PKG/etc/rc.d/init.d +install -m 754 ../portmap $PKG/etc/rc.d/init.d/ +} diff --git a/base/portmap/portmap b/base/portmap/portmap new file mode 100644 index 000000000..b724ce151 --- /dev/null +++ b/base/portmap/portmap @@ -0,0 +1,41 @@ +#!/bin/sh +# Begin $rc_base/init.d/portmap + +#$LastChangedBy: bdubbs $ +#$Date: 2007/09/26 14:05:19 $ +#$Id: portmap,v 1.2 2007/09/26 14:05:19 install Exp $ +. /etc/sysconfig/rc +. $rc_functions +newuser=bin +newid=1 +getent passwd $newuser >/dev/null|| /usr/sbin/useradd -g $newid \ +-u $newid -d /dev/null -s /bin/false $newuser +case "$1" in + start) + boot_mesg "Starting RPC Portmap" + loadproc /sbin/portmap + ;; + + stop) + boot_mesg "Stopping Portmap" + killproc /sbin/portmap + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /sbin/portmap + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; + +esac + +# End $rc_base/init.d/portmap |