wok-6.x annotate nbd/receipt @ rev 24958
updated nbd (3.20 -> 3.24)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 16:50:32 2022 +0100 (2022-04-23) |
parents | afae00265386 |
children |
rev | line source |
---|---|
pascal@15213 | 1 # SliTaz package receipt. |
pascal@15213 | 2 |
pascal@15213 | 3 PACKAGE="nbd" |
Hans-G?nter@24958 | 4 VERSION="3.24" |
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 && |
Hans-G?nter@24958 | 36 make install DESTDIR=$DESTDIR |
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/etc/nbd-server |
Hans-G?nter@21521 | 43 |
Hans-G?nter@24958 | 44 cook_copy_folders bin |
Hans-G?nter@24958 | 45 cook_copy_folders sbin |
Hans-G?nter@21521 | 46 |
Hans-G?nter@23215 | 47 touch $fs/etc/nbd-server/config |
pascal@15213 | 48 } |