[arch-commits] Commit in portmap/trunk (PKGBUILD portmap)

Tobias Powalowski tpowa at archlinux.org
Wed Jun 3 06:52:03 EDT 2009


    Date: Wednesday, June 3, 2009 @ 06:52:03
  Author: tpowa
Revision: 41345

upgpkg: portmap 6.0-4

Modified:
  portmap/trunk/PKGBUILD
  portmap/trunk/portmap

----------+
 PKGBUILD |    5 +++--
 portmap  |    5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-06-03 10:29:49 UTC (rev 41344)
+++ PKGBUILD	2009-06-03 10:52:03 UTC (rev 41345)
@@ -3,7 +3,7 @@
 # Committer: Judd Vinet <jvinet at zeroflux.org>
 pkgname=portmap
 pkgver=6.0
-pkgrel=3
+pkgrel=4
 pkgdesc="RPC connection manager"
 arch=(i686 x86_64)
 depends=('glibc' 'tcp_wrappers')
@@ -11,7 +11,7 @@
 license=('GPL')
 source=(http://neil.brown.name/portmap/portmap-6.0.tgz portmap)
 md5sums=('ac108ab68bf0f34477f8317791aaf1ff'
-         'ec37d014a47adc39e52e4bf31bf2a19a')
+         '5f03aa7881c3c43ca48bc072eb439d5f')
 
 build() {
   cd $srcdir/portmap_$pkgver
@@ -22,3 +22,4 @@
   mkdir -p $startdir/pkg/etc/rc.d
   cp ../portmap $startdir/pkg/etc/rc.d
 }
+

Modified: portmap
===================================================================
--- portmap	2009-06-03 10:29:49 UTC (rev 41344)
+++ portmap	2009-06-03 10:52:03 UTC (rev 41345)
@@ -3,14 +3,15 @@
 . /etc/rc.conf
 . /etc/rc.d/functions
 
-PID=`pidof -o %PPID /sbin/portmap`
+PID="$(pidof -o %PPID /sbin/portmap)"
 case "$1" in
   start)
     stat_busy "Starting Portmap"
-    [ -z "$PID" ] && /sbin/portmap
+    [ -z "$PID" ] && /sbin/portmap &>/dev/null
     if [ $? -gt 0 ]; then
       stat_fail
     else
+      PID=$(pidof -o %PPID /sbin/portmap)
       echo $PID > /var/run/portmap.pid
       add_daemon portmap
       stat_done



More information about the arch-commits mailing list