Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2012 20:27:10 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306707 - in head/net-mgmt: . netmagis-common netmagis-common/files
Message-ID:  <201210302027.q9UKRAdf068736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Tue Oct 30 20:27:10 2012
New Revision: 306707
URL: http://svn.freebsd.org/changeset/ports/306707

Log:
  Netmagis is a network management information system,
  which allows a network administrator to:
   - manage data for your BIND DNS and ISC DHCPD server,
   - delegate DNS management,
   - automatically generate network maps,
   - assign VLAN to equipment interfaces via a Web interface,
   - generate traffic graphs.
  
  WWW: http://www.netmagis.org/
  
  PR:		ports/169509
  Submitted by:	Pierre David <pdagog@gmail.com>, Jean Benoit <jean@unistra.fr>
  Feature safe:	yes

Added:
  head/net-mgmt/netmagis-common/
  head/net-mgmt/netmagis-common/Makefile   (contents, props changed)
  head/net-mgmt/netmagis-common/distinfo   (contents, props changed)
  head/net-mgmt/netmagis-common/files/
  head/net-mgmt/netmagis-common/files/topographd.in   (contents, props changed)
  head/net-mgmt/netmagis-common/files/toposendd.in   (contents, props changed)
  head/net-mgmt/netmagis-common/pkg-descr   (contents, props changed)
  head/net-mgmt/netmagis-common/pkg-message   (contents, props changed)
  head/net-mgmt/netmagis-common/pkg-plist   (contents, props changed)
Modified:
  head/net-mgmt/Makefile

Modified: head/net-mgmt/Makefile
==============================================================================
--- head/net-mgmt/Makefile	Tue Oct 30 19:48:15 2012	(r306706)
+++ head/net-mgmt/Makefile	Tue Oct 30 20:27:10 2012	(r306707)
@@ -161,6 +161,7 @@
     SUBDIR += netdisco-mibs
     SUBDIR += netdot
     SUBDIR += netleak
+    SUBDIR += netmagis-common
     SUBDIR += netmask
     SUBDIR += netmond
     SUBDIR += netspoc

Added: head/net-mgmt/netmagis-common/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netmagis-common/Makefile	Tue Oct 30 20:27:10 2012	(r306707)
@@ -0,0 +1,73 @@
+# Created by: Pierre David <pdagog@gmail.com>, Jean Benoit <jean@unistra.fr>
+# $FreeBSD$
+
+PORTNAME?=	netmagis
+DISTVERSION?=	2.1.0
+PORTREVISION?=	1
+CATEGORIES?=	net-mgmt
+MASTER_SITES=	http://netmagis.org/files/
+PKGNAMESUFFIX?=	-common
+
+MAINTAINER?=	pdagog@gmail.com
+COMMENT?=	Netmagis common infrastructure
+
+USE_TCL=	85+
+
+USE_PGSQL=	pgtcl
+WANT_PGSQL_VER=	91+
+
+RUN_DEPENDS+=	dtplite:${PORTSDIR}/devel/tcllib
+
+.if ${PKGNAMESUFFIX} != -common
+RUN_DEPENDS+=	netmagis-config:${PORTSDIR}/net-mgmt/netmagis-common
+.endif
+
+.if ${PKGNAMESUFFIX} == -database
+RUN_DEPENDS+=	pwgen:${PORTSDIR}/sysutils/pwgen
+USE_PGSQL+=	server pltcl
+.endif
+
+.if ${PKGNAMESUFFIX} == -www
+USE_APACHE=	22+
+RUN_DEPENDS+=	pdflatex:${PORTSDIR}/print/teTeX-base \
+		dot:${PORTSDIR}/graphics/graphviz \
+		pwgen:${PORTSDIR}/sysutils/pwgen \
+		${LOCALBASE}/libexec/apache22/mod_auth_pgsql.so:${PORTSDIR}/www/mod_auth_pgsql2/
+# FIXME compile apache22 with option mod_auth_ldap
+# FIXME add ap22-mod_auth_cas
+.endif
+
+.if ${PKGNAMESUFFIX} == -topo
+USE_RC_SUBR=	topographd toposendd
+SUB_LIST=	TCLSH=${TCLSH}
+RUN_DEPENDS+=	rancid-run:${PORTSDIR}/net-mgmt/rancid \
+		fping:${PORTSDIR}/net/fping
+.endif
+
+.if ${PKGNAMESUFFIX} == -metro
+USE_PERL5=	yes
+
+RUN_DEPENDS+=	p5-DBD-Pg>0:${PORTSDIR}/databases/p5-DBD-Pg \
+		p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP \
+		p5-SNMP_Session>=0:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
+		p5-RRDTool-OO>=0:${PORTSDIR}/devel/p5-RRDTool-OO
+.endif
+
+# Variables used in netmagis Makefiles
+MAKE_ARGS+=	DESTDIR=${DESTDIR} PREFIX=${PREFIX}
+MAKE_ARGS+=	TCLSH=${TCLSH} TCLCONF=${TCL_LIBDIR}/tclConfig.sh
+
+.if ${PKGNAMESUFFIX} == -topo || ${PKGNAMESUFFIX} == -www
+ALL_TARGET=build${PKGNAMESUFFIX?=}
+.else
+ALL_TARGET=nothing
+.endif
+
+INSTALL_TARGET=	install${PKGNAMESUFFIX}
+
+.if !target(post-install)
+post-install:
+	@if [ -f ${PKGMESSAGE} ] ; then ${CAT} ${PKGMESSAGE} ; fi
+.endif
+
+.include <bsd.port.mk>

