From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/at/PKGBUILD | 30 ++++++++++++++++++++++++++++++ extra/at/atd | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 extra/at/PKGBUILD create mode 100644 extra/at/atd (limited to 'extra/at') 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 +# Contributor: Todd Musall + +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 -- cgit v1.2.3-54-g00ecf