25265ec03a
build dir. you can build apache 2 modules again now.
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
$OpenBSD: patch-Makefile_in,v 1.3 2007/01/05 22:22:04 dlg Exp $
|
|
--- Makefile.in.orig Sun Nov 13 16:33:15 2005
|
|
+++ Makefile.in Fri Jan 5 15:05:01 2007
|
|
@@ -45,14 +45,18 @@ install-conf:
|
|
( \
|
|
n_lm=`awk 'BEGIN {n=0} /@@LoadModule@@/ {n+=1} END {print n}' < $$i`; \
|
|
if test $$n_lm -eq 0 -o "x$(DSO_MODULES)" = "x"; then \
|
|
- sed -e 's#@@ServerRoot@@#$(prefix)#g' \
|
|
+ sed -e 's#@@ServerRoot@@#$(rel_datadir)#g' \
|
|
-e 's#@@Port@@#$(PORT)#g' \
|
|
+ -e 's#@@User@@#$(rel_user)#g' \
|
|
+ -e 's#@@Group@@#$(rel_group)#g' \
|
|
-e '/@@LoadModule@@/d' \
|
|
< $$i; \
|
|
else \
|
|
sed -n -e '/@@LoadModule@@/q' \
|
|
- -e 's#@@ServerRoot@@#$(prefix)#g' \
|
|
+ -e 's#@@ServerRoot@@#$(rel_datadir)#g' \
|
|
-e 's#@@Port@@#$(PORT)#g' \
|
|
+ -e 's#@@User@@#$(rel_user)#g' \
|
|
+ -e 's#@@Group@@#$(rel_group)#g' \
|
|
-e 'p' \
|
|
< $$i; \
|
|
for j in $(DSO_MODULES) "^EOL^"; do \
|
|
@@ -62,8 +66,10 @@ install-conf:
|
|
done; \
|
|
sed -e '1,/@@LoadModule@@/d' \
|
|
-e '/@@LoadModule@@/d' \
|
|
- -e 's#@@ServerRoot@@#$(prefix)#g' \
|
|
+ -e 's#@@ServerRoot@@#$(rel_datadir)#g' \
|
|
-e 's#@@Port@@#$(PORT)#g' \
|
|
+ -e 's#@@User@@#$(rel_user)#g' \
|
|
+ -e 's#@@Group@@#$(rel_group)#g' \
|
|
< $$i; \
|
|
fi \
|
|
) > $(DESTDIR)$(sysconfdir)/original/$$i; \
|