wok-next rev 21501

updated at (3.1.23 -> 3.2.1)
author Hans-G?nter Theisgen
date Fri Jun 19 07:10:20 2020 +0100 (2020-06-19)
parents 3fd40f35bcc5
children f872e8032482
files at/receipt
line diff
     1.1 --- a/at/receipt	Fri Jun 19 06:47:46 2020 +0100
     1.2 +++ b/at/receipt	Fri Jun 19 07:10:20 2020 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="at"
     1.7 -VERSION="3.1.23"
     1.8 +VERSION="3.2.1"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Schedule commands to be executed once"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -11,42 +11,46 @@
    1.13  
    1.14  TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
    1.15  WGET_URL="http://ftp.debian.org/debian/pool/main/a/at/$TARBALL"
    1.16 +WGET_URL="http://software.calhariz.com/$PACKAGE/$TARBALL"
    1.17  
    1.18  BUILD_DEPENDS="automake bison flex ssmtp"
    1.19  
    1.20 -compile_rules() {
    1.21 +compile_rules()
    1.22 +{
    1.23  	addgroup -g 17 -S atd
    1.24  	adduser -S -H -D -g "atd daemon" -G atd -u 17 atd
    1.25  	mkdir -p /var/spool/cron
    1.26  
    1.27  	sed -i '/docdir/s|=.*|= @docdir@|' Makefile.in
    1.28 -	autoreconf
    1.29 +	autoreconf &&
    1.30  
    1.31 -	./configure \
    1.32 -		--with-daemon_username=atd \
    1.33 -		--with-daemon_groupname=atd \
    1.34 -		SENDMAIL=/usr/sbin/sendmail \
    1.35 -		\
    1.36 -		--with-atspool=/var/spool/atd \
    1.37 -		--with-jobdir=/var/spool/atd \
    1.38 +	./configure				\
    1.39 +		--with-daemon_username=atd	\
    1.40 +		--with-daemon_groupname=atd	\
    1.41 +		SENDMAIL=/usr/sbin/sendmail	\
    1.42 +		--with-atspool=/var/spool/atd	\
    1.43 +		--with-jobdir=/var/spool/atd	\
    1.44  		$CONFIGURE_ARGS &&
    1.45  	make -j1 &&
    1.46 -	make -j1 \
    1.47 -		IROOT=$install \
    1.48 -		docdir=/usr/share/doc/$PACKAGE-$VERSION \
    1.49 -		atdocdir=/usr/share/doc/$PACKAGE-$VERSION \
    1.50 -		install || return 1
    1.51 +	make -j1 install					\
    1.52 +		IROOT=$install					\
    1.53 +		docdir=/usr/share/doc/$PACKAGE-$VERSION		\
    1.54 +		atdocdir=/usr/share/doc/$PACKAGE-$VERSION	||
    1.55 +	return 1
    1.56  
    1.57 -	install -Dm755 $stuff/atd $install/etc/init.d/atd
    1.58 +	install -Dm755 $stuff/atd	$install/etc/init.d/atd
    1.59  }
    1.60  
    1.61 -genpkg_rules() {
    1.62 +genpkg_rules()
    1.63 +{
    1.64  	copy @std
    1.65  	DEPENDS="libflex"
    1.66  }
    1.67  
    1.68 -post_install() {
    1.69 -	if ! grep -q '^atd:' "$1/etc/group"; then
    1.70 +post_install()
    1.71 +{
    1.72 +	if ! grep -q '^atd:' "$1/etc/group"
    1.73 +	  then
    1.74  		chroot "$1/" addgroup -g 17 -S atd
    1.75  		chroot "$1/" adduser -S -H -D -g "atd daemon" -G atd -u 17 atd
    1.76  	fi