SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "antinat"

# SliTaz package receipt.

PACKAGE="antinat"
VERSION="0.91"
CATEGORY="network"
SHORT_DESC="Flexible SOCKS server and client library for proxy-based applications."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://antinat.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
#WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
WGET_URL="http://www.malsmith.net/download/?obj=$PACKAGE/$VERSION/$PACKAGE-source.tar.bz2"

DEPENDS="expat"
BUILD_DEPENDS="expat-dev"

# What is the latest version available today?
current_version()
{
    wget -O - http://www.malsmith.net/antinat/download/ 2>/dev/null | \
    sed '/source.tar/!d;s|/antinat-source.*||;s|.*/||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --sysconfdir=/etc    \
        $CONFIGURE_ARGS &&
    make &&
    make prefix=$DESTDIR/usr install

    cook_pick_manpages $src/man/*.1 $src/man/*.3 $src/man/*.4
}

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

    cp $src/etc/antinat.xml        $fs/etc
    chmod 600 $fs/etc/antinat.xml

    cp -a $install/usr/lib/*    $fs/usr/lib
    rm                $fs/usr/lib/*a
    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/var        $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)