components/ksh93/Makefile
author Vladimir Marek <Vladimir.Marek@oracle.com>
Mon, 25 Nov 2013 17:39:55 +0100
branchs11-update
changeset 2837 4354bb214ece
parent 2531 86ae973f1705
child 2855 576d5a7857b7
permissions -rw-r--r--
17714341 /usr/bin/cd core dumps during string substitution
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     1
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     3
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     7
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    12
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    18
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    20
#
2484
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents: 2434
diff changeset
    21
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    22
#
796
7fa97e814929 7035978 parfait support for userland bits (fix sparc)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 789
diff changeset
    23
PARFAIT_BUILD=no
7fa97e814929 7035978 parfait support for userland bits (fix sparc)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 789
diff changeset
    24
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    26
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2357
diff changeset
    27
COMPONENT_BUGDB=	utility/ksh93
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2357
diff changeset
    28
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    29
COMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    30
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    31
# These are required if retrieving packages from the AT&T website.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    32
ATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    33
ATT_PASSWD= "."
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    34
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    35
# This flag controls the prep.mk behaviour to patch each archive individually
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    36
PATCH_EACH_ARCHIVE = 1
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    37
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2357
diff changeset
    38
COMPONENT_NAME = ksh93
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2357
diff changeset
    39
COMPONENT_SRC_NAME = INIT
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    40
COMPONENT_VERSION = 2011-02-08
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2357
diff changeset
    41
COMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2357
diff changeset
    42
COMPONENT_ARCHIVE =	$(COMPONENT_SRC).tgz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 796
diff changeset
    43
COMPONENT_ARCHIVE_HASH = \
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 796
diff changeset
    44
    sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    45
COMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE) 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    46
COMPONENT_PATCHES = 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    47
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    48
# Patch only required if building ksh93 only and not ast-base
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    49
# package-pax-suid.patch
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    50
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    51
# The ksh93 tarballs don't unpack cleanly into their own directories.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    52
UNPACK_ARGS= -r $(COMPONENT_SRC)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    53
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    54
NUM_EXTRA_ARCHIVES= 1
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    55
COMPONENT_NAME_1= ast-base
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    56
COMPONENT_VERSION_1= 2011-02-08
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    57
COMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    58
COMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 796
diff changeset
    59
COMPONENT_ARCHIVE_HASH_1= \
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 796
diff changeset
    60
    sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    61
COMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
    62
COMPONENT_PATCHES_1= compiler.patch path_utmp.patch\
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
    63
					 solaris_alias.patch \
805
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    64
					 CR6919590.patch CR7033181.patch \
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    65
					 CR7071431.patch CR7036535.patch \
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    66
					 CRXXX_Error_Catalog.patch CR7025778.patch \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    67
					 CR7065478.patch CR7026179.patch \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    68
					 CR7065900.patch CR7110983.patch \
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
    69
					 CR7105086.patch multi_lang_arith.patch \
805
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    70
					 CR7057565.patch CR7046434.patch \
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    71
					 CR7032821.patch CR7009897.patch \
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    72
					 CR6964621.patch CR7032068.patch \
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    73
					 CR7061011.patch CR6934836.patch \
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    74
					 CR7089799.patch CR6917338.patch \
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    75
					 CR7019368.patch CR6729252.patch \
815
e17805629856 7168611 ksh93 in s11u1_15 and later invokes pfexec with garbage which breaks RBAC in some scenarios
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 808
diff changeset
    76
					 MAP_TYPE_64_Bits.patch CR7167466.patch \
2357
c3849e036731 7175995 Problem with shell/korn93
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 917
diff changeset
    77
					 CR7168611.patch CR7178717.patch \
2524
f112164dd16d 15794787 SUNBT7172653 ksh93 hangs when passing a 20481-byte file through pipe
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents: 2484
diff changeset
    78
					 CR7175995.patch CR7128313.patch \
