wok view nbd/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents afae00265386
children d3556b8f5c3d
line source
1 # SliTaz package receipt.
3 PACKAGE="nbd"
4 VERSION="3.24"
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 install DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/etc/nbd-server
44 cook_copy_folders bin
45 cook_copy_folders sbin
47 touch $fs/etc/nbd-server/config
48 }