summaryrefslogtreecommitdiff
path: root/www/thttpd/patches/patch-ac
blob: b08efe27de7680fbce6ede84896514415794e436 (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
$NetBSD: patch-ac,v 1.6 2002/06/16 19:10:26 wiz Exp $

--- cgi-src/Makefile.in.orig	Mon Nov 12 22:52:00 2001
+++ cgi-src/Makefile.in
@@ -34,7 +34,7 @@
 CCOPT =		@V_CCOPT@
 DEFS =		@DEFS@
 INCLS =		-I..
-CFLAGS =	$(CCOPT) $(DEFS) $(INCLS)
+CFLAGS +=	$(CCOPT) $(DEFS) $(INCLS)
 LDFLAGS =	@LDFLAGS@ @V_STATICFLAG@
 LIBS =		@LIBS@
 NETLIBS =	@V_NETLIBS@
@@ -69,15 +69,15 @@
 install:	all
 	-mkdir -p $(CGIBINDIR)
 	rm -f $(CGIBINDIR)/redirect
-	cp redirect $(CGIBINDIR)/redirect
+	$(BSD_INSTALL_PROGRAM) redirect $(CGIBINDIR)/redirect
 	rm -f $(MANDIR)/man8/redirect.8
-	cp redirect.8 $(MANDIR)/man8/redirect.8
+	$(BSD_INSTALL_MAN) redirect.8 $(MANDIR)/man8/redirect.8
 	rm -f $(CGIBINDIR)/ssi
-	cp ssi $(CGIBINDIR)/ssi
+	$(BSD_INSTALL_PROGRAM) ssi $(CGIBINDIR)/ssi
 	rm -f $(MANDIR)/man8/ssi.8
-	cp ssi.8 $(MANDIR)/man8/ssi.8
+	$(BSD_INSTALL_MAN) ssi.8 $(MANDIR)/man8/ssi.8
 	rm -f $(CGIBINDIR)/phf
-	cp phf $(CGIBINDIR)/phf
+	$(BSD_INSTALL_PROGRAM) phf $(CGIBINDIR)/phf
 
 clean:
 	rm -f $(CLEANFILES)