Marcel Telka
2024-04-05 f228266143fa00a0d993ef25540014f5fea6ca10
commit | author | age
4cfb92 1 #
NJ 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
523f63 21 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
b31a41 22 # Copyright 2014 Andrzej Szeszo. All rights reserved.
4cfb92 23 #
NJ 24
25
26 # The package branch version scheme is:
27 #
b31a41 28 #       release_major.release_minor.update.component_revision
4cfb92 29 #
NJ 30
31 #
b31a41 32 # Release major number: 2014, 2015, etc.
AS 33 #
67023a 34 RELEASE_MAJOR ?= 2024
b31a41 35
AS 36 #
37 # Release minor number: 0, 1, 2, etc.
38 #
e6d49f 39 RELEASE_MINOR ?= 0
b31a41 40
AS 41 #
42 # Release update number: 0, 1, 2, etc.
4cfb92 43 #
1210f7 44 UPDATENUM ?= 0
4cfb92 45
NJ 46 #
b31a41 47 # Component revision. Should be specified in the component's Makefile
4cfb92 48 #
NJ 49
b31a41 50 COMPONENT_REVISION ?= 0
4cfb92 51
NJ 52 #
53 # Branch Identifier.  Used in the version section of the package name to
54 # identify the operating system branch that the package was produced for.
55 #
bb9150 56 BRANCHID ?= $(RELEASE_MAJOR).$(RELEASE_MINOR).$(UPDATENUM).$(COMPONENT_REVISION)
4cfb92 57
NJ 58 #
59 # Build Version.  Used in the version section of the package name to identify
60 # the operating system version and branch that the package was produced for.
61 #
5b5214 62 BUILD_VERSION ?=  $(PKG_SOLARIS_VERSION)-$(BRANCHID)
4cfb92 63
4dadd9 64 # Set a default reference repository against which pkglint is run, in case it
VM 65 # hasn't been set in the environment.
5daa2d 66 #CANONICAL_REPO ?=        http://ipkg.us.oracle.com/solaris12/dev/
4dadd9 67
b31a41 68 # Pre-set some variables with GIT repo details
AS 69 USERLAND_GIT_REMOTE ?= $(shell git remote -v | awk '/origin.*fetch/ { print $$2 }')
70 USERLAND_GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
71 USERLAND_GIT_REV ?= $(shell git rev-parse HEAD)