summaryrefslogtreecommitdiff
path: root/www/apache13-fp/files/apache.sh.tmpl
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>2000-03-01 06:25:15 +0000
committerBill Fumerola <billf@FreeBSD.org>2000-03-01 06:25:15 +0000
commite6503fb81a27bb578af6a8d0591748b0d84cbf3d (patch)
tree80c45281ac7798887074895f840282856e9b3bab /www/apache13-fp/files/apache.sh.tmpl
parentUpgrade to version 2.3. (diff)
Upgrade to the latest and greatest apache/frontpage combo.
PR: ports/16974 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=26464
Diffstat (limited to 'www/apache13-fp/files/apache.sh.tmpl')
-rw-r--r--www/apache13-fp/files/apache.sh.tmpl16
1 files changed, 10 insertions, 6 deletions
diff --git a/www/apache13-fp/files/apache.sh.tmpl b/www/apache13-fp/files/apache.sh.tmpl
index bb1995de54cd..fce517839604 100644
--- a/www/apache13-fp/files/apache.sh.tmpl
+++ b/www/apache13-fp/files/apache.sh.tmpl
@@ -11,12 +11,16 @@ new_key() {
skdir=PREFIX/frontpage/version4.0/apache-fp
PERL=PERL5
- #NOTE: We need Perl 5, to generate a new key
- if [ -x ${PERL} ]
+ if [ -x PREFIX/libexec/apache/mod_frontpage.so ]
then
- umask 077
- ${PERL} -e '@a=(split(//, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*-=_+")); print((map {$a[rand(scalar @a)]} (1..128)), "\n");' > $skdir/suidkey
- umask ${CUR_UMASK}
+
+ #NOTE: We need Perl 5, to generate a new key
+ if [ -x ${PERL} ]
+ then
+ umask 077
+ ${PERL} -e '@a=(split(//, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*-=_+")); print((map {$a[rand(scalar @a)]} (1..128)), "\n");' > $skdir/suidkey
+ umask ${CUR_UMASK}
+ fi
fi
}
@@ -27,7 +31,7 @@ new_key() {
if [ -x PREFIX/libexec/apache/mod_frontpage.so ]
then
- MODULES="fp"
+ MODULES="_FP"
fi
case "$1" in