SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "nbd"

# SliTaz package receipt.

PACKAGE="nbd"
VERSION="3.24"
CATEGORY="network"
SHORT_DESC="Remote block devices over a TCP/IP network."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://nbd.sourceforge.io/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/nbd/$TARBALL"

SUGGESTED="linux-nbd"
DEPENDS="glib pcre"
BUILD_DEPENDS="glib-dev pcre-dev pkg-config"

CONFIG_FILES="/etc/nbd-server"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/nbd/files/nbd/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/nbd/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --sysconfdir=/etc    \
        --prefix=/usr        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc/nbd-server

    cook_copy_folders    bin
    cook_copy_folders    sbin

    touch            $fs/etc/nbd-server/config
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)