1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

- Update to 1.00

- Stage support

PR:		189964
Submitted by:	maintainer
This commit is contained in:
Martin Wilke 2014-06-04 11:07:19 +00:00
parent cae76c52ea
commit ba064f578b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356463
4 changed files with 104 additions and 90 deletions

View File

@ -2,96 +2,90 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= webfwlog PORTNAME= webfwlog
PORTVERSION= 0.94 PORTVERSION= 1.00
PORTREVISION= 2
CATEGORIES= security CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} 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 MAINTAINER= zeus@ix.netcom.com
COMMENT= A web-based firewall log analyzer COMMENT= A web-based firewall log analyzer
OPTIONS_DEFINE= MYSQL PGSQL EXAMPLES LICENSE= GPLv2
OPTIONS_DEFAULTS= MYSQL
OPTIONS_DEFINE= MYSQL MYSQLIPV6 PGSQL
OPTIONS_DEFAULTS= MYSQL MYSQLIPV6
MYSQLIPV6_DESC= Shared library plugin for Mysql IPv6 support
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-html-doc-root=${PREFIX} CONFIGURE_ARGS+= --with-html-doc-root=${WWWDIR} \
CONFIGURE_ARGS+= --enable-syslog --enable-syslog \
--sysconfdir=${ETCDIR} \
--disable-dependency-tracking
USE_PHP= session pcre MYSQL_CONFIGURE_WITH= mysql
PGSQL_CONFIGURE_WITH= pgsql
MYSQLIPV6_CONFIGURE_ENABLE= mysql-ipv6
USE_PHP= session
WANT_PHP_WEB= yes WANT_PHP_WEB= yes
SUB_FILES= pkg-message
SUB_LIST+= VERSION=${PORTVERSION}
PORTDOCS= AUTHORS COPYING CREDITS ChangeLog INSTALL \ PORTDOCS= AUTHORS COPYING CREDITS ChangeLog INSTALL \
README ReleaseNotes README ReleaseNotes
PORTEXAMPLES= *
NO_STAGE= yes
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL} .if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= mysql USE_PHP+= mysqli
USE_MYSQL= yes USE_MYSQL= server
CONFIGURE_ARGS+= --with-mysql MYSQL_PLUGIN_DIR_REL= lib/mysql/plugin
MYSQL_PLUGIN_DIR= ${LOCALBASE}/${MYSQL_PLUGIN_DIR_REL}
.if ${PORT_OPTIONS:MMYSQLIPV6} && exists (${MYSQL_PLUGIN_DIR})
USES+= libtool
CONFIGURE_ARGS+= --libdir=${MYSQL_PLUGIN_DIR}
USE_LDCONFIG= ${MYSQL_PLUGIN_DIR}
PLIST_FILES+= ${MYSQL_PLUGIN_DIR_REL}/libwebfwlog_udf.so
PLIST_FILES+= ${MYSQL_PLUGIN_DIR_REL}/libwebfwlog_udf.so.0
PLIST_FILES+= ${MYSQL_PLUGIN_DIR_REL}/libwebfwlog_udf.so.0.0.0
.endif
.endif .endif
.if ${PORT_OPTIONS:MPGSQL} .if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql USE_PHP+= pgsql
USE_PGSQL= yes USES+= pgsql
CONFIGURE_ARGS+= --with-pgsql WANT_PGSQL= server client
.endif .endif
BINMODE= 4550 SUB_FILES= pkg-message
BINGRP= ${WWWGRP} SUB_LIST+= VERSION=${PORTVERSION}
PLIST_SUB+= WWWGRP=${WWWGRP}
do-install: do-install:
@${MKDIR} ${WWWDIR} @${MKDIR} ${STAGEDIR}${WWWDIR}/include/
@${MKDIR} ${WWWDIR}/include/ @${INSTALL_DATA} ${WRKSRC}/webfwlog/style.css ${STAGEDIR}${WWWDIR}
@(cd ${WRKSRC}/webfwlog/include/ && ${COPYTREE_SHARE} \*.php ${WWWDIR}/include/) @${INSTALL_DATA} ${WRKSRC}/webfwlog/index.php ${STAGEDIR}${WWWDIR}
${CHMOD} 555 ${WWWDIR}/include @(cd ${WRKSRC}/webfwlog/include/ && ${COPYTREE_SHARE} \*.php ${STAGEDIR}${WWWDIR}/include/)
${INSTALL_PROGRAM} ${WRKSRC}/syslog/wfwl_syslog ${PREFIX}/bin/ @${ECHO} "Installed web files in ${WWWDIR}"
${INSTALL_DATA} ${WRKSRC}/webfwlog/style.css ${WWWDIR} @${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/webfwlog/index.php ${WWWDIR} @${INSTALL_DATA} ${WRKSRC}/webfwlog.conf ${STAGEDIR}${ETCDIR}/webfwlog.conf.sample
@${ECHO} "Installed ${ETCDIR}/webfwlog.conf"
@${INSTALL_PROGRAM} ${WRKSRC}/src/wfwl_syslog ${STAGEDIR}${PREFIX}/bin/
@${ECHO} "Installed ${PREFIX}/bin/wfwl_syslog"
.if ${PORT_OPTIONS:MMYSQLIPV6} && exists (${MYSQL_PLUGIN_DIR})
@${MKDIR} ${STAGEDIR}${MYSQL_PLUGIN_DIR}
@(cd ${WRKSRC}/src/mysql && ${MAKE} DESTDIR=${STAGEDIR} install-strip)
@${ECHO} "Installed mysql shared library in ${MYSQL_PLUGIN_DIR}"
.endif
post-install: post-install:
.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR}/mysql
@${MKDIR} ${DOCSDIR}/mysql @${MKDIR} ${STAGEDIR}${DOCSDIR}/pgsql
@${MKDIR} ${DOCSDIR}/pgsql @${MKDIR} ${STAGEDIR}${DOCSDIR}/examples
@(cd ${WRKSRC}/mysql/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/mysql/) @(cd ${WRKSRC}/mysql/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/mysql/)
@(cd ${WRKSRC}/pgsql/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/pgsql/) @(cd ${WRKSRC}/pgsql/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/pgsql/)
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/examples/)
.for docs in ${PORTDOCS} .for docs in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
.endfor .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> .include <bsd.port.mk>

