head	1.11;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.8
	RELEASE_8_2_0:1.8
	RELEASE_6_EOL:1.8
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.8
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2;
locks; strict;
comment	@# @;


1.11
date	2013.03.06.12.55.10;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.11.17.06.01.22;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2011.03.19.13.15.30;	author ale;	state Exp;
branches;
next	1.8;

1.8
date	2009.12.07.15.09.36;	author pav;	state Exp;
branches;
next	1.7;

1.7
date	2009.10.17.07.08.45;	author miwi;	state Exp;
branches;
next	1.6;

1.6
date	2009.08.22.00.35.08;	author amdmi3;	state Exp;
branches;
next	1.5;

1.5
date	2008.11.22.08.09.04;	author itetcu;	state Exp;
branches;
next	1.4;

1.4
date	2007.06.29.15.06.55;	author araujo;	state Exp;
branches;
next	1.3;

1.3
date	2006.06.09.13.12.03;	author mnag;	state Exp;
branches;
next	1.2;

1.2
date	2005.10.13.02.20.56;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2005.10.13.02.16.48;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313460
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Bob Hockney <zeus@@ix.netcom.com>
# $FreeBSD: head/security/webfwlog/Makefile 313460 2013-03-05 17:07:43Z miwi $

PORTNAME=	webfwlog
PORTVERSION=	0.94
PORTREVISION=	2
CATEGORIES=	security
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

PATCHFILES=	webfwlog-0.94-tcpflags.patch
PATCH_SITES=	http://devel.webfwlog.net/download/patches/

MAINTAINER=	zeus@@ix.netcom.com
COMMENT=	A web-based firewall log analyzer

OPTIONS_DEFINE=		MYSQL PGSQL EXAMPLES
OPTIONS_DEFAULTS=	MYSQL

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--with-html-doc-root=${PREFIX}
CONFIGURE_ARGS+=	--enable-syslog

USE_PHP=	session pcre
WANT_PHP_WEB=	yes

SUB_FILES=	pkg-message
SUB_LIST+=	VERSION=${PORTVERSION}

PORTDOCS=	AUTHORS COPYING CREDITS ChangeLog INSTALL \
		README ReleaseNotes
PORTEXAMPLES=	*

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+=	mysql
USE_MYSQL=	yes
CONFIGURE_ARGS+=	--with-mysql
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=	pgsql
USE_PGSQL=	yes
CONFIGURE_ARGS+=	--with-pgsql
.endif

BINMODE=	4550
BINGRP=	${WWWGRP}

do-install:
	@@${MKDIR} ${WWWDIR}
	@@${MKDIR} ${WWWDIR}/include/
	@@(cd ${WRKSRC}/webfwlog/include/ && ${COPYTREE_SHARE} \*.php ${WWWDIR}/include/)
	${CHMOD} 555 ${WWWDIR}/include
	${INSTALL_PROGRAM} ${WRKSRC}/syslog/wfwl_syslog ${PREFIX}/bin/
	${INSTALL_DATA} ${WRKSRC}/webfwlog/style.css ${WWWDIR}
	${INSTALL_DATA} ${WRKSRC}/webfwlog/index.php ${WWWDIR}

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}/mysql
	@@${MKDIR} ${DOCSDIR}/pgsql
	@@(cd ${WRKSRC}/mysql/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/mysql/)
	@@(cd ${WRKSRC}/pgsql/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/pgsql/)
.for docs in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
.endfor
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

	@@if test -f ${PREFIX}/etc/webfwlog.conf; \
	then \
		${CHOWN} :${WWWGRP} ${PREFIX}/etc/webfwlog.conf; \
		${CHMOD} 0640 ${PREFIX}/etc/webfwlog.conf; \
	fi
	@@${INSTALL_DATA} ${WRKSRC}/webfwlog.conf ${PREFIX}/etc/webfwlog.conf.sample
	@@${CHOWN} :${WWWGRP} ${PREFIX}/etc/webfwlog.conf.sample
	@@${CHMOD} 0640 ${PREFIX}/etc/webfwlog.conf.sample
	@@if test -f ${PREFIX}/etc/webfwlog.conf && \
		test -f ${PREFIX}/etc/webfwlog.conf.sample && \
		test "`diff ${PREFIX}/etc/webfwlog.conf ${PREFIX}/etc/webfwlog.conf.sample`" ; \
	then :; \
	else \
		${RM} -f ${PREFIX}/etc/webfwlog.conf; \
	fi
	@@${RM} -f ${PREFIX}/etc/webfwlog.conf.new

	@@${ECHO}
	@@${CAT} ${PKGMESSAGE}
	@@${ECHO}

.include <bsd.port.mk>
@


1.10
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:   webfwlog
# Date created:        21 November 2004
# Whom:                Bob Hockney <zeus@@ix.netcom.com>
#
# $FreeBSD: head/security/webfwlog/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d16 2
a17 2
OPTIONS=	MYSQL "Include MySQL Support" on \
		PGSQL "Include PostgreSQL Support" off
d35 1
a35 1
.if defined(WITH_MYSQL)
d41 1
a41 1
.if defined(WITH_PGSQL)
d60 1
a60 1
.if !defined(NOPORTDOCS)
d70 1
a70 1
.if !defined(NOPORTEXAMPLES)
@


1.9
log
@Bump PORTREVISION for ports linking to default libmysqlclient.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@- Add needed patch
- Fix options so they work
- Add dependencies on required php extensions
- Install the executable setuid so it can actually access the logs

PR:		ports/140399
Submitted by:	Bob Hockney <zeus@@ix.netcom.com> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.7
log
@- Update to 0.94
- Respect NOPORT*

