wok view postgrey/receipt @ rev 24975

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 02 16:22:04 2022 +0000 (2022-05-02)
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 }