pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kea: fix build on linux



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%NetBSD.org@localhost>
Pushed By:	nros
Date:		Tue Dec 31 13:04:26 2019 +0100
Changeset:	59f4b5b78340b539d6a3b2739c636369aba8a189

Modified Files:
	kea/Makefile
	kea/PLIST
	kea/TODO
Added Files:
	kea/PLIST.Linux

Log Message:
kea: fix build on linux

fix build on linux machines

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=59f4b5b78340b539d6a3b2739c636369aba8a189

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 kea/Makefile    | 8 +++++++-
 kea/PLIST       | 2 +-
 kea/PLIST.Linux | 2 ++
 kea/TODO        | 1 -
 4 files changed, 10 insertions(+), 3 deletions(-)

diffs:
diff --git a/kea/Makefile b/kea/Makefile
index 6fa4cd016e..bdc84305a7 100644
--- a/kea/Makefile
+++ b/kea/Makefile
@@ -17,7 +17,8 @@ USE_LIBTOOL=	yes
 USE_LANGUAGES=	c c++
 USE_TOOLS=	autoconf automake bison flex
 
-CONFIGURE_ARGS+=--with-openssl --enable-shell
+CONFIGURE_ARGS+=--with-openssl=${BUILDLINK_PREFIX.openssl}
+CONFIGURE_ARGS+=--enable-shell
 CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=--localstatedir=${VARBASE}
 CONFIGURE_ARGS+=--enable-generate-parser
@@ -47,6 +48,11 @@ pre-configure:
 
 .include "options.mk"
 
+PLIST_VARS+=	bpf
+.if !(${OPSYS} == "Linux")
+PLIST.bpf=	yes
+.endif
+
 .include "../../devel/log4cplus/buildlink3.mk"
 .include "../../devel/boost-headers/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
diff --git a/kea/PLIST b/kea/PLIST
index 012bd59265..abebc7c9c7 100644
--- a/kea/PLIST
+++ b/kea/PLIST
@@ -108,7 +108,7 @@ include/kea/dhcp/pkt4o6.h
 include/kea/dhcp/pkt6.h
 include/kea/dhcp/pkt_filter.h
 include/kea/dhcp/pkt_filter6.h
-include/kea/dhcp/pkt_filter_bpf.h
+${PLIST.bpf}include/kea/dhcp/pkt_filter_bpf.h
 include/kea/dhcp/pkt_filter_inet.h
 include/kea/dhcp/pkt_filter_inet6.h
 include/kea/dhcp/protocol_util.h
diff --git a/kea/PLIST.Linux b/kea/PLIST.Linux
new file mode 100644
index 0000000000..13ed358f29
--- /dev/null
+++ b/kea/PLIST.Linux
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+include/kea/dhcp/pkt_filter_lpf.h
diff --git a/kea/TODO b/kea/TODO
index 7a834cf9f7..74ddac1b90 100644
--- a/kea/TODO
+++ b/kea/TODO
@@ -1,4 +1,3 @@
 install users to run kea with ??
 
-test build on GNU/linux.
 fix missing peices in code for illumos.


Home | Main Index | Thread Index | Old Index