wok-current view postgrey/receipt @ rev 24619

updated gptfdisk (1.0.5 -> 1.0.8)
author Hans-G?nter Theisgen
date Mon Mar 07 10:40:58 2022 +0100 (2022-03-07)
parents 8ebcdb417c3b
children e717a4953b0e
line source
1 # SliTaz package receipt.
3 PACKAGE="postgrey"
4 VERSION="1.37"
5 CATEGORY="network"
6 SHORT_DESC="Postfix policy server implementing greylisting."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://postgrey.schweikert.ch/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://postgrey.schweikert.ch/pub/$TARBALL"
14 DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb \
15 perl-net-dns"
16 CONFIG_FILES="/etc/postgrey"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin
29 mkdir -p $fs/etc/postfix
30 mkdir -p $fs/var/spool/postfix/postgrey
32 cp $src/contrib/postgreyreport $fs/usr/bin
33 cp $src/postgrey $fs/usr/bin
34 cp $src/postgrey_whitelist* $fs/etc/postfix
35 cp -a stuff/etc $fs
36 }
38 # Pre and post install commands for Tazpkg.
39 post_install()
40 {
41 chroot "$1/" chown postfix /var/spool/postfix/postgrey
42 cat <<EOF
43 ----
44 To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in
45 smtpd_recipient_restrictions of /etc/postfix/main.cf, i.e:
47 smtpd_recipient_restrictions =
48 ....
49 check_policy_service inet:127.0.0.1:60000,
50 permit
52 To start $PACKAGE server you can run :
54 /etc/init.d/$PACKAGE start
56 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
57 ----
58 EOF
59 }