View File

@ -1,4 +1,2 @@
SHA256 (webfwlog-0.94.tar.gz) = c1b84dd4036aa9f81fc4fbd527eda202e51c3767659b8f1eef12bfb3381c5b36 SHA256 (webfwlog-1.00.tar.gz) = 205775a4ff0cdf3dffe257228bdcbdc5752b7e5fed122f67d2330fb12a901957
SIZE (webfwlog-0.94.tar.gz) = 288138 SIZE (webfwlog-1.00.tar.gz) = 732212
SHA256 (webfwlog-0.94-tcpflags.patch) = b29df0df2b62ec99f121e50033b852e1a5177f0db1b31ecf12a8c535a16812dd
SIZE (webfwlog-0.94-tcpflags.patch) = 455

View File

@ -1,5 +1,9 @@
Webfwlog-%%VERSION%% has been installed. You should read the README in the mysql or Webfwlog-%%VERSION%% has been installed in %%WWWDIR%%.
pgsql directoy in %%DOCSDIR%% for information You should update your web server's configuration to provide access to this
on setting up your MySQL or PostgreSQL server for use with webfwlog, and also directory.
copy the webfwlog.conf.sample file in %%PREFIX%%/etc to webfwlog.conf and
adjust it to your installation. This file is well-commented. You should also read the README in the mysql or pgsql directoy in
%%DOCSDIR%% for information on setting up your MySQL or
PostgreSQL server for use with webfwlog, and edit the webfwlog.conf file in
%%ETCDIR%% and adjust it to your installation. This file is
well-commented.

View File

