SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "at"

# SliTaz package receipt.

PACKAGE="at"
VERSION="3.2.2"
CATEGORY="system-tools"
SHORT_DESC="Schedule commands to be executed once."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://packages.debian.org/lenny/at"

TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
#WGET_URL="http://software.calhariz.com/at/$TARBALL"
WGET_URL="http://sources.buildroot.net/at/$TARBALL"

DEPENDS="flex"
BUILD_DEPENDS="bison flex ssmtp"

# What is the latest version available today?
current_version()
{
    wget -O - http://software.calhariz.com/at/ 2>/dev/null | \
    sed "/${PACKAGE}_[0-9]/!d;/orig.tar/!d;s|.*${PACKAGE}_\\(.*\\).orig.tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|/doc|/share/doc|' Makefile*

    ./configure                \
        --with-daemon_username=nobody    \
        --with-daemon_groupname=nogroup    \
        --with-atspool=/var/spool/atd    \
        --with-jobdir=/var/spool/atd    \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make install IROOT=$DESTDIR
    # do not remove "-j 1"
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    mkdir -p $fs/etc/init.d

    cp -a $install/usr/bin    $fs/usr
    cp -a $install/usr/sbin    $fs/usr
    cp -a $install/etc    $fs
    cp -a $install/var    $fs
    cp -a $stuff/atd    $fs/etc/init.d
    chmod 6755        $fs/usr/bin/at
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)