src/util/distro-import/Makefile
author David.Comay@Sun.COM
Tue, 30 Oct 2007 20:25:01 -0700
changeset 178 256ac890be13
parent 171 98d39d52223b
child 182 37bdc7bfc4f5
permissions -rw-r--r--
Provide a filter between the existing wordexp() and ksh93.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     1
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     3
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     7
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    12
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    18
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    20
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    21
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    22
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    23
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    24
# Use is subject to license terms.
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    25
#
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    26
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    27
# Needs to point to filesystem on Solaris install dvd
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    28
# replace as needed with a local solaris install image
143
aff86c7317f2 Added missing import files for slim cluster
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 130
diff changeset
    29
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    30
WOS_PKGS=/net/netinstall.sfbay/export/nv/x/$(BUILDID)/Solaris_11/Product
143
aff86c7317f2 Added missing import files for slim cluster
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 130
diff changeset
    31
SLIM_PATH=/net/indiana-build.central/export/slim_stage
aff86c7317f2 Added missing import files for slim cluster
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 130
diff changeset
    32
GNOME_PKGS=$(SLIM_PATH)/GNOME/latest
aff86c7317f2 Added missing import files for slim cluster
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 130
diff changeset
    33
INSTALL_PKGS=$(SLIM_PATH)/INSTALL/latest
aff86c7317f2 Added missing import files for slim cluster
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 130
diff changeset
    34
SLIM_PKGS=$(SLIM_PATH)/SLIM_PKGS/latest
aff86c7317f2 Added missing import files for slim cluster
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 130
diff changeset
    35
FOX_PKGS=$(SLIM_PATH)/FOX/latest
151
16ef057413db Fix directory permissions problem in images (temp. fix)
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 149
diff changeset
    36
REPO=http://localhost:10000
152
8c0f0871ee79 Summary: various packaging updates and bug fix.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 151
diff changeset
    37
JUST_THESE_PKGS=
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    38
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    39
ALL_PKGS=$(GNOME_PKGS) \
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    40
	 $(INSTALL_PKGS) \
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    41
	 $(SLIM_PKGS) \
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    42
	 $(FOX_PKGS) \
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    43
	 $(WOS_PKGS)
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    44
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    45
TMPPKGS=SUNWfixes
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    46
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    47
#
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    48
# always remove the following (editable) files from packages we bulk import;
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    49
# we're doing this until the necessary actions are available.
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    50
#
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    51
ELIDED_FILES= \
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    52
	boot/solaris/devicedb/master	\
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    53
	etc/security/auth_attr		\
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    54
	etc/security/prof_attr		\
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    55
	etc/security/exec_attr		\
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    56
	etc/devlink.tab
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    57
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    58
FIXFILES= \
171
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
    59
	boot/solaris/filelist.ramdisk \
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    60
	etc/driver_aliases \
171
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
    61
	etc/name_to_major \
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
    62
	etc/release \
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    63
	etc/svc/global_repo.db \
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    64
	etc/svc/nonglobal_repo.db \
178
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    65
	usr/bin/ksh \
171
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
    66
	usr/share/man/man.cf \
169
1a79c3776e4e 17 Handle missing man pages more gracefully
Dan Price <dp@eng.sun.com>
parents: 156
diff changeset
    67
	usr/share/man/missing.man \
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    68
	$(ELIDED_FILES)
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    69
178
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    70
PROG=	ksh-wrapper
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    71
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    72
OBJS=	ksh-wrapper.o
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    73
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    74
SRCS=	$(OBJS:%.o=%.c)
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    75
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    76
CFLAGS=		-g -v
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    77
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    78
LINTFLAGS=	-axsm
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
    79
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    80
default:	74/$(TMPPKGS)
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    81
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    82
cluster.import:	$(WOS_PKGS)/.clustertoc Makefile
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    83
	./clustertoc2import.py $(WOS_PKGS)/.clustertoc | \
171
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
    84
	sed "s/version 2.2.1a/version 2.2.1.1/" > $@
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    85
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
    86
proto/etc/driver_aliases:	proto $(BUILDID)/all.i386.$(BUILDID) cluster.import
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    87
	./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsd etc/driver_aliases | \
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    88
	./driver_names.py $(BUILDID)/all.i386.$(BUILDID) > $@
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    89
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    90
proto/etc/name_to_major:	proto $(BUILDID)/all.i386.$(BUILDID) cluster.import
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    91
	./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsd etc/name_to_major | \
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    92
	./driver_names.py $(BUILDID)/all.i386.$(BUILDID) > $@
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
    93
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    94
proto/boot/solaris/filelist.ramdisk:	proto
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    95
	(./get_file_from_pkg.py $(WOS_PKGS)/SUNWcakr.i boot/solaris/filelist.ramdisk; \
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    96
	echo etc/zfs/zpool.cache) > $@
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    97
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
    98
proto/etc/svc/global_repo.db:	proto
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
    99
	./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr lib/svc/seed/global.db > $@
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
   100
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
   101
proto/etc/svc/nonglobal_repo.db:	proto
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   102
	./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr lib/svc/seed/nonglobal.db > $@
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   103
169
1a79c3776e4e 17 Handle missing man pages more gracefully
Dan Price <dp@eng.sun.com>
parents: 156
diff changeset
   104
