summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-11-07 21:33:20 +0000
committermillert <millert@openbsd.org>1998-11-07 21:33:20 +0000
commit4ed9151673e9c98a75b51867742273fc847b39fb (patch)
tree246e8063f701d66fdd7c7ec6e232c53daf819559
parentSet PATH before running Configure (diff)
downloadwireguard-openbsd-4ed9151673e9c98a75b51867742273fc847b39fb.tar.xz
wireguard-openbsd-4ed9151673e9c98a75b51867742273fc847b39fb.zip
Nasty hack to add execute permission to helper scripts if they don't
have it. I don't think hacking apache's configure mechanism is the correct approach for us, since it would just have to be redone for every import (and it requires more than just changing Configure). I don't think the read-only case is an issue since on a CD-ROM the permissions should be correct (I believe it is only ctm that doesn't update modes).
-rw-r--r--usr.sbin/httpd/src/Makefile.bsd-wrapper9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/Makefile.bsd-wrapper b/usr.sbin/httpd/src/Makefile.bsd-wrapper
index ab4fa85b978..b0a49b4a67e 100644
--- a/usr.sbin/httpd/src/Makefile.bsd-wrapper
+++ b/usr.sbin/httpd/src/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.9 1998/11/06 20:42:05 millert Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.10 1998/11/07 21:33:20 millert Exp $
.include <bsd.own.mk>
PROG=httpd
BINDIR=/usr/sbin
@@ -19,6 +19,13 @@ config: .FORCE
sh ${.CURDIR}/Configure -file ${.OBJDIR}/Configuration -make ${.CURDIR}/Makefile.tmpl
Makefile: helpers/GuessOS
+ # This is a nasty hack
+ @for f in CutRule GuessOS MakeEtags PrintPath TestCompile buildinfo.sh \
+ checkheader.sh findcpp.sh fmn.sh fp2rp install.sh mfhead mkdir.sh \
+ mkshadow.sh ppl.sh slo.sh; do \
+ test -x ${.CURDIR}/helpers/$$f || \
+ chmod +x ${.CURDIR}/helpers/$$f ; \
+ done
PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
sh ${.CURDIR}/Configure -file ${.OBJDIR}/Configuration -make ${.CURDIR}/Makefile.tmpl