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

Tobias Powalowski tpowa at nymeria.archlinux.org
Fri May 17 12:55:13 UTC 2013


    Date: Friday, May 17, 2013 @ 14:55:13
  Author: tpowa
Revision: 185706

upgpkg: rpcbind 0.2.0-12

remove rc.d script

Modified:
  rpcbind/trunk/PKGBUILD
Deleted:
  rpcbind/trunk/rpcbind

----------+
 PKGBUILD |   16 ++++++++--------
 rpcbind  |   39 ---------------------------------------
 2 files changed, 8 insertions(+), 47 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-17 12:41:12 UTC (rev 185705)
+++ PKGBUILD	2013-05-17 12:55:13 UTC (rev 185706)
@@ -3,7 +3,7 @@
 
 pkgname=rpcbind
 pkgver=0.2.0
-pkgrel=11
+pkgrel=12
 pkgdesc="portmap replacement which supports RPC over various protocols"
 arch=(i686 x86_64)
 depends=('bash' 'glibc' 'libtirpc')
@@ -12,17 +12,19 @@
 replaces=('portmap')
 source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.0.tar.bz2
         rpcbind-sunrpc.patch
-        rpcbind.service
-        rpcbind)
+        rpcbind.service)
 md5sums=('1a77ddb1aaea8099ab19c351eeb26316'
          'c02ac36a98baac70b8a26190524b7b73'
-         'a7b23a32be2eb52d7dec52da36d4eba1'
-         '78a963654f57cbb209e228884767836e')
+         'a7b23a32be2eb52d7dec52da36d4eba1')
 
-build() {
+prepare() {
   cd $srcdir/$pkgname-$pkgver
   # patch for iana services file
   patch -Np1 -i ../rpcbind-sunrpc.patch
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
   ./configure --prefix=/usr --enable-warmstarts --with-statedir=/run
   make
 }
@@ -37,8 +39,6 @@
   make DESTDIR=$pkgdir install
   # install missing man page - https://bugs.archlinux.org/task/21271
   install -m644 man/rpcinfo.8 $pkgdir/usr/share/man/man8/
-  # install daemon 
-  install -D -m755 $srcdir/rpcbind $pkgdir/etc/rc.d/rpcbind
   # install systemd service file
   install -D -m644 $srcdir/rpcbind.service $pkgdir/usr/lib/systemd/system/rpcbind.service
   # install license

Deleted: rpcbind
===================================================================
--- rpcbind	2013-05-17 12:41:12 UTC (rev 185705)
+++ rpcbind	2013-05-17 12:55:13 UTC (rev 185706)
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID="$(pidof -o %PPID /usr/bin/rpcbind)"
-case "$1" in
-  start)
-    stat_busy "Starting rpcbind"
-    [ -z "$PID" ] && /usr/bin/rpcbind &>/dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      PID=$(pidof -o %PPID /usr/bin/rpcbind)
-      echo $PID > /var/run/rpcbind.pid
-      add_daemon rpcbind
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping rpcbind"
-    [ ! -z "$PID" ]  && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm /var/run/rpcbind.pid
-      rm_daemon rpcbind
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0




More information about the arch-commits mailing list