Add DFOSVERSION for ports to check for DragonFly and allow them to handle
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 14 Aug 2004 13:49:41 +0000 (13:49 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 14 Aug 2004 13:49:41 +0000 (13:49 +0000)
it accordlingly.

Submitted-by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
share/mk/bsd.port.mk

index ac0bf40..018e70f 100644 (file)
@@ -1,10 +1,14 @@
 # $FreeBSD: src/share/mk/bsd.port.mk,v 1.303.2.2 2002/07/17 19:08:23 ru Exp $
-# $DragonFly: src/share/mk/Attic/bsd.port.mk,v 1.16 2004/08/10 10:58:37 joerg Exp $
+# $DragonFly: src/share/mk/Attic/bsd.port.mk,v 1.17 2004/08/14 13:49:41 joerg Exp $
 
 PORTSDIR?=     /usr/ports
 DFPORTSDIR?=   /usr/dfports
 PORTPATH!=     /usr/bin/relpath ${PORTSDIR} ${.CURDIR}
 
+.if !defined(DFOSVERSION)
+DFOSVERSION!=  /sbin/sysctl -n kern.osreldate
+.endif
+
 # Temporary Hack
 #
 OSVERSION ?= 480102