aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/netmagis-topo
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2015-07-08 10:25:27 +0800
committerpgollucci <pgollucci@FreeBSD.org>2015-07-08 10:25:27 +0800
commit2168e6a040df5ff84dd662008c905682a5e6917f (patch)
tree94e00384fd92797520e552709471bc374e3ab633 /net-mgmt/netmagis-topo
parentdeab487bc6f080263de9b6387cd18d18b66fc989 (diff)
downloadfreebsd-ports-gnome-2168e6a040df5ff84dd662008c905682a5e6917f.tar.gz
freebsd-ports-gnome-2168e6a040df5ff84dd662008c905682a5e6917f.tar.zst
freebsd-ports-gnome-2168e6a040df5ff84dd662008c905682a5e6917f.zip
net-mgmt/netmagis-* update 2.2.2 -> 2.3.0
Additional changes not in pr: - Remove post-install do-nada - Set NO_ARCH where appropriate - DISTVERSION -> PORTVERSION - use /var/netmagis instead of /usr/local/var/netmagis - remove @dirrm[try] from pkg-plists - remove @exec mkdir -p from pkg-plists - sort uses - relocate rc scripts to the slave they belong to - pull conditional logic out and into the slaves they affect - add metro/ws/gengraph to SHEBANG_FILES UPDATING: Upgrading from a previous version requires a database schema upgrade. See http://netmagis.org/upgrade.html PR: 201124 Submitted by: pdagog@gmail.com (maintainer)
Diffstat (limited to 'net-mgmt/netmagis-topo')
-rw-r--r--net-mgmt/netmagis-topo/Makefile13
-rw-r--r--net-mgmt/netmagis-topo/files/topographd.in34
-rw-r--r--net-mgmt/netmagis-topo/files/toposendd.in33
-rw-r--r--net-mgmt/netmagis-topo/pkg-plist13
4 files changed, 83 insertions, 10 deletions
diff --git a/net-mgmt/netmagis-topo/Makefile b/net-mgmt/netmagis-topo/Makefile
index 1c21bcb8bd66..e58a536c0ea2 100644
--- a/net-mgmt/netmagis-topo/Makefile
+++ b/net-mgmt/netmagis-topo/Makefile
@@ -6,9 +6,22 @@ PKGNAMESUFFIX= -topo
COMMENT= Netmagis topology module
+RUN_DEPENDS= netmagis-config:${PORTSDIR}/net-mgmt/netmagis-common \
+ rancid-run:${PORTSDIR}/net-mgmt/rancid \
+ fping:${PORTSDIR}/net/fping
+
+USE_RC_SUBR= topographd toposendd
+SUB_LIST= TCLSH=${TCLSH}
+
MASTERDIR= ${.CURDIR}/../netmagis-common
+FILESDIR= ${.CURDIR}/files
PKGMESSAGE= ${.CURDIR}/pkg-message
PLIST= ${.CURDIR}/pkg-plist
+ALL_TARGET=build${PKGNAMESUFFIX?=}
+
+post-stage:
+ @${MKDIR} ${STAGEDIR}/var/netmagis/eqgen ${STAGEDIR}/var/netmagis/eqvirt
+
.include "${MASTERDIR}/Makefile"
diff --git a/net-mgmt/netmagis-topo/files/topographd.in b/net-mgmt/netmagis-topo/files/topographd.in
new file mode 100644
index 000000000000..b534e55fb919
--- /dev/null
+++ b/net-mgmt/netmagis-topo/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-topo/files/toposendd.in b/net-mgmt/netmagis-topo/files/toposendd.in
new file mode 100644
index 000000000000..6dfde1681a6d
--- /dev/null
+++ b/net-mgmt/netmagis-topo/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-topo/pkg-plist b/net-mgmt/netmagis-topo/pkg-plist
index 7d012a7901ab..af2bc7fc0bc4 100644
--- a/net-mgmt/netmagis-topo/pkg-plist
+++ b/net-mgmt/netmagis-topo/pkg-plist
@@ -26,13 +26,6 @@ sbin/toposendd
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/eqvirt/rtr.eq
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/eqvirt/sw1.eq
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/eqvirt/sw2.eq
-@dirrmtry var/netmagis/eqvirt
-@dirrmtry var/netmagis/eqgen
-@dirrmtry var/netmagis
-@dirrmtry var
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/eqvirt
-%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
-@dirrm lib/netmagis/topo
-@dirrmtry lib/netmagis
-@exec mkdir -p %D/var/netmagis/eqvirt
-@exec mkdir -p %D/var/netmagis/eqgen
+@dir /var/netmagis/eqvirt
+@dir /var/netmagis/eqgen
+@dir /var/netmagis