wok-6.x view openvswitch/receipt @ rev 24433

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 18:42:31 2022 +0000 (2022-02-12)
parents 05c8d8d9d934
children ae58b675745d
line source
1 # SliTaz package receipt.
3 PACKAGE="openvswitch"
4 VERSION="2.14.0"
5 CATEGORY="network"
6 SHORT_DESC="Multilayer virtual switch."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://openvswitch.org/"
11 WGET_URL="${WEB_SITE}releases/$TARBALL"
13 DEPENDS="libssl zlib py3k bash"
14 BUILD_DEPENDS="openssl-dev zlib-dev py3k"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - http://www.openvswitch.org/download/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/etc $fs/
40 cp -a $install/var $fs/
41 cp -a $install/usr/bin $fs/usr/
42 cp -a $install/usr/sbin $fs/usr/
43 cp -a $install/usr/share $fs/usr/
44 }