wok-6.x annotate portsentry/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | eab35a9f8d16 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@15887 | 1 # SliTaz package receipt. |
pascal@15887 | 2 |
pascal@15887 | 3 PACKAGE="portsentry" |
pascal@15887 | 4 VERSION="1.2" |
pascal@15887 | 5 CATEGORY="network" |
pascal@15887 | 6 SHORT_DESC="Portscan detection daemon." |
pascal@15887 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15887 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15887 | 9 LICENSE="CCPL" |
pascal@15887 | 10 WEB_SITE="http://sentrytools.sourceforge.net/" |
pascal@15887 | 11 WGET_URL="$SF_MIRROR/sentrytools/$TARBALL" |
pascal@15887 | 12 |
pascal@15887 | 13 DEPENDS="" |
pascal@15887 | 14 BUILD_DEPENDS="" |
pascal@15887 | 15 |
pascal@24396 | 16 # What is the latest version available today? |
pascal@24396 | 17 current_version() |
pascal@24396 | 18 { |
pascal@24396 | 19 wget -O - https://sourceforge.net/projects//sentrytools/files/portsentry%201.x/ 2>/dev/null | \ |
pascal@24396 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 21 sed '/scope="row/!d;s|.*/portsentry-||;s|.tar.*||;q' |
pascal@24396 | 22 } |
pascal@24396 | 23 |
pascal@15887 | 24 # Rules to configure and make the package. |
pascal@15887 | 25 compile_rules() |
pascal@15887 | 26 { |
pascal@15887 | 27 sed -i 's/dot $/&\\/' portsentry.c |
pascal@15887 | 28 make linux |
pascal@15887 | 29 } |
pascal@15887 | 30 |
pascal@15887 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15887 | 32 genpkg_rules() |
pascal@15887 | 33 { |
pascal@15887 | 34 mkdir -p $fs/usr/sbin $fs/etc/portsentry |
pascal@15887 | 35 cp -a $src/portsentry $fs/usr/sbin |
pascal@15887 | 36 cp -a $src/portsentry.conf $fs/etc/portsentry |
pascal@15887 | 37 cat > $fs/etc/portsentry/portsentry.ignore.static <<EOT |
pascal@15887 | 38 127.0.0.1/32 |
pascal@15887 | 39 192.168.0.0/16 |
pascal@15887 | 40 10.0.0.0/8 |
pascal@15887 | 41 EOT |
pascal@15887 | 42 } |