wok-current annotate knock/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | 96d99c76c5e9 |
children |
rev | line source |
---|---|
pascal@1435 | 1 # SliTaz package receipt. |
pascal@1435 | 2 |
pascal@1435 | 3 PACKAGE="knock" |
Hans-G?nter@24702 | 4 VERSION="0.8" |
pascal@1435 | 5 CATEGORY="security" |
pascal@1435 | 6 SHORT_DESC="Port knock sequence listener." |
pascal@1435 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 8 LICENSE="GPL2" |
pascal@25436 | 9 WEB_SITE="https://github.com/jvinet/knock" |
Hans-G?nter@24702 | 10 |
Hans-G?nter@24702 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25436 | 12 WGET_URL="https://github.com/jvinet/knock/releases/download/v$VERSION/$TARBALL" |
pascal@1435 | 13 |
pascal@18046 | 14 DEPENDS="iptables libpcap" |
Hans-G?nter@24702 | 15 BUILD_DEPENDS="automake libpcap-dev" |
Hans-G?nter@24702 | 16 |
Hans-G?nter@24702 | 17 CONFIG_FILES="/etc/knockd.conf" |
erjo@9935 | 18 |
pascal@24308 | 19 # What is the latest version available today? |
pascal@24308 | 20 current_version() |
pascal@24308 | 21 { |
pascal@24308 | 22 wget -O - https://github.com/jvinet/knock/tags 2>/dev/null | \ |
pascal@24308 | 23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 24 } |
pascal@24308 | 25 |
pascal@1435 | 26 # Rules to configure and make the package. |
pascal@1435 | 27 compile_rules() |
pascal@1435 | 28 { |
Hans-G?nter@24702 | 29 # 0.8 obsolete |
Hans-G?nter@24702 | 30 # patch -p1 < $stuff/knock.u |
Hans-G?nter@24702 | 31 autoreconf -fi && |
Hans-G?nter@24702 | 32 ./configure \ |
Hans-G?nter@24702 | 33 --prefix=/usr \ |
Hans-G?nter@24702 | 34 --infodir=/usr/share/info \ |
Hans-G?nter@24702 | 35 --sysconfdir=/etc \ |
Hans-G?nter@24702 | 36 --mandir=/usr/share/man \ |
pascal@17686 | 37 $CONFIGURE_ARGS && |
pascal@1435 | 38 make && |
Hans-G?nter@24702 | 39 make install DESTDIR=$DESTDIR |
pascal@1435 | 40 } |
pascal@1435 | 41 |
pascal@1435 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1435 | 43 genpkg_rules() |
pascal@1435 | 44 { |
Hans-G?nter@24702 | 45 cp -a $stuff/etc $fs |
Hans-G?nter@24702 | 46 cp -a $stuff/usr $fs |
Hans-G?nter@24702 | 47 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@24702 | 48 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24702 | 49 cp -a $install/etc $fs |
pascal@1435 | 50 } |