From dcaed3972abfbdf032c3c9457442449b1e010a42 Mon Sep 17 00:00:00 2001 From: Michael Haro Date: Thu, 3 May 2001 08:41:58 +0000 Subject: [PATCH] - Install documentation (unless NOPORTDOCS is set, of course) - Fix up pkg-* - take over MAINTAINER PR: 27047 Submitted by: Pete Fritchman (new maintainer) --- net-mgmt/p5-SNMP_Session/Makefile | 13 ++++++++++--- net-mgmt/p5-SNMP_Session/pkg-comment | 2 +- net-mgmt/p5-SNMP_Session/pkg-descr | 13 +++++++------ net-mgmt/p5-SNMP_Session/pkg-plist | 2 ++ net/p5-SNMP_Session/Makefile | 13 ++++++++++--- net/p5-SNMP_Session/pkg-comment | 2 +- net/p5-SNMP_Session/pkg-descr | 13 +++++++------ net/p5-SNMP_Session/pkg-plist | 2 ++ 8 files changed, 40 insertions(+), 20 deletions(-) diff --git a/net-mgmt/p5-SNMP_Session/Makefile b/net-mgmt/p5-SNMP_Session/Makefile index 18467d482485..174d316d7896 100644 --- a/net-mgmt/p5-SNMP_Session/Makefile +++ b/net-mgmt/p5-SNMP_Session/Makefile @@ -11,11 +11,18 @@ CATEGORIES= net perl5 MASTER_SITES= ftp://ftp.switch.ch/software/sources/network/snmp/perl/ PKGNAMEPREFIX= p5- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= petef@databits.net PERL_CONFIGURE= yes -pre-install: - ${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; +post-configure: + @${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/p5-SNMP_Session + ${INSTALL_DATA} ${WRKSRC}/README.SNMP_util \ + ${PREFIX}/share/doc/p5-SNMP_Session +.endif .include diff --git a/net-mgmt/p5-SNMP_Session/pkg-comment b/net-mgmt/p5-SNMP_Session/pkg-comment index e85f52bac626..382d3f9bcee1 100644 --- a/net-mgmt/p5-SNMP_Session/pkg-comment +++ b/net-mgmt/p5-SNMP_Session/pkg-comment @@ -1 +1 @@ -A perl5 module for providing rudimentary access to SNMPv1 agents +A perl5 module providing rudimentary access to SNMPv1 and v2 agents diff --git a/net-mgmt/p5-SNMP_Session/pkg-descr b/net-mgmt/p5-SNMP_Session/pkg-descr index 6bf0dc052143..3f1b28f1c719 100644 --- a/net-mgmt/p5-SNMP_Session/pkg-descr +++ b/net-mgmt/p5-SNMP_Session/pkg-descr @@ -1,6 +1,6 @@ This archive contains Perl 5 modules SNMP_Session.pm and BER.pm, which, when used together, provide rudimentary access to remote SNMP -(v1) agents. +(v1 and v2) agents. This module differs from existing SNMP packages in that it is completely stand-alone, i.e. you don't need to have another SNMP @@ -8,9 +8,10 @@ package such as CMU SNMP. It is also written entirely in Perl, so you don't have to compile any C modules. It uses the Perl 5 Socket.pm module and should therefore be very portable, even to non-Unix systems. -The SNMP operations currently supported are "get", "get-next", and -"set", as well as trap generation and reception. +The SNMP operations currently supported are "get", "get-next", "get-bulk" +and "set", as well as trap generation and reception. -For an excellent example of the type of application this is useful -for, see Tobias Oetiker's ``mrtg'' (Multi Router Traffic Grapher) -tool. +WWW: http://www.switch.ch/misc/leinen/snmp/perl/ + +- Pete +petef@databits.net diff --git a/net-mgmt/p5-SNMP_Session/pkg-plist b/net-mgmt/p5-SNMP_Session/pkg-plist index cbb2f5d1003a..d62f483b28de 100644 --- a/net-mgmt/p5-SNMP_Session/pkg-plist +++ b/net-mgmt/p5-SNMP_Session/pkg-plist @@ -2,4 +2,6 @@ lib/perl5/site_perl/%%PERL_VER%%/BER.pm lib/perl5/site_perl/%%PERL_VER%%/SNMP_Session.pm lib/perl5/site_perl/%%PERL_VER%%/SNMP_util.pm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/SNMP_Session/.packlist +%%PORTDOCS%%share/doc/p5-SNMP_Session/README.SNMP_util @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/SNMP_Session +%%PORTDOCS%%@dirrm share/doc/p5-SNMP_Session diff --git a/net/p5-SNMP_Session/Makefile b/net/p5-SNMP_Session/Makefile index 18467d482485..174d316d7896 100644 --- a/net/p5-SNMP_Session/Makefile +++ b/net/p5-SNMP_Session/Makefile @@ -11,11 +11,18 @@ CATEGORIES= net perl5 MASTER_SITES= ftp://ftp.switch.ch/software/sources/network/snmp/perl/ PKGNAMEPREFIX= p5- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= petef@databits.net PERL_CONFIGURE= yes -pre-install: - ${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; +post-configure: + @${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/Makefile; + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/p5-SNMP_Session + ${INSTALL_DATA} ${WRKSRC}/README.SNMP_util \ + ${PREFIX}/share/doc/p5-SNMP_Session +.endif .include diff --git a/net/p5-SNMP_Session/pkg-comment b/net/p5-SNMP_Session/pkg-comment index e85f52bac626..382d3f9bcee1 100644 --- a/net/p5-SNMP_Session/pkg-comment +++ b/net/p5-SNMP_Session/pkg-comment @@ -1 +1 @@ -A perl5 module for providing rudimentary access to SNMPv1 agents +A perl5 module providing rudimentary access to SNMPv1 and v2 agents diff --git a/net/p5-SNMP_Session/pkg-descr b/net/p5-SNMP_Session/pkg-descr index 6bf0dc052143..3f1b28f1c719 100644 --- a/net/p5-SNMP_Session/pkg-descr +++ b/net/p5-SNMP_Session/pkg-descr @@ -1,6 +1,6 @@ This archive contains Perl 5 modules SNMP_Session.pm and BER.pm, which, when used together, provide rudimentary access to remote SNMP -(v1) agents. +(v1 and v2) agents. This module differs from existing SNMP packages in that it is completely stand-alone, i.e. you don't need to have another SNMP @@ -8,9 +8,10 @@ package such as CMU SNMP. It is also written entirely in Perl, so you don't have to compile any C modules. It uses the Perl 5 Socket.pm module and should therefore be very portable, even to non-Unix systems. -The SNMP operations currently supported are "get", "get-next", and -"set", as well as trap generation and reception. +The SNMP operations currently supported are "get", "get-next", "get-bulk" +and "set", as well as trap generation and reception. -For an excellent example of the type of application this is useful -for, see Tobias Oetiker's ``mrtg'' (Multi Router Traffic Grapher) -tool. +WWW: http://www.switch.ch/misc/leinen/snmp/perl/ + +- Pete +petef@databits.net diff --git a/net/p5-SNMP_Session/pkg-plist b/net/p5-SNMP_Session/pkg-plist index cbb2f5d1003a..d62f483b28de 100644 --- a/net/p5-SNMP_Session/pkg-plist +++ b/net/p5-SNMP_Session/pkg-plist @@ -2,4 +2,6 @@ lib/perl5/site_perl/%%PERL_VER%%/BER.pm lib/perl5/site_perl/%%PERL_VER%%/SNMP_Session.pm lib/perl5/site_perl/%%PERL_VER%%/SNMP_util.pm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/SNMP_Session/.packlist +%%PORTDOCS%%share/doc/p5-SNMP_Session/README.SNMP_util @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/SNMP_Session +%%PORTDOCS%%@dirrm share/doc/p5-SNMP_Session