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

commit f74fe1a48402aa304ca98d3d71d274404e9b8bab
Author: James Buren <r...@frugalware.org>
Date:   Mon Jun 4 17:43:42 2012 -0500

dcron-4.5-4-x86_64
* convert to use systemd schema

diff --git a/source/base/dcron/FrugalBuild b/source/base/dcron/FrugalBuild
index 3a1f844..58c763e 100644
--- a/source/base/dcron/FrugalBuild
+++ b/source/base/dcron/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=dcron
pkgver=4.5
-pkgrel=3
+pkgrel=4
pkgdesc="Dillon's Cron daemon"
url="http://www.jimpryor.net/linux/dcron.html";
depends=('systemd' 'psmisc>=22.6-3')
@@ -15,6 +15,8 @@ up2date="Flasttar $url"
source=(http://www.jimpryor.net/linux/releases/dcron-$pkgver.tar.gz \
dcron4-add-systemd-unit-file.patch \
run-parts run-parts.8.gz root)
+_F_systemd_units=(crond=e)
+Finclude systemd
sha1sums=('a1ca54820386d45dab6f7726482fa1aeddaa248f' \
'b5c8ac94760866bdcb311ea849ff290101d77b24' \
'b9fa3287f26a3f882bc50256b8a017f94458aa47' \
@@ -32,6 +34,7 @@ build()
Fexe /usr/bin/run-parts
Ffile /usr/man/man8/run-parts.8
Ffilerel extra/crond.service /lib/systemd/system/crond.service
+       Fgenscriptlet
}

# optimization ok
diff --git a/source/base/dcron/dcron.install b/source/base/dcron/dcron.install
deleted file mode 100644
index c53120c..0000000
--- a/source/base/dcron/dcron.install
+++ /dev/null
@@ -1,34 +0,0 @@
-post_install()
-{
-       # On install (not upgrade), enable (but don't start) the
-       # units by default
-       systemctl enable crond.service >/dev/null 2>&1
-}
-
-post_upgrade()
-{
-       # Reload init system configuration, to make systemd honour
-       # changed unit files
-       systemctl daemon-reload >/dev/null 2>&1
-       # this can be removed after Frugalware-1.6
-       rm -f /etc/rc.d/rc?.d/???rc.crond
-}
-
-pre_remove()
-{
-       # On uninstall (not upgrade), disable and stop the units
-       systemctl --no-reload disable crond.service >/dev/null 2>&1
-       systemctl stop crond.service >/dev/null 2>&1
-}
-
-post_remove()
-{
-       # Reload init system configuration, to make systemd honour
-       # deleted unit files
-       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