wok view postgrey/receipt @ rev 1386

changed the depends for qjackctl
author Allan Pinto <allan316@gmail.com>
date Tue Sep 16 15:04:53 2008 +0000 (2008-09-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 }