aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/macroscope
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-14 15:32:40 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-14 15:32:40 +0000
commit042855d8b298b59c8e70077d8a39ca1eb82efcd0 (patch)
treed5f3c6944accf5554fe7f614c0aa138289ba2ca1 /net-mgmt/macroscope
parent79a338a25a4a324a16c7919a187860f5a9fe5fc8 (diff)
downloadports-042855d8b298b59c8e70077d8a39ca1eb82efcd0.tar.gz
ports-042855d8b298b59c8e70077d8a39ca1eb82efcd0.zip
Macroscope is a squid, sendmail, courier, bpft log files analizer,
IP sniffer and HTML report generator. Features: squid log file parser. sendmail log file parser. courier log file parser. bpft(ports/net-mgmt/bpft) log file parser. Database backends support: MySQL, Firebird. IP sniffer via pcap library (ports/net/libpcap). Direct commit changes to database in realtime (no log files). Traffic static HTML reports generating by date periods. Traffic dynamic HTML reports generating via CGI (Web interface). Multithreading architecture. Portable: BSD os'es and Windows NT family supported, but tested at this time only under FreeBSD 5.x 6.x amd64 i386 and Windows 2000 XP 2003. WWW: http://developer.berlios.de/projects/macroscope/ - Dukashvili Guram white_raven@users.berlios.de PR: ports/112653 Submitted by: Dukashvili Guram <white_raven at users.berlios.de>
Notes
Notes: svn path=/head/; revision=193485
Diffstat (limited to 'net-mgmt/macroscope')
-rw-r--r--net-mgmt/macroscope/Makefile53
-rw-r--r--net-mgmt/macroscope/distinfo3
-rw-r--r--net-mgmt/macroscope/files/macroscope.in52
-rw-r--r--net-mgmt/macroscope/pkg-descr20
-rw-r--r--net-mgmt/macroscope/pkg-plist8
5 files changed, 136 insertions, 0 deletions
diff --git a/net-mgmt/macroscope/Makefile b/net-mgmt/macroscope/Makefile
new file mode 100644
index 000000000000..c8fcba7d6383
--- /dev/null
+++ b/net-mgmt/macroscope/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: macroscope
+# Date created: 2007-05-14
+# Whom: Dukashvili Guram <white_raven@users.berlios.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= macroscope
+PORTVERSION= 1.0.2108
+CATEGORIES= net-mgmt
+MASTER_SITES= ftp://ftp.berlios.de/pub/macroscope/ \
+ http://white-raven.pisem.net/
+
+MAINTAINER= white_raven@users.berlios.de
+COMMENT= User and IP traffic management with Web interface
+
+OPTIONS= MYSQL "With MySQL support" on \
+ FIREBIRD "With Firebird support" off
+
+USE_BZIP2= yes
+USE_RC_SUBR= macroscope
+
+BUILD_DEPENDS+= cmake:${PORTSDIR}/devel/cmake
+LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 \
+ odbc:${PORTSDIR}/databases/unixODBC \
+ pcap:${PORTSDIR}/net/libpcap
+
+CMAKE_ARGS= -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DCMAKE_C_COMPILER:STRING="${CC}" \
+ -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
+ -DCMAKE_CXX_COMPILER:STRING="${CXX}" \
+ -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX=${PREFIX}
+
+.include <bsd.port.pre.mk>
+
+.if defined(NOPORTDOCS)
+CMAKE_ARGS+= -DCMAKE_NOT_INSTALL_DOC:BOOL=ON
+.endif
+
+.if defined(WITHOUT_MYSQL)
+USE_MYSQL= yes
+.endif
+
+.if defined(WITH_FIREBIRD)
+LIB_DEPENDS+= fbclient:${PORTSDIR}/databases/firebird-client
+.endif
+
+do-configure:
+ @(cd ${WRKSRC}; \
+ ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} .)
+
+.include <bsd.port.post.mk>
diff --git a/net-mgmt/macroscope/distinfo b/net-mgmt/macroscope/distinfo
new file mode 100644
index 000000000000..dcb42c8f83c0
--- /dev/null
+++ b/net-mgmt/macroscope/distinfo
@@ -0,0 +1,3 @@
+MD5 (macroscope-1.0.2108.tar.bz2) = b53a2775c402a0a64dbcd43abda1dec8
+SHA256 (macroscope-1.0.2108.tar.bz2) = 62a8154e75709d0ad7955c8638301e3502e5a8023a2db43f211041138a210638
+SIZE (macroscope-1.0.2108.tar.bz2) = 1984504
diff --git a/net-mgmt/macroscope/files/macroscope.in b/net-mgmt/macroscope/files/macroscope.in
new file mode 100644
index 000000000000..ffb0f9879b16
--- /dev/null
+++ b/net-mgmt/macroscope/files/macroscope.in
@@ -0,0 +1,52 @@
+#!/bin/sh
+#
+# macroscope - start Macroscope daemon
+#
+# $FreeBSD$
+#
+# PROVIDE: macroscope
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+# -----------------------------------------------------------------------------
+# macroscope_enable="NO" # set to YES to enable macroscope
+#
+# # optional:
+# macroscope_flags="" # additional command line arguments
+#
+
+. %%RC_SUBR%%
+
+name="macroscope"
+rcvar=$(set_rcvar)
+
+prefix="%%PREFIX%%"
+
+start_precmd()
+{
+ return 0
+}
+
+stop_postcmd()
+{
+ rm -f "$pidfile" || warn "Could not remove $pidfile."
+}
+
+# pidfile
+eval pidfile=\$${name}_pidfile
+pidfile=${pidfile:-/var/run/${name}.pid}
+echo ${pidfile}
+
+# command and arguments
+command="%%PREFIX%%/sbin/${name}"
+
+# run this first
+start_precmd="start_precmd"
+# and this last
+stop_postcmd="stop_postcmd"
+
+load_rc_config ${name}
+
+command_args="--sniffer --daemon --pid ${pidfile}"
+
+run_rc_command "$1"
diff --git a/net-mgmt/macroscope/pkg-descr b/net-mgmt/macroscope/pkg-descr
new file mode 100644
index 000000000000..5be90b7a7e17
--- /dev/null
+++ b/net-mgmt/macroscope/pkg-descr
@@ -0,0 +1,20 @@
+Macroscope is a squid, sendmail, courier, bpft log files analizer,
+ IP sniffer and HTML report generator.
+Features:
+ squid log file parser.
+ sendmail log file parser.
+ courier log file parser.
+ bpft(ports/net-mgmt/bpft) log file parser.
+ Database backends support: MySQL, Firebird.
+ IP sniffer via pcap library (ports/net/libpcap).
+ Direct commit changes to database in realtime (no log files).
+ Traffic static HTML reports generating by date periods.
+ Traffic dynamic HTML reports generating via CGI (Web interface).
+ Multithreading architecture.
+ Portable: BSD os'es and Windows NT family supported, but tested at this time
+ only under FreeBSD 5.x 6.x amd64 i386 and Windows 2000 XP 2003.
+
+WWW: http://developer.berlios.de/projects/macroscope/
+
+- Dukashvili Guram
+white_raven@users.berlios.de
diff --git a/net-mgmt/macroscope/pkg-plist b/net-mgmt/macroscope/pkg-plist
new file mode 100644
index 000000000000..27ddfd99f9e4
--- /dev/null
+++ b/net-mgmt/macroscope/pkg-plist
@@ -0,0 +1,8 @@
+etc/macroscope.conf.template
+sbin/macroscope
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/mysql-user
+%%PORTDOCS%%@dirrm %%DOCSDIR%%