summaryrefslogtreecommitdiff
path: root/www/squirm/files/patch-aa
blob: efa9f1b59963fcaba5d30ecf31cad94a53c7f724 (plain) (blame)
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
diff -ruN ../squirm-1.0betaB.orig/Makefile.real ./Makefile.real
--- Makefile.real.orig	Wed Mar 11 10:23:51 1998
+++ Makefile.real	Tue May 25 17:15:36 1999
@@ -1,31 +1,30 @@
 # Makefile for Squirm
 #
 
-OFILES = squirm.o main.o config.o log.o lists.o regex.o
+OFILES = squirm.o main.o config.o log.o lists.o #regex.o
 
-HFILES = squirm.h paths.h lists.h log.h regex.h
+HFILES = squirm.h paths.h lists.h log.h #regex.h
 
-CC=gcc
+CC?=cc
 #CC=checkergcc
 
-#EXTRALIBS=-lregex
+EXTRALIBS=-lgnuregex
 #EXTRALIBS=
 
 BINARIES = squirm
 
-CFLAGS = -O3 -Wall -funroll-loops
+CFLAGS? = -O3 -Wall -funroll-loops
 #CFLAGS = -Wall -g
 
 all:	$(BINARIES)
 
 install:	all
-			install -m 755 -o root -g root -d /usr/local/squirm \
-			/usr/local/squirm/bin
-			install -m 750 -o root -g squid -d /usr/local/squirm/etc
-			install -m 750 -o squid -g squid -d /usr/local/squirm/logs
-			install -m 660 -o root -g squid squirm.local.dist squirm.patterns.dist \
-			/usr/local/squirm/etc
-			install -m 755 -o root -g root --strip squirm /usr/local/squirm/bin
+	install -c -m 755 -o root -g wheel -d ${PREFIX}/squirm
+	install -c -m 770 -o root -g wheel -d ${PREFIX}/etc/squirm
+	install -c -m 750 -o nobody -g nogroup -d ${PREFIX}/squirm/logs
+	install -c -m 660 -o root -g nogroup squirm.local.dist squirm.patterns.dist \
+	${PREFIX}/etc/squirm
+	install -c -m 755 -o root -g wheel --strip squirm ${PREFIX}/bin
 			
 squirm.o:	squirm.c $(HFILES)
 			$(CC) -c squirm.c 		$(CFLAGS)