# 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 }