diff options
author | miwi <miwi@FreeBSD.org> | 2007-06-14 23:32:40 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-06-14 23:32:40 +0800 |
commit | b2c9a40f0dadb1d01c732a14cddf540c746f4cb1 (patch) | |
tree | ac37cd708bcd85ba01bc5b45a20a61068ac4ebc1 | |
parent | 908651c2f5223d2cd2a33c59f9c134a119fe4d16 (diff) | |
download | freebsd-ports-gnome-b2c9a40f0dadb1d01c732a14cddf540c746f4cb1.tar.gz freebsd-ports-gnome-b2c9a40f0dadb1d01c732a14cddf540c746f4cb1.tar.zst freebsd-ports-gnome-b2c9a40f0dadb1d01c732a14cddf540c746f4cb1.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>
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/macroscope/Makefile | 53 | ||||
-rw-r--r-- | net-mgmt/macroscope/distinfo | 3 | ||||
-rw-r--r-- | net-mgmt/macroscope/files/macroscope.in | 52 | ||||
-rw-r--r-- | net-mgmt/macroscope/pkg-descr | 20 | ||||
-rw-r--r-- | net-mgmt/macroscope/pkg-plist | 8 |
6 files changed, 137 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index f229bbd6965a..14ed115707ba 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -85,6 +85,7 @@ SUBDIR += kismet SUBDIR += knowlan SUBDIR += libsmi + SUBDIR += macroscope SUBDIR += mbrowse SUBDIR += mrtg SUBDIR += mrtg-ping-probe 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%% |