aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-10-30 20:27:10 +0000
committerChris Rees <crees@FreeBSD.org>2012-10-30 20:27:10 +0000
commit051678de6d456009b2082a637be97081b68cb8d3 (patch)
treee0f0b1f90f06c41c2a19b23a5e4e20c041d603e9
parent7f037e912f81b32737e733ae326104b5f67c7b08 (diff)
downloadports-051678de6d456009b2082a637be97081b68cb8d3.tar.gz
ports-051678de6d456009b2082a637be97081b68cb8d3.zip
Notes
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/netmagis-common/Makefile73
-rw-r--r--net-mgmt/netmagis-common/distinfo2
-rw-r--r--net-mgmt/netmagis-common/files/topographd.in34
-rw-r--r--net-mgmt/netmagis-common/files/toposendd.in33
-rw-r--r--net-mgmt/netmagis-common/pkg-descr9
-rw-r--r--net-mgmt/netmagis-common/pkg-message5
-rw-r--r--net-mgmt/netmagis-common/pkg-plist16
8 files changed, 173 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index f86b310c79d1..646319782305 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -161,6 +161,7 @@
SUBDIR += netdisco-mibs
SUBDIR += netdot
SUBDIR += netleak
+ SUBDIR += netmagis-common
SUBDIR += netmask
SUBDIR += netmond
SUBDIR += netspoc
diff --git a/net-mgmt/netmagis-common/Makefile b/net-mgmt/netmagis-common/Makefile
new file mode 100644
index 000000000000..5cc8ba884fb6
--- /dev/null
+++ b/net-mgmt/netmagis-common/Makefile
@@ -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>
diff --git a/net-mgmt/netmagis-common/distinfo b/net-mgmt/netmagis-common/distinfo
new file mode 100644
index 000000000000..cbaeb6a7949f
--- /dev/null
+++ b/net-mgmt/netmagis-common/distinfo
@@ -0,0 +1,2 @@
+SHA256 (netmagis-2.1.0.tar.gz) = 2b6042aa8906ee318987f5604c49dd5bb3554fb06cf7908080d2a4a362216103
+SIZE (netmagis-2.1.0.tar.gz) = 593154
diff --git a/net-mgmt/netmagis-common/files/topographd.in b/net-mgmt/netmagis-common/files/topographd.in
new file mode 100644
index 000000000000..b534e55fb919
--- /dev/null
+++ b/net-mgmt/netmagis-common/files/topographd.in
@@ -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
diff --git a/net-mgmt/netmagis-common/files/toposendd.in b/net-mgmt/netmagis-common/files/toposendd.in
new file mode 100644
index 000000000000..6dfde1681a6d
--- /dev/null
+++ b/net-mgmt/netmagis-common/files/toposendd.in
@@ -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
diff --git a/net-mgmt/netmagis-common/pkg-descr b/net-mgmt/netmagis-common/pkg-descr
new file mode 100644
index 000000000000..31fea6ff81a1
--- /dev/null
+++ b/net-mgmt/netmagis-common/pkg-descr
@@ -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/
diff --git a/net-mgmt/netmagis-common/pkg-message b/net-mgmt/netmagis-common/pkg-message
new file mode 100644
index 000000000000..b48886352c7d
--- /dev/null
+++ b/net-mgmt/netmagis-common/pkg-message
@@ -0,0 +1,5 @@
+=================================================================
+
+For installation instructions, see http://www.netmagis.org/doc.html
+
+=================================================================
diff --git a/net-mgmt/netmagis-common/pkg-plist b/net-mgmt/netmagis-common/pkg-plist
new file mode 100644
index 000000000000..5ce9d1e2b996
--- /dev/null
+++ b/net-mgmt/netmagis-common/pkg-plist
@@ -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