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