SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pptpclient"

# SliTaz package receipt.

PACKAGE="pptpclient"
VERSION="1.10.0"
CATEGORY="network"
TAGS="vpn tunnel"
SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol client."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://pptpclient.sourceforge.net/"

SOURCE="pptp"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

SUGGESTED="pptpclient-extra"
DEPENDS="ppp"
BUILD_DEPENDS="ppp"
CONFIG_FILES="/etc/ppp/options.pptp"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/pptpclient/files/pptp/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/pptp-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    make &&
    make DESTDIR=$DESTDIR install
}

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

    cp $src/Documentation/*        $install/usr/share/doc
    cp $src/README            $install/usr/share/doc
    cp $src/PROTOCOL-SECURITY    $install/usr/share/doc
    cp $src/NEWS            $install/usr/share/doc
    cp $src/USING            $install/usr/share/doc
    cp -a $install/usr/sbin/pptp    $fs/usr/sbin
    cp -a $install/etc        $fs/
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)