SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "vde2"

# SliTaz package receipt.

PACKAGE="vde2"
VERSION="2.3.3"
CATEGORY="network"
SHORT_DESC="Virtual Distributed Ethernet."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/virtualsquare/vde-2/"
REPOLOGY="vde"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/virtualsquare/vde-2/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="libcrypto"
BUILD_DEPENDS="automake libcrypto libcrypto-dev libtool"

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

# Rules to configure and make the package.
compile_rules()
{
    autoreconf    --install &&
    ./configure                \
        --prefix=/usr            \
        --libexecdir=/usr/lib/$PACKAGE    \
        --sysconfdir=/etc        \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/vde2
    cp -a $install/etc            $fs
    cp -a $install/usr/bin            $fs/usr
    # 2.3.3 not created
#    cp -a $install/usr/sbin            $fs/usr
    cp -a $install/usr/lib/*.so*        $fs/usr/lib
    cp -a $install/usr/lib/vde2/*.so*    $fs/usr/lib/vde2
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)