Skip to content
Permalink
Browse files

sqlgrey: update to final release 1.8.0, dependencies

Fix livecheck to ignore future release candidates (if any).
  • Loading branch information
dbevans committed Apr 24, 2019
1 parent 3ebfa17 commit 81fd177e728d6972b28221518007e1711002ee08
@@ -4,8 +4,7 @@ PortSystem 1.0
PortGroup perl5 1.0

name sqlgrey
version 1.8.0-rc2
revision 6
version 1.8.0
categories mail
license GPL-2
maintainers nomaintainer
@@ -15,16 +14,18 @@ long_description ${description}
homepage http://sqlgrey.sourceforge.net/
master_sites sourceforge

checksums rmd160 0404df3987ceb4732e73fee09388454995754c1c \
sha256 c109aab28c9dcf798beb708d1efa37facfb3dfacd0f15fa87b5f6c1f023d2068
checksums rmd160 503ff9487154506e2f550d931654822f014e6d20 \
sha256 94e0fa191b30d672b748e934728ca73383bf9b36e4b17618b01adaaba40280e2 \
size 69476

perl5.require_variant yes
perl5.conflict_variants yes
perl5.branches 5.26 5.28
perl5.create_variants ${perl5.branches}

supported_archs noarch
depends_lib port:p${perl5.major}-dbi \
depends_lib port:perl${perl5.major} \
port:p${perl5.major}-dbi \
port:p${perl5.major}-io-multiplex \
port:p${perl5.major}-net-dns \
port:p${perl5.major}-net-server
@@ -44,10 +45,12 @@ set sqlgreygroup ${sqlgreyuser}
add_users ${sqlgreyuser} group=${sqlgreygroup} realname=${name}

post-patch {
reinplace "s|@PERL_BIN@|${perl5.bin}|" \
${worksrcpath}/sqlgrey \
${worksrcpath}/sqlgrey-logstats.pl
reinplace "s|@PREFIX@|${prefix}|g" \
${worksrcpath}/etc/sqlgrey.conf \
${worksrcpath}/sqlgrey \
${worksrcpath}/sqlgrey-logstats.pl \
${worksrcpath}/tester.pl \
${worksrcpath}/Makefile
reinplace "s|@DESTROOT@|${destroot}|g" \
@@ -106,4 +109,4 @@ variant table_names description {Make table names configurable} {
}

livecheck.version ${version}
livecheck.regex "(?!${name}).*${name}-((?!${extract.suffix}).*)${extract.suffix}"
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
@@ -20,7 +20,7 @@

## Socket
# On which socket do SQLgrey wait for queries
@@ -71,7 +71,7 @@
@@ -73,7 +73,7 @@

## PID
# where to store the process PID
@@ -2,7 +2,7 @@
+++ b/sqlgrey-logstats.pl 2012-08-24 18:06:53.000000000 -0700
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!@PREFIX@/bin/perl -w
+#!@PERL_BIN@ -w

# sqlgrey: a postfix greylisting policy server using an SQL backend
# based on postgrey
@@ -1,28 +1,27 @@
--- a/sqlgrey 2012-08-24 18:05:39.000000000 -0700
+++ b/sqlgrey 2012-08-24 18:07:09.000000000 -0700
--- a/sqlgrey 2012-02-13 08:54:08.000000000 -0800
+++ b/sqlgrey 2019-04-23 18:04:12.000000000 -0700
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!@PREFIX@/bin/perl -w
+#!@PERL_BIN@ -w

# sqlgrey: a postfix greylisting policy server using an SQL backend
# based on postgrey
@@ -56,11 +56,11 @@
@@ -57,10 +57,10 @@
# defaults
my %dflt;
$dflt{loglevel} = 2; # used for $dflt{log} entries in read_conffile()
-$dflt{user} = 'sqlgrey';
-$dflt{group} = 'sqlgrey';
+$dflt{user} = '@SQLGREYUSER@';
+$dflt{group} = '@SQLGREYGROUP@';
$dflt{inet} = '2501';
-$dflt{pidfile} = '/var/run/sqlgrey.pid';
-$dflt{conf_dir} = '/etc/sqlgrey';
+$dflt{user} = '@SQLGREYUSER@';
+$dflt{group} = '@SQLGREYGROUP@';
+$dflt{pidfile} = '@PREFIX@/var/run/@NAME@/sqlgrey.pid';
+$dflt{conf_dir} = '@PREFIX@/etc/sqlgrey';
$dflt{reconnect_delay} = 5; # 5 minutes
$dflt{max_connect_age} = 24; # 24 hours
$dflt{awl_age} = 60; # 60 days
@@ -103,7 +103,7 @@
@@ -104,7 +104,7 @@
};

# Default configuration file
@@ -31,7 +30,7 @@

# whitelist files
my $stat_ip_whitelist_file = $dflt{conf_dir} . '/clients_ip_whitelist';
@@ -2703,7 +2703,7 @@
@@ -2739,7 +2739,7 @@
close(STDERR);
# Ugly hack to prevent perl from complaining
# 'warning: Filehandle STDERR reopened as FILE only \
@@ -40,7 +39,7 @@
open(STDIN,'</dev/null');
open(STDOUT,'>/dev/null');
open(STDERR,'>/dev/null');
@@ -2787,15 +2787,15 @@
@@ -2825,15 +2825,15 @@
-k, --kill kill a running sqlgrey
(identified by 'pidfile' content)
-f, --configfile=FILE read config from FILE
@@ -59,7 +58,7 @@

=head1 DESCRIPTION

@@ -2903,7 +2903,7 @@
@@ -2941,7 +2941,7 @@
=item *

Start by adding check_policy_service after reject_unauth_destination in
@@ -68,7 +67,7 @@

smtpd_recipient_restrictions =
...
@@ -2927,7 +2927,7 @@
@@ -2965,7 +2965,7 @@
If you want to disable greylisting for some users you can configure
Postfix like this:

@@ -77,7 +76,7 @@
i_like_spam@ee.ethz.ch OK

Then you'll add a check_recipient_access in main.cf before the
@@ -2935,8 +2935,8 @@
@@ -2973,8 +2973,8 @@
smtpd_recipient_restrictions =
...
reject_unauth_destination

0 comments on commit 81fd177

Please sign in to comment.
You can’t perform that action at this time.