SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ppp-pam"

# SliTaz package receipt.

PACKAGE="ppp-pam"
VERSION="2.4.7"
CATEGORY="network"
SHORT_DESC="Implements the Point-to-Point Protocol (PPP) with PAM support."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD GPL"
SOURCE="ppp"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="https://ppp.samba.org/"
WGET_URL="https://github.com/paulusmack/ppp/archive/$TARBALL"
CONFIG_FILES="/etc/ppp/options"
SECRET_FILES="/etc/ppp/*secrets"

DEPENDS="pam"
BUILD_DEPENDS="wget pam pam-dev"
PROVIDE="ppp:pam"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux
    ./configure --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR/usr install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/sbin $fs/usr
    [ -d "$install/usr/lib" ] && cp -a $install/usr/lib $fs/usr
}

pre_remove()
{
    tazpkg get-install  ${PACKAGE%-pam}
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)