From febf7787c82b88a4e88adbdf1ed6db6b8ae233e0 Mon Sep 17 00:00:00 2001 From: tnut Date: Sun, 24 Oct 2010 20:43:37 +0200 Subject: portmap, maj 6.0-2, ajout post-install pour lancer directement les services concernées MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/portmap/.md5sum | 2 +- base/portmap/Pkgfile | 7 ++++--- base/portmap/portmap | 41 ----------------------------------------- base/portmap/post-install | 2 ++ 4 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 base/portmap/portmap create mode 100644 base/portmap/post-install (limited to 'base/portmap') 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 -- cgit v1.2.3-54-g00ecf