View | Details | Raw Unified | Return to bug 97327 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/home/ler/ports/mail/exilog/Makefile (-8 / +13 lines)
Lines 2-13 Link Here
2
# Date created:				03 Jun 2005
2
# Date created:				03 Jun 2005
3
# Whom:					Vsevolod Stakhov <vsevolod@highsecure.ru>
3
# Whom:					Vsevolod Stakhov <vsevolod@highsecure.ru>
4
#
4
#
5
# $FreeBSD: ports/mail/exilog/Makefile,v 1.11 2006/05/15 13:27:29 sem Exp $
5
# $FreeBSD: ports/mail/exilog/Makefile,v 1.10 2006/05/10 22:36:50 edwin Exp $
6
#
6
#
7
7
8
PORTNAME=	exilog
8
PORTNAME=	exilog
9
PORTVERSION=	0.5
9
PORTVERSION=	0.5
10
PORTREVISION=	3
10
PORTREVISION=	4
11
CATEGORIES=	mail
11
CATEGORIES=	mail
12
MASTER_SITES=	http://duncanthrax.net/exilog/
12
MASTER_SITES=	http://duncanthrax.net/exilog/
13
13
Lines 27-50 Link Here
27
.if (${WITH_SQL_BACKEND} == "mysql")
27
.if (${WITH_SQL_BACKEND} == "mysql")
28
WITH_MYSQL=	yes
28
WITH_MYSQL=	yes
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
SERVER=mysql
30
.elif (${WITH_SQL_BACKEND} == "postgresql")
31
.elif (${WITH_SQL_BACKEND} == "postgresql")
31
WITH_POSTGRESQL=	yes
32
WITH_POSTGRESQL=	yes
32
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
33
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
34
SERVER=postgresql
33
.else
35
.else
34
BROKEN=	You should specify sql backend using WITH_SQL_BACKEND
36
BROKEN=	You should specify sql backend using WITH_SQL_BACKEND
35
.endif
37
.endif
36
38
SUB_LIST+=	SERVER=${SERVER}
37
.ifndef WITHOUT_WWWDIR
39
.ifndef WITHOUT_WWWDIR
38
EXILOGDIR?=	${PREFIX}/www/exilog
40
EXILOGDIR?=	${PREFIX}/www/exilog
39
.else
41
.else
40
EXILOGDIR?=	${PREFIX}/exilog
42
EXILOGDIR?=	${PREFIX}/exilog
41
.endif
43
.endif
42
44
.include <bsd.port.pre.mk>
43
.if defined(NO_AGENT)
45
.if defined(NO_AGENT)
44
PLIST_SUB+=	AGENT="@comment "
46
PLIST_SUB+=	AGENT="@comment "
45
.else
47
.else
46
USE_RC_SUBR=	exilog.sh
48
USE_RC_SUBR=	exilog.sh
47
PLIST_SUB+=	AGENT=""
49
PLIST_SUB+=	AGENT=""
50
.if (${OSVERSION} >= 700007 || (${OSVERSION} < 700000 && ${OSVERSION} >= 600101))
51
  RCSCRIPT=exilog
52
.else
53
  RCSCRIPT=exilog.sh
54
.endif
55
PLIST_SUB+=	RCSCRIPT=${RCSCRIPT}
48
.endif
56
.endif
49
57
50
PLIST_SUB+=	EXILOGDIR="${EXILOGDIR:S,^${PREFIX}/,,}"
58
PLIST_SUB+=	EXILOGDIR="${EXILOGDIR:S,^${PREFIX}/,,}"
Lines 76-84 Link Here
76
	@${CHMOD} 0600 ${PREFIX}/etc/exilog.conf-dist
84
	@${CHMOD} 0600 ${PREFIX}/etc/exilog.conf-dist
77
	@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/etc/exilog.conf-dist
85
	@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/etc/exilog.conf-dist
78
	@${CP} ${FILESDIR}/htaccess ${EXILOGDIR}/.htaccess
86
	@${CP} ${FILESDIR}/htaccess ${EXILOGDIR}/.htaccess
79
.if !defined(NO_AGENT)
80
	@${INSTALL_SCRIPT} ${WRKDIR}/exilog.sh ${PREFIX}/etc/rc.d
81
.endif
82
.if !defined(NOPORTDOCS)
87
.if !defined(NOPORTDOCS)
83
	@${MKDIR} ${DOCSDIR}
88
	@${MKDIR} ${DOCSDIR}
84
.for docfile in ${PORTDOC_FILES}
89
.for docfile in ${PORTDOC_FILES}
Lines 86-89 Link Here
86
.endfor
91
.endfor
87
.endif
92
.endif
88
93
89
.include <bsd.port.mk>
94
.include <bsd.port.post.mk>
(-)/usr/home/ler/ports/mail/exilog/files/exilog.sh.in (-1 / +5 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD: ports/mail/exilog/files/exilog.sh.in,v 1.1 2006/05/15 13:27:30 sem Exp $
3
# $FreeBSD: ports/mail/exilog/files/exilog.sh,v 1.2 2005/11/03 13:43:00 vsevolod Exp $
4
#
5
# PROVIDE: exilog
6
# REQUIRE: %%SERVER%%
7
# KEYWORD: shutdown
4
#
8
#
5
# Add the following lines to /etc/rc.conf to enable exilog agent:
9
# Add the following lines to /etc/rc.conf to enable exilog agent:
6
#
10
#
(-)/usr/home/ler/ports/mail/exilog/pkg-plist (-2 / +2 lines)
Lines 1-6 Link Here
1
%%AGENT%%@unexec [ ! -f /var/run/exilog.pid ] || %D/etc/rc.d/exilog.sh stop
1
%%AGENT%%@unexec [ ! -f /var/run/exilog.pid ] || %D/etc/rc.d/%%RCSCRIPT%% stop
2
%%AGENT%%sbin/exilog_agent.pl
2
%%AGENT%%sbin/exilog_agent.pl
3
%%AGENT%%etc/rc.d/exilog.sh
3
%%AGENT%%etc/rc.d/%%RCSCRIPT%%
4
sbin/exilog_cleanup.pl
4
sbin/exilog_cleanup.pl
5
%%EXILOGDIR%%/exilog_cgi.pl
5
%%EXILOGDIR%%/exilog_cgi.pl
6
%%EXILOGDIR%%/exilog_cgi_html.pm
6
%%EXILOGDIR%%/exilog_cgi_html.pm

Return to bug 97327