SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libwrap"

# SliTaz package receipt.

PACKAGE="libwrap"
VERSION="7.6"
CATEGORY="system-tools"
SHORT_DESC="Wietse Venema's network logger."
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
SOURCE="tcp_wrappers"
TARBALL="${SOURCE}_${VERSION}.tar.gz"
WEB_SITE="http://ftp.porcupine.org/pub/security/index.html"
WGET_URL="ftp://ftp.porcupine.org/pub/security/$TARBALL"
HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/tcp_wrappers_[0-9]/!d;s|.*tcp_wrappers_||;s|.t.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    # Patch from Linux From Scratch
    [ -f done.tcp_wrappers-7.6-shared_lib_plus_plus-1.patch ] ||
    patch -p1 -i $stuff/tcp_wrappers-7.6-shared_lib_plus_plus-1.patch
    touch done.tcp_wrappers-7.6-shared_lib_plus_plus-1.patch
    sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c 
        
    make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib 
    cp -a $src/shared/*.so* $fs/usr/lib
}

clean_wok()
{
    rm -rf $PWD/${SOURCE}_${VERSION}
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)