summaryrefslogtreecommitdiff
path: root/net/sendfile/patches/patch-aa
blob: 6aaa3e1e5302349b11e5e82ba3bbcd9ceea99bc8 (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
$NetBSD: patch-aa,v 1.5 2006/02/24 19:43:56 joerg Exp $

--- makeconfig.orig	1999-08-26 18:53:32.000000000 +0000
+++ makeconfig
@@ -9,17 +9,13 @@
 #	$HOME/.develenv
 # or simply call: makeconfig CC=gcc ...
 
-# default compiling settings
-CC=gcc
-CFLAGS=-O2
-LDFLAGS=-s
-
 # default installation settings
 SPOOL=/var/spool/sendfile
-BINDIR=/usr/local/bin
-MANDIR=/usr/local/man
-CONFIG=/usr/local/etc
-SERVERDIR=/usr/local/sbin
+BINDIR=@PREFIX@/bin
+MANDIR=@PREFIX@/man
+CONFIG=@PREFIX@/etc
+EGDIR=@PREFIX@/share/examples/sendfile
+SERVERDIR=@PREFIX@/sbin
 INETDCONF=/etc/inetd.conf
 SERVICES=/etc/services
 
@@ -99,7 +95,7 @@ case "$SYSTEM" in
   *next*)	SYSTEM=NEXT;;
   *convex*)	SYSTEM=CONVEXOS;;
   *osf*)	SYSTEM=OSF1;;
-  *bsd*)	SYSTEM=BSD;;
+  *bsd*|*dragonfly*)	SYSTEM=BSD;;
   *)		SYSTEM=UNKNOWN;;
 #  *)		SYSTEM=`uname -a | tr '[a-z]' '[A-Z]'`
 #  		case "$SYSTEM" in
@@ -110,6 +106,10 @@ case "$SYSTEM" in
 #		esac;;
 esac
 
+case "$SYSTEM" in
+BSD)	CFLAGS="$CFLAGS -DHAVE_STRERROR=1" ;;
+esac
+
 cd ../src
 echo now in `pwd`
 
@@ -133,6 +133,7 @@ cat <<EOD>globals.h
 #define MANDIR		"$MANDIR"
 #define SERVERDIR	"$SERVERDIR"
 
+#define EGDIR		"$EGDIR"
 #define CONFIG		"$CONFIG/sendfile.cf"
 #define ALIASES		"$CONFIG/sendfile.aliases"
 #define ALLOW		"$CONFIG/sendfile.allow"