# SliTaz package receipt.

PACKAGE="at"
VERSION="3.1.13"
CATEGORY="system-tools"
SHORT_DESC="Schedule commands to be executed once."
MAINTAINER="pascal.bellard@slitaz.org"
BUILD_DEPENDS="bison flex ssmtp"
TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
WEB_SITE="http://packages.debian.org/lenny/at"
WGET_URL="http://ftp.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src

	./configure --with-daemon_username=nobody \
	--with-daemon_groupname=nogroup \
	--with-atspool=/var/spool/atd \
	--with-jobdir=/var/spool/atd \
	$CONFIGURE_ARGS &&
	make -j1 &&
	make -j1 IROOT=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr $fs/etc/init.d
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/sbin $fs/usr
	cp -a $_pkg/etc $fs
	cp -a $_pkg/var $fs
	cp -a $stuff/atd $fs/etc/init.d
}