summaryrefslogtreecommitdiff
path: root/extra/at
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/at
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/at')
-rw-r--r--extra/at/PKGBUILD30
-rw-r--r--extra/at/atd35
2 files changed, 65 insertions, 0 deletions
diff --git a/extra/at/PKGBUILD b/extra/at/PKGBUILD
new file mode 100644
index 000000000..a5ddc81e5
--- /dev/null
+++ b/extra/at/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 67220 2010-02-04 22:36:24Z giovanni $
+# Maintainer: Judd Vinet <jvinet@zeroflux.org>
+# Contributor: Todd Musall <tmusall@comcast.net>
+
+pkgname=at
+pkgver=3.1.12
+pkgrel=1
+pkgdesc="AT and batch delayed command scheduling utility and daemon."
+arch=('i686' 'x86_64')
+url="http://www.debian.org"
+license=('GPL')
+depends=('pam')
+makedepends=('ssmtp')
+backup=('etc/at.deny')
+source=(http://ftp.debian.org/debian/pool/main/a/at/at_${pkgver}.orig.tar.gz
+ atd)
+md5sums=('1e67991776148fb319fd77a2e599a765'
+ '35574e34829e7df07a3269d4ab646a29')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-jobdir=/var/spool/atd \
+ --with-atspool=/var/spool/atd || return 1
+ make || return 1
+ make IROOT="${pkgdir}" docdir=/usr/share/doc install || return 1
+ install -D -m755 ${srcdir}/atd "${pkgdir}/etc/rc.d/atd" || return 1
+}
diff --git a/extra/at/atd b/extra/at/atd
new file mode 100644
index 000000000..d10a46a3b
--- /dev/null
+++ b/extra/at/atd
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/atd`
+case "$1" in
+ start)
+ stat_busy "Starting ATD Daemon"
+ [ -z "$PID" ] && /usr/sbin/atd
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon atd
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping ATD Daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon atd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0