# SliTaz package receipt. PACKAGE="postgrey" VERSION="1.37" CATEGORY="network" SHORT_DESC="Postfix policy server implementing greylisting." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://postgrey.schweikert.ch/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://postgrey.schweikert.ch/pub/$TARBALL" DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb \ perl-net-dns" CONFIG_FILES="/etc/postgrey" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 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 mkdir -p $fs/etc/postfix mkdir -p $fs/var/spool/postfix/postgrey cp $src/contrib/postgreyreport $fs/usr/bin cp $src/postgrey $fs/usr/bin cp $src/postgrey_whitelist* $fs/etc/postfix cp -a stuff/etc $fs } # Pre and post install commands for Tazpkg. post_install() { chroot "$1/" chown postfix /var/spool/postfix/postgrey cat <