proto/usr/share/man/missing.man:	proto	missing.man
1a79c3776e4e 17 Handle missing man pages more gracefully
Dan Price <dp@eng.sun.com>
parents: 156
diff changeset
   105
	cp missing.man $@
1a79c3776e4e 17 Handle missing man pages more gracefully
Dan Price <dp@eng.sun.com>
parents: 156
diff changeset
   106
171
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   107
proto/etc/release:	proto
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   108
	./get_file_from_pkg.py $(WOS_PKGS)/SUNWsolnm etc/release | head -1 | \
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   109
	sed 's/.*Edition /                   OpenSolaris Developer Preview /' \
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   110
	> $@
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   111
	cat release.figlet >> $@
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   112
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   113
proto/usr/share/man/man.cf:	proto
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   114
	./get_file_from_pkg.py $(WOS_PKGS)/SUNWman usr/share/man/man.cf | \
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   115
	sed \
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   116
	'/MANSECTS/s/$$/,1openssl,3openssl,5openssl,7openssl/' \
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   117
	> $@
98d39d52223b Add licensing and getting started guide.
David.Comay@Sun.COM
parents: 169
diff changeset
   118
178
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   119
proto/usr/bin/ksh:	proto $(PROG)
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   120
	cp $(PROG) $@
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   121
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   122
$(ELIDED_FILES:%=proto/%):	proto $(BUILDID)/$(@F)
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   123
	cat $(BUILDID)/$(@F) > $@
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
   124
130
7b9081182c8a More fixes to faciliate importing WOS images, creating custom pkgs
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 129
diff changeset
   125
proto:	Makefile
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   126
	mkdir -p proto/boot/solaris/devicedb
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   127
	mkdir -p proto/etc/security
178
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   128
	mkdir -p proto/etc/svc
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   129
	mkdir -p proto/usr/bin
169
1a79c3776e4e 17 Handle missing man pages more gracefully
Dan Price <dp@eng.sun.com>
parents: 156
diff changeset
   130
	mkdir -p proto/usr/share/man
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   131
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   132
%/$(TMPPKGS):
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   133
	$(MAKE) BUILDID=$(@D) $(@F)
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
   134
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   135
%:	$(BUILDID)/%.prototype $(BUILDID)/%.pkginfo $(FIXFILES:%=proto/%)
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   136
	pkgmk -b ./proto -r . -f $(BUILDID)/[email protected] -d `pwd` -o
122
d3d3bcc906e0 Various changes needed to create clusters, import svr4 packages and install them.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents:
diff changeset
   137
125
8b66970ab314 Add preserve attribute to file action
Danek Duvall <danek.duvall@sun.com>
parents: 122
diff changeset
   138
import:	cluster.import $(TMPPKGS)
151
16ef057413db Fix directory permissions problem in images (temp. fix)
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 149
diff changeset
   139
	rm -f all.i386.$(BUILDID); ln -s $(BUILDID)/all.i386.$(BUILDID)
16ef057413db Fix directory permissions problem in images (temp. fix)
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 149
diff changeset
   140
	./solaris.py -s $(REPO) -w $(WOS_PKGS) $(ELIDED_FILES:%=-D %) all.i386.$(BUILDID)
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   141
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   142
%/import:
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   143
	$(MAKE) BUILDID=$(@:%/import=%) import
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   144
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   145
slim_import:	$(BUILDID)/slim_cluster $(TMPPKGS)
151
16ef057413db Fix directory permissions problem in images (temp. fix)
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 149
diff changeset
   146
	rm -f slim_cluster; ln -s $(BUILDID)/slim_cluster slim_cluster
152
8c0f0871ee79 Summary: various packaging updates and bug fix.
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 151
diff changeset
   147
	./solaris.py -s $(REPO) $(ALL_PKGS:%=-w %) $(ELIDED_FILES:%=-D %) slim_cluster $(JUST_THESE_PKGS)
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   148
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   149
%/slim_import:
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   150
	$(MAKE) BUILDID=$(@:%/slim_import=%) slim_import
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   151
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   152
redist_import:	$(BUILDID)/redist_cluster $(TMPPKGS)
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   153
	rm -f redist_cluster; ln -s $(BUILDID)/redist_cluster redist_cluster
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   154
	./solaris.py -s $(REPO) $(ALL_PKGS:%=-w %) $(ELIDED_FILES:%=-D %) redist_cluster $(JUST_THESE_PKGS)
149
9d48eb8071d9 Added support to src/util/distro-import/Makefile for multiple builds
Bart Smaalders <Bart.Smaalders@Sun.COM>
parents: 148
diff changeset
   155
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   156
%/redist_import:
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   157
	$(MAKE) BUILDID=$(@:%/redist_import=%) redist_import
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   158
178
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   159
clean:
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   160
	rm -f $(OBJS)
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   161
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   162
clobber: clean
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   163
	rm -f $(PROG)
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   164
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   165
lint:
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   166
	$(LINT) $(LINTFLAGS) $(SRCS)
256ac890be13 Provide a filter between the existing wordexp() and ksh93.
David.Comay@Sun.COM
parents: 171
diff changeset
   167
156
dbcb1a50c013 Summary: Second phase of redistribution changes.
David.Comay@Sun.COM
parents: 152
diff changeset
   168
.KEEP_STATE: