[PATHCH] bsd.port.mk: new variable DFOSVERSION

Oliver Eikemeier eikemeier at fillmore-labs.com
Fri Aug 13 15:57:13 PDT 2004


DragonFlyBSD `lies' about its OSVERSION, making it needlessly difficult 
for ports to support it natively. The attached patch should work in 
theory for ports
  security/portaudit
  sysutils/pkg_install-devel
although I had no time to test it fully.

-Oliver

Index: bsd.port.mk
===================================================================
RCS file: /home/dcvs/src/share/mk/bsd.port.mk,v
retrieving revision 1.16
diff -u -r1.16 bsd.port.mk
--- bsd.port.mk	10 Aug 2004 10:58:37 -0000	1.16
+++ bsd.port.mk	13 Aug 2004 22:50:00 -0000
@@ -5,6 +5,10 @@
 DFPORTSDIR?=	/usr/dfports
 PORTPATH!=	/usr/bin/relpath ${PORTSDIR} ${.CURDIR}
+.if !defined(DFOSVERSION)
+DFOSVERSION!=	/sbin/sysctl -n kern.osreldate
+.endif
+
 # Temporary Hack
 #
 OSVERSION ?= 480102





More information about the Submit mailing list