wok annotate at/receipt @ rev 24805

Up apache (2.4.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 22 10:13:41 2022 +0000 (2022-03-22)
parents 5075d5ce24d0
children 00e3b45c063b
rev   line source
pascal@7589 1 # SliTaz package receipt.
pascal@7589 2
pascal@7589 3 PACKAGE="at"
Hans-G?nter@24329 4 VERSION="3.2.2"
pascal@7589 5 CATEGORY="system-tools"
pascal@7589 6 SHORT_DESC="Schedule commands to be executed once."
pascal@7589 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15362 8 LICENSE="GPL2"
Hans-G?nter@24329 9 WEB_SITE="https://packages.debian.org/lenny/at"
Hans-G?nter@20713 10
pascal@7589 11 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
pascal@7589 12 WGET_URL="http://ftp.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
pascal@7589 13
pascal@22687 14 DEPENDS="flex"
pascal@15362 15 BUILD_DEPENDS="bison flex ssmtp"
pascal@15362 16
pascal@24334 17 # What is the latest version available today?
pascal@24334 18 current_version()
pascal@24334 19 {
pascal@24334 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24334 21 sed "/${PACKAGE}_[0-9]/!d;/orig.tar/!d;s|.*${PACKAGE}_\\(.*\\).orig.tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24334 22 }
pascal@24334 23
pascal@7589 24 # Rules to configure and make the package.
pascal@7589 25 compile_rules()
pascal@7589 26 {
pascal@19284 27 sed -i 's|/doc|/share/doc|' Makefile*
Hans-G?nter@22405 28
Hans-G?nter@22405 29 ./configure \
Hans-G?nter@22405 30 --with-daemon_username=nobody \
Hans-G?nter@22405 31 --with-daemon_groupname=nogroup \
Hans-G?nter@22405 32 --with-atspool=/var/spool/atd \
Hans-G?nter@22405 33 --with-jobdir=/var/spool/atd \
Hans-G?nter@20713 34 $CONFIGURE_ARGS &&
Hans-G?nter@24329 35 make -j 1 &&
Hans-G?nter@24329 36 make install IROOT=$DESTDIR
Hans-G?nter@24329 37 # do not remove "-j 1"
pascal@7589 38 }
pascal@7589 39
pascal@7589 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7589 41 genpkg_rules()
pascal@7589 42 {
Hans-G?nter@22405 43 mkdir -p $fs/usr
Hans-G?nter@22405 44 mkdir -p $fs/etc/init.d
Hans-G?nter@22405 45
Hans-G?nter@22405 46 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22405 47 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22405 48 cp -a $install/etc $fs
Hans-G?nter@22405 49 cp -a $install/var $fs
Hans-G?nter@22405 50 cp -a $stuff/atd $fs/etc/init.d
Hans-G?nter@24329 51 chmod 6755 $fs/usr/bin/at
pascal@7589 52 }