wok-6.x view postgrey/receipt @ rev 25391

updated usb-modeswitch-data (20170806 -> 20191128)
author Hans-G?nter Theisgen
date Mon Aug 01 15:21:41 2022 +0100 (2022-08-01)
parents 241fb98cab1c
children
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="https://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 }