PR:		139612
Submitted by:	Sylvio Cesar <scjamorim@@bsd.com.br>
Approved by:	maintainer
@
text
@d10 1
d14 3
d21 1
a21 1
		POSTGRESQL "Include PostgreSQL Support" off
d24 2
a25 2
CONFIGURE_ARGS+=--with-html-doc-root=${PREFIX}/${HTML_DOC_ROOT}
CONFIGURE_ARGS+=--enable-syslog
d27 1
a27 1
USE_PHP=	yes
a29 3
# Set HTML_DOC_ROOT to your webserver's Document Root where you
# want to install webfwlog, relative to ${PREFIX}.

d31 1
d37 2
d40 1
d42 1
a42 1
CONFIGURE_ARGS+=--with-mysql
d45 4
a48 3
.if defined(WITH_POSTGRESQL)
USE_PGSQL=
CONFIGURE_ARGS+=--with-pgsql
d51 3
d57 2
a58 1
	@@(cd ${WRKSRC}/webfwlog/include/ && ${COPYTREE_SHARE} \* ${WWWDIR}/include/)
@


1.6
log
@- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
@
text
@d9 1
a9 2
PORTVERSION=	0.93
PORTREVISION=	1
d30 2
a31 2
DOCS=		README AUTHORS COPYING \
		CREDITS ChangeLog INSTALL \
d33 1
a33 2

.include <bsd.port.pre.mk>
a47 2
	@@${MKDIR} ${EXAMPLESDIR}
	@@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
d59 2
a60 2
.for FILE in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
d64 5
d90 1
a90 1
.include <bsd.port.post.mk>
@


1.5
log
@- use PORTDOCS and DOCSDIR in plist and fix it for -DNOPORTDOCS
- use SF macro while here
- bump PORTREVISION

Approved by:	maintainer timeout on QAT BotMail
Prompted by:	QAT QA run
@
text
@d12 1
a12 1
MASTER_SITES=	SF
@


1.4
log
@- Update to 0.93.

PR:		ports/113231
Submitted by:	Bob Hockney <zeus@@ix.netcom.com> (maintainer)
Approved by:	stas (mentor)
@
text
@d10 1
d12 1
a12 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
a58 1
	@@${MKDIR} ${DOCSDIR}
@


1.3
log
@- Update to 0.92

PR:		98103
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	0.92
a13 4
PATCH_SITES=	http://devel.webfwlog.net/download/patches/
PATCHFILES=	webfwlog-0.92-date_syntax_url.patch
PATCH_DIST_STRIP=	-p1

a29 4
HTML_DOC_ROOT?=	www/data

PLIST_SUB=	HTML_DOC_ROOT=${HTML_DOC_ROOT}

d31 3
d47 9
a55 2
pre-install:
	@@${MKDIR} ${PREFIX}/${HTML_DOC_ROOT}
a57 1

d60 7
a66 16
	@@${INSTALL_MAN} ${WRKSRC}/COPYING ${WRKSRC}/AUTHORS ${WRKSRC}/README \
		${WRKSRC}/INSTALL ${WRKSRC}/CREDITS ${DOCSDIR}
	@@${INSTALL_MAN} ${WRKSRC}/ChangeLog ${WRKSRC}/ReleaseNotes ${DOCSDIR}

	@@${MKDIR} ${DOCSDIR}/mysql/scripts
	@@${INSTALL_MAN} ${WRKSRC}/mysql/README ${WRKSRC}/mysql/setup ${DOCSDIR}/mysql
	@@${INSTALL_MAN} ${WRKSRC}/mysql/scripts/* ${DOCSDIR}/mysql/scripts
	@@${CHMOD} a+x ${DOCSDIR}/mysql/setup

	@@${MKDIR} ${DOCSDIR}/pgsql/scripts
	@@${INSTALL_MAN} ${WRKSRC}/pgsql/README ${WRKSRC}/pgsql/setup ${DOCSDIR}/pgsql
	@@${INSTALL_MAN} ${WRKSRC}/pgsql/scripts/* ${DOCSDIR}/pgsql/scripts
	@@${CHMOD} a+x ${DOCSDIR}/pgsql/setup

	@@${MKDIR} ${EXAMPLESDIR}
	@@${INSTALL_MAN} ${WRKSRC}/examples/* ${EXAMPLESDIR}
a84 4
	@@${CHMOD} 0555 ${PREFIX}/${HTML_DOC_ROOT}/webfwlog
	@@${CHMOD} 0555 ${PREFIX}/${HTML_DOC_ROOT}/webfwlog/include
	@@${CHOWN} :${WWWGRP} ${PREFIX}/bin/wfwl_syslog
	@@${CHMOD} o-wrx ${PREFIX}/bin/wfwl_syslog
@


1.2
log
@Remove pkg-message, the one in WRKDIR is used.
@
text
@d9 1
a9 1
PORTVERSION=	0.91
d15 1
a15 1
PATCHFILES=	webfwlog-0.91-order_state.patch
a51 3
BINGRP=		${WWWGRP}
BINMODE=	4550

d95 2
@


1.1
log
@New port: security/webfwlog Web-based firewall log analyzer

	Webfwlog is a web-based firewall log analysis and reporting
	tool, and supports ipfilter and ipfw log file formats.  It
	is interactive and allow the user to "drill-down" from a
	summary report to packet details logged.  It also has great
	flexibility in the format of the output and which logged
	records are included.  Sample report definitions are included
	and are saved in a database (MySQL or PostgreSQL) and can
	be modified by the user.

	More info at: http://www.webfwlog.net

PR:		ports/80352
Submitted by:	Bob Hockney <zeus@@ix.netcom.com>
@
text
@d100 1
a100 1
	@@${CAT} pkg-message
@

