summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-04 06:34:57 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-04 06:34:57 +0000
commitb732cbd344ec0b6f9c83f024d4f1f631235759ca (patch)
treecbf55fde7dc08d87daf748b3de7639e092e0ae01 /net-mgmt
parentadd autools 1.1.8 (diff)
add cfgstoragemk 1.0
MRTG configuration generator for storage monitoring via SNMP
Notes
Notes: svn path=/head/; revision=62411
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/cfgstoragemk/Makefile28
-rw-r--r--net-mgmt/cfgstoragemk/distinfo1
-rw-r--r--net-mgmt/cfgstoragemk/files/patch-Config.mk.in11
-rw-r--r--net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker17
-rw-r--r--net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker.115
-rw-r--r--net-mgmt/cfgstoragemk/pkg-comment1
-rw-r--r--net-mgmt/cfgstoragemk/pkg-descr1
-rw-r--r--net-mgmt/cfgstoragemk/pkg-plist4
8 files changed, 78 insertions, 0 deletions
diff --git a/net-mgmt/cfgstoragemk/Makefile b/net-mgmt/cfgstoragemk/Makefile
new file mode 100644
index 000000000000..8a4f7b6051f5
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/Makefile
@@ -0,0 +1,28 @@
+# ex:ts=8
+# Ports collection makefile for: cfgstoragemk
+# Date created: Jul 4, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= cfgstoragemk
+PORTVERSION= 1.0
+CATEGORIES= net
+MASTER_SITES= http://savannah.gnu.org/download/cfgstoragemk/
+DISTNAME= cfgstoragemaker-${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_PERL5= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+
+MAN1= cfgstoragemaker.1
+
+post-patch:
+ @${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/cfgstoragemaker
+ @${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g ; \
+ s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/cfgstoragemaker.1
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/cfgstoragemk/distinfo b/net-mgmt/cfgstoragemk/distinfo
new file mode 100644
index 000000000000..579b9b8c43e3
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/distinfo
@@ -0,0 +1 @@
+MD5 (cfgstoragemaker-1.0.tar.gz) = fd9ebd7b22595d824335e02bef60fbfc
diff --git a/net-mgmt/cfgstoragemk/files/patch-Config.mk.in b/net-mgmt/cfgstoragemk/files/patch-Config.mk.in
new file mode 100644
index 000000000000..8447118d3565
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/files/patch-Config.mk.in
@@ -0,0 +1,11 @@
+--- Config.mk.in.orig Thu Jul 4 14:29:59 2002
++++ Config.mk.in Thu Jul 4 14:30:10 2002
+@@ -18,7 +18,7 @@
+ # 02111-1307, USA.
+
+ OWN = root
+-GRP = root
++GRP = wheel
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ mandir = @mandir@/man1
diff --git a/net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker b/net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker
new file mode 100644
index 000000000000..39b076187cc8
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker
@@ -0,0 +1,17 @@
+--- cfgstoragemaker.orig Thu Jul 4 14:27:37 2002
++++ cfgstoragemaker Thu Jul 4 14:28:21 2002
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl -w
++#!/usr/bin/env perl
+
+ # cfgstoragemaker: MRTG config generator for storage monitoring via SNMP
+ # Copyright (C) 2001, 2002 LibertySurf Telecom, Cyril Bouthors
+@@ -29,7 +29,7 @@
+ my $snmp_root = 'host.hrStorage.hrStorageTable.hrStorageEntry';
+ my $debug=0; #1 for additional info
+
+-my $tpl_dir = '/usr/share/cfgstoragemaker';
++my $tpl_dir = '%%PREFIX%%/share/cfgstoragemaker';
+ my $tpl_header = 'header.tpl';
+ my $tpl_body = 'body.tpl';
+
diff --git a/net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker.1 b/net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker.1
new file mode 100644
index 000000000000..069ff8e2110e
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker.1
@@ -0,0 +1,15 @@
+--- cfgstoragemaker.1.orig Thu Jul 4 14:32:22 2002
++++ cfgstoragemaker.1 Thu Jul 4 14:32:59 2002
+@@ -24,10 +24,10 @@
+ \fICfgstoragemaker\fR is written in Perl.
+ .SH FILES
+ .TP
+-.I /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
++.I %%LOCALBASE%%/share/snmp/mibs/HOST-RESOURCES-MIB.txt
+ SNMP MIB file provided by ucd-snmp
+ .TP
+-.I /usr/share/cfgstoragemaker/templates/header.tpl /usr/share/cfgstoragemaker/templates/body.tpl
++.I %%PREFIX%%/share/cfgstoragemaker/templates/header.tpl %%PREFIX%%/share/cfgstoragemaker/templates/body.tpl
+ templates files to build the config file
+ .SH SEE ALSO
+ \fIcfgmaker\fP(1), \fIindexmaker\fP(1), \fImrtg\fP(1), \fIsnmpd\fP(1)
diff --git a/net-mgmt/cfgstoragemk/pkg-comment b/net-mgmt/cfgstoragemk/pkg-comment
new file mode 100644
index 000000000000..58bd2d8f34ed
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/pkg-comment
@@ -0,0 +1 @@
+MRTG configuration generator for storage monitoring via SNMP
diff --git a/net-mgmt/cfgstoragemk/pkg-descr b/net-mgmt/cfgstoragemk/pkg-descr
new file mode 100644
index 000000000000..51432e9ed9e4
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/pkg-descr
@@ -0,0 +1 @@
+MRTG configuration file generator for storage monitoring via SNMP
diff --git a/net-mgmt/cfgstoragemk/pkg-plist b/net-mgmt/cfgstoragemk/pkg-plist
new file mode 100644
index 000000000000..eb349c97faa4
--- /dev/null
+++ b/net-mgmt/cfgstoragemk/pkg-plist
@@ -0,0 +1,4 @@
+bin/cfgstoragemaker
+share/cfgstoragemaker/body.tpl
+share/cfgstoragemaker/header.tpl
+@dirrm share/cfgstoragemaker