wok-next annotate at/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | e3270f32432e |
children | 360e5b4f243b |
rev | line source |
---|---|
al@20680 | 1 # SliTaz package receipt v2. |
pascal@7589 | 2 |
pascal@7589 | 3 PACKAGE="at" |
al@20680 | 4 VERSION="3.1.20" |
pascal@7589 | 5 CATEGORY="system-tools" |
al@20680 | 6 SHORT_DESC="Schedule commands to be executed once" |
pascal@7589 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15362 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="http://packages.debian.org/lenny/at" |
al@20680 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/at.html" |
al@20680 | 11 |
pascal@7589 | 12 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz" |
al@20680 | 13 WGET_URL="http://ftp.debian.org/debian/pool/main/a/at/$TARBALL" |
pascal@7589 | 14 |
al@20680 | 15 BUILD_DEPENDS="automake bison flex ssmtp" |
pascal@15362 | 16 |
al@20680 | 17 compile_rules() { |
al@20680 | 18 addgroup -g 17 -S atd |
al@20680 | 19 adduser -S -H -D -g "atd daemon" -G atd -u 17 atd |
al@20680 | 20 mkdir -p /var/spool/cron |
al@20680 | 21 |
al@20680 | 22 sed -i '/docdir/s|=.*|= @docdir@|' Makefile.in |
al@20680 | 23 autoreconf |
al@20680 | 24 |
al@20680 | 25 ./configure \ |
al@20680 | 26 --with-daemon_username=atd \ |
al@20680 | 27 --with-daemon_groupname=atd \ |
al@20680 | 28 SENDMAIL=/usr/sbin/sendmail \ |
al@20680 | 29 \ |
al@20680 | 30 --with-atspool=/var/spool/atd \ |
al@20680 | 31 --with-jobdir=/var/spool/atd \ |
al@20680 | 32 $CONFIGURE_ARGS && |
slaxemulator@10992 | 33 make -j1 && |
al@20680 | 34 make -j1 \ |
al@20680 | 35 IROOT=$DESTDIR \ |
al@20680 | 36 docdir=/usr/share/doc/$PACKAGE-$VERSION \ |
al@20680 | 37 atdocdir=/usr/share/doc/$PACKAGE-$VERSION \ |
al@20680 | 38 install || return 1 |
al@20680 | 39 |
al@20680 | 40 install -Dm755 $stuff/atd $install/etc/init.d/atd |
pascal@7589 | 41 } |
pascal@7589 | 42 |
al@20680 | 43 genpkg_rules() { |
al@20680 | 44 copy @std |
pascal@7589 | 45 } |
al@20680 | 46 |
al@20680 | 47 post_install() { |
al@20680 | 48 if ! grep -q '^atd:' "$1/etc/group"; then |
al@20680 | 49 chroot "$1/" addgroup -g 17 -S atd |
al@20680 | 50 chroot "$1/" adduser -S -H -D -g "atd daemon" -G atd -u 17 atd |
al@20680 | 51 fi |
al@20680 | 52 } |