wok-next annotate postgrey/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 9e01bc6321ea
children
rev   line source
al@21020 1 # SliTaz package receipt v2.
pascal@1211 2
pascal@1211 3 PACKAGE="postgrey"
pascal@18370 4 VERSION="1.36"
pascal@1211 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Postfix policy server implementing greylisting"
pascal@1211 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://postgrey.schweikert.ch/"
al@21020 10
pascal@1211 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1211 12 WGET_URL="$WEB_SITE/pub/$TARBALL"
pascal@15375 13
al@21020 14 genpkg_rules() {
pascal@1211 15 mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey
pascal@1211 16 cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin
pascal@1211 17 cp $src/postgrey_whitelist* $fs/etc/postfix
al@21020 18 cp -a $stuff/etc $fs
al@21020 19 DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb \
al@21020 20 perl-net-dns"
al@21020 21 CONFIG_FILES="/etc/postgrey"
pascal@1211 22 }
pascal@1211 23
al@21020 24 post_install() {
pascal@18730 25 chroot "$1/" chown postfix /var/spool/postfix/postgrey
pascal@1211 26
al@21020 27 [ -n "$quiet" ] || cat <<EOF
pascal@1211 28
al@21020 29 .--------------------------------------------------------.
al@21020 30 | To use postgrey with postfix, add check_policy_service |
al@21020 31 | inet:127.0.0.1:60000 in smtpd_recipient_restrictions |
al@21020 32 | of /etc/postfix/main.cf, i.e: |
al@21020 33 | |
al@21020 34 | smtpd_recipient_restrictions = |
al@21020 35 | .... |
al@21020 36 | check_policy_service inet:127.0.0.1:60000, |
al@21020 37 | permit |
al@21020 38 |--------------------------------------------------------|
al@21020 39 | To start postgrey server you can run: |
al@21020 40 | |
al@21020 41 | /etc/init.d/postgrey start |
al@21020 42 | |
al@21020 43 | or add postgrey to RUN_DAEMONS in /etc/rcS.conf |
al@21020 44 '--------------------------------------------------------'
pascal@1211 45 EOF
pascal@1211 46 }