Added: head/net-mgmt/netmagis-common/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netmagis-common/distinfo	Tue Oct 30 20:27:10 2012	(r306707)
@@ -0,0 +1,2 @@
+SHA256 (netmagis-2.1.0.tar.gz) = 2b6042aa8906ee318987f5604c49dd5bb3554fb06cf7908080d2a4a362216103
+SIZE (netmagis-2.1.0.tar.gz) = 593154

Added: head/net-mgmt/netmagis-common/files/topographd.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netmagis-common/files/topographd.in	Tue Oct 30 20:27:10 2012	(r306707)
@@ -0,0 +1,34 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: topographd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable topographd:
+#
+# topographd_enable="YES"
+#
+# # Optionnal variables:
+# topographd_flags=""
+# topographd_user="rancid"
+#
+
+. /etc/rc.subr
+
+name=topographd
+rcvar=topographd_enable
+
+load_rc_config $name
+
+: ${topographd_enable:=NO}
+: ${topographd_user:=rancid}
+
+command_interpreter=%%TCLSH%%
+
+command=%%PREFIX%%/sbin/topographd
+
+run_rc_command $1

Added: head/net-mgmt/netmagis-common/files/toposendd.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netmagis-common/files/toposendd.in	Tue Oct 30 20:27:10 2012	(r306707)
@@ -0,0 +1,33 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: toposendd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable toposendd:
+#
+# toposendd_enable="YES"
+#
+# # Optionnal variables:
+# toposendd_flags=""
+# toposendd_user="rancid"
+#
+
+. /etc/rc.subr
+
+name=toposendd
+rcvar=toposendd_enable
+
+load_rc_config $name
+
+: ${toposendd_enable:=NO}
+: ${toposendd_user:=rancid}
+
+command_interpreter=%%TCLSH%%
+command=%%PREFIX%%/sbin/toposendd
+
+run_rc_command $1

Added: head/net-mgmt/netmagis-common/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netmagis-common/pkg-descr	Tue Oct 30 20:27:10 2012	(r306707)
@@ -0,0 +1,9 @@
+Netmagis is a network management information system,
+which allows a network administrator to:
+ - manage data for your BIND DNS and ISC DHCPD server,
+ - delegate DNS management,
+ - automatically generate network maps,
+ - assign VLAN to equipment interfaces via a Web interface,
+ - generate traffic graphs.
+
+WWW: http://www.netmagis.org/

Added: head/net-mgmt/netmagis-common/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netmagis-common/pkg-message	Tue Oct 30 20:27:10 2012	(r306707)
@@ -0,0 +1,5 @@
+=================================================================
+
+For installation instructions, see http://www.netmagis.org/doc.html
+
+=================================================================

Added: head/net-mgmt/netmagis-common/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netmagis-common/pkg-plist	Tue Oct 30 20:27:10 2012	(r306707)
@@ -0,0 +1,16 @@
+bin/netmagis-config
+etc/netmagis.conf.sample
+lib/netmagis/libnetmagis.tcl
+lib/netmagis/msgs/C.msg
+lib/netmagis/msgs/en.msg
+lib/netmagis/msgs/fr.msg
+lib/netmagis/pkgtcl/arrgen.n
+lib/netmagis/pkgtcl/arrgen.tcl
+lib/netmagis/pkgtcl/pgsql.n
+lib/netmagis/pkgtcl/pgsql.tcl
+lib/netmagis/pkgtcl/pkgIndex.tcl
+lib/netmagis/pkgtcl/webapp.n
+lib/netmagis/pkgtcl/webapp.tcl
+@dirrm lib/netmagis/pkgtcl
+@dirrm lib/netmagis/msgs
+@dirrm lib/netmagis



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