SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "p910nd"

# SliTaz package receipt.

PACKAGE="p910nd"
VERSION="0.97"
CATEGORY="network"
TAGS="printer"
SHORT_DESC="Network to printer (/dev/lp* or /dev/usb/lp*) gateway."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/kenyapcomau/p910nd"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/kenyapcomau/p910nd/archive/refs/tags/$VERSION.tar.gz"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/kenyapcomau/p910nd/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|subsys/||' p910nd.8
    make CFLAGS=-DLOCKFILE_DIR=\\\"/var/lock\\\" &&
    make DESTDIR=$DESTDIR CONFIG=aux/p910nd.conf INITSCRIPT=aux/p910nd.init MANPAGE=p910nd.8 install
}

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

    cp -a $install/usr/sbin $fs/usr

    sed '1,/%description/d;/%pre/,$d' $src/aux/p910nd.spec > $WOK/$PACKAGE/description.txt
    ln -s daemon $fs/etc/init.d/p910nd
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)