summaryrefslogtreecommitdiff
path: root/www/wwwoffle/patches/patch-aa
blob: 33bd0bcb5b54b28509ad0ed00305371b17b0f28c (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
$NetBSD: patch-aa,v 1.14 2001/08/14 04:51:46 fredb Exp $

--- Makefile.orig	Tue May 29 13:29:03 2001
+++ Makefile
@@ -18,11 +18,11 @@
 LOCALHOST=localhost:8080
 
 # For UNIX.
-INSTDIR=/usr/local
-SPOOLDIR=/var/spool/wwwoffle
-CONFDIR=/var/spool/wwwoffle
+INSTDIR=${PREFIX}
+SPOOLDIR=/var/wwwoffle
+CONFDIR=${PREFIX}/etc/wwwoffle
 MANDIR=$(INSTDIR)/man
-DOCDIR=$(INSTDIR)/doc/wwwoffle
+DOCDIR=$(INSTDIR)/share/doc/wwwoffle
 
 # For Cygwin (win32).
 #INSTDIR=/wwwoffle
@@ -54,13 +54,13 @@
 ########
 
 CC=gcc
-CFLAGS=-O2 -Wall -g
+CFLAGS=-O2 -Wall
 
 # This is used in the FreeBSD port (http://www.freebsd.org/ports/).
 #CFLAGS=-O2 -Wall
 
 LD=gcc
-LDFLAGS=-g
+LDFLAGS=-s
 
 # For HP/UX this is a good idea.
 #LDFLAGS=
@@ -89,12 +89,12 @@
 #USE_IPV6=1
 
 # The option to use IPv6 sockets if required.
-USE_IPV6=0
+#USE_IPV6=0
 
 ########
 
-INCLUDE=
-LIBRARY=-lz
+#INCLUDE=
+#LIBRARY=-lz
 
 # To compile without zlib
 #LIBRARY=
@@ -167,7 +167,7 @@
 	     configfile.o config.o errors.o io.o misc.o proto.o sockets.o md5.o
 
 wwwoffle : $(WWWOFFLE_OBJ)
-	$(LINK) $(WWWOFFLE_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(WWWOFFLE_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -179,7 +179,7 @@
 	      configfile.o config.o errors.o io.o misc.o proto.o sockets.o md5.o
 
 wwwoffled : $(WWWOFFLED_OBJ)
-	$(LINK) $(WWWOFFLED_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(WWWOFFLED_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -190,7 +190,7 @@
 	           configfile.o config.o errors.o io.o misc.o proto.o sockets.o md5.o
 
 wwwoffle-tools : $(WWWOFFLE_TOOLS_OBJ)
-	$(LINK) $(WWWOFFLE_TOOLS_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(WWWOFFLE_TOOLS_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -200,7 +200,7 @@
 	    configfile.o config.o errors.o io.o misc.o proto.o sockets.o spool.o md5.o
 
 convert-cache : $(CONVERT_OBJ)
-	$(LINK) $(CONVERT_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(CONVERT_OBJ) -o $@ $(LIBRARY) -lz
 
 ####
 
@@ -210,7 +210,7 @@
 	       configfile.o config.o errors.o io.o misc.o proto.o sockets.o spool.o md5.o
 
 uncompress-cache : $(UNCOMPRESS_OBJ)
-	$(LINK) $(UNCOMPRESS_OBJ) -o $@ $(LIBRARY)
+	$(LINK) $(UNCOMPRESS_OBJ) -o $@ $(LIBRARY) -lz
 
 ####