summaryrefslogtreecommitdiff
path: root/community/fcron
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
committerroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
commit4319f36e44d4e7c70bf010c3286bb1739c59d4de (patch)
tree570e5a756192067d69cbabeab8fcf6b81cec3c51 /community/fcron
parent11357a5ab02a7d536375fb8333b2fb67278b4a36 (diff)
Sun Jun 24 00:04:11 UTC 2012
Diffstat (limited to 'community/fcron')
-rwxr-xr-xcommunity/fcron/PKGBUILD15
-rw-r--r--community/fcron/fcron.service10
2 files changed, 20 insertions, 5 deletions
diff --git a/community/fcron/PKGBUILD b/community/fcron/PKGBUILD
index 817ceef09..8aa35f054 100755
--- a/community/fcron/PKGBUILD
+++ b/community/fcron/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 72128 2012-06-08 23:36:39Z dreisner $
+# $Id: PKGBUILD 72788 2012-06-22 12:50:42Z dreisner $
# Contributor: Giorgio Lando <lando at imap dot cc>
# Contributor: Sergej Pupykin
# Contributor: Thomas Bächler
@@ -6,7 +6,7 @@
pkgname=fcron
pkgver=3.0.6
-pkgrel=6
+pkgrel=7
pkgdesc="feature-rich cron implementation"
arch=(i686 x86_64)
url="http://fcron.free.fr"
@@ -20,12 +20,13 @@ backup=(etc/fcron/fcron.conf etc/fcron/fcron.allow etc/fcron/fcron.deny \
var/spool/fcron/systab var/spool/fcron/systab.orig)
options=('emptydirs' '!makeflags')
source=(http://fcron.free.fr/archives/$pkgname-$pkgver.src.tar.gz fcron.rc \
- systab systab.orig run-cron)
-md5sums=('ced7ca753517eac67502f3fec3908d39'
+ systab systab.orig run-cron fcron.service)
+md5sums=('69ebcb41921e2a282f41ebecb3a27053'
'e0c3f0bdc3c98fbbe46eff19001c18f2'
'938722c6654ef7b07f4aa10001905ba1'
'bfb7daa22ebe22b9917e455c1ca4a382'
- '5ff0cdcb9ec99778938ac6ef26800327')
+ '5ff0cdcb9ec99778938ac6ef26800327'
+ 'ab589cc6813ec32b5e96bf05c2b51c4c')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -68,6 +69,10 @@ package() {
# Install run-cron script to make fcron run without dcron
install -D -m755 "$srcdir/run-cron" "$pkgdir/usr/sbin/run-cron"
+ # Install systemd service
+ install -D -m644 "$srcdir/fcron.service" \
+ "$pkgdir/usr/lib/systemd/system/fcron.service"
+
# avoid conflict with filesystem>=2012.06
rmdir "$pkgdir/var/run"
}
diff --git a/community/fcron/fcron.service b/community/fcron/fcron.service
new file mode 100644
index 000000000..a47b4f19b
--- /dev/null
+++ b/community/fcron/fcron.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Cron Daemon
+
+[Service]
+Type=forking
+PIDFile=/run/fcron.pid
+ExecStart=/usr/sbin/fcron
+
+[Install]
+WantedBy=multi-user.target