diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-15 13:27:30 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-15 13:27:30 +0000 |
commit | ea42e87bab0ad8cf32c20f267005fec1ec2ab5f7 (patch) | |
tree | d386881b6be0cbe96d36938e3e1ee3708d675da7 /mail/exilog | |
parent | 1d988b45cfef0a5a487963e457e16bdb83924acb (diff) | |
download | ports-ea42e87bab0ad8cf32c20f267005fec1ec2ab5f7.tar.gz ports-ea42e87bab0ad8cf32c20f267005fec1ec2ab5f7.zip |
Notes
Diffstat (limited to 'mail/exilog')
-rw-r--r-- | mail/exilog/Makefile | 12 | ||||
-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.pm | 11 |
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; |