wok-next annotate at/receipt @ rev 20945
Up at, flex (to fix bug #200)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 31 01:44:51 2018 +0300 (2018-08-31) |
parents | f0bf21e1abf7 |
children | d5aab818505e |
rev | line source |
---|---|
al@20680 | 1 # SliTaz package receipt v2. |
pascal@7589 | 2 |
pascal@7589 | 3 PACKAGE="at" |
al@20945 | 4 VERSION="3.1.23" |
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@20945 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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 |
al@20945 | 45 DEPENDS="libflex" |
pascal@7589 | 46 } |
al@20680 | 47 |
al@20680 | 48 post_install() { |
al@20680 | 49 if ! grep -q '^atd:' "$1/etc/group"; then |
al@20680 | 50 chroot "$1/" addgroup -g 17 -S atd |
al@20680 | 51 chroot "$1/" adduser -S -H -D -g "atd daemon" -G atd -u 17 atd |
al@20680 | 52 fi |
al@20680 | 53 } |