aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exilog
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-05-15 21:27:30 +0800
committersem <sem@FreeBSD.org>2006-05-15 21:27:30 +0800
commit444ebc9ba2c000e28d62f02e11e6ccc892c3899f (patch)
tree3545fb93ca593152a23918dc54a8686a6687b9b0 /mail/exilog
parent043ddd8c22f2d984d909c8ef8d5afc0e9393ce29 (diff)
downloadfreebsd-ports-gnome-444ebc9ba2c000e28d62f02e11e6ccc892c3899f.tar.gz
freebsd-ports-gnome-444ebc9ba2c000e28d62f02e11e6ccc892c3899f.tar.zst
freebsd-ports-gnome-444ebc9ba2c000e28d62f02e11e6ccc892c3899f.zip
- Fix PostgreSQL support
- Pet portlint - Unquote BROKEN message - Use modern USE_RC_SUBR style PR: ports/97213 Submitted by: maintainer
Diffstat (limited to 'mail/exilog')
-rw-r--r--mail/exilog/Makefile12
-rw-r--r--mail/exilog/files/exilog.sh.in (renamed from mail/exilog/files/exilog.sh)0
-rw-r--r--mail/exilog/files/patch-exilog_sql.pm11
3 files changed, 16 insertions, 7 deletions
diff --git a/mail/exilog/Makefile b/mail/exilog/Makefile
index 765b3a8c0fb9..185ee305e6da 100644
--- a/mail/exilog/Makefile
+++ b/mail/exilog/Makefile
@@ -7,7 +7,7 @@
PORTNAME= exilog
PORTVERSION= 0.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://duncanthrax.net/exilog/
@@ -29,9 +29,9 @@ WITH_MYSQL= yes
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
.elif (${WITH_SQL_BACKEND} == "postgresql")
WITH_POSTGRESQL= yes
-RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
.else
-BROKEN= "You should specify sql backend using WITH_SQL_BACKEND"
+BROKEN= You should specify sql backend using WITH_SQL_BACKEND
.endif
.ifndef WITHOUT_WWWDIR
@@ -43,7 +43,7 @@ EXILOGDIR?= ${PREFIX}/exilog
.if defined(NO_AGENT)
PLIST_SUB+= AGENT="@comment "
.else
-USE_RC_SUBR= yes
+USE_RC_SUBR= exilog.sh
PLIST_SUB+= AGENT=""
.endif
@@ -60,15 +60,13 @@ pre-patch:
@${REINPLACE_CMD} -e 's,$$RealBin/exilog.conf,${PREFIX}/etc/exilog.conf,' ${WRKSRC}/exilog_config.pm
@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_agent.pl
@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_cleanup.pl
- @${SED} -e 's,%%RC_SUBR%%,${RC_SUBR},' \
- -e 's,%%PREFIX%%,${PREFIX},' ${FILESDIR}/exilog.sh > ${WRKDIR}/exilog.sh
do-install:
@${MKDIR} ${EXILOGDIR}
@${MKDIR} ${EXILOGDIR}/icons
@${CP} ${WRKSRC}/*.pm ${WRKSRC}/*.css ${WRKSRC}/*.js ${EXILOGDIR}
@${CP} ${WRKSRC}/icons/* ${EXILOGDIR}/icons
-
+
.if !defined(NO_AGENT)
@${INSTALL_SCRIPT} ${WRKSRC}/exilog_agent.pl ${PREFIX}/sbin
.endif
diff --git a/mail/exilog/files/exilog.sh b/mail/exilog/files/exilog.sh.in
index 2e35be60ad15..2e35be60ad15 100644
--- a/mail/exilog/files/exilog.sh
+++ b/mail/exilog/files/exilog.sh.in
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;