wok diff postgrey/receipt @ rev 1631
kbd-busybox: can't build on virtual systems !
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 23 20:31:20 2008 +0000 (2008-10-23) |
parents | |
children | bd6010223726 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/postgrey/receipt Thu Oct 23 20:31:20 2008 +0000 1.3 @@ -0,0 +1,54 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="postgrey" 1.7 +VERSION="1.32" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Postfix policy server implementing greylisting." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://postgrey.schweikert.ch/" 1.13 +WGET_URL="$WEB_SITE/pub/$TARBALL" 1.14 +CONFIG_FILES="/etc/postgrey" 1.15 +DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb" 1.16 + 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey 1.22 + cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin 1.23 + cp $src/postgrey_whitelist* $fs/etc/postfix 1.24 + cp -a stuff/etc $fs 1.25 +} 1.26 + 1.27 +# Pre and post install commands for Tazpkg. 1.28 +post_install() 1.29 +{ 1.30 + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ 1.31 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.32 +$(cd $1/ ; find etc/postgrey -type f) 1.33 +EOT 1.34 + chown postfix /var/spool/postfix/postgrey 1.35 + cat <<EOF 1.36 +---- 1.37 +To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in 1.38 +smtpd_recipient_restrictions of /etc/postfix/main.cf, i.e: 1.39 + 1.40 + smtpd_recipient_restrictions = 1.41 + .... 1.42 + check_policy_service inet:127.0.0.1:60000, 1.43 + permit 1.44 + 1.45 +To start $PACKAGE server you can run : 1.46 + 1.47 + /etc/init.d/$PACKAGE start 1.48 + 1.49 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf 1.50 +---- 1.51 +EOF 1.52 +} 1.53 + 1.54 +repack_cleanup() 1.55 +{ 1.56 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 1.57 +}