summaryrefslogtreecommitdiff
path: root/core/rpcbind
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-09-01 02:34:45 -0700
committerroot <root@rshg054.dnsready.net>2013-09-01 02:34:45 -0700
commitbf1faf85b813a0171c73fa31db1c5a5110d32420 (patch)
tree4c221d4b0dc3ca4f00da018be6d8959506b90123 /core/rpcbind
parentf20ef2edd6d039b732c288f67377cb752a8d5351 (diff)
Sun Sep 1 02:29:48 PDT 2013
Diffstat (limited to 'core/rpcbind')
-rw-r--r--core/rpcbind/PKGBUILD17
-rw-r--r--core/rpcbind/rpcbind.install13
2 files changed, 22 insertions, 8 deletions
diff --git a/core/rpcbind/PKGBUILD b/core/rpcbind/PKGBUILD
index 241e09780..d50b2bf4c 100644
--- a/core/rpcbind/PKGBUILD
+++ b/core/rpcbind/PKGBUILD
@@ -1,22 +1,23 @@
-# $Id: PKGBUILD 186778 2013-05-31 07:19:10Z tpowa $
+# $Id: PKGBUILD 193786 2013-08-31 10:51:12Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=rpcbind
-pkgver=0.2.0
-pkgrel=12
+pkgver=0.2.1
+pkgrel=2
pkgdesc="portmap replacement which supports RPC over various protocols"
arch=(i686 x86_64)
depends=('bash' 'glibc' 'libtirpc')
url="http://rpcbind.sourceforge.net"
license=('custom')
replaces=('portmap')
-source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.0.tar.bz2
+source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.1.tar.bz2
rpcbind-sunrpc.patch
rpcbind.service)
-md5sums=('1a77ddb1aaea8099ab19c351eeb26316'
+install=rpcbind.install
+md5sums=('0a5f9c2142af814c55d957aaab3bcc68'
'c02ac36a98baac70b8a26190524b7b73'
- 'a7b23a32be2eb52d7dec52da36d4eba1')
-
+ 'a7b23a32be2eb52d7dec52da36d4eba1'
+)
prepare() {
cd $srcdir/$pkgname-$pkgver
# patch for iana services file
@@ -25,7 +26,7 @@ prepare() {
build() {
cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr --enable-warmstarts --with-statedir=/run
+ ./configure --prefix=/usr --with-rpcuser=rpc --enable-warmstarts --with-statedir=/run
make
}
diff --git a/core/rpcbind/rpcbind.install b/core/rpcbind/rpcbind.install
new file mode 100644
index 000000000..3b5b7dc7f
--- /dev/null
+++ b/core/rpcbind/rpcbind.install
@@ -0,0 +1,13 @@
+post_install() {
+ getent group rpc &>/dev/null || groupadd -r -g 32 rpc >/dev/null
+ getent passwd rpc &>/dev/null || useradd -r -u 32 -g rpc -d /dev/null -s /bin/false -c "Rpcbind Daemon" rpc >/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+post_remove() {
+ getent passwd rpc &>/dev/null && userdel rpc >/dev/null
+ getent group rpc &>/dev/null && groupdel rpc >/dev/null
+ return 0
+}