wok annotate vde2/receipt @ rev 25507

plop: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 11 10:36:59 2023 +0000 (21 months ago)
parents 0c04fc34847a
children 5db546345599
rev   line source
pascal@6896 1 # SliTaz package receipt.
pascal@6896 2
pascal@6896 3 PACKAGE="vde2"
Hans-G?nter@25395 4 VERSION="2.3.3"
pascal@6896 5 CATEGORY="network"
pascal@6896 6 SHORT_DESC="Virtual Distributed Ethernet."
pascal@6896 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@25395 9 WEB_SITE="https://github.com/virtualsquare/vde-2/"
Hans-G?nter@25395 10 REPOLOGY="vde"
Hans-G?nter@25395 11
Hans-G?nter@25395 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25395 13 WGET_URL="https://github.com/virtualsquare/vde-2/archive/refs/tags/v$VERSION.tar.gz"
pascal@6896 14
pascal@15002 15 DEPENDS="libcrypto"
Hans-G?nter@25395 16 BUILD_DEPENDS="automake libcrypto libcrypto-dev libtool"
pascal@15002 17
pascal@24313 18 # What is the latest version available today?
pascal@24313 19 current_version()
pascal@24313 20 {
pascal@24313 21 wget -O - https://sourceforge.net/projects/vde/files/vde2 2>/dev/null | \
pascal@24313 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24313 23 sed '/\/vde2/!d;/tar/!d;s|.*/vde2-||;s|.tar.*||;q'
pascal@24313 24 }
pascal@24313 25
pascal@6896 26 # Rules to configure and make the package.
pascal@6896 27 compile_rules()
pascal@6896 28 {
Hans-G?nter@25395 29 autoreconf --install &&
Hans-G?nter@25395 30 ./configure \
Hans-G?nter@25395 31 --prefix=/usr \
Hans-G?nter@25395 32 --libexecdir=/usr/lib/$PACKAGE \
Hans-G?nter@25395 33 --sysconfdir=/etc \
Hans-G?nter@25395 34 --mandir=/usr/share/man \
Hans-G?nter@25395 35 $CONFIGURE_ARGS &&
pascal@6896 36 make &&
Hans-G?nter@25395 37 make install DESTDIR=$DESTDIR
pascal@6896 38 }
pascal@6896 39
pascal@6896 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@6896 41 genpkg_rules()
pascal@6896 42 {
pascal@6896 43 mkdir -p $fs/usr/lib/vde2
Hans-G?nter@25395 44 cp -a $install/etc $fs
Hans-G?nter@25395 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@25395 46 # 2.3.3 not created
Hans-G?nter@25395 47 # cp -a $install/usr/sbin $fs/usr
Hans-G?nter@25395 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@25395 49 cp -a $install/usr/lib/vde2/*.so* $fs/usr/lib/vde2
pascal@6896 50 }