538N/A#
538N/A# CDDL HEADER START
538N/A#
538N/A# The contents of this file are subject to the terms of the
538N/A# Common Development and Distribution License (the "License").
538N/A# You may not use this file except in compliance with the License.
538N/A#
538N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
538N/A# or http://www.opensolaris.org/os/licensing.
538N/A# See the License for the specific language governing permissions
538N/A# and limitations under the License.
538N/A#
538N/A# When distributing Covered Code, include this CDDL HEADER in each
538N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
538N/A# If applicable, add the following below this CDDL HEADER, with the
538N/A# fields enclosed by brackets "[]" replaced with your own identifying
538N/A# information: Portions Copyright [yyyy] [name of copyright owner]
538N/A#
538N/A# CDDL HEADER END
538N/A#
5680N/A
5680N/A#
5287N/A# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
538N/A#
538N/A
538N/A
538N/A# The package branch version scheme is:
538N/A#
1043N/A# release_major.release_minor.update.SRU.platform.buildid.nightlyid
538N/A#
538N/A# where
538N/A# update : 0 for FCS, 1 for update 1, etc.
538N/A# SRU : SRU (support repository update) number for this update
538N/A# platform : reserved for future use.
538N/A# buildid : the build number of the last non-zero element from above
1043N/A# nightlyid: nightly build identifier
538N/A#
1043N/A# This scheme is used below.
538N/A#
538N/A
538N/A#
538N/A# The Solaris Update number. This will be set by the gatekeepers.
538N/A# The value must match the update number of the release.
538N/A#
1043N/AUPDATENUM ?= 0
538N/A
538N/A#
538N/A# Support Respository Update number. This is here to reserve space within the
538N/A# version string. Typically it should not be set unless all the packages
538N/A# are being delivered within an SRU.
538N/A#
538N/ASRUNUM ?= 0
538N/A
538N/A#
538N/A# Platform number. This is here to reserve space within the version
538N/A# string. It should not be set unless there is a specific need to
538N/A# release a platform update while the Solaris Update is being built.
538N/A#
538N/APLATNUM ?= 0
538N/A
538N/A#
538N/A# Build Identifier. Used to indicate which build (or respin for
538N/A# the development build) of the Solaris Update is being built.
538N/A# This is set by the gatekeepers.
538N/A#
7355N/ABUILDID ?= 113
538N/A
538N/A# Each (nightly) build of the code that produces packages needs to
538N/A# be uniquely identified so that packages produced by different
538N/A# builds can't be mixed. Mixing packages from different builds can
1043N/A# easily result in broken global and nonglobal zones. Or at least
1043N/A# that's the case in ON, which this is copied from. We keep it simple,
1043N/A# though you could use something like this if you want:
538N/A#
1043N/A#NIGHTLYID ?= $(shell hg tip --template '{rev}\n')
1043N/A#
7374N/ANIGHTLYID ?= 1
538N/A
538N/A#
538N/A# Branch Identifier. Used in the version section of the package name to
538N/A# identify the operating system branch that the package was produced for.
538N/A#
538N/ABRANCHID ?= \
1043N/A $(PKG_SOLARIS_VERSION).$(UPDATENUM).$(SRUNUM).$(PLATNUM).$(BUILDID).$(NIGHTLYID)
538N/A
538N/A#
538N/A# Build Version. Used in the version section of the package name to identify
538N/A# the operating system version and branch that the package was produced for.
538N/A#
1066N/ABUILD_VERSION ?= $(PKG_SOLARIS_VERSION)-$(BRANCHID)
538N/A
596N/A# Set a default reference repository against which pkglint is run, in case it
596N/A# hasn't been set in the environment.
4972N/Aifeq ($(BUILD_TYPE),evaluation)
4972N/ACANONICAL_REPO ?= http://ipkg.us.oracle.com/solaris11/release/
4972N/Aelse
4083N/ACANONICAL_REPO ?= http://ipkg.us.oracle.com/solaris12/minidev/
4972N/Aendif