SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "polipo"

# SliTaz package receipt.

PACKAGE="polipo"
VERSION="1.1.1"
CATEGORY="network"
SHORT_DESC="Small and fast caching web proxy."
MAINTAINER="paul@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://www.irif.fr/~jch/software/polipo/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/jech/$PACKAGE/archive/$TARBALL"

DEPENDS=""
BUILD_DEPENDS="texinfo"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/polipo-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    make all
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    mkdir -p $fs/etc/polipo
    mkdir -p $fs/usr/share/polipo/www/doc

    cp -a $src/polipo        $fs/usr/bin
    cp -a $src/config.sample    $fs/etc/polipo/config
    cp -a $src/forbidden.sample    $fs/etc/polipo/forbidden
    cp -a $src/localindex.html    $fs/usr/share/polipo/www/index.html
    cp -a $src/html/*        $fs/usr/share/polipo/www/doc
}

# Create a disk cache.                  
post_install()                          
{
    echo
    echo -n "Creating disk cache..."                                    
    mkdir "$1/var/cache/polipo"
    chown tux.tux "$1/var/cache/polipo"
    status
}  

# Remove disk cache.
post_remove()
{
    echo -n "Removing disk cache..."
    rm -rf "$1/var/cache/polipo"
    status
}                                    
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)