[Midnightbsd-cvs] mports: bsd.mport.mk: Change OSVERSION to refer to the MidnightBSD

ctriv at midnightbsd.org ctriv at midnightbsd.org
Thu Jan 1 20:33:18 EST 2009


Log Message:
-----------
Change OSVERSION to refer to the MidnightBSD version, not the FreeBSD version.
Don't check for param.h in src, it could be version that isn't at all related to 
the actual system.  Check param.h in /usr/include, and if that fails, use sysctl.

Modified Files:
--------------
    mports/Mk:
        bsd.mport.mk (r1.131 -> r1.132)

-------------- next part --------------
Index: bsd.mport.mk
===================================================================
RCS file: /home/cvs/mports/Mk/bsd.mport.mk,v
retrieving revision 1.131
retrieving revision 1.132
diff -L Mk/bsd.mport.mk -L Mk/bsd.mport.mk -u -r1.131 -r1.132
--- Mk/bsd.mport.mk
+++ Mk/bsd.mport.mk
@@ -118,12 +118,10 @@
 OSREL!=	${UNAME} -r | ${SED} -e 's/[-(].*//'
 .endif
 
-# Get __FreeBSD_version
+# Get __MidnightBSD_version
 .if !defined(OSVERSION)
 .if exists(${DESTDIR}/usr/include/sys/param.h)
-OSVERSION!=	${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${DESTDIR}/usr/include/sys/param.h
-.elif exists(${DESTDIR}/usr/src/sys/sys/param.h)
-OSVERSION!=	${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${DESTDIR}/usr/src/sys/sys/param.h
+OSVERSION!=	${AWK} '/^\#define[[:blank:]]__MidnightBSD_version/ {print $$3}' < ${DESTDIR}/usr/include/sys/param.h
 .else
 OSVERSION!=	${SYSCTL} -n kern.osreldate
 .endif


More information about the Midnightbsd-cvs mailing list