Maintainer update net/pancho to 9.0.1
PR: ports/46997 Submitted by: Nicolas Jombart <Nicolas.Jombart@hsc-labs.com>
This commit is contained in:
+15
-15
@@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= pancho
|
||||
PORTVERSION= 7.1.0
|
||||
PORTVERSION= 9.0.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.panchoproject.org/archives/pancho/
|
||||
DISTNAME= pancho-v${PORTVERSION}
|
||||
@@ -17,22 +17,22 @@ RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/SNMP.pm:${PORTSDIR
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Parallel/ForkManager.pm:${PORTSDIR}/devel/p5-Parallel-ForkManager
|
||||
|
||||
WRKSRC= ${WRKDIR}/Pancho-${PORTVERSION}
|
||||
USE_PERL5= YES
|
||||
NO_BUILD= YES
|
||||
PERL_CONFIGURE= YES
|
||||
|
||||
pre-patch:
|
||||
@${CHMOD} u+w ${WRKSRC}/pancho
|
||||
@${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old
|
||||
@${SED} -e '1,1s:/usr/bin/perl:${PERL5}:' \
|
||||
< ${WRKSRC}/pancho.old > ${WRKSRC}/pancho
|
||||
@${RM} ${WRKSRC}/pancho.old
|
||||
@${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old
|
||||
@${SED} -e '28,1s:pancho.conf:${PREFIX}/etc/pancho.conf:' \
|
||||
< ${WRKSRC}/pancho.old > ${WRKSRC}/pancho
|
||||
@${RM} ${WRKSRC}/pancho.old
|
||||
MAN1= pancho.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/pancho ${PREFIX}/bin
|
||||
post-patch:
|
||||
@${MV} ${WRKSRC}/lib/Pancho/Plugins/README ${WRKSRC}/README.plugins
|
||||
@${MV} ${WRKSRC}/lib/Pancho/Plugins/Plugin.sample ${WRKSRC}/
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/samples/sample.conf ${PREFIX}/etc/pancho.conf.sample
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
|
||||
.for f in README README.plugins Plugin.sample
|
||||
@${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME}
|
||||
.endfor
|
||||
.endif
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1 +1 @@
|
||||
MD5 (pancho-v7.1.0.tar.gz) = e13d304e4cf3ef16c5100ef115932e4e
|
||||
MD5 (pancho-v9.0.1.tar.gz) = 5c38770be85570bdff5bb17526bf2979
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- MANIFEST.orig Wed Jan 8 20:53:26 2003
|
||||
+++ MANIFEST Wed Jan 8 20:53:45 2003
|
||||
@@ -8,8 +8,6 @@
|
||||
lib/Pancho/Plugins/Cisco.pm
|
||||
lib/Pancho/Plugins/Foundry.pm
|
||||
lib/Pancho/Plugins/Nortel.pm
|
||||
-lib/Pancho/Plugins/Plugin.sample
|
||||
-lib/Pancho/Plugins/README
|
||||
lib/Pancho/Snmp.pm
|
||||
lib/Pancho/Util.pm
|
||||
license/COPYRIGHT
|
||||
@@ -0,0 +1,92 @@
|
||||
--- Makefile.PL.orig Mon Jan 6 22:22:54 2003
|
||||
+++ Makefile.PL Mon Jan 6 22:26:56 2003
|
||||
@@ -52,24 +52,26 @@
|
||||
print "Configuring Pancho.\n";
|
||||
}
|
||||
|
||||
-my @missing_mods;
|
||||
-my @upgrade_mods;
|
||||
-# check for modules
|
||||
-foreach my $mod (keys %$DEPS) {
|
||||
- my $eval = "require $mod";
|
||||
- eval $eval;
|
||||
- if ($@) {
|
||||
- push (@missing_mods, $mod);
|
||||
- }
|
||||
- elsif ($mod->VERSION < $DEPS->{$mod}) {
|
||||
- push (@upgrade_mods, $mod);
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-if ($NOASK) {
|
||||
- installMods(\@missing_mods, 'missing');
|
||||
- installMods(\@upgrade_mods, 'upgrade');
|
||||
-}
|
||||
+# FreeBSD port : inhibits dependancy checks here
|
||||
+# and use port's one
|
||||
+#my @missing_mods;
|
||||
+#my @upgrade_mods;
|
||||
+## check for modules
|
||||
+#foreach my $mod (keys %$DEPS) {
|
||||
+# my $eval = "require $mod";
|
||||
+# eval $eval;
|
||||
+# if ($@) {
|
||||
+# push (@missing_mods, $mod);
|
||||
+# }
|
||||
+# elsif ($mod->VERSION < $DEPS->{$mod}) {
|
||||
+# push (@upgrade_mods, $mod);
|
||||
+# }
|
||||
+#}
|
||||
+#
|
||||
+#if ($NOASK) {
|
||||
+# installMods(\@missing_mods, 'missing');
|
||||
+# installMods(\@upgrade_mods, 'upgrade');
|
||||
+#}
|
||||
|
||||
if ($ALONE) {
|
||||
system("perl build_pancho.PL ALONE");
|
||||
@@ -109,25 +111,25 @@
|
||||
}
|
||||
|
||||
# override install in order to create conf dir and copy config
|
||||
-sub MY::install {
|
||||
- package MY;
|
||||
- my $inherited = shift->SUPER::install(@_);
|
||||
-
|
||||
- # commands to actually create and copy the files
|
||||
- my $mkdir = "\t\$(MKPATH) \$(SYS_CONFDIR)\n";
|
||||
-
|
||||
- my $copy = "\t\@ if [ -f \"\$(SYS_CONFDIR)/pancho.conf\" ]; then \\\n";
|
||||
- $copy .= "\t\techo;\\\n\t\techo Not copying configuration file. One already exists.;\\\n\t\techo;\\\n";
|
||||
- $copy .= "\telse \\\n";
|
||||
- $copy .= "\t\t\$(CP) pancho.conf \$(SYS_CONFDIR);\\\n";
|
||||
- $copy .= "\t\techo;\\\n\t\techo Configuration file has been installed into \$(SYS_CONFDIR);\\\n\t\techo;\\\n";
|
||||
- $copy .= "\tfi\n";
|
||||
-
|
||||
- # add copy of config file into SYS_CONFDIR
|
||||
- $inherited =~ s|(^install\s*::.*)|$1\n$mkdir$copy|m;
|
||||
-
|
||||
- $inherited;
|
||||
-}
|
||||
+#sub MY::install {
|
||||
+# package MY;
|
||||
+# my $inherited = shift->SUPER::install(@_);
|
||||
+#
|
||||
+# # commands to actually create and copy the files
|
||||
+# my $mkdir = "\t\$(MKPATH) \$(SYS_CONFDIR)\n";
|
||||
+#
|
||||
+# my $copy = "\t\@ if [ -f \"\$(SYS_CONFDIR)/pancho.conf\" ]; then \\\n";
|
||||
+# $copy .= "\t\techo;\\\n\t\techo Not copying configuration file. One already exists.;\\\n\t\techo;\\\n";
|
||||
+# $copy .= "\telse \\\n";
|
||||
+# $copy .= "\t\t\$(CP) pancho.conf \$(SYS_CONFDIR);\\\n";
|
||||
+# $copy .= "\t\techo;\\\n\t\techo Configuration file has been installed into \$(SYS_CONFDIR);\\\n\t\techo;\\\n";
|
||||
+# $copy .= "\tfi\n";
|
||||
+#
|
||||
+# # add copy of config file into SYS_CONFDIR
|
||||
+# $inherited =~ s|(^install\s*::.*)|$1\n$mkdir$copy|m;
|
||||
+#
|
||||
+# $inherited;
|
||||
+#}
|
||||
|
||||
# override realclean to remove pancho and pancho.conf
|
||||
sub MY::realclean {
|
||||
@@ -2,4 +2,5 @@ Documentation is not included with Pancho distribution
|
||||
Please read it at http://www.panchoproject.org/
|
||||
|
||||
You also need to customize PREFIX/etc/pancho.conf
|
||||
A sample configuration file is installed as pancho.conf.sample.
|
||||
A sample configuration file is installed as pancho.conf.sample,
|
||||
copy it as pancho.conf.
|
||||
|
||||
@@ -1,2 +1,17 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Util.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Snmp.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Log.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Nortel.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Foundry.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Arrowpoint.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Cisco.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Pancho/.packlist
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins 2>/dev/null || true
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Pancho 2>/dev/null || true
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Pancho 2>/dev/null || true
|
||||
bin/pancho
|
||||
etc/pancho.conf.sample
|
||||
%%PORTDOCS%%share/doc/pancho/README
|
||||
%%PORTDOCS%%share/doc/pancho/README.plugins
|
||||
%%PORTDOCS%%share/doc/pancho/Plugin.sample
|
||||
%%PORTDOCS%%@dirrm share/doc/pancho
|
||||
|
||||
+15
-15
@@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= pancho
|
||||
PORTVERSION= 7.1.0
|
||||
PORTVERSION= 9.0.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.panchoproject.org/archives/pancho/
|
||||
DISTNAME= pancho-v${PORTVERSION}
|
||||
@@ -17,22 +17,22 @@ RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/SNMP.pm:${PORTSDIR
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Parallel/ForkManager.pm:${PORTSDIR}/devel/p5-Parallel-ForkManager
|
||||
|
||||
WRKSRC= ${WRKDIR}/Pancho-${PORTVERSION}
|
||||
USE_PERL5= YES
|
||||
NO_BUILD= YES
|
||||
PERL_CONFIGURE= YES
|
||||
|
||||
pre-patch:
|
||||
@${CHMOD} u+w ${WRKSRC}/pancho
|
||||
@${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old
|
||||
@${SED} -e '1,1s:/usr/bin/perl:${PERL5}:' \
|
||||
< ${WRKSRC}/pancho.old > ${WRKSRC}/pancho
|
||||
@${RM} ${WRKSRC}/pancho.old
|
||||
@${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old
|
||||
@${SED} -e '28,1s:pancho.conf:${PREFIX}/etc/pancho.conf:' \
|
||||
< ${WRKSRC}/pancho.old > ${WRKSRC}/pancho
|
||||
@${RM} ${WRKSRC}/pancho.old
|
||||
MAN1= pancho.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/pancho ${PREFIX}/bin
|
||||
post-patch:
|
||||
@${MV} ${WRKSRC}/lib/Pancho/Plugins/README ${WRKSRC}/README.plugins
|
||||
@${MV} ${WRKSRC}/lib/Pancho/Plugins/Plugin.sample ${WRKSRC}/
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/samples/sample.conf ${PREFIX}/etc/pancho.conf.sample
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
|
||||
.for f in README README.plugins Plugin.sample
|
||||
@${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME}
|
||||
.endfor
|
||||
.endif
|
||||
.include <bsd.port.mk>
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
MD5 (pancho-v7.1.0.tar.gz) = e13d304e4cf3ef16c5100ef115932e4e
|
||||
MD5 (pancho-v9.0.1.tar.gz) = 5c38770be85570bdff5bb17526bf2979
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- MANIFEST.orig Wed Jan 8 20:53:26 2003
|
||||
+++ MANIFEST Wed Jan 8 20:53:45 2003
|
||||
@@ -8,8 +8,6 @@
|
||||
lib/Pancho/Plugins/Cisco.pm
|
||||
lib/Pancho/Plugins/Foundry.pm
|
||||
lib/Pancho/Plugins/Nortel.pm
|
||||
-lib/Pancho/Plugins/Plugin.sample
|
||||
-lib/Pancho/Plugins/README
|
||||
lib/Pancho/Snmp.pm
|
||||
lib/Pancho/Util.pm
|
||||
license/COPYRIGHT
|
||||
@@ -0,0 +1,92 @@
|
||||
--- Makefile.PL.orig Mon Jan 6 22:22:54 2003
|
||||
+++ Makefile.PL Mon Jan 6 22:26:56 2003
|
||||
@@ -52,24 +52,26 @@
|
||||
print "Configuring Pancho.\n";
|
||||
}
|
||||
|
||||
-my @missing_mods;
|
||||
-my @upgrade_mods;
|
||||
-# check for modules
|
||||
-foreach my $mod (keys %$DEPS) {
|
||||
- my $eval = "require $mod";
|
||||
- eval $eval;
|
||||
- if ($@) {
|
||||
- push (@missing_mods, $mod);
|
||||
- }
|
||||
- elsif ($mod->VERSION < $DEPS->{$mod}) {
|
||||
- push (@upgrade_mods, $mod);
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-if ($NOASK) {
|
||||
- installMods(\@missing_mods, 'missing');
|
||||
- installMods(\@upgrade_mods, 'upgrade');
|
||||
-}
|
||||
+# FreeBSD port : inhibits dependancy checks here
|
||||
+# and use port's one
|
||||
+#my @missing_mods;
|
||||
+#my @upgrade_mods;
|
||||
+## check for modules
|
||||
+#foreach my $mod (keys %$DEPS) {
|
||||
+# my $eval = "require $mod";
|
||||
+# eval $eval;
|
||||
+# if ($@) {
|
||||
+# push (@missing_mods, $mod);
|
||||
+# }
|
||||
+# elsif ($mod->VERSION < $DEPS->{$mod}) {
|
||||
+# push (@upgrade_mods, $mod);
|
||||
+# }
|
||||
+#}
|
||||
+#
|
||||
+#if ($NOASK) {
|
||||
+# installMods(\@missing_mods, 'missing');
|
||||
+# installMods(\@upgrade_mods, 'upgrade');
|
||||
+#}
|
||||
|
||||
if ($ALONE) {
|
||||
system("perl build_pancho.PL ALONE");
|
||||
@@ -109,25 +111,25 @@
|
||||
}
|
||||
|
||||
# override install in order to create conf dir and copy config
|
||||
-sub MY::install {
|
||||
- package MY;
|
||||
- my $inherited = shift->SUPER::install(@_);
|
||||
-
|
||||
- # commands to actually create and copy the files
|
||||
- my $mkdir = "\t\$(MKPATH) \$(SYS_CONFDIR)\n";
|
||||
-
|
||||
- my $copy = "\t\@ if [ -f \"\$(SYS_CONFDIR)/pancho.conf\" ]; then \\\n";
|
||||
- $copy .= "\t\techo;\\\n\t\techo Not copying configuration file. One already exists.;\\\n\t\techo;\\\n";
|
||||
- $copy .= "\telse \\\n";
|
||||
- $copy .= "\t\t\$(CP) pancho.conf \$(SYS_CONFDIR);\\\n";
|
||||
- $copy .= "\t\techo;\\\n\t\techo Configuration file has been installed into \$(SYS_CONFDIR);\\\n\t\techo;\\\n";
|
||||
- $copy .= "\tfi\n";
|
||||
-
|
||||
- # add copy of config file into SYS_CONFDIR
|
||||
- $inherited =~ s|(^install\s*::.*)|$1\n$mkdir$copy|m;
|
||||
-
|
||||
- $inherited;
|
||||
-}
|
||||
+#sub MY::install {
|
||||
+# package MY;
|
||||
+# my $inherited = shift->SUPER::install(@_);
|
||||
+#
|
||||
+# # commands to actually create and copy the files
|
||||
+# my $mkdir = "\t\$(MKPATH) \$(SYS_CONFDIR)\n";
|
||||
+#
|
||||
+# my $copy = "\t\@ if [ -f \"\$(SYS_CONFDIR)/pancho.conf\" ]; then \\\n";
|
||||
+# $copy .= "\t\techo;\\\n\t\techo Not copying configuration file. One already exists.;\\\n\t\techo;\\\n";
|
||||
+# $copy .= "\telse \\\n";
|
||||
+# $copy .= "\t\t\$(CP) pancho.conf \$(SYS_CONFDIR);\\\n";
|
||||
+# $copy .= "\t\techo;\\\n\t\techo Configuration file has been installed into \$(SYS_CONFDIR);\\\n\t\techo;\\\n";
|
||||
+# $copy .= "\tfi\n";
|
||||
+#
|
||||
+# # add copy of config file into SYS_CONFDIR
|
||||
+# $inherited =~ s|(^install\s*::.*)|$1\n$mkdir$copy|m;
|
||||
+#
|
||||
+# $inherited;
|
||||
+#}
|
||||
|
||||
# override realclean to remove pancho and pancho.conf
|
||||
sub MY::realclean {
|
||||
@@ -2,4 +2,5 @@ Documentation is not included with Pancho distribution
|
||||
Please read it at http://www.panchoproject.org/
|
||||
|
||||
You also need to customize PREFIX/etc/pancho.conf
|
||||
A sample configuration file is installed as pancho.conf.sample.
|
||||
A sample configuration file is installed as pancho.conf.sample,
|
||||
copy it as pancho.conf.
|
||||
|
||||
@@ -1,2 +1,17 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Util.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Snmp.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Log.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Nortel.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Foundry.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Arrowpoint.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins/Cisco.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Pancho/.packlist
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Pancho/Plugins 2>/dev/null || true
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Pancho 2>/dev/null || true
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Pancho 2>/dev/null || true
|
||||
bin/pancho
|
||||
etc/pancho.conf.sample
|
||||
%%PORTDOCS%%share/doc/pancho/README
|
||||
%%PORTDOCS%%share/doc/pancho/README.plugins
|
||||
%%PORTDOCS%%share/doc/pancho/Plugin.sample
|
||||
%%PORTDOCS%%@dirrm share/doc/pancho
|
||||
|
||||
Reference in New Issue
Block a user