Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=ad11e9e729b5bd99c741c14d734ccf481a22eb4c
commit ad11e9e729b5bd99c741c14d734ccf481a22eb4c Author: Miklos Vajna <vmik...@frugalware.org> Date: Tue Jun 28 11:24:37 2011 +0200 at-3.1.13-1-i686 - version bump - add native systemd unit diff --git a/source/apps/at/FrugalBuild b/source/apps/at/FrugalBuild index ba4b5d7..6c61437 100644 --- a/source/apps/at/FrugalBuild +++ b/source/apps/at/FrugalBuild @@ -2,11 +2,11 @@ # Maintainer: Miklos Vajna <vmik...@frugalware.org> pkgname=at -pkgver=3.1.12 -pkgrel=3 +pkgver=3.1.13 +pkgrel=1 pkgdesc="Allows you to run jobs at specified times" url="http://ftp.debian.org/debian/pool/main/a/at/" -backup=('etc/at.deny') +backup=('etc/at.deny' 'etc/sysconfig/atd') depends=('glibc') makedepends=('postfix') groups=('apps') @@ -14,12 +14,14 @@ archs=('i686' 'x86_64') Fpkgversep="_" up2date="Flastarchive http://ftp.debian.org/debian/pool/main/a/at/ .orig.tar.gz" source=(http://ftp.debian.org/debian/pool/main/a/at/${pkgname}_$pkgver.orig.tar.gz \ - 00-$pkgname-3.1.10.1-makefile.patch rc.atd rc.atd-{de,hu}.po) -sha1sums=('1cf47df152e9d119e083c11eefaf6368c993a8af' \ + 00-$pkgname-3.1.10.1-makefile.patch rc.atd rc.atd-{de,hu}.po atd.service atd) +sha1sums=('9873e0c38403ef58364912d0b505fd20798fd400' \ '4703618c6e9e09a177287031f16025ca33bc831c' \ 'df864603b360e3b549d97f6fb7f960e2ae3245df' \ 'd77fa8a0fe28f84ee91e2513fc4bb7f5a20eb279' \ - '06b0732d5af12749cde854ab4d767c4426aa11fa') + '06b0732d5af12749cde854ab4d767c4426aa11fa' \ + '00833cb321b56df8c3d9a0db84dd19ff0bb58d1c' \ + '984d69936870c6a28f0f504681ea8198ebe1d90c') build() { # To build as user. @@ -41,6 +43,8 @@ build() { chown daemon:daemon $Fdestdir/var/spool/atjobs/.SEQ Frcd2 atd + Ffile /lib/systemd/system/atd.service + Ffile /etc/sysconfig/atd } diff --git a/source/apps/at/at.install b/source/apps/at/at.install index 74d869b..a07aebb 100644 --- a/source/apps/at/at.install +++ b/source/apps/at/at.install @@ -1,16 +1,27 @@ post_install() { - /usr/sbin/chkconfig --add rc.atd + chkconfig --add rc.atd + systemctl enable atd.service >/dev/null 2>&1 } post_upgrade() { - post_install + systemctl daemon-reload >/dev/null 2>&1 + if [ `vercmp $2 3.1.13-1` -lt 0 ]; then + if chkconfig rc.atd; then + post_install + fi + fi } pre_remove() { - /usr/sbin/chkconfig --del rc.atd + chkconfig --del rc.atd + systemctl --no-reload disable atd.service >/dev/null 2>&1 + systemctl stop atd.service >/dev/null 2>&1 +} + +post_remove() { + systemctl daemon-reload >/dev/null 2>&1 } op=$1 shift - $op $* diff --git a/source/apps/at/atd b/source/apps/at/atd new file mode 100644 index 0000000..056ce81 --- /dev/null +++ b/source/apps/at/atd @@ -0,0 +1,9 @@ +# specify additional command line arguments for atd +# +# -l Specifies a limiting load factor, over which batch jobs should not be run, instead of the compile-time +# choice of 0.8. For an SMP system with n CPUs, you will probably want to set this higher than n-1. +# +# -b Specifiy the minimum interval in seconds between the start of two batch jobs (60 default). + +#example: +#OPTS="-l 4 -b 120" diff --git a/source/apps/at/atd.service b/source/apps/at/atd.service new file mode 100644 index 0000000..ccf4df4 --- /dev/null +++ b/source/apps/at/atd.service @@ -0,0 +1,10 @@ +[Unit] +Description=Job spooling tools +After=syslog.target + +[Service] +EnvironmentFile=/etc/sysconfig/atd +ExecStart=/usr/sbin/atd -f $OPTS + +[Install] +WantedBy=multi-user.target _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git