Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2012 20:26:17 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305174 - in head: . net-mgmt net-mgmt/ipv6mon net-mgmt/ipv6mon/files
Message-ID:  <201210022026.q92KQHaU000102@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <hrs@FreeBSD.org>
+# $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 <bsd.port.mk>

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 <bsd.prog.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210022026.q92KQHaU000102>