summaryrefslogtreecommitdiff
path: root/net/archie/patches/patch-aa
blob: c8a3c7655c145f0837839ef39456b7dcdd516f24 (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
$NetBSD: patch-aa,v 1.3 1999/07/08 00:38:25 tron Exp $

--- Makefile.orig	Tue Oct 27 00:11:04 1992
+++ Makefile	Thu Jul  8 02:35:35 1999
@@ -2,14 +2,14 @@
 # Makefile for the minimal build for an archie Prospero client.
 #
 # Your C compiler:
-#CC=cc
+CC=cc
 
 # For most systems, these OPTIONS will suffice.  Exceptions:
 #
 #	* If you're on a Stardent, add  -43
 #	* If you're running EP/IX, you may need to add  -systype bsd43
 #	  but try it without it first.
-OPTIONS= -O -I. -I/usr/netinclude -I/usr/ucbinclude
+OPTIONS= -I.
 
 # For this, DEFINES is usually ok as-is.  Try it without any of these
 # first; if some stuff fails or shows up undefined, then come back and
@@ -30,7 +30,7 @@
 #     * if your system is lacking strspn(), add               -DSTRSPN
 #     * if you're using the unbundled SparcCompiler on a
 #	Solaris 2 system, add				      -DSOLARIS2
-DEFINES= -DDEBUG
+DEFINES= # -DDEBUG -DNOREGEX
 
 # The default Archie server; choose one of:
 #    archie.ans.net		(USA [NY])
@@ -46,14 +46,14 @@
 #
 # Note this only applies to the command-line client; to change the
 # default for the Emacs lisp version, set the archie-server variable.
-ARCHIE= archie.sura.net
+ARCHIE= archie.rutgers.edu
 
 #	Usually LDFLAGS is empty; if, after you build this, archie
 #	 complains that it can't resolve ARCHIE.ANS.NET (or whatever
 #	 you defined ARCHIE_HOST as), you need to add `-lresolv'.
 #
 #	* If you need the PW library (e.g. A/UX), add -lPW
-LDFLAGS=
+LDFLAGS= -lcompat
 # If you're using ISC, use:
 #LDFLAGS= -linet
 # If you're using Wallongong TCP/IP on an AT&T box, use:
@@ -73,7 +73,7 @@
 # Yer' done....make archie.
 # =========================
 #
-CFLAGS=$(OPTIONS) $(DEFINES) -DARCHIE_HOST=\"$(ARCHIE)\"
+CFLAGS+=$(OPTIONS) $(DEFINES) -DARCHIE_HOST=\"$(ARCHIE)\"
 
 VERSION=1.4.1
 VMS_VERSION=`echo $(VERSION) | sed -e 's,\\.,_,g'`
@@ -84,6 +84,10 @@
 	vlalloc.o vl_comp.o
 
 all: archie
+
+install:
+	install -c -s archie  ${PREFIX}/bin/archie
+	install -c archie.man ${PREFIX}/man/man1/archie.1
 
 archie: $(OBJS)
 	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)