summaryrefslogtreecommitdiff
path: root/net/pptp/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net/pptp/patches/patch-aa')
-rw-r--r--net/pptp/patches/patch-aa51
1 files changed, 51 insertions, 0 deletions
diff --git a/net/pptp/patches/patch-aa b/net/pptp/patches/patch-aa
new file mode 100644
index 00000000000..e3ebf75a845
--- /dev/null
+++ b/net/pptp/patches/patch-aa
@@ -0,0 +1,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