1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

add cfgstoragemk 1.0

MRTG configuration generator for storage monitoring via SNMP
This commit is contained in:
Ying-Chieh Liao 2002-07-04 06:34:57 +00:00
parent a1ec7350b1
commit b732cbd344
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62411
17 changed files with 157 additions and 0 deletions

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (cfgstoragemaker-1.0.tar.gz) = fd9ebd7b22595d824335e02bef60fbfc

View File

@ -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

View File

@ -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';

View File

@ -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)

View File

@ -0,0 +1 @@
MRTG configuration generator for storage monitoring via SNMP

View File

@ -0,0 +1 @@
MRTG configuration file generator for storage monitoring via SNMP

View File

@ -0,0 +1,4 @@
bin/cfgstoragemaker
share/cfgstoragemaker/body.tpl
share/cfgstoragemaker/header.tpl
@dirrm share/cfgstoragemaker

View File

@ -38,6 +38,7 @@
SUBDIR += cap
SUBDIR += cdpd
SUBDIR += centericq
SUBDIR += cfgstoragemk
SUBDIR += cflowd
SUBDIR += choparp
SUBDIR += cidr

28
net/cfgstoragemk/Makefile Normal file
View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (cfgstoragemaker-1.0.tar.gz) = fd9ebd7b22595d824335e02bef60fbfc

View File

@ -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

View File

@ -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';

View File

@ -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)

View File

@ -0,0 +1 @@
MRTG configuration generator for storage monitoring via SNMP

View File

@ -0,0 +1 @@
MRTG configuration file generator for storage monitoring via SNMP

View File

@ -0,0 +1,4 @@
bin/cfgstoragemaker
share/cfgstoragemaker/body.tpl
share/cfgstoragemaker/header.tpl
@dirrm share/cfgstoragemaker