# SliTaz package receipt. PACKAGE="pflogsumm" VERSION="1.1.5" CATEGORY="misc" TAGS="postfix mail logs analysis" SHORT_DESC="Provides an over-view of postfix activity." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://jimsun.linxnet.com/postfix_contrib.html" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://jimsun.linxnet.com/downloads/$TARBALL" SUGGESTED="postfix" DEPENDS="perl-date-calc" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $install/usr/doc $install/usr/man/man1 install -m 755 $src/pflogsumm.1 $install/usr/man/man1 install -m 755 $src/*.txt $install/usr/doc install -m 755 $src/pflogsumm.pl $fs/usr/bin/pflogsumm sed -i 's/m#\^(/m#(/' $fs/usr/bin/pflogsumm }