summaryrefslogtreecommitdiffstats
path: root/base/portmap
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-10-24 20:43:37 +0200
committertnut <thierryn1 at hispeed dot ch>2010-10-24 20:43:37 +0200
commitfebf7787c82b88a4e88adbdf1ed6db6b8ae233e0 (patch)
treea151361e81101c0615fb48645f6b02e4adda698c /base/portmap
parentd418265cb24c343b9e89eaefdbe7de774c556bac (diff)
downloadnutyx-extra-febf7787c82b88a4e88adbdf1ed6db6b8ae233e0.tar.gz
nutyx-extra-febf7787c82b88a4e88adbdf1ed6db6b8ae233e0.tar.bz2
nutyx-extra-febf7787c82b88a4e88adbdf1ed6db6b8ae233e0.tar.xz
nutyx-extra-febf7787c82b88a4e88adbdf1ed6db6b8ae233e0.zip
portmap, maj 6.0-2, ajout post-install pour lancer directement les services concernées
Diffstat (limited to 'base/portmap')
-rw-r--r--base/portmap/.md5sum2
-rwxr-xr-xbase/portmap/Pkgfile7
-rw-r--r--base/portmap/portmap41
-rw-r--r--base/portmap/post-install2
4 files changed, 7 insertions, 45 deletions
diff --git a/base/portmap/.md5sum b/base/portmap/.md5sum
index fe19b4305..94782d4f3 100644
--- a/base/portmap/.md5sum
+++ b/base/portmap/.md5sum
@@ -1,2 +1,2 @@
-8190d7eae328566fc14a92a581dec3e9 portmap
ac108ab68bf0f34477f8317791aaf1ff portmap-6.0.tgz
+6e79b4055fc62d68aa5dc4582c022525 portmap-nutyx-01.patch
diff --git a/base/portmap/Pkgfile b/base/portmap/Pkgfile
index e37fafae4..344bc1140 100755
--- a/base/portmap/Pkgfile
+++ b/base/portmap/Pkgfile
@@ -6,22 +6,23 @@
name=portmap
version=6.0
-release=1
+release=2
source=( http://neil.brown.name/$name/$name-$version.tgz\
- portmap)
+ http://nutyx.meticul.eu/files/patchs/$name/portmap-nutyx-01.patch)
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
+patch -Np1 -i ../portmap-nutyx-01.patch
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
deleted file mode 100644
index b724ce151..000000000
--- a/base/portmap/portmap
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/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
diff --git a/base/portmap/post-install b/base/portmap/post-install
new file mode 100644
index 000000000..e489a4109
--- /dev/null
+++ b/base/portmap/post-install
@@ -0,0 +1,2 @@
+/etc/rc.d/init.d/portmap start
+/etc/rc.d/init.d/netfs start