wok-6.x view postgrey/receipt @ rev 1865
neon: add ssl support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 16 09:09:36 2008 +0000 (2008-12-16) |
parents | |
children | bd6010223726 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://postgrey.schweikert.ch/"
10 WGET_URL="$WEB_SITE/pub/$TARBALL"
11 CONFIG_FILES="/etc/postgrey"
12 DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey
19 cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin
20 cp $src/postgrey_whitelist* $fs/etc/postfix
21 cp -a stuff/etc $fs
22 }
24 # Pre and post install commands for Tazpkg.
25 post_install()
26 {
27 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
28 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
29 $(cd $1/ ; find etc/postgrey -type f)
30 EOT
31 chown postfix /var/spool/postfix/postgrey
32 cat <<EOF
33 ----
34 To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in
35 smtpd_recipient_restrictions of /etc/postfix/main.cf, i.e:
37 smtpd_recipient_restrictions =
38 ....
39 check_policy_service inet:127.0.0.1:60000,
40 permit
42 To start $PACKAGE server you can run :
44 /etc/init.d/$PACKAGE start
46 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
47 ----
48 EOF
49 }
51 repack_cleanup()
52 {
53 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
54 }