Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=a0517ad7693c11534409597127cb51906b294a22

commit a0517ad7693c11534409597127cb51906b294a22
Author: James Buren <r...@frugalware.org>
Date:   Mon Jun 4 21:02:55 2012 -0500

rpcbind-0.2.0-5-x86_64
* convert to use systemd schema

diff --git a/source/network/rpcbind/FrugalBuild 
b/source/network/rpcbind/FrugalBuild
index 966cb2e..ee5d493 100644
--- a/source/network/rpcbind/FrugalBuild
+++ b/source/network/rpcbind/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=rpcbind
pkgver=0.2.0
-pkgrel=4
+pkgrel=5
pkgdesc="A server that converts RPC program numbers into universal addresses."
_F_sourceforge_ext=".tar.bz2"
Finclude sourceforge
@@ -16,11 +16,14 @@ source=($source rpcbind-sunrpc.patch rpcbind.service)
sha1sums=('02f077372a76a8f9adfa696004aa437212c28617' \
'a25c2295b2e4bf4e3f924f1753350efaccf37c21' \
'803fd1b30b645f30ebf4df016cf047aea0659a84')
+_F_systemd_units=(rpcbind=e)
+Finclude systemd

build()
{
Fbuild
Ffile /lib/systemd/system/rpcbind.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network/rpcbind/rpcbind.install 
b/source/network/rpcbind/rpcbind.install
deleted file mode 100644
index 5ab584e..0000000
--- a/source/network/rpcbind/rpcbind.install
+++ /dev/null
@@ -1,26 +0,0 @@
-post_install()
-{
-       systemctl enable rpcbind.service >/dev/null 2>&1
-}
-
-post_upgrade()
-{
-       systemctl daemon-reload >/dev/null 2>&1
-       # this can be removed after Frugalware-1.6
-       rm -f /etc/rc.d/rc?.d/???rc.rpcbind
-}
-
-pre_remove()
-{
-       systemctl --no-reload disable rpcbind.service >/dev/null 2>&1
-       systemctl stop rpcbind.service >/dev/null 2>&1
-}
-
-post_remove()
-{
-       systemctl daemon-reload >/dev/null 2>&1
-}
-
-op=$1
-shift
-$op $*
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to