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