summaryrefslogtreecommitdiff
path: root/net/pptp/patches/patch-aa
blob: e3ebf75a845fdb5f1fff6bf221ea132019ed8df1 (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
$NetBSD: patch-aa,v 1.1.1.1 2000/04/10 01:14:02 jtk Exp $

Index: Makefile
--- Makefile.orig	Wed Feb 18 17:42:14 1998
+++ Makefile	Sun Apr  9 21:07:17 2000
@@ -1,10 +1,11 @@
-VERSION = 1.0.2
-VERSION_DEFINE = '-DPPTP_LINUX_VERSION="${VERSION}"'
+VERSION = 1.0.2+NetBSD
+VERSION_DEFINE = '-DPPTP_LINUX_VERSION="${VERSION}"' -DPROGRAM_NAME='"pptp"'
 
 CC	= gcc -Wall
-DEBUG	= -g
+RM	= rm
+DEBUG	= -g -O2 # -O9
 INCLUDE =
-CFLAGS  = -O9 $(VERSION_DEFINE) $(DEBUG) $(INCLUDE)
+CFLAGS  =  $(VERSION_DEFINE) $(DEBUG) $(INCLUDE)
 LIBS	=
 LDFLAGS	=
 
@@ -24,7 +25,19 @@
 CALLMGR_OBJS = pptp_callmgr.o pptp_ctrl.o dirutil.o util.o vector.o version.o
 CALLMGR_DEPS = pptp_callmgr.h pptp_ctrl.h dirutil.h pptp_msg.h vector.h
 
-all: $(PPTP_BIN) $(CALLMGR_BIN)
+MANPAGE=pptp.8
+
+all: $(PPTP_BIN) $(MANPAGE)
+
+install:
+	$(INSTALL) -c $(PPTP_BIN) ${PREFIX}/sbin/${PPTP_BIN}
+	$(INSTALL) -c -m 444 $(MANPAGE) ${PREFIX}/man/man8/$(MANPAGE)
+	mkdir -p ${PREFIX}/share/doc/pptp
+	$(INSTALL) -c -m 444 USING ${PREFIX}/share/doc/pptp/USING
+	$(INSTALL) -c -m 444 README ${PREFIX}/share/doc/pptp/README
+	$(INSTALL) -c -m 444 INSTALL ${PREFIX}/share/doc/pptp/INSTALL
+	$(INSTALL) -c -m 444 NEWS ${PREFIX}/share/doc/pptp/NEWS
+	tar cf - Reference Documentation |(cd ${PREFIX}/share/doc/pptp && tar xpBf -)
 
 $(PPTP_BIN): $(PPTP_OBJS) $(PPTP_DEPS)
 	$(CC) -o $(PPTP_BIN) $(PPTP_OBJS) $(LDFLAGS) $(LIBS)
@@ -36,7 +49,7 @@
 	$(CC) -o vector_test vector_test.o vector.o
 
 clean:
-	$(RM) *.o *~
+	$(RM) -f *.o *~
 
 clobber: clean
 	$(RM) $(PPTP_BIN) $(CALLMGR_BIN) vector_test