# HG changeset patch # User Hans-G?nter Theisgen # Date 1647247906 -3600 # Node ID 96d99c76c5e90d9f9f73bffd0b6dd9b991448187 # Parent 7d684b96da5f31ec75b6dbc9bd341fd59555e9e4 updated knock (0.7.8 -> 0.8) diff -r 7d684b96da5f -r 96d99c76c5e9 knock/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/knock/description.txt Mon Mar 14 09:51:46 2022 +0100 @@ -0,0 +1,10 @@ +Knockd is a port-knock server. +It listens to all traffic on an ethernet (or PPP) interface, looking +for special "knock" sequences of port-hits. +A client makes these port-hits by sending a TCP (or UDP) packet to a +port on the server. This port need not be open -- since knockd listens +at the link-layer level, it sees all traffic even if it's destined for +a closed port. +When the server detects a specific sequence of port-hits, it runs a +command defined in its configuration file. This can be used to open up +holes in a firewall for quick access. diff -r 7d684b96da5f -r 96d99c76c5e9 knock/receipt --- a/knock/receipt Mon Mar 14 07:58:24 2022 +0100 +++ b/knock/receipt Mon Mar 14 09:51:46 2022 +0100 @@ -1,19 +1,20 @@ # SliTaz package receipt. PACKAGE="knock" -VERSION="0.7.8" -HASH="258a27e5a47809f97c2b9f2751a88c2f94aae891" +VERSION="0.8" CATEGORY="security" SHORT_DESC="Port knock sequence listener." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" -TARBALL="$PACKAGE-$VERSION.zip" -WEB_SITE="http://www.zeroflux.org/$PACKAGE" -WGET_URL="https://github.com/jvinet/$PACKAGE/archive/$HASH.zip" -CONFIG_FILES="/etc/knockd.conf" +WEB_SITE="https://www.zeroflux.org/knock" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://www.zeroflux.org/proj/$PACKAGE/files/$TARBALL" DEPENDS="iptables libpcap" -BUILD_DEPENDS="libpcap-dev autoconf automake" +BUILD_DEPENDS="automake libpcap-dev" + +CONFIG_FILES="/etc/knockd.conf" # What is the latest version available today? current_version() @@ -25,23 +26,25 @@ # Rules to configure and make the package. compile_rules() { - patch -p1 < $stuff/knock.u - autoreconf -fi - ./configure --prefix=/usr \ - --infodir=/usr/share/info \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ + # 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 DESTDIR=$DESTDIR install + 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 + 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 }