$NetBSD: patch-Makefile,v 1.3 2017/10/13 17:24:05 christos Exp $

Default to NetBSD
Fix man directory

--- Makefile.orig	2017-08-02 13:46:06.000000000 -0400
+++ Makefile	2017-10-13 12:46:33.893556318 -0400
@@ -54,7 +54,7 @@
 #
 #KERNELSRC=/lib/modules/`uname -r`/build/
 KERNELSRC?=./linux
-OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/
+#OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/
 #
 # Uncomment the following to use the kernel interface under Linux
 # This requires the pppol2tp-linux-2.4.27.patch patch from contrib
@@ -62,7 +62,7 @@
 # are packages seperately (eg kernel-headers on Fedora)
 # Note: 2.6.23+ support still needs some changes in the xl2tpd source
 #
-OSFLAGS+= -DUSE_KERNEL
+#OSFLAGS+= -DUSE_KERNEL
 #
 #
 # Uncomment the next line for FreeBSD
@@ -89,6 +89,11 @@
 #
 #OSFLAGS?= -DOPENBSD
 #LDLIBS?= -lutil
+#
+# Uncomment the next two lines for OpenBSD
+#
+OSFLAGS?= -DNETBSD
+LDLIBS?= -lutil
 
 # Feature flags
 #
@@ -109,7 +114,7 @@
 PREFIX?=/usr/local
 SBINDIR?=$(DESTDIR)${PREFIX}/sbin
 BINDIR?=$(DESTDIR)${PREFIX}/bin
-MANDIR?=$(DESTDIR)${PREFIX}/share/man
+MANDIR?=$(DESTDIR)${PREFIX}/${PKGMANDIR}
 
 
 all: $(EXEC) pfc $(CONTROL_EXEC)
