summaryrefslogtreecommitdiff
path: root/security/tct/patches/patch-ao
blob: b83c74e9eff84ef6b35a4a98622bee511478f1b0 (plain)
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
$NetBSD: patch-ao,v 1.3 2015/03/19 08:34:53 dholland Exp $

Configure for pkgsrc.

--- reconfig.orig	2001-09-15 22:48:51.000000000 +0200
+++ reconfig	2005-06-19 02:58:30.000000000 +0200
@@ -52,25 +52,7 @@
 
 # find perl5!
 print "Ok, trying to find perl5 now... hang on a bit...\n";
-for $dir (@all_dirs) {
-	# first, find where it might be; oftentimes you'll see perl,
-	# perl4, perl5, etc. in the same dir
-	next if (! -d $dir);
-	while (<$dir/perl5* $dir/perl*>) {
-		if (-x $_) {
-			$perl_version=`($_ -v 2> /dev/null) |
-				awk '/This is perl, v.*5/ { print $NF }'`;
-			if ($perl_version) {
-				$PERL=$_;
-				$pflag="1";
-				last;
-				}
-			}
-			last if $pflag;
-		}
-	last if $pflag;
-	}
-
+$PERL = $ENV{"PERL5"};
 die "\nCan't find perl5!  Bailing out...\n" unless $PERL;
 print "\nPerl5 is in $PERL\n";
 
@@ -167,7 +149,7 @@
 	die "Can't open $file for reading\n" unless open(FILE, $file);
 	while (<FILE>) {
 		if (/^\s*\$TCT_HOME\s*=/ && !$done) {
-			$file{$n++} = "\$TCT_HOME = \"$cwd\";\n";
+			$file{$n++} = "\$TCT_HOME = \"$ENV{\"PREFIX\"}/tct\";\n";
 			$done = 1;
 			next;
 			}