openbsd-ports/net/pptp/patches/patch-Makefile
stsp 652a2e6714 Fix build with gcc-2.95 (tested on sparc, simh-vax was too slow).
Remove some useless linux-specific code which tried to modify
the routing table by running "/bin/ip". Because this code has
no error checking and failed silently, no one noticed it.
Noticed it now because it didn't compile with gcc-2.95.

Don't install useless documentation.
Install useful notes on protocol insecurity instead.

Tweak the man page a little. Dunno if anyone is still using
Bezeq ADSL modems that need the --quirks option, but move
the information here just in case.

Clean up MESSAGE; don't shout at everybody about security holes
in a particular kind of modem that's almost 10 years old.

ok naddy@
2009-03-08 21:57:24 +00:00

36 lines
1.1 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.7 2009/03/08 21:57:24 stsp Exp $
--- Makefile.orig Wed May 14 07:33:55 2008
+++ Makefile Fri Mar 6 15:45:41 2009
@@ -4,19 +4,19 @@ RELEASE=
#################################################################
# CHANGE THIS LINE to point to the location of your pppd binary.
-PPPD = /usr/sbin/pppd
+PPPD?= /usr/sbin/pppd
#################################################################
BINDIR=$(DESTDIR)/usr/sbin
MANDIR=$(DESTDIR)/usr/share/man/man8
PPPDIR=$(DESTDIR)/etc/ppp
-CC = gcc
+CC? = gcc
RM = rm -f
OPTIMIZE= -O0
DEBUG = -g
INCLUDE =
-CFLAGS = -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE)
+CFLAGS? = -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE)
LIBS = -lutil
# Solaris 10
# LIBS = -lnsl -lsocket -lresolv
@@ -29,7 +29,7 @@ PPTP_BIN = pptp
PPTP_OBJS = pptp.o pptp_gre.o ppp_fcs.o \
pptp_ctrl.o dirutil.o vector.o \
inststr.o util.o version.o test.o \
- pptp_quirks.o orckit_quirks.o pqueue.o pptp_callmgr.o routing.o \
+ pptp_quirks.o orckit_quirks.o pqueue.o pptp_callmgr.o \
pptp_compat.o
PPTP_DEPS = pptp_callmgr.h pptp_gre.h ppp_fcs.h util.h test.h \