wok-current annotate postgrey/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 202b394c374d |
children | 8ebcdb417c3b |
rev | line source |
---|---|
pascal@1211 | 1 # SliTaz package receipt. |
pascal@1211 | 2 |
pascal@1211 | 3 PACKAGE="postgrey" |
pascal@18370 | 4 VERSION="1.36" |
pascal@1211 | 5 CATEGORY="network" |
pascal@1211 | 6 SHORT_DESC="Postfix policy server implementing greylisting." |
pascal@1211 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15375 | 8 LICENSE="GPL2" |
pascal@1211 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1211 | 10 WEB_SITE="http://postgrey.schweikert.ch/" |
pascal@1211 | 11 WGET_URL="$WEB_SITE/pub/$TARBALL" |
pascal@1211 | 12 CONFIG_FILES="/etc/postgrey" |
pascal@15375 | 13 |
pascal@17427 | 14 DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb \ |
pascal@17427 | 15 perl-net-dns" |
pascal@1211 | 16 |
pascal@1211 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1211 | 18 genpkg_rules() |
pascal@1211 | 19 { |
pascal@1211 | 20 mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey |
pascal@1211 | 21 cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin |
pascal@1211 | 22 cp $src/postgrey_whitelist* $fs/etc/postfix |
pascal@1211 | 23 cp -a stuff/etc $fs |
pascal@1211 | 24 } |
pascal@1211 | 25 |
pascal@1211 | 26 # Pre and post install commands for Tazpkg. |
pascal@1211 | 27 post_install() |
pascal@1211 | 28 { |
pascal@18730 | 29 chroot "$1/" chown postfix /var/spool/postfix/postgrey |
pascal@1211 | 30 cat <<EOF |
pascal@1211 | 31 ---- |
pascal@1211 | 32 To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in |
pascal@1211 | 33 smtpd_recipient_restrictions of /etc/postfix/main.cf, i.e: |
pascal@1211 | 34 |
pascal@1211 | 35 smtpd_recipient_restrictions = |
pascal@1211 | 36 .... |
pascal@1211 | 37 check_policy_service inet:127.0.0.1:60000, |
pascal@1211 | 38 permit |
pascal@1211 | 39 |
pascal@1211 | 40 To start $PACKAGE server you can run : |
pascal@1211 | 41 |
pascal@1211 | 42 /etc/init.d/$PACKAGE start |
pascal@1211 | 43 |
pascal@1211 | 44 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1211 | 45 ---- |
pascal@1211 | 46 EOF |
pascal@1211 | 47 } |