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 - $WEB_SITE/tags 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;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
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)