wok-next annotate at/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents d5aab818505e
children
rev   line source
al@20680 1 # SliTaz package receipt v2.
pascal@7589 2
pascal@7589 3 PACKAGE="at"
Hans-G?nter@21501 4 VERSION="3.2.1"
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@21020 9 WEB_SITE="https://packages.debian.org/lenny/at"
al@20945 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/at.html"
al@20680 11
al@21020 12 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
al@20680 13 WGET_URL="http://ftp.debian.org/debian/pool/main/a/at/$TARBALL"
Hans-G?nter@21501 14 WGET_URL="http://software.calhariz.com/$PACKAGE/$TARBALL"
pascal@7589 15
al@20680 16 BUILD_DEPENDS="automake bison flex ssmtp"
pascal@15362 17
Hans-G?nter@21501 18 compile_rules()
Hans-G?nter@21501 19 {
al@20680 20 addgroup -g 17 -S atd
al@20680 21 adduser -S -H -D -g "atd daemon" -G atd -u 17 atd
al@20680 22 mkdir -p /var/spool/cron
al@20680 23
al@20680 24 sed -i '/docdir/s|=.*|= @docdir@|' Makefile.in
Hans-G?nter@21501 25 autoreconf &&
al@20680 26
Hans-G?nter@21501 27 ./configure \
Hans-G?nter@21501 28 --with-daemon_username=atd \
Hans-G?nter@21501 29 --with-daemon_groupname=atd \
Hans-G?nter@21501 30 SENDMAIL=/usr/sbin/sendmail \
Hans-G?nter@21501 31 --with-atspool=/var/spool/atd \
Hans-G?nter@21501 32 --with-jobdir=/var/spool/atd \
al@20680 33 $CONFIGURE_ARGS &&
slaxemulator@10992 34 make -j1 &&
Hans-G?nter@21501 35 make -j1 install \
Hans-G?nter@21501 36 IROOT=$install \
Hans-G?nter@21501 37 docdir=/usr/share/doc/$PACKAGE-$VERSION \
Hans-G?nter@21501 38 atdocdir=/usr/share/doc/$PACKAGE-$VERSION ||
Hans-G?nter@21501 39 return 1
al@20680 40
Hans-G?nter@21501 41 install -Dm755 $stuff/atd $install/etc/init.d/atd
pascal@7589 42 }
pascal@7589 43
Hans-G?nter@21501 44 genpkg_rules()
Hans-G?nter@21501 45 {
al@20680 46 copy @std
al@20945 47 DEPENDS="libflex"
pascal@7589 48 }
al@20680 49
Hans-G?nter@21501 50 post_install()
Hans-G?nter@21501 51 {
Hans-G?nter@21501 52 if ! grep -q '^atd:' "$1/etc/group"
Hans-G?nter@21501 53 then
al@20680 54 chroot "$1/" addgroup -g 17 -S atd
al@20680 55 chroot "$1/" adduser -S -H -D -g "atd daemon" -G atd -u 17 atd
al@20680 56 fi
al@20680 57 }