wok rev 24702

updated knock (0.7.8 -> 0.8)
author Hans-G?nter Theisgen
date Mon Mar 14 09:51:46 2022 +0100 (2022-03-14)
parents 7d684b96da5f
children f5bcefacd129
files knock/description.txt knock/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/knock/description.txt	Mon Mar 14 09:51:46 2022 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +Knockd is a port-knock server.
     1.5 +It listens to all traffic on an ethernet (or PPP) interface, looking
     1.6 +for special "knock" sequences of port-hits.
     1.7 +A client makes these port-hits by sending a TCP (or UDP) packet to a
     1.8 +port on the server. This port need not be open -- since knockd listens
     1.9 +at the link-layer level, it sees all traffic even if it's destined for
    1.10 +a closed port.
    1.11 +When the server detects a specific sequence of port-hits, it runs a
    1.12 +command defined in its configuration file. This can be used to open up
    1.13 +holes in a firewall for quick access.
     2.1 --- a/knock/receipt	Mon Mar 14 07:58:24 2022 +0100
     2.2 +++ b/knock/receipt	Mon Mar 14 09:51:46 2022 +0100
     2.3 @@ -1,19 +1,20 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="knock"
     2.7 -VERSION="0.7.8"
     2.8 -HASH="258a27e5a47809f97c2b9f2751a88c2f94aae891"
     2.9 +VERSION="0.8"
    2.10  CATEGORY="security"
    2.11  SHORT_DESC="Port knock sequence listener."
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13  LICENSE="GPL2"
    2.14 -TARBALL="$PACKAGE-$VERSION.zip"
    2.15 -WEB_SITE="http://www.zeroflux.org/$PACKAGE"
    2.16 -WGET_URL="https://github.com/jvinet/$PACKAGE/archive/$HASH.zip"
    2.17 -CONFIG_FILES="/etc/knockd.conf"
    2.18 +WEB_SITE="https://www.zeroflux.org/knock"
    2.19 +
    2.20 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.21 +WGET_URL="https://www.zeroflux.org/proj/$PACKAGE/files/$TARBALL"
    2.22  
    2.23  DEPENDS="iptables libpcap"
    2.24 -BUILD_DEPENDS="libpcap-dev autoconf automake"
    2.25 +BUILD_DEPENDS="automake libpcap-dev"
    2.26 +
    2.27 +CONFIG_FILES="/etc/knockd.conf"
    2.28  
    2.29  # What is the latest version available today?
    2.30  current_version()
    2.31 @@ -25,23 +26,25 @@
    2.32  # Rules to configure and make the package.
    2.33  compile_rules()
    2.34  {
    2.35 -	patch -p1 < $stuff/knock.u
    2.36 -	autoreconf -fi
    2.37 -	./configure --prefix=/usr \
    2.38 -		--infodir=/usr/share/info \
    2.39 -		--sysconfdir=/etc \
    2.40 -		--mandir=/usr/share/man \
    2.41 +	# 0.8 obsolete
    2.42 +#	patch -p1 < $stuff/knock.u
    2.43 +	autoreconf -fi &&
    2.44 +	./configure				\
    2.45 +		--prefix=/usr			\
    2.46 +		--infodir=/usr/share/info	\
    2.47 +		--sysconfdir=/etc		\
    2.48 +		--mandir=/usr/share/man		\
    2.49  		$CONFIGURE_ARGS &&
    2.50  	make &&
    2.51 -	make DESTDIR=$DESTDIR install
    2.52 +	make install DESTDIR=$DESTDIR
    2.53  }
    2.54  
    2.55  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.56  genpkg_rules()
    2.57  {
    2.58 -	cp -a $stuff/etc $fs
    2.59 -	cp -a $stuff/usr $fs
    2.60 -	cp -a $install/usr/sbin $fs/usr
    2.61 -	cp -a $install/usr/bin $fs/usr
    2.62 -	cp -a $install/etc $fs
    2.63 +	cp -a $stuff/etc	$fs
    2.64 +	cp -a $stuff/usr	$fs
    2.65 +	cp -a $install/usr/sbin	$fs/usr
    2.66 +	cp -a $install/usr/bin	$fs/usr
    2.67 +	cp -a $install/etc	$fs
    2.68  }