mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Try to use $WORSRC instead /tmp and just $CWD.
This commit is contained in:
parent
2c0b29eeaf
commit
b5fdeb3798
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101707
@ -1,6 +1,6 @@
|
||||
--- Makefile.PL.orig Tue Mar 12 22:07:07 2002
|
||||
+++ Makefile.PL Sun Feb 22 10:05:56 2004
|
||||
@@ -9,14 +9,32 @@
|
||||
+++ Makefile.PL Sun Feb 22 10:26:40 2004
|
||||
@@ -9,14 +9,39 @@
|
||||
# FP extensions 5.0 from Martin Blapp <mbr@freebsd.org>
|
||||
#
|
||||
|
||||
@ -18,15 +18,22 @@
|
||||
+ $prefix = $1;
|
||||
+ }
|
||||
+}
|
||||
|
||||
-if ($flavor eq "FreeBSD") { $thechoice="/usr/local/sbin/httpd";
|
||||
-} elsif ($flavor eq "Mandrake") { $thechoice="/usr/sbin/httpd";
|
||||
+$worksrc= $ENV{WRKSRC};
|
||||
+if (!$worksrc) {
|
||||
+ $worksrc = "./";
|
||||
+} elsif ($worksrc eq "\.") {
|
||||
+ $worksrc = "./";
|
||||
+}
|
||||
+
|
||||
+$ostype=`uname`;
|
||||
+chop $ostype;
|
||||
+if (-e "/etc/mandrake-release") {
|
||||
+ $flavor="Mandrake";
|
||||
+}
|
||||
|
||||
-if ($flavor eq "FreeBSD") { $thechoice="/usr/local/sbin/httpd";
|
||||
-} elsif ($flavor eq "Mandrake") { $thechoice="/usr/sbin/httpd";
|
||||
+
|
||||
+if ($ostype eq "FreeBSD" && -e "$prefix/sbin/httpd") {
|
||||
+ $thechoice="$prefix/sbin/httpd";
|
||||
+} elsif ($ostype eq "Linux" && -e "/usr/sbin/httpd") {
|
||||
@ -38,7 +45,24 @@
|
||||
print "If you don't know, enter the word 'findit'. I will try to look\n";
|
||||
print "for you... but it will take a few minutes.\n";
|
||||
print "Your choice: ";
|
||||
@@ -109,20 +127,33 @@
|
||||
@@ -66,7 +91,7 @@
|
||||
print "Libexecdir: $libexecdir\n";
|
||||
print "\n";
|
||||
|
||||
-$tmpfile="/tmp/frontpage.$$";
|
||||
+$tmpfile="$worksrc/../tmpfrontpage.$$";
|
||||
#Mandrake now has two config files, one main and one included
|
||||
#if we build on another distro, it ignores it
|
||||
`cat $confdir/httpd.conf $confdir/commonhttpd.conf > $tmpfile 2>/dev/null`;
|
||||
@@ -95,7 +120,6 @@
|
||||
}
|
||||
}
|
||||
close(FILE);
|
||||
-`rm -f $tmpfile`;
|
||||
|
||||
print "Apache user: $user, group: $group\n";
|
||||
print "Userdir: $userdir\n";
|
||||
@@ -109,20 +133,33 @@
|
||||
$errorlog="$serverroot/$errorlog";
|
||||
print "$errorlog\n";
|
||||
}
|
||||
@ -80,7 +104,18 @@
|
||||
} else { $defaultid=99; }
|
||||
|
||||
if ($uid < $defaultid) {
|
||||
@@ -158,11 +189,40 @@
|
||||
@@ -138,8 +175,8 @@
|
||||
### Create Makefile
|
||||
$install=`which install`;
|
||||
chop $install;
|
||||
-open(MTMP,"Makefile.in") or die "Can't find Makefile.tmpl\n";
|
||||
-open(MAKF,"> Makefile") or die "Can't create Makefile\n";
|
||||
+open(MTMP,"$worksrc/Makefile.in") or die "Can't find $worksrc/Makefile.in\n";
|
||||
+open(MAKF,"> $worksrc/Makefile") or die "Can't create $worksrc/Makefile\n";
|
||||
print "Creating Makefile\n";
|
||||
while(<MTMP>) {
|
||||
$_=~ s|\$\(apxs\)|$apxs|;
|
||||
@@ -158,11 +195,40 @@
|
||||
$_=~ s|\$\(fpexec_logexec\)|$errorlog|;
|
||||
$_=~ s|\$\(fpexec_userdir\)|$userdir|;
|
||||
$_=~ s|\$\(fpexec_docroot\)|$documentroot|;
|
||||
|
Loading…
Reference in New Issue
Block a user