From ea42e87bab0ad8cf32c20f267005fec1ec2ab5f7 Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Mon, 15 May 2006 13:27:30 +0000 Subject: - Fix PostgreSQL support - Pet portlint - Unquote BROKEN message - Use modern USE_RC_SUBR style PR: ports/97213 Submitted by: maintainer --- mail/exilog/files/exilog.sh | 25 ------------------------- mail/exilog/files/exilog.sh.in | 25 +++++++++++++++++++++++++ mail/exilog/files/patch-exilog_sql.pm | 11 +++++++++++ 3 files changed, 36 insertions(+), 25 deletions(-) delete mode 100644 mail/exilog/files/exilog.sh create mode 100644 mail/exilog/files/exilog.sh.in create mode 100644 mail/exilog/files/patch-exilog_sql.pm (limited to 'mail/exilog/files') diff --git a/mail/exilog/files/exilog.sh b/mail/exilog/files/exilog.sh deleted file mode 100644 index 2e35be60ad15..000000000000 --- a/mail/exilog/files/exilog.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Add the following lines to /etc/rc.conf to enable exilog agent: -# -#exilog_enable="YES" -# -# also uncomment 'use_pretty_names' => 'no' in exilog.conf file - -. %%RC_SUBR%% - -name=exilog -rcvar=`set_rcvar` - -command=%%PREFIX%%/sbin/exilog_agent.pl -pidfile=/var/run/exilog.pid -required_files=%%PREFIX%%/etc/exilog.conf -command_interpreter=/usr/bin/perl - -# read settings, set default values -load_rc_config $name -: ${exilog_enable="NO"} - -run_rc_command "$1" diff --git a/mail/exilog/files/exilog.sh.in b/mail/exilog/files/exilog.sh.in new file mode 100644 index 000000000000..2e35be60ad15 --- /dev/null +++ b/mail/exilog/files/exilog.sh.in @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Add the following lines to /etc/rc.conf to enable exilog agent: +# +#exilog_enable="YES" +# +# also uncomment 'use_pretty_names' => 'no' in exilog.conf file + +. %%RC_SUBR%% + +name=exilog +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/exilog_agent.pl +pidfile=/var/run/exilog.pid +required_files=%%PREFIX%%/etc/exilog.conf +command_interpreter=/usr/bin/perl + +# read settings, set default values +load_rc_config $name +: ${exilog_enable="NO"} + +run_rc_command "$1" diff --git a/mail/exilog/files/patch-exilog_sql.pm b/mail/exilog/files/patch-exilog_sql.pm new file mode 100644 index 000000000000..9f1aa3d1099c --- /dev/null +++ b/mail/exilog/files/patch-exilog_sql.pm @@ -0,0 +1,11 @@ +--- /usr/local/www/exilog/exilog_sql.pm Tue Feb 21 16:23:56 2006 ++++ exilog_sql.pm Wed Aug 24 09:22:29 2005 +@@ -208,7 +208,7 @@ + sub _pgsql_sql_optimize { + my $where = shift || "nothing"; + +- my $sql = "OPTIMIZE TABLE ".$where; ++ my $sql = "VACUUM ANALYZE ".$where; + my $sh = $dbh->prepare($sql); + $sh->execute; + $sh->finish; -- cgit v1.2.3