# SliTaz package receipt.

PACKED_SIZE="120.0K"
UNPACKED_SIZE="424.0K"
PACKAGE="vde2"
VERSION="2.3.1"
CATEGORY="network"
SHORT_DESC="Virtual Distributed Ethernet."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://vde.sourceforge.net/"
WGET_URL="$SF_MIRROR/vde/$TARBALL"

DEPENDS="libcrypto"
BUILD_DEPENDS="libcrypto libcrypto-dev"

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

# 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
	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
}
