wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="nbd"
4 VERSION="3.20"
5 CATEGORY="network"
6 SHORT_DESC="Remote block devices over a TCP/IP network."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://nbd.sourceforge.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/nbd/$TARBALL"
14 SUGGESTED="linux-nbd"
15 DEPENDS="glib pcre"
16 BUILD_DEPENDS="glib-dev pcre-dev pkg-config"
18 CONFIG_FILES="/etc/nbd-server"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/nbd/files/nbd/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed '/scope="row/!d;s|.*/nbd/||;s|/.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --sysconfdir=/etc \
33 --prefix=/usr \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 mkdir -p $fs/etc/nbd-server
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/sbin $fs/usr
48 touch $fs/etc/nbd-server/config
49 }