[arch-commits] Commit in rpcbind/trunk (PKGBUILD rpcbind.install)
Tobias Powalowski
tpowa at nymeria.archlinux.org
Tue Aug 20 09:44:34 UTC 2013
Date: Tuesday, August 20, 2013 @ 11:44:33
Author: tpowa
Revision: 193447
upgpkg: rpcbind 0.2.1-2
bump to latest version, introduce rpc user/group
Added:
rpcbind/trunk/rpcbind.install
Modified:
rpcbind/trunk/PKGBUILD
-----------------+
PKGBUILD | 5 +++--
rpcbind.install | 13 +++++++++++++
2 files changed, 16 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-08-20 09:43:33 UTC (rev 193446)
+++ PKGBUILD 2013-08-20 09:44:33 UTC (rev 193447)
@@ -3,7 +3,7 @@
pkgname=rpcbind
pkgver=0.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="portmap replacement which supports RPC over various protocols"
arch=(i686 x86_64)
depends=('bash' 'glibc' 'libtirpc')
@@ -13,6 +13,7 @@
source=(http://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-0.2.1.tar.bz2
rpcbind-sunrpc.patch
rpcbind.service)
+install=rpcbind.install
md5sums=('0a5f9c2142af814c55d957aaab3bcc68'
'c02ac36a98baac70b8a26190524b7b73'
'a7b23a32be2eb52d7dec52da36d4eba1'
@@ -25,7 +26,7 @@
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
}
Added: rpcbind.install
===================================================================
--- rpcbind.install (rev 0)
+++ rpcbind.install 2013-08-20 09:44:33 UTC (rev 193447)
@@ -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
+}
More information about the arch-commits
mailing list