diff -ruN poptop.orig/Makefile poptop/Makefile --- poptop.orig/Makefile Fri Jun 20 12:19:43 2003 +++ poptop/Makefile Fri Jun 20 12:22:42 2003 @@ -16,8 +16,13 @@ COMMENT= Windows 9x compatible PPTP (VPN) server GNU_CONFIGURE= yes +.ifdef(POPTOP_KERNPPP) +CONFIGURE_ARGS= +.else CONFIGURE_ARGS= --with-bsdppp +.endif WRKSRC= ${WRKDIR}/${PORTNAME}-1.1.4 +MAKE_ENV= BSDCFLAGS="${CFLAGS}" MAN5= pptpd.conf.5 MAN8= pptpd.8 pptpctrl.8 diff -ruN poptop.orig/files/patch-ab poptop/files/patch-ab --- poptop.orig/files/patch-ab Fri Jun 20 12:19:43 2003 +++ poptop/files/patch-ab Fri Jun 20 12:32:48 2003 @@ -1,5 +1,5 @@ ---- Makefile.in.orig Sat May 3 17:54:08 2003 -+++ Makefile.in Sat May 3 17:55:08 2003 +--- Makefile.in.orig Thu Feb 27 18:41:21 2003 ++++ Makefile.in Fri Jun 20 12:32:28 2003 @@ -75,7 +75,7 @@ AUTOMAKE_OPTIONS = no-dependencies foreign @@ -9,3 +9,12 @@ #CFLAGS = -O2 -fno-builtin -Wall -ansi -DSBINDIR='"$(sbindir)"' #CFLAGS = -O2 -fno-builtin -Wall -ansi -pedantic -Wmissing-prototypes -Werror -DSBINDIR='"$(sbindir)"' +@@ -153,8 +153,6 @@ + cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile + + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status +- cd $(top_builddir) \ +- && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status + + $(ACLOCAL_M4): configure.in + cd $(srcdir) && $(ACLOCAL) diff -ruN poptop.orig/files/patch-ac poptop/files/patch-ac --- poptop.orig/files/patch-ac Fri Jun 20 12:19:43 2003 +++ poptop/files/patch-ac Fri Jun 20 12:19:58 2003 @@ -5,7 +5,7 @@ ## -Wmissing-prototypes removed (eg, Linux 2.2.6 headers ## aren't up to it). -CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -+CFLAGS = ${CFLAGS} -DSBINDIR='"$(sbindir)"' -DETCDIR='"$(sysconfdir)"' ++CFLAGS = ${BSDCFLAGS} -DSBINDIR='"$(sbindir)"' -DETCDIR='"$(sysconfdir)"' #CFLAGS = -O2 -fno-builtin -Wall -ansi -DSBINDIR='"$(sbindir)"' #CFLAGS = -O2 -fno-builtin -Wall -ansi -pedantic -Wmissing-prototypes -Werror -DSBINDIR='"$(sbindir)"'