wok-next view at/receipt @ rev 20680

Up at (3.1.20), bluez (5.48)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 17 13:01:17 2018 +0300 (2018-05-17)
parents e3270f32432e
children 360e5b4f243b
line source
1 # SliTaz package receipt v2.
3 PACKAGE="at"
4 VERSION="3.1.20"
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="http://packages.debian.org/lenny/at"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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=$DESTDIR \
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 }
47 post_install() {
48 if ! grep -q '^atd:' "$1/etc/group"; then
49 chroot "$1/" addgroup -g 17 -S atd
50 chroot "$1/" adduser -S -H -D -g "atd daemon" -G atd -u 17 atd
51 fi
52 }