diff options
author | sevan <sevan@pkgsrc.org> | 2015-07-25 15:11:09 +0000 |
---|---|---|
committer | sevan <sevan@pkgsrc.org> | 2015-07-25 15:11:09 +0000 |
commit | 392544139bdf4b70803945fd80e5ac17173f450d (patch) | |
tree | 661129876fe150de352a8c44dd8682c7d47f34c4 /mk/bsd.prefs.mk | |
parent | 18f947c2d4323902eb4876658fba954279979c29 (diff) | |
download | pkgsrc-392544139bdf4b70803945fd80e5ac17173f450d.tar.gz |
Introduce $LOWER_VARIANT_VERSION, this is used to store version info for variant
Operating Systems.
For SmartOS, store the result from running uname -v & trimming the joyent_
prefix.
For OmniOS, store the result from processing /etc/release with awk(1)
Reviewed by joerg@ bsiegert@
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 2e363ce5947..51e26380b99 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.366 2015/07/04 16:18:38 joerg Exp $ +# $NetBSD: bsd.prefs.mk,v 1.367 2015/07/25 15:11:09 sevan Exp $ # # This file includes the mk.conf file, which contains the user settings. # @@ -322,8 +322,10 @@ LOWER_OPSYS_VERSUFFIX= 2.${OS_VERSION:C/5.//} _UNAME_V!= ${UNAME} -v . if !empty(_UNAME_V:Mjoyent_*) OS_VARIANT= SmartOS +LOWER_VARIANT_VERSION= ${_UNAME_V:C/joyent_//} . elif !empty(_UNAME_V:Momnios-*) OS_VARIANT= OmniOS +LOWER_VARIANT_VERSION!= /usr/bin/awk '{ if (!seen) { print $$3; seen=1 } }' /etc/release . endif .elif ${OPSYS} == "SCO_SV" |