wok-next diff 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
line diff
     1.1 --- a/postgrey/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/postgrey/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -1,47 +1,46 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="postgrey"
     1.8  VERSION="1.36"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Postfix policy server implementing greylisting."
    1.11 +SHORT_DESC="Postfix policy server implementing greylisting"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://postgrey.schweikert.ch/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://postgrey.schweikert.ch/"
    1.18  WGET_URL="$WEB_SITE/pub/$TARBALL"
    1.19 -CONFIG_FILES="/etc/postgrey"
    1.20  
    1.21 -DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb \
    1.22 -perl-net-dns"
    1.23 -
    1.24 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 -genpkg_rules()
    1.26 -{
    1.27 +genpkg_rules() {
    1.28  	mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey
    1.29  	cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin
    1.30  	cp $src/postgrey_whitelist* $fs/etc/postfix
    1.31 -	cp -a stuff/etc $fs
    1.32 +	cp -a $stuff/etc $fs
    1.33 +	DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb \
    1.34 +	perl-net-dns"
    1.35 +	CONFIG_FILES="/etc/postgrey"
    1.36  }
    1.37  
    1.38 -# Pre and post install commands for Tazpkg.
    1.39 -post_install()
    1.40 -{
    1.41 +post_install() {
    1.42  	chroot "$1/" chown postfix /var/spool/postfix/postgrey
    1.43 -	cat <<EOF
    1.44 -----
    1.45 -To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in
    1.46 -smtpd_recipient_restrictions of /etc/postfix/main.cf, i.e:
    1.47  
    1.48 -    smtpd_recipient_restrictions =
    1.49 -	....
    1.50 -	check_policy_service inet:127.0.0.1:60000,
    1.51 -	permit
    1.52 -	
    1.53 -To start $PACKAGE server you can run :
    1.54 +	[ -n "$quiet" ] || cat <<EOF
    1.55  
    1.56 -    /etc/init.d/$PACKAGE start
    1.57 -
    1.58 -Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
    1.59 -----
    1.60 +	.--------------------------------------------------------.
    1.61 +	| To use postgrey with postfix, add check_policy_service |
    1.62 +	| inet:127.0.0.1:60000 in smtpd_recipient_restrictions   |
    1.63 +	| of /etc/postfix/main.cf, i.e:                          |
    1.64 +	|                                                        |
    1.65 +	|    smtpd_recipient_restrictions =                      |
    1.66 +	|    ....                                                |
    1.67 +	|    check_policy_service inet:127.0.0.1:60000,          |
    1.68 +	|    permit                                              |
    1.69 +	|--------------------------------------------------------|
    1.70 +	| To start postgrey server you can run:                  |
    1.71 +	|                                                        |
    1.72 +	|    /etc/init.d/postgrey start                          |
    1.73 +	|                                                        |
    1.74 +	| or add postgrey to RUN_DAEMONS in /etc/rcS.conf        |
    1.75 +	'--------------------------------------------------------'
    1.76  EOF
    1.77  }