pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/emulators/p11
Module Name: pkgsrc
Committed By: nia
Date: Tue Nov 9 11:28:56 UTC 2021
Modified Files:
pkgsrc/emulators/p11: Makefile
Log Message:
p11: Avoid checking for the existence of files in /dev to detect system
features.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/emulators/p11/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/emulators/p11/Makefile
diff -u pkgsrc/emulators/p11/Makefile:1.20 pkgsrc/emulators/p11/Makefile:1.21
--- pkgsrc/emulators/p11/Makefile:1.20 Fri Jan 3 04:30:26 2014
+++ pkgsrc/emulators/p11/Makefile Tue Nov 9 11:28:56 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2014/01/03 04:30:26 dholland Exp $
+# $NetBSD: Makefile,v 1.21 2021/11/09 11:28:56 nia Exp $
#
DISTNAME= p11-2.10i
@@ -19,21 +19,26 @@ USE_TOOLS+= gmake
PLIST_VARS+= bpf tap tun
# bfp, tap, and tun tests taken from p11 configure script
-.if exists(/dev/bpf0)
+.if exists(/usr/include/net/bpf.h)
PLIST.bpf= yes
+CONFIGURE_ENV+= ac_cv_epp_bpf=yes
+.else
+CONFIGURE_ENV+= ac_cv_epp_bpf=no
.endif
-.if exists(/dev/tap0) || exists(/dev/net/tun)
+
+.if exists(/usr/include/net/if_tap.h)
PLIST.tap= yes
-.endif
-.if exists(/dev/tun) || exists(/dev/tun0) || exists(/dev/net/tun)
-PLIST.tun= yes
+CONFIGURE_ENV+= ac_cv_epp_tap=yes
+.else
+CONFIGURE_ENV+= ac_cv_epp_tap=no
.endif
-# Force the bpf, tun, and tap epp backends to be built on DragonFly and fbsd.
-.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD"
-PLIST.tap= yes
+.if exists(/usr/include/net/if_tun.h) || \
+ exists(/usr/include/linux/if_tun.h)
PLIST.tun= yes
-CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes
+CONFIGURE_ENV+= ac_cv_epp_tun=yes
+.else
+CONFIGURE_ENV+= ac_cv_epp_tun=no
.endif
# override MAKEFLAGS in the build and install stages
Home |
Main Index |
Thread Index |
Old Index