wok-current view postgrey/receipt @ rev 16164

wayland: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 29 08:28:10 2014 +0000 (2014-03-29)
parents 627d16bb5e3e
children be5709551b21
line source
1 # SliTaz package receipt.
3 PACKAGE="postgrey"
4 VERSION="1.32"
5 CATEGORY="network"
6 SHORT_DESC="Postfix policy server implementing greylisting."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://postgrey.schweikert.ch/"
11 WGET_URL="$WEB_SITE/pub/$TARBALL"
12 CONFIG_FILES="/etc/postgrey"
14 DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey
20 cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin
21 cp $src/postgrey_whitelist* $fs/etc/postfix
22 cp -a stuff/etc $fs
23 }
25 # Pre and post install commands for Tazpkg.
26 post_install()
27 {
28 chroot $1/ chown postfix /var/spool/postfix/postgrey
29 cat <<EOF
30 ----
31 To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in
32 smtpd_recipient_restrictions of /etc/postfix/main.cf, i.e:
34 smtpd_recipient_restrictions =
35 ....
36 check_policy_service inet:127.0.0.1:60000,
37 permit
39 To start $PACKAGE server you can run :
41 /etc/init.d/$PACKAGE start
43 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
44 ----
45 EOF
46 }