Changeset 98805
- Timestamp:
- Oct 17, 2012, 5:44:55 AM (12 years ago)
- Location:
- trunk/dports/mail/sqlgrey
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/mail/sqlgrey/Portfile
r95131 r98805 28 28 checksums sha1 2359577af0149394d1181e12007f013478148423 \ 29 29 rmd160 0404df3987ceb4732e73fee09388454995754c1c 30 30 patch.pre_args -p1 31 31 patchfiles patch-Makefile.diff \ 32 32 patch-etc-sqlgrey.conf.diff \ … … 39 39 40 40 post-patch { 41 reinplace "s|@ @PREFIX@@|${prefix}|g" \41 reinplace "s|@PREFIX@|${prefix}|g" \ 42 42 ${worksrcpath}/etc/sqlgrey.conf \ 43 43 ${worksrcpath}/sqlgrey \ … … 45 45 ${worksrcpath}/tester.pl \ 46 46 ${worksrcpath}/Makefile 47 reinplace "s|@ @DESTROOT@@|${destroot}|g" \47 reinplace "s|@DESTROOT@|${destroot}|g" \ 48 48 ${worksrcpath}/Makefile 49 reinplace "s|@ @NAME@@|${name}|g" \49 reinplace "s|@NAME@|${name}|g" \ 50 50 ${worksrcpath}/etc/sqlgrey.conf \ 51 51 ${worksrcpath}/sqlgrey 52 reinplace "s|@ @SQLGREYUSER@@|${sqlgreyuser}|g" \52 reinplace "s|@SQLGREYUSER@|${sqlgreyuser}|g" \ 53 53 ${worksrcpath}/etc/sqlgrey.conf \ 54 54 ${worksrcpath}/sqlgrey 55 reinplace "s|@ @SQLGREYGROUP@@|${sqlgreygroup}|g" \55 reinplace "s|@SQLGREYGROUP@|${sqlgreygroup}|g" \ 56 56 ${worksrcpath}/etc/sqlgrey.conf \ 57 57 ${worksrcpath}/sqlgrey … … 70 70 set gid [existsgroup ${sqlgreygroup}] 71 71 adduser ${sqlgreyuser} gid=${gid} realname=${name} 72 move ${destroot}${prefix}/etc/sqlgrey/sqlgrey.conf ${destroot}${prefix}/etc/sqlgrey/sqlgrey.conf.example 72 move ${destroot}${prefix}/etc/${name}/sqlgrey.conf ${destroot}${prefix}/etc/${name}/sqlgrey.conf.example 73 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 73 74 xinstall -m 0664 -W ${worksrcpath} FAQ HOWTO README.DBCLUSTER README.DISCRIMINATION README.OPTINOUT README.PERF \ 74 ${destroot}${prefix}/ etc/sqlgrey75 ${destroot}${prefix}/share/doc/${name} 75 76 } 76 77 77 78 post-activate { 78 touch ${prefix}/etc/ sqlgrey/clients_fqdn_whitelist.local79 touch ${prefix}/etc/ sqlgrey/clients_ip_whitelist.local79 touch ${prefix}/etc/${name}/clients_fqdn_whitelist.local 80 touch ${prefix}/etc/${name}/clients_ip_whitelist.local 80 81 } 81 82 … … 94 95 } 95 96 97 variant table_names description {Make table names configurable} { 98 patchfiles-append patch-table-names.diff 99 } 100 96 101 livecheck.version ${version} 97 102 livecheck.regex "(?!${name}).*${name}-((?!${extract.suffix}).*)${extract.suffix}" -
trunk/dports/mail/sqlgrey/files/patch-Makefile.diff
r79572 r98805 1 --- Makefile.orig 2010-05-17 11:36:13.000000000 -07002 +++ Makefile 2010-05-17 11:36:17.000000000 -07001 --- a/Makefile 2012-08-24 18:05:39.000000000 -0700 2 +++ b/Makefile 2012-08-24 18:06:42.000000000 -0700 3 3 @@ -1,10 +1,10 @@ 4 4 INSTALL = install 5 5 -ETCDIR = $(ROOTDIR)/etc 6 +ETCDIR = @ @DESTROOT@@@@PREFIX@@/etc6 +ETCDIR = @DESTROOT@@PREFIX@/etc 7 7 CONFDIR = $(ETCDIR)/sqlgrey 8 8 -SBINDIR = $(ROOTDIR)/usr/sbin 9 9 -BINDIR = $(ROOTDIR)/usr/bin 10 +SBINDIR = @ @DESTROOT@@@@PREFIX@@/sbin11 +BINDIR = @ @DESTROOT@@@@PREFIX@@/bin10 +SBINDIR = @DESTROOT@@PREFIX@/sbin 11 +BINDIR = @DESTROOT@@PREFIX@/bin 12 12 INITDIR = $(ETCDIR)/init.d 13 13 -MANDIR = $(ROOTDIR)/usr/share/man/man1 14 +MANDIR = @ @DESTROOT@@@@PREFIX@@/share/man/man114 +MANDIR = @DESTROOT@@PREFIX@/share/man/man1 15 15 16 16 VERSION := $(shell cat VERSION) -
trunk/dports/mail/sqlgrey/files/patch-etc-sqlgrey.conf.diff
r79570 r98805 1 --- etc/sqlgrey.conf.orig 2010-05-17 12:32:55.000000000 -07002 +++ etc/sqlgrey.conf 2010-05-17 12:33:08.000000000 -07001 --- a/etc/sqlgrey.conf 2012-08-24 18:05:39.000000000 -0700 2 +++ b/etc/sqlgrey.conf 2012-08-24 18:08:37.000000000 -0700 3 3 @@ -7,7 +7,7 @@ 4 4 # - SQLgrey uses a specific config file when called with -f <conf_file> … … 6 6 ## Configuration files 7 7 -# conf_dir = /etc/sqlgrey 8 +# conf_dir = @ @PREFIX@@/etc/sqlgrey8 +# conf_dir = @PREFIX@/etc/sqlgrey 9 9 10 10 ## Log level … … 16 16 -# user = sqlgrey 17 17 -# group = sqlgrey 18 +# user = @ @SQLGREYUSER@@19 +# group = @ @SQLGREYGROUP@@18 +# user = @SQLGREYUSER@ 19 +# group = @SQLGREYGROUP@ 20 20 21 21 ## Socket … … 26 26 # where to store the process PID 27 27 -# pidfile = /var/run/sqlgrey.pid 28 +# pidfile = @ @PREFIX@@/var/run/@@NAME@@/sqlgrey.pid28 +# pidfile = @PREFIX@/var/run/@NAME@/sqlgrey.pid 29 29 30 30 ## Greylisting delays -
trunk/dports/mail/sqlgrey/files/patch-sqlgrey-logstats.pl.diff
r79570 r98805 1 --- sqlgrey-logstats.pl.orig 2010-05-17 11:55:47.000000000 -07002 +++ sqlgrey-logstats.pl 2010-05-17 11:55:50.000000000 -07001 --- a/sqlgrey-logstats.pl 2012-08-24 18:05:39.000000000 -0700 2 +++ b/sqlgrey-logstats.pl 2012-08-24 18:06:53.000000000 -0700 3 3 @@ -1,4 +1,4 @@ 4 4 -#!/usr/bin/perl -w 5 +#!@ @PREFIX@@/bin/perl -w5 +#!@PREFIX@/bin/perl -w 6 6 7 7 # sqlgrey: a postfix greylisting policy server using an SQL backend -
trunk/dports/mail/sqlgrey/files/patch-sqlgrey.diff
r79570 r98805 1 --- sqlgrey.orig 2010-05-17 12:40:48.000000000 -07002 +++ sqlgrey 2010-05-17 12:40:52.000000000 -07001 --- a/sqlgrey 2012-08-24 18:05:39.000000000 -0700 2 +++ b/sqlgrey 2012-08-24 18:07:09.000000000 -0700 3 3 @@ -1,4 +1,4 @@ 4 4 -#!/usr/bin/perl -w 5 +#!@ @PREFIX@@/bin/perl -w5 +#!@PREFIX@/bin/perl -w 6 6 7 7 # sqlgrey: a postfix greylisting policy server using an SQL backend … … 13 13 -$dflt{user} = 'sqlgrey'; 14 14 -$dflt{group} = 'sqlgrey'; 15 +$dflt{user} = '@ @SQLGREYUSER@@';16 +$dflt{group} = '@ @SQLGREYGROUP@@';15 +$dflt{user} = '@SQLGREYUSER@'; 16 +$dflt{group} = '@SQLGREYGROUP@'; 17 17 $dflt{inet} = '2501'; 18 18 -$dflt{pidfile} = '/var/run/sqlgrey.pid'; 19 19 -$dflt{conf_dir} = '/etc/sqlgrey'; 20 +$dflt{pidfile} = '@ @PREFIX@@/var/run/@@NAME@@/sqlgrey.pid';21 +$dflt{conf_dir} = '@ @PREFIX@@/etc/sqlgrey';20 +$dflt{pidfile} = '@PREFIX@/var/run/@NAME@/sqlgrey.pid'; 21 +$dflt{conf_dir} = '@PREFIX@/etc/sqlgrey'; 22 22 $dflt{reconnect_delay} = 5; # 5 minutes 23 23 $dflt{max_connect_age} = 24; # 24 hours … … 28 28 # Default configuration file 29 29 -my $config_file = '/etc/sqlgrey/sqlgrey.conf'; 30 +my $config_file = '@ @PREFIX@@/etc/sqlgrey/sqlgrey.conf';30 +my $config_file = '@PREFIX@/etc/sqlgrey/sqlgrey.conf'; 31 31 32 32 # whitelist files … … 37 37 # 'warning: Filehandle STDERR reopened as FILE only \ 38 38 - # for input at /usr/bin/sqlgrey line 717, <FILE> line 57' 39 + # for input at @ @PREFIX@@/bin/sqlgrey line 717, <FILE> line 57'39 + # for input at @PREFIX@/bin/sqlgrey line 717, <FILE> line 57' 40 40 open(STDIN,'</dev/null'); 41 41 open(STDOUT,'>/dev/null'); … … 46 46 -f, --configfile=FILE read config from FILE 47 47 - (default /etc/sqlgrey/sqlgrey.conf) 48 + (default @ @PREFIX@@/etc/sqlgrey/sqlgrey.conf)48 + (default @PREFIX@/etc/sqlgrey/sqlgrey.conf) 49 49 expecting config_param=value lines, 50 50 - spaces are ignored, … … 52 52 53 53 -See the default config file at /etc/sqlgrey/sqlgrey.conf for runtime parameters. 54 +See the default config file at @ @PREFIX@@/etc/sqlgrey/sqlgrey.conf for runtime parameters.54 +See the default config file at @PREFIX@/etc/sqlgrey/sqlgrey.conf for runtime parameters. 55 55 If you got sqlgrey from sources, read the HOWTO file in the compressed archive. 56 56 If it came prepackaged, look into the documentation tree for this file: 57 57 -/usr/share/doc/sqlgrey-<version>/ on most Linux distributions for example. 58 +@ @PREFIX@@/share/doc/sqlgrey-<version>/ on most Linux distributions for example.58 +@PREFIX@/share/doc/sqlgrey-<version>/ on most Linux distributions for example. 59 59 60 60 =head1 DESCRIPTION … … 65 65 Start by adding check_policy_service after reject_unauth_destination in 66 66 -/etc/postfix/main.cf : 67 +@ @PREFIX@@/etc/postfix/main.cf :67 +@PREFIX@/etc/postfix/main.cf : 68 68 69 69 smtpd_recipient_restrictions = … … 74 74 75 75 -/etc/postfix/sqlgrey_recipient_access: 76 +@ @PREFIX@@/etc/postfix/sqlgrey_recipient_access:76 +@PREFIX@/etc/postfix/sqlgrey_recipient_access: 77 77 i_like_spam@ee.ethz.ch OK 78 78 … … 84 84 - check_client_access hash:/etc/postfix/sqlgrey_client_access 85 85 - check_recipient_access hash:/etc/postfix/sqlgrey_recipient_access 86 + check_client_access hash:@ @PREFIX@@/etc/postfix/sqlgrey_client_access87 + check_recipient_access hash:@ @PREFIX@@/etc/postfix/sqlgrey_recipient_access86 + check_client_access hash:@PREFIX@/etc/postfix/sqlgrey_client_access 87 + check_recipient_access hash:@PREFIX@/etc/postfix/sqlgrey_recipient_access 88 88 check_policy_service inet:127.0.0.1:10023 89 89 -
trunk/dports/mail/sqlgrey/files/patch-tester.pl.diff
r79570 r98805 1 --- tester.pl.orig 2010-05-17 11:57:50.000000000 -07002 +++ tester.pl 2010-05-17 11:58:00.000000000 -07001 --- a/tester.pl 2012-08-24 18:05:39.000000000 -0700 2 +++ b/tester.pl 2012-08-24 18:06:30.000000000 -0700 3 3 @@ -1,4 +1,4 @@ 4 4 -#!/usr/bin/perl 5 +#!@ @PREFIX@@/bin/perl5 +#!@PREFIX@/bin/perl 6 6 7 7 # Tester for SQLgrey
Note: See TracChangeset
for help on using the changeset viewer.