[arch-commits] Commit in cronie/repos (12 files)
Tom Gundersen
tomegun at archlinux.org
Thu Aug 9 01:31:12 UTC 2012
Date: Wednesday, August 8, 2012 @ 21:31:12
Author: tomegun
Revision: 165024
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
cronie/repos/testing-i686/
cronie/repos/testing-i686/PKGBUILD
(from rev 165023, cronie/trunk/PKGBUILD)
cronie/repos/testing-i686/cron.deny
(from rev 165023, cronie/trunk/cron.deny)
cronie/repos/testing-i686/pam.d
(from rev 165023, cronie/trunk/pam.d)
cronie/repos/testing-i686/rc.d
(from rev 165023, cronie/trunk/rc.d)
cronie/repos/testing-i686/service
(from rev 165023, cronie/trunk/service)
cronie/repos/testing-x86_64/
cronie/repos/testing-x86_64/PKGBUILD
(from rev 165023, cronie/trunk/PKGBUILD)
cronie/repos/testing-x86_64/cron.deny
(from rev 165023, cronie/trunk/cron.deny)
cronie/repos/testing-x86_64/pam.d
(from rev 165023, cronie/trunk/pam.d)
cronie/repos/testing-x86_64/rc.d
(from rev 165023, cronie/trunk/rc.d)
cronie/repos/testing-x86_64/service
(from rev 165023, cronie/trunk/service)
--------------------------+
testing-i686/PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++++++++++
testing-i686/cron.deny | 1
testing-i686/pam.d | 10 ++++++
testing-i686/rc.d | 38 +++++++++++++++++++++++
testing-i686/service | 10 ++++++
testing-x86_64/PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++++++++++
testing-x86_64/cron.deny | 1
testing-x86_64/pam.d | 10 ++++++
testing-x86_64/rc.d | 38 +++++++++++++++++++++++
testing-x86_64/service | 10 ++++++
10 files changed, 262 insertions(+)
Copied: cronie/repos/testing-i686/PKGBUILD (from rev 165023, cronie/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1,72 @@
+# Contributor: Kaiting Chen <kaiting.chen at kiwilight.com>
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname='cronie'
+pkgver=1.4.8
+pkgrel=3
+pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
+url='https://fedorahosted.org/cronie/'
+license=('custom:BSD')
+arch=('i686' 'x86_64')
+depends=('pam' 'bash' 'run-parts')
+optdepends=('pm-utils: defer anacron when on battery power'
+ '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')
+
+backup=('etc/anacrontab'
+ 'etc/conf.d/crond'
+ 'etc/pam.d/crond'
+ 'etc/cron.deny')
+
+conflicts=('cron')
+provides=('cron')
+groups=('base')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-anacron \
+ --with-inotify \
+ --with-pam \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ 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 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING
+
+ # Provide native service for arch-daemons generator
+ ln -s cronie.service "$pkgdir/usr/lib/systemd/system/crond.service"
+}
Copied: cronie/repos/testing-i686/cron.deny (from rev 165023, cronie/trunk/cron.deny)
===================================================================
--- testing-i686/cron.deny (rev 0)
+++ testing-i686/cron.deny 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1 @@
+# without this file, only users listed in /etc/cron.allow can use crontab
Copied: cronie/repos/testing-i686/pam.d (from rev 165023, cronie/trunk/pam.d)
===================================================================
--- testing-i686/pam.d (rev 0)
+++ testing-i686/pam.d 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1,10 @@
+auth required pam_unix.so
+auth required pam_env.so
+
+account required pam_access.so
+account required pam_unix.so
+account required pam_time.so
+
+session required pam_loginuid.so
+session required pam_limits.so
+session required pam_unix.so
Copied: cronie/repos/testing-i686/rc.d (from rev 165023, cronie/trunk/rc.d)
===================================================================
--- testing-i686/rc.d (rev 0)
+++ testing-i686/rc.d 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+name=crond
+. /etc/conf.d/crond
+PID=$(pidof -o %PPID /usr/sbin/crond)
+
+case "$1" in
+start)
+ stat_busy "Starting $name daemon"
+ [[ -z "$PID" ]] && /usr/sbin/crond $CRONDARGS &>/dev/null \
+ && { add_daemon $name; stat_done; } \
+ || { stat_fail; exit 1; }
+ ;;
+stop)
+ stat_busy "Stopping $name daemon"
+ [[ -n "$PID" ]] && kill $PID &>/dev/null \
+ && { rm_daemon $name; stat_done; } \
+ || { stat_fail; exit 1; }
+ ;;
+reload)
+ stat_busy "Reloading $name daemon"
+ [[ -n "$PID" ]] && kill -HUP $PID &>/dev/null \
+ && { stat_done; } \
+ || { stat_fail; exit 1; }
+ ;;
+restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+*)
+ echo "usage: $0 {start|stop|restart|reload}"
+ ;;
+esac
+exit 0
Copied: cronie/repos/testing-i686/service (from rev 165023, cronie/trunk/service)
===================================================================
--- testing-i686/service (rev 0)
+++ testing-i686/service 2012-08-09 01:31:12 UTC (rev 165024)
@@ -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
Copied: cronie/repos/testing-x86_64/PKGBUILD (from rev 165023, cronie/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1,72 @@
+# Contributor: Kaiting Chen <kaiting.chen at kiwilight.com>
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname='cronie'
+pkgver=1.4.8
+pkgrel=3
+pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
+url='https://fedorahosted.org/cronie/'
+license=('custom:BSD')
+arch=('i686' 'x86_64')
+depends=('pam' 'bash' 'run-parts')
+optdepends=('pm-utils: defer anacron when on battery power'
+ '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')
+
+backup=('etc/anacrontab'
+ 'etc/conf.d/crond'
+ 'etc/pam.d/crond'
+ 'etc/cron.deny')
+
+conflicts=('cron')
+provides=('cron')
+groups=('base')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-anacron \
+ --with-inotify \
+ --with-pam \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ 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 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING
+
+ # Provide native service for arch-daemons generator
+ ln -s cronie.service "$pkgdir/usr/lib/systemd/system/crond.service"
+}
Copied: cronie/repos/testing-x86_64/cron.deny (from rev 165023, cronie/trunk/cron.deny)
===================================================================
--- testing-x86_64/cron.deny (rev 0)
+++ testing-x86_64/cron.deny 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1 @@
+# without this file, only users listed in /etc/cron.allow can use crontab
Copied: cronie/repos/testing-x86_64/pam.d (from rev 165023, cronie/trunk/pam.d)
===================================================================
--- testing-x86_64/pam.d (rev 0)
+++ testing-x86_64/pam.d 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1,10 @@
+auth required pam_unix.so
+auth required pam_env.so
+
+account required pam_access.so
+account required pam_unix.so
+account required pam_time.so
+
+session required pam_loginuid.so
+session required pam_limits.so
+session required pam_unix.so
Copied: cronie/repos/testing-x86_64/rc.d (from rev 165023, cronie/trunk/rc.d)
===================================================================
--- testing-x86_64/rc.d (rev 0)
+++ testing-x86_64/rc.d 2012-08-09 01:31:12 UTC (rev 165024)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+name=crond
+. /etc/conf.d/crond
+PID=$(pidof -o %PPID /usr/sbin/crond)
+
+case "$1" in
+start)
+ stat_busy "Starting $name daemon"
+ [[ -z "$PID" ]] && /usr/sbin/crond $CRONDARGS &>/dev/null \
+ && { add_daemon $name; stat_done; } \
+ || { stat_fail; exit 1; }
+ ;;
+stop)
+ stat_busy "Stopping $name daemon"
+ [[ -n "$PID" ]] && kill $PID &>/dev/null \
+ && { rm_daemon $name; stat_done; } \
+ || { stat_fail; exit 1; }
+ ;;
+reload)
+ stat_busy "Reloading $name daemon"
+ [[ -n "$PID" ]] && kill -HUP $PID &>/dev/null \
+ && { stat_done; } \
+ || { stat_fail; exit 1; }
+ ;;
+restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+*)
+ echo "usage: $0 {start|stop|restart|reload}"
+ ;;
+esac
+exit 0
Copied: cronie/repos/testing-x86_64/service (from rev 165023, cronie/trunk/service)
===================================================================
--- testing-x86_64/service (rev 0)
+++ testing-x86_64/service 2012-08-09 01:31:12 UTC (rev 165024)
@@ -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
More information about the arch-commits
mailing list