SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wvstreams"

# SliTaz package receipt.

PACKAGE="wvstreams"
VERSION="4.6.1"
CATEGORY="network"
SHORT_DESC="makes modem-based connection to Internet"
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://web.archive.org/web/20110504183753/http://alumnit.ca:80/wiki/index.php?page=WvDial"
WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"
TAGS="network 3G"

DEPENDS="ppp libssl xplc readline"
BUILD_DEPENDS="ppp-dev openssl-dev xplc-dev readline-dev bash"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/apenwarr/wvstreams/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[a-z-]*-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    sed -i 's/  X509V3_EXT_METHOD/  const X509V3_EXT_METHOD/' crypto/wvx509.cc
    sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \
        ipstreams/wvunixdgsocket.cc
    ./configure $CONFIGURE_ARGS \
        --prefix=/usr \
        --without-dbus \
        --without-tcl \
        --without-qt \
        --without-pam \
        --without-valgrind &&
    make -j1 && make -j1 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/etc $fs/var            
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/valgrind $fs/usr/lib
    cp -a $install/usr/sbin $fs/usr
    cp -a $install/usr/etc/* $fs/etc
    cp -a $install/usr/var/* $fs/var
}

post_remove()
{
    rm -rf "$1/etc/ppp/peers/wvdial"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)