aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/pancho/files/patch-Makefile.PL
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/pancho/files/patch-Makefile.PL')
-rw-r--r--net-mgmt/pancho/files/patch-Makefile.PL92
1 files changed, 92 insertions, 0 deletions
diff --git a/net-mgmt/pancho/files/patch-Makefile.PL b/net-mgmt/pancho/files/patch-Makefile.PL
new file mode 100644
index 000000000000..e4e86eff0eca
--- /dev/null
+++ b/net-mgmt/pancho/files/patch-Makefile.PL
@@ -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 {