wok annotate knock/receipt @ rev 24334
polkit: CVE-2021-4034
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 11:07:11 2022 +0000 (2022-01-28) |
parents | 7c138665bd75 |
children | 96d99c76c5e9 |
rev | line source |
---|---|
pascal@1435 | 1 # SliTaz package receipt. |
pascal@1435 | 2 |
pascal@1435 | 3 PACKAGE="knock" |
pascal@19633 | 4 VERSION="0.7.8" |
pascal@19633 | 5 HASH="258a27e5a47809f97c2b9f2751a88c2f94aae891" |
pascal@1435 | 6 CATEGORY="security" |
pascal@1435 | 7 SHORT_DESC="Port knock sequence listener." |
pascal@1435 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 9 LICENSE="GPL2" |
pascal@19633 | 10 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@1435 | 11 WEB_SITE="http://www.zeroflux.org/$PACKAGE" |
pascal@19633 | 12 WGET_URL="https://github.com/jvinet/$PACKAGE/archive/$HASH.zip" |
pascal@1586 | 13 CONFIG_FILES="/etc/knockd.conf" |
pascal@1435 | 14 |
pascal@18046 | 15 DEPENDS="iptables libpcap" |
pascal@19633 | 16 BUILD_DEPENDS="libpcap-dev autoconf automake" |
erjo@9935 | 17 |
pascal@24308 | 18 # What is the latest version available today? |
pascal@24308 | 19 current_version() |
pascal@24308 | 20 { |
pascal@24308 | 21 wget -O - https://github.com/jvinet/knock/tags 2>/dev/null | \ |
pascal@24308 | 22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 23 } |
pascal@24308 | 24 |
pascal@1435 | 25 # Rules to configure and make the package. |
pascal@1435 | 26 compile_rules() |
pascal@1435 | 27 { |
pascal@19633 | 28 patch -p1 < $stuff/knock.u |
pascal@19633 | 29 autoreconf -fi |
pascal@17686 | 30 ./configure --prefix=/usr \ |
pascal@17686 | 31 --infodir=/usr/share/info \ |
pascal@17686 | 32 --sysconfdir=/etc \ |
pascal@17686 | 33 --mandir=/usr/share/man \ |
pascal@17686 | 34 $CONFIGURE_ARGS && |
pascal@1435 | 35 make && |
erjo@9935 | 36 make DESTDIR=$DESTDIR install |
pascal@1435 | 37 } |
pascal@1435 | 38 |
pascal@1435 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1435 | 40 genpkg_rules() |
pascal@1435 | 41 { |
pascal@17686 | 42 cp -a $stuff/etc $fs |
pascal@17686 | 43 cp -a $stuff/usr $fs |
pascal@15601 | 44 cp -a $install/usr/sbin $fs/usr |
pascal@15601 | 45 cp -a $install/usr/bin $fs/usr |
pascal@17686 | 46 cp -a $install/etc $fs |
pascal@1435 | 47 } |