summaryrefslogtreecommitdiff
path: root/core/cronie
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-06-25 14:01:11 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-06-25 14:01:11 +0200
commitc94bf77ede06fa67fd3222ffa3fcad8898e1fd59 (patch)
tree3e4cc7f273a07c12fd69c589da434717e523664f /core/cronie
parent0f89996e6f908cc405cd44478860b864dcb189f1 (diff)
parent3b99c42eb8ca744e86e4e17197b1bf10642c6785 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/nginx/PKGBUILD community-testing/nginx/nginx.install community/chrony/PKGBUILD community/lxdm/PKGBUILD community/oidentd/PKGBUILD community/oss/PKGBUILD community/pdnsd/PKGBUILD community/ruby-cairo/PKGBUILD community/subtle/PKGBUILD core/kmod/PKGBUILD core/lvm2/PKGBUILD core/openldap/PKGBUILD core/systemd/PKGBUILD extra/smartmontools/PKGBUILD multilib/wine/PKGBUILD
Diffstat (limited to 'core/cronie')
-rw-r--r--core/cronie/PKGBUILD12
-rw-r--r--core/cronie/service10
2 files changed, 18 insertions, 4 deletions
diff --git a/core/cronie/PKGBUILD b/core/cronie/PKGBUILD
index c23101c6f..2e7ea639b 100644
--- a/core/cronie/PKGBUILD
+++ b/core/cronie/PKGBUILD
@@ -3,7 +3,7 @@
pkgname='cronie'
pkgver=1.4.8
-pkgrel=1
+pkgrel=2
pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
url='https://fedorahosted.org/cronie/'
license=('custom:BSD')
@@ -13,10 +13,12 @@ optdepends=('smtp-server: sending cron job output via email')
source=("https://fedorahosted.org/releases/c/r/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'cron.deny'
+ 'service'
'pam.d'
'rc.d')
sha1sums=('1d2ce3a6ca2a6f96ff31921e4060be3199dc10f3'
'0f279b8fb820340267d578dc85511c980715f91e'
+ '3038a05476829f72fc4918bee9176b273ce10340'
'5eff7fb31f6bc0a924243ff046704726cf20c221'
'c08c040ed5cb12bc4fd15639a5242d31ec247ef5')
@@ -48,17 +50,19 @@ package() {
make DESTDIR="${pkgdir}" install
- install -d "${pkgdir}"/etc/cron.{d,hourly,daily,weekly,monthly}
- install -d "${pkgdir}"/var/spool/{ana,}cron
chmod u+s "${pkgdir}"/usr/bin/crontab
+ install -d "${pkgdir}"/var/spool/{ana,}cron
+ install -d "${pkgdir}"/etc/cron.{d,hourly,daily,weekly,monthly}
install -Dm755 ../rc.d "${pkgdir}"/etc/rc.d/crond
install -Dm644 ../pam.d "${pkgdir}"/etc/pam.d/crond
install -Dm644 ../cron.deny "${pkgdir}"/etc/cron.deny
+ install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/cronie.service
+
install -Dm644 crond.sysconfig "${pkgdir}"/etc/conf.d/crond
+ install -Dm644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
install -Dm644 contrib/0hourly "${pkgdir}"/etc/cron.d/0hourly
install -Dm755 contrib/0anacron "${pkgdir}"/etc/cron.hourly/0anacron
- install -Dm644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING
}
diff --git a/core/cronie/service b/core/cronie/service
new file mode 100644
index 000000000..5ae193bfc
--- /dev/null
+++ b/core/cronie/service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Periodic Command Scheduler
+
+[Service]
+ExecStart=/usr/sbin/crond -n
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=multi-user.target