Print this page
9726 solaris.py needs to use new service for /etc/security/*attr files in build 118
| Split |
Close |
| Expand all |
| Collapse all |
--- old/src/util/distro-import/Makefile
+++ new/src/util/distro-import/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #set default
28 28 ARCH=i386
29 29 NATIVE_ARCH:sh = uname -p
30 30 PROTO_AREA=../../../proto/root_$(NATIVE_ARCH)
31 31
32 32 #
33 33 # Needs to point to filesystem on Solaris install dvd
34 34 # replace as needed with a local solaris install image
35 35 #
36 36 WOS_PKGS=/net/netinstall.sfbay/export/nv/x/$(BUILDID)/Solaris_11/Product
37 37 NONWOS_DOCK=nv_osoldev
38 38 NONWOS_PKGS=/net/paradise.sfbay/export/integrate_dock/nv/$(NONWOS_DOCK)/all \
39 39 /net/paradise.sfbay/export/integrate_dock/nv/$(NONWOS_DOCK)/$(ARCH)
40 40
41 41 TEST_PKGS=
42 42 REPO=http://localhost:10000
43 43 JUST_THESE_PKGS=
44 44
45 45 ALL_PKGS= ../../../packages/$(ARCH) \
46 46 $(TEST_PKGS) \
47 47 $(NONWOS_PKGS) \
48 48 $(WOS_PKGS) .
49 49
50 50 POUND_SIGN:sh= echo \\043
51 51
52 52 i386_DEFINES= \
53 53 ARCH=i386 \
54 54 ARCH32=i86 \
55 55 ARCH64=amd64 \
56 56 i386_ONLY='' \
57 57 sparc_ONLY=$(POUND_SIGN)
58 58
59 59 sparc_DEFINES= \
60 60 ARCH=sparc \
61 61 ARCH32=sparcv7 \
62 62 ARCH64=sparcv9 \
63 63 i386_ONLY=$(POUND_SIGN) \
64 64 sparc_ONLY=''
65 65
66 66 ARCH_DEFINES=$($(ARCH)_DEFINES)
67 67
68 68 TMPPKGS=SUNWfixes
69 69 EXTRA_OPTIONS=
70 70
71 71 GLOBAL_CHATTRS_BASE= \
72 72 reboot \
73 73 smf_manifests
74 74
75 75 GLOBAL_CHATTRS_86 = $(GLOBAL_CHATTRS_BASE)
76 76 GLOBAL_CHATTRS_89 = $(GLOBAL_CHATTRS_BASE)
77 77 GLOBAL_CHATTRS_90 = $(GLOBAL_CHATTRS_BASE)
78 78 GLOBAL_CHATTRS_91 = $(GLOBAL_CHATTRS_BASE)
79 79 GLOBAL_CHATTRS_92 = $(GLOBAL_CHATTRS_BASE)
80 80 GLOBAL_CHATTRS_93 = $(GLOBAL_CHATTRS_BASE)
81 81 GLOBAL_CHATTRS_94 = $(GLOBAL_CHATTRS_BASE)
82 82 GLOBAL_CHATTRS_95 = $(GLOBAL_CHATTRS_BASE)
83 83 GLOBAL_CHATTRS_96 = $(GLOBAL_CHATTRS_BASE)
84 84 GLOBAL_CHATTRS_97 = $(GLOBAL_CHATTRS_BASE)
85 85 GLOBAL_CHATTRS_98 = $(GLOBAL_CHATTRS_BASE)
86 86 GLOBAL_CHATTRS_99 = $(GLOBAL_CHATTRS_BASE)
87 87 GLOBAL_CHATTRS_100a = $(GLOBAL_CHATTRS_BASE)
88 88 GLOBAL_CHATTRS_101 = $(GLOBAL_CHATTRS_BASE) fonts gnome
89 89 GLOBAL_CHATTRS_101a = $(GLOBAL_CHATTRS_101)
|
↓ open down ↓ |
89 lines elided |
↑ open up ↑ |
90 90 GLOBAL_CHATTRS_105 = $(GLOBAL_CHATTRS_101)
91 91 GLOBAL_CHATTRS_106 = $(GLOBAL_CHATTRS_101) variants
92 92 GLOBAL_CHATTRS_107 = $(GLOBAL_CHATTRS_106)
93 93 GLOBAL_CHATTRS_108 = $(GLOBAL_CHATTRS_106)
94 94 GLOBAL_CHATTRS_109 = $(GLOBAL_CHATTRS_106)
95 95 GLOBAL_CHATTRS_110 = $(GLOBAL_CHATTRS_106)
96 96 GLOBAL_CHATTRS_111 = $(GLOBAL_CHATTRS_106)
97 97 GLOBAL_CHATTRS_111a = $(GLOBAL_CHATTRS_106)
98 98 GLOBAL_CHATTRS_116 = $(GLOBAL_CHATTRS_106)
99 99 GLOBAL_CHATTRS_117 = $(GLOBAL_CHATTRS_106)
100 +GLOBAL_CHATTRS_118 = $(GLOBAL_CHATTRS_106) attrs
100 101 GLOBAL_CHATTRS = $(GLOBAL_CHATTRS_$(BUILDID))
101 102
102 103 SOLARIS.PY=PYTHONPATH=$(PROTO_AREA)/usr/lib/python2.4/vendor-packages \
103 104 ./solaris.py -b 0.$(BUILDID) $(EXTRA_OPTIONS) -T \*.py \
104 105 $(GLOBAL_CHATTRS:%= -G %) $(ARCH_DEFINES:%= -m %) \
105 106 -p $(PROTO_AREA)
106 107
107 108 #
108 109 # always remove the following (editable) files from packages we bulk import;
109 110 # we're doing this until the necessary actions are available. For now,
110 111 # cache as-installed versions.
111 112 #
112 113 ELIDED_FILES_BASE= \
113 114 boot/solaris/devicedb/master \
114 115 etc/hba.conf \
115 116 etc/ima.conf \
116 117 etc/inet/services \
117 - etc/mpapi.conf \
118 + etc/mpapi.conf
119 +
120 +ELIDED_FILES_ATTR = \
118 121 etc/security/auth_attr \
119 122 etc/security/exec_attr \
120 123 etc/security/prof_attr \
121 124 etc/user_attr
122 125
123 -ELIDED_FILES_86 = $(ELIDED_FILES_BASE) etc/devlink.tab
124 -ELIDED_FILES_89 = $(ELIDED_FILES_BASE) kernel/drv/sd.conf etc/devlink.tab
126 +
127 +ELIDED_FILES_86 = $(ELIDED_FILES_BASE) $(ELIDED_FILES_ATTR) etc/devlink.tab
128 +ELIDED_FILES_89 = $(ELITED_FILES_86) kernel/drv/sd.conf
125 129 ELIDED_FILES_90 = $(ELIDED_FILES_89)
126 130 ELIDED_FILES_91 = $(ELIDED_FILES_89)
127 131 ELIDED_FILES_92 = $(ELIDED_FILES_89)
128 132 ELIDED_FILES_93 = $(ELIDED_FILES_89)
129 133 ELIDED_FILES_94 = $(ELIDED_FILES_89)
130 134 ELIDED_FILES_95 = $(ELIDED_FILES_89)
131 135 ELIDED_FILES_96 = $(ELIDED_FILES_89)
132 136 ELIDED_FILES_97 = $(ELIDED_FILES_89)
133 137 ELIDED_FILES_98 = $(ELIDED_FILES_89)
134 138 ELIDED_FILES_99 = $(ELIDED_FILES_89)
135 -ELIDED_FILES_100a = $(ELIDED_FILES_BASE) kernel/drv/sd.conf
139 +ELIDED_FILES_100a = $(ELIDED_FILES_BASE) $(ELIDED_FILES_ATTR) kernel/drv/sd.conf
136 140 ELIDED_FILES_101 = $(ELIDED_FILES_100a)
137 141 ELIDED_FILES_101a = $(ELIDED_FILES_100a)
138 142 ELIDED_FILES_105 = $(ELIDED_FILES_100a)
139 -ELIDED_FILES_106 = $(ELIDED_FILES_BASE)
140 -ELIDED_FILES_107 = $(ELIDED_FILES_BASE)
141 -ELIDED_FILES_108 = $(ELIDED_FILES_BASE)
142 -ELIDED_FILES_109 = $(ELIDED_FILES_BASE)
143 -ELIDED_FILES_110 = $(ELIDED_FILES_BASE)
144 -ELIDED_FILES_111 = $(ELIDED_FILES_BASE)
145 -ELIDED_FILES_111a = $(ELIDED_FILES_BASE)
146 -ELIDED_FILES_116 = $(ELIDED_FILES_BASE)
147 -ELIDED_FILES_117 = $(ELIDED_FILES_BASE)
143 +ELIDED_FILES_106 = $(ELIDED_FILES_BASE) $(ELIDED_FILES_ATTR)
144 +ELIDED_FILES_107 = $(ELIDED_FILES_106)
145 +ELIDED_FILES_108 = $(ELIDED_FILES_106)
146 +ELIDED_FILES_109 = $(ELIDED_FILES_106)
147 +ELIDED_FILES_110 = $(ELIDED_FILES_106)
148 +ELIDED_FILES_111 = $(ELIDED_FILES_106)
149 +ELIDED_FILES_111a = $(ELIDED_FILES_106)
150 +ELIDED_FILES_116 = $(ELIDED_FILES_106)
151 +ELIDED_FILES_117 = $(ELIDED_FILES_106)
152 +ELIDED_FILES_118 = $(ELIDED_FILES_BASE)
148 153 ELIDED_FILES = $(ELIDED_FILES_$(BUILDID))
149 154
150 155 #
151 156 # these files get placed into proto area from per-build cached versions
152 157 #
153 158 CACHED_FILES_BASE= \
154 159 $(ELIDED_FILES) \
155 160 boot/grub/menu.lst \
156 161 boot/grub/splash.xpm.gz \
157 162 etc/inet/hosts \
158 163 etc/zones/SUNWblank.xml \
159 164 etc/zones/SUNWdefault.xml \
160 165 lib/svc/method/fs-usr \
161 166 lib/svc/method/sshd \
162 167 lib/svc/method/svc-coreadm \
163 168 lib/svc/method/svc-dlmgmtd \
164 169 usr/jdk/instances/jdk1.6.0/jre/lib/fontconfig.properties \
165 170 usr/lib/vp-services \
166 171 usr/lib/vp-shares \
167 172 var/svc/manifest/system/coreadm.xml \
168 173 var/svc/profile/generic_limited_net.xml \
169 174 var/svc/profile/generic_open.xml
170 175
171 176 CACHED_FILES_86 = $(CACHED_FILES_BASE)
172 177 CACHED_FILES_89 = $(CACHED_FILES_BASE)
173 178 CACHED_FILES_90 = $(CACHED_FILES_BASE)
174 179 CACHED_FILES_91 = $(CACHED_FILES_BASE)
175 180 CACHED_FILES_92 = $(CACHED_FILES_BASE)
176 181 CACHED_FILES_93 = $(CACHED_FILES_BASE)
177 182 CACHED_FILES_94 = $(CACHED_FILES_BASE)
178 183 CACHED_FILES_95 = $(CACHED_FILES_BASE)
179 184 CACHED_FILES_96 = $(CACHED_FILES_BASE)
180 185 CACHED_FILES_97 = $(CACHED_FILES_BASE)
181 186 CACHED_FILES_98 = $(CACHED_FILES_BASE)
182 187 CACHED_FILES_99 = $(CACHED_FILES_BASE) \
183 188 etc/security/policy.conf \
184 189 root/.bashrc \
185 190 root/.profile
186 191 CACHED_FILES_100a = $(CACHED_FILES_99)
187 192 CACHED_FILES_101 = $(CACHED_FILES_99) \
188 193 etc/mailcap \
189 194 etc/mime.types
190 195 CACHED_FILES_101a = $(CACHED_FILES_101) \
191 196 boot/solaris.xpm \
192 197 etc/skel/.bashrc \
193 198 etc/skel/.profile \
194 199 lib/svc/method/svc-ipagent \
195 200 lib/svc/method/xvm-vnc-config \
196 201 kernel/drv/nvidia.conf \
197 202 usr/lib/xen/bin/ipagent \
198 203 usr/X11/lib/xscreensaver/config/opensolaris-logo.png \
199 204 var/svc/manifest/application/graphical-login/gdm.xml \
200 205 var/svc/manifest/system/ipagent.xml \
201 206 var/svc/manifest/system/xvm/vnc-config.xml
202 207 CACHED_FILES_105 = $(CACHED_FILES_101a)
203 208 CACHED_FILES_106 = $(CACHED_FILES_101a)
204 209 CACHED_FILES_107 = $(CACHED_FILES_101a) \
205 210 var/svc/manifest/application/x11/x11-server.xml
206 211 CACHED_FILES_108 = $(CACHED_FILES_107)
207 212 CACHED_FILES_109 = $(CACHED_FILES_107)
|
↓ open down ↓ |
50 lines elided |
↑ open up ↑ |
208 213 CACHED_FILES_110 = $(CACHED_FILES_107)
209 214 CACHED_FILES_111 = $(CACHED_FILES_107)
210 215 CACHED_FILES_111a = $(CACHED_FILES_107) \
211 216 etc/zones/SUNWtsoldef.xml \
212 217 usr/jdk/instances/jdk1.6.0/jre/lib/fontconfig.OpenSolaris.bfc \
213 218 usr/jdk/instances/jdk1.6.0/jre/lib/fontconfig.OpenSolaris.properties.src \
214 219 usr/lib/brand/labeled/config.xml \
215 220 usr/lib/brand/labeled/platform.xml
216 221 CACHED_FILES_116 =
217 222 CACHED_FILES_117 =
223 +CACHED_FILES_118 =
218 224
219 225 CACHED_FILES = $(CACHED_FILES_$(BUILDID))
220 226
221 227 FIX_FILES_BASE = \
222 228 $(CACHED_FILES) \
223 229 etc/driver_aliases \
224 230 etc/name_to_major \
225 231 etc/nsswitch.conf \
226 232 etc/pam.conf \
227 233 etc/passwd \
228 234 etc/power.conf \
229 235 etc/shadow \
230 236 usr/bin/ksh \
231 237 usr/has/bin/sh \
232 238 usr/has/bin/vi \
233 239 usr/jdk/instances/jdk1.6.0/LICENSE \
234 240 usr/jdk/instances/jdk1.6.0/README.html \
235 241 usr/jdk/instances/jdk1.6.0/jre/LICENSE \
236 242 usr/jdk/instances/jdk1.6.0/jre/README \
237 243 usr/share/applications/services.desktop \
238 244 usr/share/applications/shares.desktop
239 245
240 246 FIX_FILES_86 = \
241 247 $(FIX_FILES_BASE) \
242 248 boot/solaris/filelist.ramdisk \
243 249 etc/X11/gdm/custom.conf \
244 250 etc/release \
245 251 etc/svc/global_repo.db \
246 252 etc/svc/nonglobal_repo.db \
247 253 etc/user_attr.cdonly \
248 254 usr/share/man/man.cf \
249 255 usr/share/man/missing.man
250 256 FIX_FILES_89 = $(FIX_FILES_86)
251 257 FIX_FILES_90 = $(FIX_FILES_86)
252 258 FIX_FILES_91 = $(FIX_FILES_86)
253 259 FIX_FILES_92 = $(FIX_FILES_86)
254 260 FIX_FILES_93 = $(FIX_FILES_86)
255 261 FIX_FILES_94 = $(FIX_FILES_86)
256 262 FIX_FILES_95 = $(FIX_FILES_86)
257 263 FIX_FILES_96 = $(FIX_FILES_86)
258 264 FIX_FILES_97 = $(FIX_FILES_BASE) \
259 265 boot/solaris/filelist.ramdisk \
260 266 etc/release \
261 267 etc/svc/global_repo.db \
262 268 etc/svc/nonglobal_repo.db \
263 269 usr/share/man/man.cf \
264 270 usr/share/man/missing.man
265 271 FIX_FILES_98 = $(FIX_FILES_BASE) \
266 272 usr/share/man/man.cf
267 273 FIX_FILES_99 = $(FIX_FILES_98)
268 274 FIX_FILES_100a = $(FIX_FILES_98) \
269 275 lib/svc/method/svc-hostid \
270 276 usr/sbin/extract_hostid
271 277 FIX_FILES_101 = $(FIX_FILES_99)
272 278 FIX_FILES_101a = $(FIX_FILES_99)
|
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
273 279 FIX_FILES_105 = $(FIX_FILES_BASE)
274 280 FIX_FILES_106 = $(FIX_FILES_BASE)
275 281 FIX_FILES_107 = $(FIX_FILES_BASE)
276 282 FIX_FILES_108 = $(FIX_FILES_BASE)
277 283 FIX_FILES_109 = $(FIX_FILES_BASE)
278 284 FIX_FILES_110 = $(FIX_FILES_BASE)
279 285 FIX_FILES_111 = $(FIX_FILES_BASE)
280 286 FIX_FILES_111a = $(FIX_FILES_BASE)
281 287 FIX_FILES_116 = $(FIX_FILES_BASE)
282 288 FIX_FILES_117 = $(FIX_FILES_BASE)
289 +FIX_FILES_118 = $(FIX_FILES_BASE)
283 290 FIX_FILES = $(FIX_FILES_$(BUILDID))
284 291
285 292 JDKFILES = LICENSE README.html
286 293 JREFILES = LICENSE README
287 294
288 295 PROG= ksh-wrapper
289 296
290 297 OBJS= ksh-wrapper.o
291 298
292 299 SRCS= $(OBJS:%.o=%.c)
293 300
294 301 CFLAGS= -g -v
295 302
296 303 LINTFLAGS= -axsm
297 304
298 305 UNBUNDLED_TARGETS= \
299 306 ClusterTools.import \
300 307 ClusterTools8.import \
301 308 DTraceGUI.import \
302 309 Eclipse.import \
303 310 ExuberantCTags.import \
304 311 GlassFishV2.import \
305 312 GnuDevTools.import \
306 313 LDomsManager.import \
307 314 MessageQueue41.import \
308 315 NetBeans.import \
309 316 OpenDS.import \
310 317 OpenJDK7.import \
311 318 OpenOffice.import \
312 319 Studio.import \
313 320 Webstackui.import
314 321
315 322 UNBUNDLED_CLUSTERS= \
316 323 Clusters.import
317 324
318 325 BUILDS= 75a \
319 326 79b \
320 327 86 \
321 328 89 \
322 329 90 \
323 330 91 \
324 331 92 \
325 332 93 \
326 333 94 \
327 334 95 \
328 335 96 \
329 336 97 \
330 337 98 \
331 338 99 \
332 339 100a \
333 340 101 \
|
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
334 341 101a \
335 342 105 \
336 343 106 \
337 344 107 \
338 345 108 \
339 346 109 \
340 347 110 \
341 348 111 \
342 349 111a \
343 350 116 \
344 - 117
351 + 117 \
352 + 118
345 353
346 354 #
347 355 # Starting in build 80, filelist.ramdisk began moving between various
348 356 # packages.
349 357 #
350 358 FILELIST_RAMDISK_PKG_$(BUILDID) = SUNWckr
351 359 FILELIST_RAMDISK_PKG_79b = SUNWcakr.i
352 360 FILELIST_RAMDISK_PKG_75a = SUNWcakr.i
353 361 FILELIST_RAMDISK_PKG_74 = SUNWcakr.i
354 362 FILELIST_RAMDISK_PKG_72 = SUNWcakr.i
355 363 FILELIST_RAMDISK_PKG_71 = SUNWcakr.i
356 364
357 365 default: 117/slim_import
358 366
359 367 cluster.import: $(WOS_PKGS)/.clustertoc Makefile
360 368 ./clustertoc2import.py $(WOS_PKGS)/.clustertoc | \
361 369 sed "s/version 2.2.1a/version 2.2.1.1/" > $@
362 370
363 371 proto/etc/user_attr.cdonly: proto $(BUILDID)/user_attr
364 372 ( cat $(BUILDID)/user_attr; \
365 373 echo "jack::::profiles=Primary Administrator;roles=root") > $@
366 374
367 375 proto/etc/driver_aliases: proto $(BUILDID)/redist_cluster cluster.import
368 376 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsd etc/driver_aliases | \
369 377 ./driver_names.py $(INCLUDE_PATH_$(BUILDID)) \
370 378 $(BUILDID)/redist_cluster > $@
371 379
372 380 proto/etc/name_to_major: proto $(BUILDID)/redist_cluster cluster.import
373 381 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsd etc/name_to_major | \
374 382 ./driver_names.py $(INCLUDE_PATH_$(BUILDID)) \
375 383 $(BUILDID)/redist_cluster > $@
376 384
377 385 proto/etc/nsswitch.conf: proto Makefile
378 386 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr etc/nsswitch.files > $@
379 387
380 388 proto/etc/X11/gdm/custom.conf: proto Makefile
381 389 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWgnome-display-mgr-root \
382 390 etc/X11/gdm/custom.conf | nawk '/^\[daemon\]/ { print $$0; \
383 391 print "AutomaticLoginEnable=true"; \
384 392 print "AutomaticLogin=jack"; \
385 393 print "GdmXserverTimeout=30"; \
386 394 continue } { print $$0 }' > $@
387 395
388 396 proto/etc/power.conf: proto Makefile
389 397 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWpmr etc/power.conf | nawk \
390 398 '/^autoshutdown/{gsub("unconfigured","default");} {print $$0}' > $@
391 399
392 400 proto/boot/solaris/filelist.ramdisk: proto
393 401 (./get_file_from_pkg.py $(WOS_PKGS)/$(FILELIST_RAMDISK_PKG_$(BUILDID)) \
394 402 boot/solaris/filelist.ramdisk; \
395 403 echo etc/zfs/zpool.cache) > $@
396 404
397 405 proto/etc/pam.conf: proto
398 406 (./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr etc/pam.conf; \
399 407 echo "gdm-autologin auth required pam_unix_cred.so.1"; \
400 408 echo "gdm-autologin auth sufficient pam_allow.so.1"; \
401 409 echo "gdm-autologin account sufficient pam_allow.so.1"; \
402 410 echo "gdm-autologin session sufficient pam_allow.so.1"; \
403 411 echo "gdm-autologin password sufficient pam_allow.so.1" \
404 412 ) > $@
405 413
406 414 proto/etc/svc/global_repo.db: proto
407 415 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr lib/svc/seed/global.db > $@
408 416
409 417 proto/etc/svc/nonglobal_repo.db: proto
410 418 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr lib/svc/seed/nonglobal.db > $@
411 419
412 420 # fix booting on non-sse capable cpus until 6332924 gets fixed
413 421 proto/lib/libc.so.1: proto
414 422 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcslr lib/libc.so.1 > $@
415 423 /usr/bin/elfedit -e 'cap:hw1 -and -cmp sse' $@
416 424
417 425 proto/lib/svc/method/svc-hostid: proto 100a/svc-hostid
418 426 cp 100a/svc-hostid $@
419 427
420 428 proto/usr/share/man/missing.man: proto missing.man
421 429 cp missing.man $@
422 430
423 431 proto/etc/release: proto
424 432 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWsolnm etc/release | head -1 | \
425 433 sed 's/.*snv_/ OpenSolaris 2008.05 snv_/' \
426 434 > $@
427 435 cat release.figlet >> $@
428 436
429 437 proto/usr/share/man/man.cf: proto
430 438 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWman usr/share/man/man.cf | \
431 439 sed \
432 440 '/MANSECTS/s/$$/,1openssl,3openssl,5openssl,7openssl/' \
433 441 > $@
434 442
435 443 proto/usr/bin/ksh: proto $(PROG)
436 444 cp $(PROG) $@
437 445
438 446 proto/usr/share/applications/shares.desktop: proto
439 447 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWgnome-system-tools \
440 448 usr/share/applications/shares.desktop | \
441 449 ./desktop_exec.sh /usr/lib/vp-shares > $@
442 450
443 451 proto/usr/share/applications/services.desktop: proto
444 452 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWgnome-system-tools \
445 453 usr/share/applications/services.desktop | \
446 454 ./desktop_exec.sh /usr/lib/vp-services > $@
447 455
448 456 #
449 457 # change root's default shell, homedir, password
450 458 #
451 459 proto/etc/passwd: proto Makefile
452 460 (./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr etc/passwd | nawk -F: \
453 461 '/^root/{ print "root:x:0:0:Super-User:/root:/usr/bin/bash";continue} {print $$0}') > $@
454 462
455 463 proto/etc/shadow: proto Makefile
456 464 (./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr etc/shadow | nawk -F: \
457 465 '/^root/{ print "root:$$5$$VgppCOxA$$ycFmYW4ObRRHhtsGEygDdexk5bugqgSiaSR9niNCouC:14146::::::";continue} {print $$0}') > $@
458 466
459 467 proto/usr/has/bin/sh: proto Makefile
460 468 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsr sbin/sh > $@
461 469
462 470 proto/usr/has/bin/vi: proto Makefile
463 471 ./get_file_from_pkg.py $(WOS_PKGS)/SUNWcsu usr/bin/edit > $@
464 472
465 473 proto/usr/sbin/extract_hostid: proto ../misc/extract_hostid
466 474 cp ../misc/extract_hostid $@
467 475
468 476 $(JDKFILES:%=proto/usr/jdk/instances/jdk1.6.0/%): proto DLJ/$(@F)
469 477 cp DLJ/$(@F) $@
470 478
471 479 $(JREFILES:%=proto/usr/jdk/instances/jdk1.6.0/jre/%): proto DLJ/$(@F)
472 480 cp DLJ/$(@F) $@
473 481
474 482 $(CACHED_FILES:%=proto/%): proto $(BUILDID)/$(@F) Makefile
475 483 cat $(BUILDID)/$(@F) > $@
476 484
477 485 proto: Makefile
478 486 mkdir -p proto/boot/grub
479 487 mkdir -p proto/boot/solaris/devicedb
480 488 mkdir -p proto/etc/X11/gdm
481 489 mkdir -p proto/etc/inet
482 490 mkdir -p proto/etc/security
483 491 mkdir -p proto/etc/skel
484 492 mkdir -p proto/etc/svc
485 493 mkdir -p proto/etc/zones
486 494 mkdir -p proto/kernel/drv
487 495 mkdir -p proto/lib/svc/method
488 496 mkdir -p proto/root
489 497 mkdir -p proto/usr/X11/lib/xscreensaver/config
490 498 mkdir -p proto/usr/bin
491 499 mkdir -p proto/usr/has/bin
492 500 mkdir -p proto/usr/jdk/instances/jdk1.6.0/jre/lib
493 501 mkdir -p proto/usr/lib/brand/labeled
494 502 mkdir -p proto/usr/lib/xen/bin
495 503 mkdir -p proto/usr/sbin
496 504 mkdir -p proto/usr/share/applications
497 505 mkdir -p proto/usr/share/man
498 506 mkdir -p proto/var/svc/manifest/application/graphical-login
499 507 mkdir -p proto/var/svc/manifest/application/x11
500 508 mkdir -p proto/var/svc/manifest/system/xvm
501 509 mkdir -p proto/var/svc/profile
502 510
503 511 %/$(TMPPKGS):
504 512 $(MAKE) BUILDID=$(@D) $(@F)
505 513
506 514 %: $(BUILDID)/%.prototype $(BUILDID)/%.pkginfo $(FIX_FILES:%=proto/%)
507 515 pkgmk -b ./proto -r . -f $(BUILDID)/$@.prototype -d `pwd` -o
508 516
509 517 INCLUDE_PATH_75a = 75a:73:72:71:00
510 518 INCLUDE_PATH_79b = 79b:78:77:76:$(INCLUDE_PATH_75a)
511 519 INCLUDE_PATH_84 = 84:83:82:81:80:$(INCLUDE_PATH_79b)
512 520 INCLUDE_PATH_85 = 85:$(INCLUDE_PATH_84)
513 521 INCLUDE_PATH_86 = 86:$(INCLUDE_PATH_85)
514 522 INCLUDE_PATH_89 = 89:88:87:$(INCLUDE_PATH_86)
515 523 INCLUDE_PATH_90 = 90:$(INCLUDE_PATH_89)
516 524 INCLUDE_PATH_91 = 91:$(INCLUDE_PATH_90)
517 525 INCLUDE_PATH_92 = 92:$(INCLUDE_PATH_91)
518 526 INCLUDE_PATH_93 = 93:$(INCLUDE_PATH_92)
519 527 INCLUDE_PATH_94 = 94:$(INCLUDE_PATH_93)
520 528 INCLUDE_PATH_95 = 95:$(INCLUDE_PATH_94)
521 529 INCLUDE_PATH_96 = 96:$(INCLUDE_PATH_95)
522 530 INCLUDE_PATH_97 = 97:$(INCLUDE_PATH_96)
523 531 INCLUDE_PATH_98 = 98:$(INCLUDE_PATH_97)
524 532 INCLUDE_PATH_99 = 99:$(INCLUDE_PATH_98)
525 533 INCLUDE_PATH_100a = 100a:$(INCLUDE_PATH_99)
526 534 INCLUDE_PATH_101 = 101:$(INCLUDE_PATH_100a)
527 535 INCLUDE_PATH_101a = 101a:$(INCLUDE_PATH_101)
|
↓ open down ↓ |
173 lines elided |
↑ open up ↑ |
528 536 INCLUDE_PATH_105 = 105:104:103:102:$(INCLUDE_PATH_101a)
529 537 INCLUDE_PATH_106 = 106:$(INCLUDE_PATH_105)
530 538 INCLUDE_PATH_107 = 107:$(INCLUDE_PATH_106)
531 539 INCLUDE_PATH_108 = 108:$(INCLUDE_PATH_107)
532 540 INCLUDE_PATH_109 = 109:$(INCLUDE_PATH_108)
533 541 INCLUDE_PATH_110 = 110:$(INCLUDE_PATH_109)
534 542 INCLUDE_PATH_111 = 111:$(INCLUDE_PATH_110)
535 543 INCLUDE_PATH_111a = 111a:$(INCLUDE_PATH_111)
536 544 INCLUDE_PATH_116 = 116:$(INCLUDE_PATH_111a)
537 545 INCLUDE_PATH_117 = 117:$(INCLUDE_PATH_116)
546 +INCLUDE_PATH_118 = 118:$(INCLUDE_PATH_117)
538 547
539 548 import: cluster.import $(TMPPKGS)
540 549 $(SOLARIS.PY) -s $(REPO) -w $(WOS_PKGS) $(ELIDED_FILES:%=-D %) \
541 550 $(INCLUDE_PATH_$(BUILDID):%=-I %) $(BUILDID)/all.i386
542 551
543 552 %/import:
544 553 $(MAKE) BUILDID=$(@:%/import=%) import
545 554
546 555 slim_import: $(BUILDID)/slim_cluster $(TMPPKGS)
547 556 $(SOLARIS.PY) -s $(REPO) $(ALL_PKGS:%=-w %) $(ELIDED_FILES:%=-D %) \
548 557 $(JUST_THESE_PKGS:%=-j %) $(INCLUDE_PATH_$(BUILDID):%=-I %) \
549 558 $(BUILDID)/slim_cluster
550 559
551 560 %/slim_import:
552 561 if test -z "$(JUST_THESE_PKGS)"; then \
553 562 $(MAKE) clobber; \
554 563 fi
555 564 $(MAKE) BUILDID=$(@:%/slim_import=%) slim_import
556 565
557 566 redist_import: $(BUILDID)/redist_cluster $(TMPPKGS)
558 567 $(SOLARIS.PY) -s $(REPO) $(ALL_PKGS:%=-w %) $(ELIDED_FILES:%=-D %) \
559 568 $(JUST_THESE_PKGS:%=-j %) $(INCLUDE_PATH_$(BUILDID):%=-I %) \
560 569 $(BUILDID)/redist_cluster
561 570 $(MAKE) $(BUILDID)/entire
562 571
563 572 %/redist_import:
564 573 if test -z "$(JUST_THESE_PKGS)"; then \
565 574 $(MAKE) clobber; \
566 575 fi
567 576 $(MAKE) BUILDID=$(@:%/redist_import=%) redist_import
568 577
569 578 %/entire:
570 579 $(MAKE) BUILDID=$(@:%/entire=%) entire
571 580
572 581 $(BUILDID)/entire.incorporation: FRC
573 582 REPO=$(REPO) ./build_entire_incorporation $(BUILDID) > $@
574 583
575 584 entire: $(BUILDID)/entire.incorporation
576 585 PKG_REPO=$(REPO) ./import_manifest_file \
577 586 entire@0.5.11,5.11-0.`echo $(BUILDID) | tr -d '[a-z]'` \
578 587 $(BUILDID)/entire.incorporation
579 588
580 589 $(UNBUNDLED_TARGETS:%=$(BUILDS)/%) $(UNBUNDLED_CLUSTERS:%=$(BUILDS)/%):
581 590 $(MAKE) BUILDID=$(@D) $(@F)
582 591
583 592 $(UNBUNDLED_TARGETS): unbundleds/$$(@:%.import=%)
584 593 rm -f redist_cluster; ln -s $(BUILDID)/redist_cluster redist_cluster
585 594 $(SOLARIS.PY) -s $(REPO) $(ALL_PKGS:%=-w %) $(ELIDED_FILES:%=-D %) \
586 595 `$(SOLARIS.PY) -N $(INCLUDE_PATH_$(BUILDID):%=-I %) unbundleds/$(@:%.import=%)` \
587 596 $(INCLUDE_PATH_$(BUILDID):%=-I %) unbundleds/$(@:%.import=%) \
588 597 redist_cluster
589 598
590 599 $(UNBUNDLED_CLUSTERS): unbundleds/$$(@:%.import=%)
591 600 rm -f redist_cluster; ln -s $(BUILDID)/redist_cluster redist_cluster
592 601 $(SOLARIS.PY) -s $(REPO) $(ALL_PKGS:%=-w %) $(ELIDED_FILES:%=-D %) \
593 602 `$(SOLARIS.PY) -N $(INCLUDE_PATH_$(BUILDID):%=-I %) unbundleds/$(@:%.import=%)` \
594 603 $(INCLUDE_PATH_$(BUILDID):%=-I %) unbundleds/$(@:%.import=%) \
595 604 $(UNBUNDLED_TARGETS:%.import=unbundleds/%) redist_cluster
596 605
597 606 %/all_unbundleds:
598 607 $(MAKE) BUILDID=$(@D) $(@F)
599 608
600 609 all_unbundleds: $(UNBUNDLED_TARGETS:%=$(BUILDID)/%)
601 610 $(MAKE) $(BUILDID)/$(UNBUNDLED_CLUSTERS)
602 611
603 612
604 613 #
605 614 # Used to generate the GUI Package Manager classification files from the
606 615 # current package classifications.
607 616 #
608 617 guiclassification:
609 618 ./gen_os_files.py
610 619
611 620 %/SUNWipkg %/backpublish:
612 621 $(MAKE) BUILDID=$(@D) $(@F)
613 622
614 623 SUNWipkg:
615 624 PKG_REPO=$(REPO) ./publish_ips $(BUILDID) SUNWipkg
616 625
617 626 backpublish:
618 627 PKG_REPO=$(REPO) ./publish_ips $(BUILDID) SUNWipkg
619 628 PKG_REPO=$(REPO) ./publish_ips $(BUILDID) SUNWipkg-gui
620 629 PKG_REPO=$(REPO) ./publish_ips $(BUILDID) SUNWipkg-gui-l10n
621 630 PKG_REPO=$(REPO) ./publish_ips $(BUILDID) SUNWpython-cherrypy
622 631 PKG_REPO=$(REPO) ./publish_ips $(BUILDID) SUNWpython-pyopenssl
623 632
624 633 clean:
625 634 rm -f $(OBJS)
626 635 rm -rf proto
627 636
628 637 clobber: clean
629 638 rm -f $(PROG)
630 639 rm -rf $(TMPPKGS)
631 640
632 641 lint:
633 642 $(LINT) $(LINTFLAGS) $(SRCS)
634 643
635 644 .KEEP_STATE:
636 645
637 646 FRC:
|
↓ open down ↓ |
90 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX