summaryrefslogtreecommitdiff
path: root/www/apache2/patches/patch-ag
blob: 119794a99c3d398ef9a6e5934d41ef83375a30c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
$NetBSD: patch-ag,v 1.3 2002/03/06 00:55:34 jlam Exp $

--- support/Makefile.in.orig	Sat Jan 19 00:44:04 2002
+++ support/Makefile.in
@@ -2,7 +2,8 @@
 	logresolve.pl phf_abuse_log.cgi split-logfile
 
 PROGRAMS = htpasswd htdigest rotatelogs logresolve ab checkgid htdbm
-TARGETS  = $(PROGRAMS)
+SCRIPTS  = apxs apachectl dbmmanage
+TARGETS  = $(PROGRAMS) $(SCRIPTS)
 
 PROGRAM_LDADD        = $(EXTRA_LDFLAGS) $(UTIL_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
 PROGRAM_DEPENDENCIES = \
@@ -15,18 +16,30 @@
 	@test -d $(bindir) || $(MKINSTALLDIRS) $(bindir)
 	@test -d $(libexecdir) || $(MKINSTALLDIRS) $(libexecdir)
 	@cp -p $(top_builddir)/server/httpd.exp $(libexecdir)
-	@for i in apxs apachectl dbmmanage; do \
-	    if test -f "$(builddir)/$$i"; then \
-	        cp -p $$i $(sbindir); \
-	        chmod 755 $(sbindir)/$$i; \
-	    fi ; \
-	done
 	@if test -f "$(builddir)/envvars-std"; then \
 	    cp -p envvars-std $(sbindir); \
+	    if false; then \
 	    if test ! -f $(sbindir)/envvars; then \
 	        cp -p envvars-std $(sbindir)/envvars ; \
 	    fi ; \
+	    fi ; \
 	fi
+
+apxs: apxs.pl
+	sed -e "s#%prefix%#$(prefix)#g" \
+		-e "s#%installbuilddir%#$(installbuilddir)#g" \
+		< apxs.pl > $@
+	chmod +x $@
+
+apachectl: apachectl.sh
+	sed -e "s#%runtimedir%#$(runtimedir)#g" \
+		-e "s#%sbindir%#$(sbindir)#g" \
+		< apachectl.sh > $@
+	chmod +x $@
+
+dbmmanage: dbmmanage.pl
+	cp dbmmanage.pl $@
+	chmod +x $@
 
 htpasswd_OBJECTS = htpasswd.lo
 htpasswd: $(htpasswd_OBJECTS)