openbsd-ports/www/p5-CGI-SpeedyCGI/patches/patch-Makefile_PL
2008-10-02 05:58:56 +00:00

28 lines
994 B
Plaintext

$OpenBSD: patch-Makefile_PL,v 1.3 2008/10/02 05:58:56 simon Exp $
--- Makefile.PL.orig Sun Oct 5 08:40:46 2003
+++ Makefile.PL Thu Oct 2 00:21:22 2008
@@ -16,12 +16,12 @@ requires a working copy of "apxs" in your path, Apache
support, and additional Apache configuration.
END
-print "Compile mod_speedycgi (default no)? ";
+#print "Compile mod_speedycgi (default no)? ";
my @dirs = qw(src speedy_backend speedy);
my $macro = $write_makefile_common{macro};
my $apache_module = 0;
-if (<STDIN> =~ /y/i) {
+if (1) {
die "ERROR: Command 'apxs -q CC' failed.\n"
unless $macro->{APACHE_APXS_WORKS};
print "Compiling for Apache version $macro->{APACHE_VERSION}\n";
@@ -71,7 +71,7 @@ readable:
chmod -R u+w,go-w,go+r .
README: src/SpeedyCGI.pm
- cd src && $(PERL) -e "use Pod::Text; pod2text(-80)" <SpeedyCGI.pm >../README
+ cd src && pod2text -80 <SpeedyCGI.pm >../README
README.html: src/SpeedyCGI.pm
cd src && pod2html SpeedyCGI.pm >../README.html && $(RM_F) pod2h*