summaryrefslogtreecommitdiff
path: root/www/thttpd/patches/patch-ab
blob: 4658503e53c9147735af760424ea3b50a80e3b9d (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
$NetBSD: patch-ab,v 1.3 2000/12/17 22:21:45 jlam Exp $

--- extras/Makefile.in.orig	Wed Sep 15 12:00:14 1999
+++ extras/Makefile.in
@@ -35,7 +35,7 @@
 CCOPT =		@V_CCOPT@
 DEFS =		@DEFS@
 INCLS =		-I..
-CFLAGS =	$(CCOPT) $(DEFS) $(INCLS)
+CFLAGS +=	$(CCOPT) $(DEFS) $(INCLS)
 STATICFLAG =	@V_STATICFLAG@
 LDFLAGS =	@LDFLAGS@
 LIBS =		@LIBS@
@@ -67,17 +67,15 @@
 
 install:	all
 	rm -f $(BINDIR)/makeweb $(BINDIR)/htpasswd $(BINDIR)/syslogtocern
-	cp makeweb $(BINDIR)/makeweb
-	chgrp $(WEBGROUP) $(BINDIR)/makeweb
-	chmod 2755 $(BINDIR)/makeweb
-	cp htpasswd $(BINDIR)/htpasswd
-	cp syslogtocern $(BINDIR)/syslogtocern
+	$(BSD_INSTALL_PROGRAM) makeweb $(BINDIR)/makeweb
+	$(BSD_INSTALL_PROGRAM) htpasswd $(BINDIR)/htpasswd
+	$(BSD_INSTALL_SCRIPT) syslogtocern $(BINDIR)/syslogtocern
 	rm -f $(MANDIR)/man1/makeweb.1
-	cp makeweb.1 $(MANDIR)/man1/makeweb.1
+	$(BSD_INSTALL_MAN) makeweb.1 $(MANDIR)/man1/makeweb.1
 	rm -f $(MANDIR)/man1/htpasswd.1
-	cp htpasswd.1 $(MANDIR)/man1/htpasswd.1
+	$(BSD_INSTALL_MAN) htpasswd.1 $(MANDIR)/man1/htpasswd.1
 	rm -f $(MANDIR)/man8/syslogtocern.8
-	cp syslogtocern.8 $(MANDIR)/man8/syslogtocern.8
+	$(BSD_INSTALL_MAN) syslogtocern.8 $(MANDIR)/man8/syslogtocern.8
 
 clean:
 	rm -f $(CLEANFILES)