2531
86ae973f1705 15808407 SUNBT7189531 ksh93 crash+core dump with minimalist script
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents: 2524
diff changeset
    79
					 Bug15794787,15819673.patch \
2837
4354bb214ece 17714341 /usr/bin/cd core dumps during string substitution
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 2531
diff changeset
    80
					 Bug15808407.patch Bug17714341.patch
805
23c55a2f8a8e 7165565 ksh93 in userland misses several bug fixes made in ON
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 800
diff changeset
    81
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
    82
# Fixup HOSTTYPE to match uname output and bits
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
    83
HOSTTYPE32=sol11.$(shell uname -p)
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
    84
HOSTTYPE64=sol11.$(shell uname -p)-64
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    85
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    86
# Make the unpack of the second archive relocate to a sensible place
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    87
UNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    88
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    89
# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    90
# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    91
# nor fast, and causes the build to deadly embrace). 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    92
LD_B_DIRECT=
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    93
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    94
# Disable nmake's probing of runpaths
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    95
CC.RUNPATH=
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    96
CC.LD.RUNPATH=
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    97
CC.LD.ORIGIN=
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    98
CC.DLL.ORIGIN=
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    99
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
   100
# Fix up the permissions of the compiler wrapper scripts from the patch
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
   101
COMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
   102
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   103
# Prevent nmake from taking over the entire machine
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
   104
NPROC=1
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   105
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   106
# Set the built to build all targets, install all of ast-base, and test ksh93.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   107
COMPONENT_BUILD_TARGETS += 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   108
COMPONENT_INSTALL_PACKAGES += ast-base
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 815
diff changeset
   109
COMPONENT_TEST_TARGETS = ksh93
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   110
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   111
# Unpack the ast-base tarball and copy it into the INIT tree,
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   112
# mark it as un-patched 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   113
COMPONENT_POST_UNPACK_ACTION_1= \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   114
	$(RM) $(COMPONENT_SRC)/*patched_1; \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   115
    $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   116
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   117
# Add the two tarball paths to the paths to be cleaned
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   118
CLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   119
              $(COMPONENT_NAME).$(COMPONENT_VERSION)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   120
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   121
# ksh.kshrc needs to be installed with the ksh package
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   122
COMPONENT_POST_INSTALL_ACTION= \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   123
	@$(MKDIR) -p $(PROTO_DIR)/etc/; \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   124
	$(CP) ksh.kshrc $(PROTO_DIR)/etc/ 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   125
909
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   126
# Packaging information.
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   127
# Note how the AT&T "version letter symbol date" code is translated 
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   128
# into the IPS version number:
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   129
# 
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   130
# shell/[email protected]<letter representation>.<0 or 1>.<yymmdd>
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   131
#
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   132
# <letter representation> is the numeric place in the alphabet of the 
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   133
# major version letter.
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   134
# 
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   135
# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   136
# version code. The "+" represents a point/bugfix release and would appear as
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   137
# "93<version letter>+" in the human readable form.
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   138
#
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   139
# EXAMPLE:
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   140
# AT&T Version string: 93u+ 2011-02-08
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   141
# IPS Version number: 93.21.1.20110208
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   142
#
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   143
IPS_PKG_NAME= ksh93
909
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   144
IPS_COMPONENT_VERSION= 93.21.0.20110208
ec78fc2e4b1d 7168548 package shell/ksh version number needs to conform.
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 844
diff changeset
   145
IPS_HUMAN_VERSION= "93u 2011-02-08"
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   146
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   147
# common targets
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   148
build:		$(BUILD_32_and_64)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   149
	
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   150
install:	$(INSTALL_32_and_64)	
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   151
		
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   152
test:		$(TEST_32_and_64)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   153
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   154
BUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   155
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   156
PKG_PROTO_DIRS +=   $(COMPONENT_DIR)/files
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   157
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   158
include ../../make-rules/prep.mk
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   159
include ../../make-rules/attpackagemake.mk
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   160
include ../../make-rules/ips.mk
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   161
include ../../make-rules/depend.mk