SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "knock"

# SliTaz package receipt.

PACKAGE="knock"
VERSION="0.8"
CATEGORY="security"
SHORT_DESC="Port knock sequence listener."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/jvinet/knock"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/jvinet/knock/releases/download/v$VERSION/$TARBALL"

DEPENDS="iptables libpcap"
BUILD_DEPENDS="automake libpcap-dev"

CONFIG_FILES="/etc/knockd.conf"

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

# Rules to configure and make the package.
compile_rules()
{
    # 0.8 obsolete
#    patch -p1 < $stuff/knock.u
    autoreconf -fi &&
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --sysconfdir=/etc        \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $stuff/etc    $fs
    cp -a $stuff/usr    $fs
    cp -a $install/usr/sbin    $fs/usr
    cp -a $install/usr/bin    $fs/usr
    cp -a $install/etc    $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)