From owner-cvs-all@FreeBSD.ORG Thu Jun 14 15:47:35 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D8EE716A46D for ; Thu, 14 Jun 2007 15:47:35 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id 927AD13C43E for ; Thu, 14 Jun 2007 15:47:35 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by nz-out-0506.google.com with SMTP id 14so533610nzn for ; Thu, 14 Jun 2007 08:47:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=hK4BfMZODhIJLasRAUX6XuoCX8xQrnznqBF3TO7rhM0aKnR7yL48cFS1ZNaWJlVG27ojM/oKYkWqk3xZ8wEqNyQ5UdbLGKThiTW5lQOcHgowtwRYwfjIhVs9yW1jJB6s/RWyO64rU3AbYpDxl+jV1CXivirsigBa75HKaSo0jSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=e8Gy0Z+p8oTyQ86CmsLmKgf7ezX+u5SJMPP23EWqjEpIY2iU/0lbiQGFK8+ZutZyZg+0wy7YOqtNY19Wf1xu/UZrhMQuKQ4xNjB8n+zBtHV1z5uzBD0F8Cjxzs3L5QdKe7rEl/c3AWHRR8yZC2wVfCR31X8HTiArphLJYXJsEq4= Received: by 10.114.144.1 with SMTP id r1mr1991491wad.1181836054673; Thu, 14 Jun 2007 08:47:34 -0700 (PDT) Received: by 10.114.194.13 with HTTP; Thu, 14 Jun 2007 08:47:34 -0700 (PDT) Message-ID: Date: Thu, 14 Jun 2007 19:47:34 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Martin Wilke" , cvs-all@freebsd.org, cvs-ports@freebsd.org, ports-committers@freebsd.org, "Dukashvili Guram" In-Reply-To: <20070614153245.16C1716A4D2@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200706141532.l5EFWe4Y015940@repoman.freebsd.org> <20070614153245.16C1716A4D2@hub.freebsd.org> X-Google-Sender-Auth: 00aff2df91eaa928 Cc: Subject: Re: cvs commit: ports/net-mgmt Makefile ports/net-mgmt/macroscope Makefile distinfo pkg-descr pkg-plist ports/net-mgmt/macroscope/files macroscope.in X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: infofarmer@FreeBSD.org List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 15:47:35 -0000 On 6/14/07, Martin Wilke wrote: > miwi 2007-06-14 15:32:40 UTC > > FreeBSD ports repository > > Modified files: > net-mgmt Makefile > Added files: > net-mgmt/macroscope Makefile distinfo pkg-descr pkg-plist > net-mgmt/macroscope/files macroscope.in > Log: > 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 > > Revision Changes Path > 1.122 +1 -0 ports/net-mgmt/Makefile > 1.1 +53 -0 ports/net-mgmt/macroscope/Makefile (new) > 1.1 +3 -0 ports/net-mgmt/macroscope/distinfo (new) > 1.1 +52 -0 ports/net-mgmt/macroscope/files/macroscope.in (new) > 1.1 +20 -0 ports/net-mgmt/macroscope/pkg-descr (new) > 1.1 +8 -0 ports/net-mgmt/macroscope/pkg-plist (new) > _______________________________________________ > +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 Casual use of += where it's clear the variable has not been assigned yet is not encouraged. > +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 > + > +.if defined(NOPORTDOCS) > +CMAKE_ARGS+= -DCMAKE_NOT_INSTALL_DOC:BOOL=ON > +.endif > + > +.if defined(WITHOUT_MYSQL) > +USE_MYSQL= yes > +.endif This looks broken. > +.if defined(WITH_FIREBIRD) > +LIB_DEPENDS+= fbclient:${PORTSDIR}/databases/firebird-client > +.endif > + > +do-configure: > + @(cd ${WRKSRC}; \ > + ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} .) > + > +.include > Index: ports/net-mgmt/macroscope/distinfo > diff -u /dev/null ports/net-mgmt/macroscope/distinfo:1.1 > --- /dev/null Thu Jun 14 15:32:44 2007 > +++ ports/net-mgmt/macroscope/distinfo Thu Jun 14 15:32:40 2007 > @@ -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 > Index: ports/net-mgmt/macroscope/files/macroscope.in > diff -u /dev/null ports/net-mgmt/macroscope/files/macroscope.in:1.1 > --- /dev/null Thu Jun 14 15:32:44 2007 > +++ ports/net-mgmt/macroscope/files/macroscope.in Thu Jun 14 15:32:40 2007 > @@ -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" > Index: ports/net-mgmt/macroscope/pkg-descr > diff -u /dev/null ports/net-mgmt/macroscope/pkg-descr:1.1 > --- /dev/null Thu Jun 14 15:32:44 2007 > +++ ports/net-mgmt/macroscope/pkg-descr Thu Jun 14 15:32:40 2007 > @@ -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 > Index: ports/net-mgmt/macroscope/pkg-plist > diff -u /dev/null ports/net-mgmt/macroscope/pkg-plist:1.1 > --- /dev/null Thu Jun 14 15:32:44 2007 > +++ ports/net-mgmt/macroscope/pkg-plist Thu Jun 14 15:32:40 2007 > @@ -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%% We have PORTDOCS Makefile variable for simple cases like this one.