SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tunctl"

# SliTaz package receipt.

PACKAGE="tunctl"
VERSION="1.5"
CATEGORY="network"
SHORT_DESC="used to set up and maintain persistent TUN/TAP network interfaces"
MAINTAINER="allan316@gmail.com"
LICENSE="GPL"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://tunctl.sourceforge.net"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS=""

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

# Rules to configure and make the package.
compile_rules()
{
    cd $src
        mkdir -p $DESTDIR/usr/bin
    cc -g -Wall -o tunctl tunctl.c
        cp -a tunctl $DESTDIR/usr/bin/
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
}

6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)