aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2007-01-23 04:56:02 +0800
committernox <nox@FreeBSD.org>2007-01-23 04:56:02 +0800
commitf027bc5d02e3e81db00af855d50b8fc4a7d792e0 (patch)
treeadfb9ab419927f99591feef5a731418e7c56172b /emulators
parentc3fd453141e9c706e71d209c354956b19870b32a (diff)
downloadfreebsd-ports-gnome-f027bc5d02e3e81db00af855d50b8fc4a7d792e0.tar.gz
freebsd-ports-gnome-f027bc5d02e3e81db00af855d50b8fc4a7d792e0.tar.zst
freebsd-ports-gnome-f027bc5d02e3e81db00af855d50b8fc4a7d792e0.zip
Replace devfs test with osversion check to fix tinderbox build
Submitted by: pointyhat via kris Approved by: miwi (mentor, implicit)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/kqemu-kmod-devel/Makefile12
-rw-r--r--emulators/kqemu-kmod/Makefile12
2 files changed, 10 insertions, 14 deletions
diff --git a/emulators/kqemu-kmod-devel/Makefile b/emulators/kqemu-kmod-devel/Makefile
index 7583fdb068b3..375f9d4efb70 100644
--- a/emulators/kqemu-kmod-devel/Makefile
+++ b/emulators/kqemu-kmod-devel/Makefile
@@ -48,13 +48,11 @@ IGNORE= kqemu requires kernel source to be installed
post-install:
@${MKDIR} ${PREFIX}/include/kqemu
@${INSTALL_DATA} ${WRKSRC}/kqemu.h ${PREFIX}/include/kqemu
- if mount |${GREP} ^devfs >/dev/null ; then \
- : ; \
- else \
- if [ ! -e /dev/kqemu ]; then\
- mknod /dev/kqemu c 250 0 ; \
- fi ; \
- ${CHMOD} 666 /dev/kqemu ; \
+.if ${OSVERSION} < 500000
+ if [ ! -e /dev/kqemu ]; then\
+ mknod /dev/kqemu c 250 0 ; \
fi
+ ${CHMOD} 666 /dev/kqemu
+.endif
.include <bsd.port.post.mk>
diff --git a/emulators/kqemu-kmod/Makefile b/emulators/kqemu-kmod/Makefile
index 7583fdb068b3..375f9d4efb70 100644
--- a/emulators/kqemu-kmod/Makefile
+++ b/emulators/kqemu-kmod/Makefile
@@ -48,13 +48,11 @@ IGNORE= kqemu requires kernel source to be installed
post-install:
@${MKDIR} ${PREFIX}/include/kqemu
@${INSTALL_DATA} ${WRKSRC}/kqemu.h ${PREFIX}/include/kqemu
- if mount |${GREP} ^devfs >/dev/null ; then \
- : ; \
- else \
- if [ ! -e /dev/kqemu ]; then\
- mknod /dev/kqemu c 250 0 ; \
- fi ; \
- ${CHMOD} 666 /dev/kqemu ; \
+.if ${OSVERSION} < 500000
+ if [ ! -e /dev/kqemu ]; then\
+ mknod /dev/kqemu c 250 0 ; \
fi
+ ${CHMOD} 666 /dev/kqemu
+.endif
.include <bsd.port.post.mk>