Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=0be6f3b009d5d2de8d34ece841cd30e0bae5648d

commit 0be6f3b009d5d2de8d34ece841cd30e0bae5648d
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Fri Mar 4 13:17:18 2011 +0100

rpcbind-0.2.0-3-i686

- depend on systemd for service file handling in install scriptlet

diff --git a/source/network/rpcbind/FrugalBuild 
b/source/network/rpcbind/FrugalBuild
index 818161d..01b8caf 100644
--- a/source/network/rpcbind/FrugalBuild
+++ b/source/network/rpcbind/FrugalBuild
@@ -3,11 +3,12 @@

pkgname=rpcbind
pkgver=0.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="A server that converts RPC program numbers into universal addresses."
_F_sourceforge_ext=".tar.bz2"
Finclude sourceforge
depends=('libtirpc' 'bash')
+rodepends=('systemd')
replaces=('portmap')
groups=('network')
archs=('i686' 'x86_64' 'ppc')
diff --git a/source/network/rpcbind/rpcbind.install 
b/source/network/rpcbind/rpcbind.install
index 2474acf..9e2d802 100644
--- a/source/network/rpcbind/rpcbind.install
+++ b/source/network/rpcbind/rpcbind.install
@@ -1,13 +1,13 @@
post_install()
{
chkconfig --add rc.rpcbind
-       ln -s '/lib/systemd/system/rpcbind.service' 
'/etc/systemd/system/multi-user.target.wants/rpcbind.service'
+       systemctl enable rpcbind.service >/dev/null 2>&1
}

post_upgrade()
{
systemctl daemon-reload >/dev/null 2>&1
-       if [ `vercmp $2 0.2.0-2` -lt 0 ] ; then
+       if [ `vercmp $2 0.2.0-3` -lt 0 ] ; then
if chkconfig rc.rpcbind; then
post_install
fi
@@ -17,7 +17,7 @@ post_upgrade()
pre_remove()
{
chkconfig --del rc.rpcbind
-       rm -f '/etc/systemd/system/multi-user.target.wants/rpcbind.service'
+       systemctl --no-reload disable foobar.service >/dev/null 2>&1
systemctl stop rpcbind.service >/dev/null 2>&1
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to