# SliTaz package receipt. PACKAGE="portsentry" VERSION="1.2" CATEGORY="network" SHORT_DESC="Portscan detection daemon." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" LICENSE="CCPL" WEB_SITE="https://sentrytools.sourceforge.net/" WGET_URL="$SF_MIRROR/sentrytools/$TARBALL" DEPENDS="" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects//sentrytools/files/portsentry%201.x/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/portsentry-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's/dot $/&\\/' portsentry.c make linux } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin $fs/etc/portsentry cp -a $src/portsentry $fs/usr/sbin cp -a $src/portsentry.conf $fs/etc/portsentry cat > $fs/etc/portsentry/portsentry.ignore.static <