wok-current view postgrey/receipt @ rev 19870
linld: fix progname
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 30 15:54:03 2017 +0200 (2017-03-30) |
parents | 202b394c374d |
children | 8ebcdb417c3b |
line source
1 # SliTaz package receipt.
3 PACKAGE="postgrey"
4 VERSION="1.36"
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 \
15 perl-net-dns"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey
21 cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin
22 cp $src/postgrey_whitelist* $fs/etc/postfix
23 cp -a stuff/etc $fs
24 }
26 # Pre and post install commands for Tazpkg.
27 post_install()
28 {
29 chroot "$1/" chown postfix /var/spool/postfix/postgrey
30 cat <<EOF
31 ----
32 To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in
33 smtpd_recipient_restrictions of /etc/postfix/main.cf, i.e:
35 smtpd_recipient_restrictions =
36 ....
37 check_policy_service inet:127.0.0.1:60000,
38 permit
40 To start $PACKAGE server you can run :
42 /etc/init.d/$PACKAGE start
44 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
45 ----
46 EOF
47 }