Makefile revision 0ea5e3a571e3da934507bdd32924d11659c70704
bc23ab8c177d79287dc20f01c119cd54d0f46ef7gstein# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# You may not use this file except in compliance with the License.
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick# See the License for the specific language governing permissions
6f6f4a4bca281779d196acbdd5c017bb90858305trawick# and limitations under the License.
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# When distributing Covered Code, include this CDDL HEADER in each
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# If applicable, add the following below this CDDL HEADER, with the
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# fields enclosed by brackets "[]" replaced with your own identifying
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# information: Portions Copyright [yyyy] [name of copyright owner]
531c23ff01a2489646f0a2029097013b328d935agstein# CDDL HEADER END
447c6ce3ff08073c44f6785d5256271fcb877512wrowe# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
447c6ce3ff08073c44f6785d5256271fcb877512wrowe# Use is subject to license terms.
73cbcafbe4c5ce51e6ba8043d33235fde09b6e94trawick#ident "%Z%%M% %I% %E% SMI"
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# Because seed repository construction requires a functioning repository, a
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# working svccfg(1) binary, and XML support, the following libraries must exist
10b386767f6c87b45937244371cb751f0b454d16wrowe# on the build system or in the proto area: libscf, libuutil, and libxml2.
75960f20f88dad6bc67892c711c429946063d133stoddard# We build and deliver 3 seed repositories:
75960f20f88dad6bc67892c711c429946063d133stoddard# global.db -- for a standalone Solaris (global zone)
75960f20f88dad6bc67892c711c429946063d133stoddard# nonglobal.db -- for a Solaris Zone
75960f20f88dad6bc67892c711c429946063d133stoddard# miniroot.db -- for the install miniroot
75960f20f88dad6bc67892c711c429946063d133stoddard# COMMON_DESCRIPTIONS contains manifests needed by all 3 repositories.
75960f20f88dad6bc67892c711c429946063d133stoddard# GLOBAL_ZONE_DESCRIPTIONS/NONGLOBAL_ZONE_DESCRIPTIONS/MINIROOT_DESCRIPTIONS
75960f20f88dad6bc67892c711c429946063d133stoddard# contain additional manifests needed.
10b386767f6c87b45937244371cb751f0b454d16wrowe# Manifests needed by all seed repositories. If you change this, you
10b386767f6c87b45937244371cb751f0b454d16wrowe# must test Solaris standalone, Solaris zone, and Install miniroot.
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein# Additional manifests for standalone Solaris
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# Additional manifests for a Solaris zone
b187d568e1507d75139ebc13ca945b38fc05d55cstoddard# Additional manifests for the install miniroot.
75960f20f88dad6bc67892c711c429946063d133stoddardSEEDFILEMODE = 0444 # seeds are not intended for editing, but may
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard # be copied
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj @cd ../milestone; pwd; $(MAKE) $(MFLAGS) console-login.xml
9805ac88e1befa6dea11d8513023f150d8f8e807fanf echo $$m; \
447c6ce3ff08073c44f6785d5256271fcb877512wroweglobal.db: common.db $(GLOBAL_ZONE_DESCRIPTIONS) $(CONFIGD) $(SVCCFG)
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein echo $$m; \
8d07897b52e3b7055874501f8a499e75800db206gsteinnonglobal.db: common.db $(NONGLOBAL_ZONE_DESCRIPTIONS) $(CONFIGD) $(SVCCFG)
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick echo $$m; \
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgsteinminiroot.db: common.db $(MINIROOT_DESCRIPTIONS) $(CONFIGD) $(SVCCFG)
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgstein echo $$m; \
1e088f9182ba67f39713fcb850e11934be5f6d17gstein # Make sure the miniroot's syslogd and rpcbind do not respond
1e088f9182ba67f39713fcb850e11934be5f6d17gstein # to packets from outside the machine. Since we cannot set property
823c303d33c9e637a83d82208bcbafaf5f532d7bgstein # values by applying a profile yet, we need to set them explicitly
823c303d33c9e637a83d82208bcbafaf5f532d7bgstein # with svccfg commands.
bc23ab8c177d79287dc20f01c119cd54d0f46ef7gstein $(SVCCFG) -s svc:/network/rpc/bind setprop config/local_only = true
bc23ab8c177d79287dc20f01c119cd54d0f46ef7gsteininstall: install_global install_nonglobal install_miniroot
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(INS) -f $(LIBSVCSEED) -m $(SEEDFILEMODE) -s global.db
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(INS) -f $(LIBSVCSEED) -m $(SEEDFILEMODE) -s nonglobal.db
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(INS) -f $(INSTALLSEED) -m $(SEEDFILEMODE) -s miniroot.db