diff options
Diffstat (limited to 'net-mgmt/nfsen-devel/files/patch-install.pl')
-rw-r--r-- | net-mgmt/nfsen-devel/files/patch-install.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net-mgmt/nfsen-devel/files/patch-install.pl b/net-mgmt/nfsen-devel/files/patch-install.pl index dd144f62fb55..4b4113a85cc1 100644 --- a/net-mgmt/nfsen-devel/files/patch-install.pl +++ b/net-mgmt/nfsen-devel/files/patch-install.pl @@ -4,26 +4,26 @@ $FreeBSD$ --- install.pl.orig +++ install.pl @@ -1,4 +1,4 @@ --#!/usr/bin/perl -I installer-items +-#!/usr/bin/perl +#!%%PERL%% -I %%PREFIX%%/libexec/nfsen # # # Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung -@@ -56,33 +56,7 @@ +@@ -81,33 +81,7 @@ # Get Perl sub GetPerl { - my $whichperl; - my $ans; -- chomp($whichperl = `which perl`); -- if ( length $whichperl ) { +- $whichperl = FindCommand("perl"); +- if ( defined $whichperl ) { - print "Perl to use: [$whichperl] "; - chomp($ans = <STDIN>); - if ( length $ans ) { - $whichperl = $ans; - } - } else { -- print "No Perl found in PATH. Please specify where to find perl [] "; +- print "No Perl found in your PATH. Please specify where to find perl [] "; - chomp($whichperl = <STDIN>); - } - |