summaryrefslogtreecommitdiff
path: root/net-mgmt/pancho/files/patch-Makefile.PL
blob: e4e86eff0eca2d521c3ff01146bbba5075b1a525 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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 {