- Fix PostgreSQL support

- Pet portlint
- Unquote BROKEN message
- Use modern USE_RC_SUBR style

PR:		ports/97213
Submitted by:	maintainer
This commit is contained in:
Sergey Matveychuk 2006-05-15 13:27:30 +00:00
parent 1d988b45cf
commit ea42e87bab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162438
3 changed files with 16 additions and 7 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= exilog PORTNAME= exilog
PORTVERSION= 0.5 PORTVERSION= 0.5
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= http://duncanthrax.net/exilog/ 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 RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
.elif (${WITH_SQL_BACKEND} == "postgresql") .elif (${WITH_SQL_BACKEND} == "postgresql")
WITH_POSTGRESQL= yes 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 .else
BROKEN= "You should specify sql backend using WITH_SQL_BACKEND" BROKEN= You should specify sql backend using WITH_SQL_BACKEND
.endif .endif
.ifndef WITHOUT_WWWDIR .ifndef WITHOUT_WWWDIR
@ -43,7 +43,7 @@ EXILOGDIR?= ${PREFIX}/exilog
.if defined(NO_AGENT) .if defined(NO_AGENT)
PLIST_SUB+= AGENT="@comment " PLIST_SUB+= AGENT="@comment "
.else .else
USE_RC_SUBR= yes USE_RC_SUBR= exilog.sh
PLIST_SUB+= AGENT="" PLIST_SUB+= AGENT=""
.endif .endif
@ -60,8 +60,6 @@ pre-patch:
@${REINPLACE_CMD} -e 's,$$RealBin/exilog.conf,${PREFIX}/etc/exilog.conf,' ${WRKSRC}/exilog_config.pm @${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_agent.pl
@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_cleanup.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: do-install:
@${MKDIR} ${EXILOGDIR} @${MKDIR} ${EXILOGDIR}

View file

@ -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;