DragonFly BSD
DragonFly submit List (threaded) for 2004-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Oliver Eikemeier <eikemeier@xxxxxxxxxxxxxxxxx>
Date: Sat, 14 Aug 2004 00:58:37 +0200

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




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