@ -1,30 +1,46 @@
@owner root
@group %%WWWGRP%%
@mode 4550
bin/wfwl_syslog bin/wfwl_syslog
etc/webfwlog.conf.sample @mode 640
@sample %%ETCDIR%%/webfwlog.conf.sample
@mode
@group wheel
%%PORTDOCS%%%%DOCSDIR%%/examples/basic
%%PORTDOCS%%%%DOCSDIR%%/examples/current_count
%%PORTDOCS%%%%DOCSDIR%%/examples/current_dport
%%PORTDOCS%%%%DOCSDIR%%/examples/last20hosts
%%PORTDOCS%%%%DOCSDIR%%/examples/latest_logged_packets
%%PORTDOCS%%%%DOCSDIR%%/examples/recent_active
%%PORTDOCS%%%%DOCSDIR%%/examples/tcpports
%%PORTDOCS%%%%DOCSDIR%%/examples/tcpsyn
%%PORTDOCS%%%%DOCSDIR%%/examples/udpports
%%PORTDOCS%%%%DOCSDIR%%/mysql/README %%PORTDOCS%%%%DOCSDIR%%/mysql/README
%%PORTDOCS%%%%DOCSDIR%%/mysql/setup %%PORTDOCS%%%%DOCSDIR%%/mysql/mysql_data_table.sql
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/temp_grants %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/snort_view
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/ulog_copy %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_function_grants
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/ulog_local %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_functions
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/ulogd_grants
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_grants %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_grants
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_hostnames_create %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_hostnames_create
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_hostnames_create_bin
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_reports_addcol %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_reports_addcol
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_reports_altercol %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_reports_altercol
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_reports_create %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_reports_create
%%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_services_create %%PORTDOCS%%%%DOCSDIR%%/mysql/scripts/wfwl_services_create
@mode 555
%%PORTDOCS%%%%DOCSDIR%%/mysql/setup
@mode
%%PORTDOCS%%%%DOCSDIR%%/pgsql/README %%PORTDOCS%%%%DOCSDIR%%/pgsql/README
%%PORTDOCS%%%%DOCSDIR%%/pgsql/setup %%PORTDOCS%%%%DOCSDIR%%/pgsql/pgsql_data_table.sql
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/ulog_copy %%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/snort_view
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/ulog_local
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/ulogd_73_grants
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/ulogd_grants
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_73_grants
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_functions %%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_functions
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_grants
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_hostnames_create %%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_hostnames_create
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_reports_addcol %%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_reports_addcol
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_reports_create %%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_reports_create
%%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_services_create %%PORTDOCS%%%%DOCSDIR%%/pgsql/scripts/wfwl_services_create
@mode 555
%%PORTDOCS%%%%DOCSDIR%%/pgsql/setup
@mode
%%WWWDIR%%/include/config.php %%WWWDIR%%/include/config.php
%%WWWDIR%%/include/criteria.php %%WWWDIR%%/include/criteria.php
%%WWWDIR%%/include/debug.php %%WWWDIR%%/include/debug.php
@ -45,11 +61,13 @@ etc/webfwlog.conf.sample
%%WWWDIR%%/include/static.php %%WWWDIR%%/include/static.php
%%WWWDIR%%/include/syslog.php %%WWWDIR%%/include/syslog.php
%%WWWDIR%%/include/update_cache.php %%WWWDIR%%/include/update_cache.php
%%WWWDIR%%/style.css
%%WWWDIR%%/index.php %%WWWDIR%%/index.php
%%PORTDOCS%%@dirrm %%DOCSDIR%%/pgsql/scripts %%WWWDIR%%/style.css
%%PORTDOCS%%@dirrm %%DOCSDIR%%/pgsql @dirrmtry %%ETCDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%/mysql/scripts %%PORTDOCS%%@dirrmtry %%DOCSDIR%%/examples
%%PORTDOCS%%@dirrm %%DOCSDIR%%/mysql %%PORTDOCS%%@dirrmtry %%DOCSDIR%%/mysql/scripts
@dirrm %%WWWDIR%%/include %%PORTDOCS%%@dirrmtry %%DOCSDIR%%/mysql
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/pgsql/scripts
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/pgsql
@dirrmtry %%WWWDIR%%/include
@dirrmtry %%WWWDIR%% @dirrmtry %%WWWDIR%%