wok annotate nbd/receipt @ rev 24402

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 16:59:06 2022 +0000 (2022-02-08)
parents f05572332c7c
children 293d53cefa7b
rev   line source
pascal@15213 1 # SliTaz package receipt.
pascal@15213 2
pascal@15213 3 PACKAGE="nbd"
Hans-G?nter@23215 4 VERSION="3.20"
pascal@15213 5 CATEGORY="network"
pascal@15213 6 SHORT_DESC="Remote block devices over a TCP/IP network."
pascal@15213 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15213 8 LICENSE="GPL2"
Hans-G?nter@21521 9 WEB_SITE="https://nbd.sourceforge.io/"
Hans-G?nter@21521 10
Hans-G?nter@21521 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@15213 12 WGET_URL="$SF_MIRROR/nbd/$TARBALL"
Hans-G?nter@21521 13
pascal@15213 14 SUGGESTED="linux-nbd"
pascal@15213 15 DEPENDS="glib pcre"
Hans-G?nter@23215 16 BUILD_DEPENDS="glib-dev pcre-dev pkg-config"
Hans-G?nter@23215 17
Hans-G?nter@21521 18 CONFIG_FILES="/etc/nbd-server"
pascal@15213 19
pascal@24402 20 # What is the latest version available today?
pascal@24402 21 current_version()
pascal@24402 22 {
pascal@24402 23 wget -O - https://sourceforge.net/projects/nbd/files/nbd/ 2>/dev/null | \
pascal@24402 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 25 sed '/scope="row/!d;s|.*/nbd/||;s|/.*||;q'
pascal@24402 26 }
pascal@24402 27
pascal@15213 28 # Rules to configure and make the package.
pascal@15213 29 compile_rules()
pascal@15213 30 {
Hans-G?nter@21521 31 ./configure \
Hans-G?nter@21521 32 --sysconfdir=/etc \
Hans-G?nter@21521 33 --prefix=/usr \
Hans-G?nter@21521 34 $CONFIGURE_ARGS &&
pascal@15213 35 make &&
pascal@15213 36 make DESTDIR=$DESTDIR install
pascal@15213 37 }
pascal@15213 38
pascal@15213 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15213 40 genpkg_rules()
pascal@15213 41 {
Hans-G?nter@21521 42 mkdir -p $fs/usr
Hans-G?nter@21521 43 mkdir -p $fs/etc/nbd-server
Hans-G?nter@21521 44
Hans-G?nter@21521 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21521 46 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21521 47
Hans-G?nter@23215 48 touch $fs/etc/nbd-server/config
pascal@15213 49 }