[Frugalware-git] frugalware-current: dcron-4.4-5-i686

Miklos Vajna vmiklos at frugalware.org
Fri Mar 4 13:06:25 CET 2011


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

commit 846149ffb2023eba181e8938ef34541de8d4ebff
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Fri Mar 4 12:58:42 2011 +0100

dcron-4.4-5-i686

- depend on systemd for service file handling in install scriptlet

diff --git a/source/base/dcron/FrugalBuild b/source/base/dcron/FrugalBuild
index 35c7657..d19b8c9 100644
--- a/source/base/dcron/FrugalBuild
+++ b/source/base/dcron/FrugalBuild
@@ -3,10 +3,11 @@

pkgname=dcron
pkgver=4.4
-pkgrel=4
+pkgrel=5
pkgdesc="Dillon's Cron daemon"
url="http://www.jimpryor.net/linux/dcron"
depends=('glibc>=2.8-3')
+rodepends=('systemd')
rodepends=('sysklogd>=1.5-3' 'psmisc>=22.6-3')
groups=('base')
archs=('i686' 'x86_64' 'ppc')
diff --git a/source/base/dcron/dcron.install b/source/base/dcron/dcron.install
index 5f9ae7b..ef03797 100644
--- a/source/base/dcron/dcron.install
+++ b/source/base/dcron/dcron.install
@@ -3,8 +3,7 @@ post_install()
chkconfig --add rc.crond
# On install (not upgrade), enable (but don't start) the
# units by default
-	mkdir -p /etc/systemd/system/multi-user.target.wants
-	ln -sf '/lib/systemd/system/crond.service' '/etc/systemd/system/multi-user.target.wants/crond.service'
+	systemctl enable crond.service >/dev/null 2>&1
}

post_upgrade()
@@ -12,7 +11,7 @@ post_upgrade()
# Reload init system configuration, to make systemd honour
# changed unit files
systemctl daemon-reload >/dev/null 2>&1
-	if [ `vercmp $2 4.4-2` -lt 0 ] ; then
+	if [ `vercmp $2 4.4-5` -lt 0 ] ; then
if chkconfig rc.crond; then
post_install
fi
@@ -23,7 +22,7 @@ pre_remove()
{
chkconfig --del rc.crond
# On uninstall (not upgrade), disable and stop the units
-	rm -f '/etc/systemd/system/multi-user.target.wants/crond.service'
+	systemctl --no-reload disable crond.service >/dev/null 2>&1
systemctl stop crond.service >/dev/null 2>&1
}


More information about the Frugalware-git mailing list