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