From owner-svn-ports-head@FreeBSD.ORG Tue Oct 2 20:26:17 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2551106564A; Tue, 2 Oct 2012 20:26:17 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CC3118FC12; Tue, 2 Oct 2012 20:26:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q92KQHfk000113; Tue, 2 Oct 2012 20:26:17 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q92KQHaU000102; Tue, 2 Oct 2012 20:26:17 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201210022026.q92KQHaU000102@svn.freebsd.org> From: Hiroki Sato Date: Tue, 2 Oct 2012 20:26:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r305174 - in head: . net-mgmt net-mgmt/ipv6mon net-mgmt/ipv6mon/files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 20:26:18 -0000 Author: hrs Date: Tue Oct 2 20:26:17 2012 New Revision: 305174 URL: http://svn.freebsd.org/changeset/ports/305174 Log: Add net-mgmt/ipv6mon, a tool for monitoring IPv6 address usage on a local network. WWW: http://www.si6networks.com/tools/ipv6mon/ Added: head/net-mgmt/ipv6mon/ head/net-mgmt/ipv6mon/Makefile (contents, props changed) head/net-mgmt/ipv6mon/distinfo (contents, props changed) head/net-mgmt/ipv6mon/files/ head/net-mgmt/ipv6mon/files/ipv6mon.in (contents, props changed) head/net-mgmt/ipv6mon/files/patch-Makefile (contents, props changed) head/net-mgmt/ipv6mon/files/patch-ipv6mon.c (contents, props changed) head/net-mgmt/ipv6mon/pkg-descr (contents, props changed) head/net-mgmt/ipv6mon/pkg-plist (contents, props changed) Modified: head/GIDs head/UIDs head/net-mgmt/Makefile Modified: head/GIDs ============================================================================== --- head/GIDs Tue Oct 2 19:36:52 2012 (r305173) +++ head/GIDs Tue Oct 2 20:26:17 2012 (r305174) @@ -81,6 +81,7 @@ dovenull:*:144: webcamd:*:145: ventrilo:*:146: kdm:*:147: +ipv6mon:*:148: rbldns:*:153: trircd:*:154: sfs:*:171: Modified: head/UIDs ============================================================================== --- head/UIDs Tue Oct 2 19:36:52 2012 (r305173) +++ head/UIDs Tue Oct 2 20:26:17 2012 (r305174) @@ -88,6 +88,7 @@ dovenull:*:144:144::0:0:Dovecot login Us webcamd:*:145:145::0:0:Webcamd user:/var/empty:/usr/sbin/nologin ventrilo:*:146:146::0:0:& server:/usr/local/ventrilo-server:/usr/sbin/nologin kdm:*:147:147::0:0:KDE Display Manager:/nonexistent:/usr/sbin/nologin +ipv6mon:*:148:148::0:0:IPv6 Address Monitoring Daemon:/nonexistent:/usr/sbin/nologin rbldns:*:153:153::0:0:rbldnsd pseudo-user:/nonexistent:/usr/sbin/nologin trircd:*:154:154::0:0:& user:/usr/local/etc/tr-ircd:/usr/sbin/nologin sfs:*:171:171::0:0:Self-Certifying File System:/nonexistent:/usr/sbin/nologin Modified: head/net-mgmt/Makefile ============================================================================== --- head/net-mgmt/Makefile Tue Oct 2 19:36:52 2012 (r305173) +++ head/net-mgmt/Makefile Tue Oct 2 20:26:17 2012 (r305174) @@ -98,6 +98,7 @@ SUBDIR += ipplan SUBDIR += ipv6calc SUBDIR += ipv6gen + SUBDIR += ipv6mon SUBDIR += irrtoolset SUBDIR += isic SUBDIR += jnettop Added: head/net-mgmt/ipv6mon/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/ipv6mon/Makefile Tue Oct 2 20:26:17 2012 (r305174) @@ -0,0 +1,45 @@ +# Created by: Hiroki Sato +# $FreeBSD$ + +PORTNAME= ipv6mon +PORTVERSION= 1.0 +CATEGORIES= net-mgmt ipv6 +MASTER_SITES= http://www.si6networks.com/tools/ipv6mon/ +DISTNAME= ${PORTNAME}-v${PORTVERSION} + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Tool for monitoring IPv6 address usage + +LICENSE= GPLv3 + +MAKE_ENV= DESTDIR=${PREFIX}/ +CFLAGS+= -DIPV6MON_CONF=\\\"${PREFIX}/etc/ipv6mon.conf\\\" +USERS= ${PORTNAME} +GROUPS= ${PORTNAME} +USE_RC_SUBR= ${PORTNAME} + +MAN5= ipv6mon.conf.5 +MAN8= ipv6mon.8 + +PORTDOCS= README.TXT \ + ipv6mon-installation-notes.odt \ + ipv6mon-installation-notes.pdf \ + ipv6mon-manual.odt \ + ipv6mon-manual.pdf + +post-extract: + ${INSTALL_DATA} ${WRKSRC}/manuals/* ${WRKSRC} + +post-install: + if [ ! -r ${PREFIX}/etc/ipv6mon.conf ]; then \ + ${INSTALL_DATA} ${PREFIX}/etc/ipv6mon.conf.dist \ + ${PREFIX}/etc/ipv6mon.conf; \ + fi + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/etc/rc.d +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && \ + ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.endif + +.include Added: head/net-mgmt/ipv6mon/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/ipv6mon/distinfo Tue Oct 2 20:26:17 2012 (r305174) @@ -0,0 +1,2 @@ +SHA256 (ipv6mon-v1.0.tar.gz) = f714a877de4fbf80126c4b8ad2e3496739695ee1eb3a914eae344fdd6325e138 +SIZE (ipv6mon-v1.0.tar.gz) = 211625 Added: head/net-mgmt/ipv6mon/files/ipv6mon.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/ipv6mon/files/ipv6mon.in Tue Oct 2 20:26:17 2012 (r305174) @@ -0,0 +1,18 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: ipv6mon +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="ipv6mon" +rcvar=$name +command="%%PREFIX%%/sbin/${name}" +pidfile="/var/run/${name}.pid" +required_files="%%PREFIX%%/etc/${name}.conf" + +load_rc_config $name +run_rc_command "$1" Added: head/net-mgmt/ipv6mon/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/ipv6mon/files/patch-Makefile Tue Oct 2 20:26:17 2012 (r305174) @@ -0,0 +1,19 @@ +--- /dev/null 2012-09-18 11:55:15.000000000 +0900 ++++ Makefile 2012-09-18 11:55:52.000000000 +0900 +@@ -0,0 +1,16 @@ ++# $FreeBSD$ ++ ++PROG= ipv6mon ++LDADD= -lpcap ++ ++FILES= ipv6mon.conf ++FILESNAME= ipv6mon.conf.dist ++FILESDIR= etc ++ ++BINDIR= sbin ++MANDIR= man/man ++ ++MAN= ipv6mon.8 ipv6mon.conf.5 ++NO_MANCOMPRESS= ++ ++.include Added: head/net-mgmt/ipv6mon/files/patch-ipv6mon.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/ipv6mon/files/patch-ipv6mon.c Tue Oct 2 20:26:17 2012 (r305174) @@ -0,0 +1,21 @@ +--- ipv6mon.c.orig 2012-09-20 13:02:24.000000000 +0900 ++++ ipv6mon.c 2012-09-20 13:02:26.000000000 +0900 +@@ -277,7 +277,7 @@ + } + + if(!configfile_f){ +- configfile="/etc/ipv6mon.conf"; ++ configfile=IPV6MON_CONF; + } + + if(process_config_file(configfile) == -1) +@@ -888,7 +888,8 @@ + usage(); + + puts("\nOPTIONS:\n" +- " --config-file, -c Configuration file pathname (defaults to '/etc/ipv6mon.conf')\n" ++ " --config-file, -c Configuration file pathname (defaults to '" ++ IPV6MON_CONF "')\n" + " --show-config, -q Shows configuration values and quits\n" + " --help, -h Print help for the scan6 tool\n" + " --verbose, -v Be verbose\n" Added: head/net-mgmt/ipv6mon/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/ipv6mon/pkg-descr Tue Oct 2 20:26:17 2012 (r305174) @@ -0,0 +1,8 @@ +ipv6mon is a tool meant for monitoring IPv6 address usage on a local +network. It is meant to be particularly useful in networks that employ +IPv6 Stateless Address Auto-Configuration (as opposed to DHCPv6), +where address assignment is decentralized and there is no central +server that records which IPv6 addresses have been assigned to which +nodes during which period of time. + +WWW: http://www.si6networks.com/tools/ipv6mon/ Added: head/net-mgmt/ipv6mon/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/ipv6mon/pkg-plist Tue Oct 2 20:26:17 2012 (r305174) @@ -0,0 +1,5 @@ +@comment $FreeBSD$ +@unexec cmp -s %D/etc/ipv6mon.conf.dist %D/etc/ipv6mon.conf && rm -f %D/etc/ipv6mon.conf || true +etc/ipv6mon.conf.dist +@exec if [ ! -r %D/etc/ipv6mon.conf ]; then install -m 444 %D/etc/ipv6mon.conf.dist %D/etc/ipv6mon.conf; fi +sbin/ipv6mon