View | Details | Raw Unified | Return to bug 97213
Collapse All | Expand All

(-)/usr/home/ler/ports/exilog/Makefile (-7 / +5 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	exilog
8
PORTNAME=	exilog
9
PORTVERSION=	0.5
9
PORTVERSION=	0.5
10
PORTREVISION=	2
10
PORTREVISION=	3
11
CATEGORIES=	mail
11
CATEGORIES=	mail
12
MASTER_SITES=	http://duncanthrax.net/exilog/
12
MASTER_SITES=	http://duncanthrax.net/exilog/
13
13
Lines 29-37 Link Here
29
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
29
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
30
.elif (${WITH_SQL_BACKEND} == "postgresql")
30
.elif (${WITH_SQL_BACKEND} == "postgresql")
31
WITH_POSTGRESQL=	yes
31
WITH_POSTGRESQL=	yes
32
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
32
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
33
.else
33
.else
34
BROKEN=	"You should specify sql backend using WITH_SQL_BACKEND"
34
BROKEN=	You should specify sql backend using WITH_SQL_BACKEND
35
.endif
35
.endif
36
36
37
.ifndef WITHOUT_WWWDIR
37
.ifndef WITHOUT_WWWDIR
Lines 43-49 Link Here
43
.if defined(NO_AGENT)
43
.if defined(NO_AGENT)
44
PLIST_SUB+=	AGENT="@comment "
44
PLIST_SUB+=	AGENT="@comment "
45
.else
45
.else
46
USE_RC_SUBR=	yes
46
USE_RC_SUBR=	exilog.sh
47
PLIST_SUB+=	AGENT=""
47
PLIST_SUB+=	AGENT=""
48
.endif
48
.endif
49
49
Lines 60-74 Link Here
60
	@${REINPLACE_CMD} -e 's,$$RealBin/exilog.conf,${PREFIX}/etc/exilog.conf,' ${WRKSRC}/exilog_config.pm
60
	@${REINPLACE_CMD} -e 's,$$RealBin/exilog.conf,${PREFIX}/etc/exilog.conf,' ${WRKSRC}/exilog_config.pm
61
	@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_agent.pl
61
	@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_agent.pl
62
	@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_cleanup.pl
62
	@${REINPLACE_CMD} -e "s,\(use exilog_config\),use lib \'${EXILOGDIR}\'; \1," ${WRKSRC}/exilog_cleanup.pl
63
	@${SED} -e 's,%%RC_SUBR%%,${RC_SUBR},' \
64
		-e 's,%%PREFIX%%,${PREFIX},' ${FILESDIR}/exilog.sh > ${WRKDIR}/exilog.sh
65
63
66
do-install:
64
do-install:
67
	@${MKDIR} ${EXILOGDIR}
65
	@${MKDIR} ${EXILOGDIR}
68
	@${MKDIR} ${EXILOGDIR}/icons
66
	@${MKDIR} ${EXILOGDIR}/icons
69
	@${CP} ${WRKSRC}/*.pm ${WRKSRC}/*.css ${WRKSRC}/*.js ${EXILOGDIR}
67
	@${CP} ${WRKSRC}/*.pm ${WRKSRC}/*.css ${WRKSRC}/*.js ${EXILOGDIR}
70
	@${CP} ${WRKSRC}/icons/*  ${EXILOGDIR}/icons
68
	@${CP} ${WRKSRC}/icons/*  ${EXILOGDIR}/icons
71
	
69
72
.if !defined(NO_AGENT)
70
.if !defined(NO_AGENT)
73
	@${INSTALL_SCRIPT} ${WRKSRC}/exilog_agent.pl ${PREFIX}/sbin
71
	@${INSTALL_SCRIPT} ${WRKSRC}/exilog_agent.pl ${PREFIX}/sbin
74
.endif
72
.endif
(-)/usr/home/ler/ports/exilog/files/exilog.sh (-25 lines)
Lines 1-25 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/exilog/files/exilog.sh,v 1.2 2005/11/03 13:43:00 vsevolod Exp $
4
#
5
# Add the following lines to /etc/rc.conf to enable exilog agent:
6
#
7
#exilog_enable="YES"
8
#
9
# also uncomment  'use_pretty_names' => 'no' in exilog.conf file
10
11
. %%RC_SUBR%%
12
13
name=exilog
14
rcvar=`set_rcvar`
15
16
command=%%PREFIX%%/sbin/exilog_agent.pl
17
pidfile=/var/run/exilog.pid
18
required_files=%%PREFIX%%/etc/exilog.conf
19
command_interpreter=/usr/bin/perl
20
21
# read settings, set default values
22
load_rc_config $name
23
: ${exilog_enable="NO"}
24
25
run_rc_command "$1"
(-)/usr/home/ler/ports/exilog/files/exilog.sh.in (+25 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/exilog/files/exilog.sh,v 1.2 2005/11/03 13:43:00 vsevolod Exp $
4
#
5
# Add the following lines to /etc/rc.conf to enable exilog agent:
6
#
7
#exilog_enable="YES"
8
#
9
# also uncomment  'use_pretty_names' => 'no' in exilog.conf file
10
11
. %%RC_SUBR%%
12
13
name=exilog
14
rcvar=`set_rcvar`
15
16
command=%%PREFIX%%/sbin/exilog_agent.pl
17
pidfile=/var/run/exilog.pid
18
required_files=%%PREFIX%%/etc/exilog.conf
19
command_interpreter=/usr/bin/perl
20
21
# read settings, set default values
22
load_rc_config $name
23
: ${exilog_enable="NO"}
24
25
run_rc_command "$1"
(-)/usr/home/ler/ports/exilog/files/patch-exilog_sql.pm (+11 lines)
Line 0 Link Here
1
--- /usr/local/www/exilog/exilog_sql.pm	Tue Feb 21 16:23:56 2006
2
+++ exilog_sql.pm	Wed Aug 24 09:22:29 2005
3
@@ -208,7 +208,7 @@
4
 sub _pgsql_sql_optimize {
5
   my $where = shift || "nothing";
6
 
7
-  my $sql = "OPTIMIZE TABLE ".$where;
8
+  my $sql = "VACUUM ANALYZE  ".$where;
9
   my $sh = $dbh->prepare($sql);
10
   $sh->execute;
11
   $sh->finish;

Return to bug 97213