diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-07-04 14:34:57 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-07-04 14:34:57 +0800 |
commit | 2b1530252dd008014d572e5e1754aeaa10bfc200 (patch) | |
tree | a5541b62fdced0896662375577d6a1901d317882 | |
parent | 5aaeea1ab04953f12e250abf9a62adf30748807b (diff) | |
download | freebsd-ports-graphics-2b1530252dd008014d572e5e1754aeaa10bfc200.tar.gz freebsd-ports-graphics-2b1530252dd008014d572e5e1754aeaa10bfc200.tar.zst freebsd-ports-graphics-2b1530252dd008014d572e5e1754aeaa10bfc200.zip |
add cfgstoragemk 1.0
MRTG configuration generator for storage monitoring via SNMP
-rw-r--r-- | net-mgmt/cfgstoragemk/Makefile | 28 | ||||
-rw-r--r-- | net-mgmt/cfgstoragemk/distinfo | 1 | ||||
-rw-r--r-- | net-mgmt/cfgstoragemk/files/patch-Config.mk.in | 11 | ||||
-rw-r--r-- | net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker | 17 | ||||
-rw-r--r-- | net-mgmt/cfgstoragemk/files/patch-cfgstoragemaker.1 | 15 | ||||
-rw-r--r-- | net-mgmt/cfgstoragemk/pkg-comment | 1 | ||||
-rw-r--r-- | net-mgmt/cfgstoragemk/pkg-descr | 1 | ||||
-rw-r--r-- | net-mgmt/cfgstoragemk/pkg-plist | 4 | ||||
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/cfgstoragemk/Makefile | 28 | ||||
-rw-r--r-- | net/cfgstoragemk/distinfo | 1 | ||||
-rw-r--r-- | net/cfgstoragemk/files/patch-Config.mk.in | 11 | ||||
-rw-r--r-- | net/cfgstoragemk/files/patch-cfgstoragemaker | 17 | ||||
-rw-r--r-- | net/cfgstoragemk/files/patch-cfgstoragemaker.1 | 15 | ||||
-rw-r--r-- | net/cfgstoragemk/pkg-comment | 1 | ||||
-rw-r--r-- | net/cfgstoragemk/pkg-descr | 1 | ||||
-rw-r--r-- | net/cfgstoragemk/pkg-plist | 4 |
17 files changed, 157 insertions, 0 deletions
diff --git a/net-mgmt/cfgstoragemk/Makefile b/net-mgmt/cfgstoragemk/Makefile new file mode 100644 index 00000000000..8a4f7b6051f --- /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 00000000000..579b9b8c43e --- /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 00000000000..8447118d356 --- /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 00000000000..39b076187cc --- /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 00000000000..069ff8e2110 --- /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 00000000000..58bd2d8f34e --- /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 00000000000..51432e9ed9e --- /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 00000000000..eb349c97faa --- /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 diff --git a/net/Makefile b/net/Makefile index 512efab157b..9b7f5d0fdf0 100644 --- a/net/Makefile +++ b/net/Makefile @@ -38,6 +38,7 @@ SUBDIR += cap SUBDIR += cdpd SUBDIR += centericq + SUBDIR += cfgstoragemk SUBDIR += cflowd SUBDIR += choparp SUBDIR += cidr diff --git a/net/cfgstoragemk/Makefile b/net/cfgstoragemk/Makefile new file mode 100644 index 00000000000..8a4f7b6051f --- /dev/null +++ b/net/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/cfgstoragemk/distinfo b/net/cfgstoragemk/distinfo new file mode 100644 index 00000000000..579b9b8c43e --- /dev/null +++ b/net/cfgstoragemk/distinfo @@ -0,0 +1 @@ +MD5 (cfgstoragemaker-1.0.tar.gz) = fd9ebd7b22595d824335e02bef60fbfc diff --git a/net/cfgstoragemk/files/patch-Config.mk.in b/net/cfgstoragemk/files/patch-Config.mk.in new file mode 100644 index 00000000000..8447118d356 --- /dev/null +++ b/net/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/cfgstoragemk/files/patch-cfgstoragemaker b/net/cfgstoragemk/files/patch-cfgstoragemaker new file mode 100644 index 00000000000..39b076187cc --- /dev/null +++ b/net/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/cfgstoragemk/files/patch-cfgstoragemaker.1 b/net/cfgstoragemk/files/patch-cfgstoragemaker.1 new file mode 100644 index 00000000000..069ff8e2110 --- /dev/null +++ b/net/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/cfgstoragemk/pkg-comment b/net/cfgstoragemk/pkg-comment new file mode 100644 index 00000000000..58bd2d8f34e --- /dev/null +++ b/net/cfgstoragemk/pkg-comment @@ -0,0 +1 @@ +MRTG configuration generator for storage monitoring via SNMP diff --git a/net/cfgstoragemk/pkg-descr b/net/cfgstoragemk/pkg-descr new file mode 100644 index 00000000000..51432e9ed9e --- /dev/null +++ b/net/cfgstoragemk/pkg-descr @@ -0,0 +1 @@ +MRTG configuration file generator for storage monitoring via SNMP diff --git a/net/cfgstoragemk/pkg-plist b/net/cfgstoragemk/pkg-plist new file mode 100644 index 00000000000..eb349c97faa --- /dev/null +++ b/net/cfgstoragemk/pkg-plist @@ -0,0 +1,4 @@ +bin/cfgstoragemaker +share/cfgstoragemaker/body.tpl +share/cfgstoragemaker/header.tpl +@dirrm share/cfgstoragemaker |