wok-next view at/receipt @ rev 21159
updated diffutils (3.6 -> 3.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 20 08:46:59 2019 +0100 (2019-02-20) |
parents | 360e5b4f243b |
children | a93d060d2dd0 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="at"
4 VERSION="3.1.23"
5 CATEGORY="system-tools"
6 SHORT_DESC="Schedule commands to be executed once"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://packages.debian.org/lenny/at"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/at.html"
12 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
13 WGET_URL="http://ftp.debian.org/debian/pool/main/a/at/$TARBALL"
15 BUILD_DEPENDS="automake bison flex ssmtp"
17 compile_rules() {
18 addgroup -g 17 -S atd
19 adduser -S -H -D -g "atd daemon" -G atd -u 17 atd
20 mkdir -p /var/spool/cron
22 sed -i '/docdir/s|=.*|= @docdir@|' Makefile.in
23 autoreconf
25 ./configure \
26 --with-daemon_username=atd \
27 --with-daemon_groupname=atd \
28 SENDMAIL=/usr/sbin/sendmail \
29 \
30 --with-atspool=/var/spool/atd \
31 --with-jobdir=/var/spool/atd \
32 $CONFIGURE_ARGS &&
33 make -j1 &&
34 make -j1 \
35 IROOT=$install \
36 docdir=/usr/share/doc/$PACKAGE-$VERSION \
37 atdocdir=/usr/share/doc/$PACKAGE-$VERSION \
38 install || return 1
40 install -Dm755 $stuff/atd $install/etc/init.d/atd
41 }
43 genpkg_rules() {
44 copy @std
45 DEPENDS="libflex"
46 }
48 post_install() {
49 if ! grep -q '^atd:' "$1/etc/group"; then
50 chroot "$1/" addgroup -g 17 -S atd
51 chroot "$1/" adduser -S -H -D -g "atd daemon" -G atd -u 17 atd
52 fi
53 }