Print this page
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/pkgdefs/jas.dvdimage.ksh
+++ new/usr/src/pkgdefs/jas.dvdimage.ksh
1 1 #!/bin/ksh
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License (the License).
7 7 # You may not use this file except in compliance with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/CDDL.txt
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/CDDL.txt.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets [] replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22
23 23 #
24 24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27 # ident "@(#)jas.dvdimage.ksh 1.38 07/08/07 SMI"
28 28 #
29 29 # This script is used by the build_dvds script to build the pieces
30 30 # of the DVD image that this workspace contributes to it. The name of
31 31 # the DVD image is obtained from the prefix of this script's name:
32 32 # <dvd image name>.dvdimage.ksh
33 33 #
34 34 # This script should contain a function named build_image_<ARCH>_<OS>
35 35 # for every ARCH/OS combination supported by the build, so for sparc
36 36 # Solaris 9 the function would be named build_image_sparc_9. These ARCH/OS
37 37 # specific functions typically call other functions to handle the areas of
38 38 # the DVD that are common to multiple OSes, like the installer and
39 39 # external shared components. These individual functions should be made
40 40 # robust enough to handle the situation where they are called more than once,
41 41 # which is highly likely if each OS function calls a common function.
42 42 #
43 43 # See build_dvds for the list of predefined variables and functions
44 44 # available to this script.
45 45 #
46 46
47 47 #
48 48 # Variables
49 49 #
50 50 AGENTS_DIR=${DVD}/Solaris_${ARCH}/Product/sun_cluster_agents
51 51 CLOSED_PKGDEFS_DIR=${WS}/usr/closed/pkgdefs
52 52 MACH=$([ "${ARCH}" = "sparc" ] && { echo ${ARCH}; } || { echo "i386"; })
53 53 ND=$([ "${DEBUG}" -eq 0 ] && echo "-nd")
54 54 PKGARCH=${WS}/packages/${MACH}/Sol_${OS}${ND}
55 55 PKGDEFS_DIR=${WS}/usr/src/pkgdefs
56 56 SOL=Solaris_${OS}
57 57
58 58 # DVD image of external products
59 59 DVDIMAGE_DIR=${PKGDEFS_DIR}/dvdimages/$(${BASENAME} ${DVD})
60 60
61 61 # Agent packages
62 62 PACKAGES_AGFA_IMPAX=SUNWscpax
63 63
64 64 PACKAGES_APACHE=SUNWscapc
65 65
|
↓ open down ↓ |
65 lines elided |
↑ open up ↑ |
66 66 PACKAGES_APACHE_TC=SUNWsctomcat
67 67
68 68 PACKAGES_DHC=SUNWscdhc
69 69
70 70 PACKAGES_DNS=SUNWscdns
71 71
72 72 PACKAGES_EBS=SUNWscebs
73 73
74 74 PACKAGES_HADB=SUNWschadb
75 75
76 +PACKAGES_IDS=SUNWscids
77 +
76 78 PACKAGES_KERBEROS=SUNWsckrb5
77 79
78 80 PACKAGES_L10N="\
79 81 SUNWcscapc \
80 82 SUNWcscdns \
81 83 SUNWcschadb \
82 84 SUNWcschtt \
83 85 SUNWcsclc \
84 86 SUNWcscnfs \
85 87 SUNWcscor \
86 88 SUNWcscs1as \
87 89 SUNWcscs1mq \
88 90 SUNWcscsap \
89 91 SUNWcscsapdb \
90 92 SUNWcscsapenq \
91 93 SUNWcscsaprepl \
92 94 SUNWcscsapscs \
93 95 SUNWcscsapwebas \
94 96 SUNWcscsbl \
95 97 SUNWcscsyb \
96 98 SUNWcscwls \
97 99 SUNWdschadb \
98 100 SUNWdschtt \
99 101 SUNWdscs1as \
100 102 SUNWdscs1mq \
101 103 SUNWeschadb \
102 104 SUNWeschtt \
103 105 SUNWescs1as \
104 106 SUNWescs1mq \
105 107 SUNWfscapc \
106 108 SUNWfscdns \
107 109 SUNWfschadb \
108 110 SUNWfschtt \
109 111 SUNWfsclc \
110 112 SUNWfscnfs \
111 113 SUNWfscs1as \
112 114 SUNWfscs1mq \
113 115 SUNWfscsap \
114 116 SUNWfscsapdb \
115 117 SUNWfscsbl \
116 118 SUNWfscwls \
117 119 SUNWhschadb \
118 120 SUNWhschtt \
119 121 SUNWhscs1as \
120 122 SUNWhscs1mq \
121 123 SUNWjscapc \
122 124 SUNWjscdns \
123 125 SUNWjschadb \
124 126 SUNWjschtt \
125 127 SUNWjsclc \
126 128 SUNWjscnfs \
127 129 SUNWjscor \
128 130 SUNWjscs1as \
129 131 SUNWjscs1mq \
130 132 SUNWjscsap \
131 133 SUNWjscsapdb \
132 134 SUNWjscsapenq \
133 135 SUNWjscsaprepl \
134 136 SUNWjscsapscs \
135 137 SUNWjscsapwebas \
136 138 SUNWjscsbl \
137 139 SUNWjscsyb \
138 140 SUNWjscwls \
139 141 SUNWkschadb \
140 142 SUNWkschtt \
141 143 SUNWkscs1as \
142 144 SUNWkscs1mq"
143 145
144 146 PACKAGES_LIVECACHE=SUNWsclc
145 147
146 148 PACKAGES_MQI=SUNWscmqi
147 149
148 150 PACKAGES_MQS=SUNWscmqs
149 151
150 152 PACKAGES_MYS=SUNWscmys
151 153
152 154 PACKAGES_N1G_SPS=SUNWscsps
153 155
154 156 PACKAGES_NFS=SUNWscnfs
155 157
156 158 PACKAGES_ORACLE=SUNWscor
157 159
158 160 PACKAGES_ORACLE_9IAS=SUNWsc9ias
159 161
160 162 PACKAGES_POSTGRESQL=SUNWscPostgreSQL
161 163
162 164 PACKAGES_S1AS=SUNWscs1as
163 165
164 166 PACKAGES_S1MQ=SUNWscs1mq
165 167
166 168 PACKAGES_S1WS=SUNWschtt
167 169
168 170 PACKAGES_SAA=SUNWscsaa
169 171
170 172 PACKAGES_SAP=SUNWscsap
171 173
172 174 PACKAGES_SAPDB=SUNWscsapdb
173 175
174 176 PACKAGES_SAPWEBAS="\
175 177 SUNWscsapenq \
176 178 SUNWscsaprepl \
177 179 SUNWscsapscs \
178 180 SUNWscsapwebas"
179 181
180 182 PACKAGES_SIEBEL=SUNWscsbl
181 183
182 184 PACKAGES_SMB=SUNWscsmb
183 185
184 186 PACKAGES_SOLARIS_ZONES=SUNWsczone
185 187
186 188 PACKAGES_SUN_GRID_ENG=SUNWscsge
187 189
188 190 PACKAGES_SWIFT_GWAY=SUNWscsag
189 191
190 192 PACKAGES_SYBASE=SUNWscsyb
191 193
192 194 PACKAGES_WLS=SUNWscwls
193 195
194 196 # Specify which agents are supported on which platforms
195 197 sparc_9_AGENTS="\
196 198 ${PACKAGES_AGFA_IMPAX} \
197 199 ${PACKAGES_APACHE} \
198 200 ${PACKAGES_APACHE_TC} \
199 201 ${PACKAGES_DHC} \
200 202 ${PACKAGES_DNS} \
201 203 ${PACKAGES_EBS} \
202 204 ${PACKAGES_HADB} \
203 205 ${PACKAGES_LIVECACHE} \
204 206 ${PACKAGES_MQI} \
205 207 ${PACKAGES_MQS} \
206 208 ${PACKAGES_MYS} \
207 209 ${PACKAGES_N1G_SPS} \
208 210 ${PACKAGES_NFS} \
209 211 ${PACKAGES_ORACLE} \
210 212 ${PACKAGES_ORACLE_9IAS} \
211 213 ${PACKAGES_POSTGRESQL} \
212 214 ${PACKAGES_S1AS} \
213 215 ${PACKAGES_S1MQ} \
214 216 ${PACKAGES_S1WS} \
215 217 ${PACKAGES_SAA} \
216 218 ${PACKAGES_SAP} \
217 219 ${PACKAGES_SAPDB} \
218 220 ${PACKAGES_SAPWEBAS} \
219 221 ${PACKAGES_SIEBEL} \
220 222 ${PACKAGES_SMB} \
221 223 ${PACKAGES_SUN_GRID_ENG} \
222 224 ${PACKAGES_SWIFT_GWAY} \
223 225 ${PACKAGES_SYBASE} \
224 226 ${PACKAGES_WLS}"
225 227
226 228 sparc_10_AGENTS="\
227 229 ${PACKAGES_APACHE} \
228 230 ${PACKAGES_APACHE_TC} \
229 231 ${PACKAGES_DHC} \
230 232 ${PACKAGES_DNS} \
231 233 ${PACKAGES_EBS} \
232 234 ${PACKAGES_HADB} \
233 235 ${PACKAGES_KERBEROS} \
234 236 ${PACKAGES_LIVECACHE} \
235 237 ${PACKAGES_MQI} \
236 238 ${PACKAGES_MQS} \
237 239 ${PACKAGES_MYS} \
238 240 ${PACKAGES_N1G_SPS} \
239 241 ${PACKAGES_NFS} \
240 242 ${PACKAGES_ORACLE} \
241 243 ${PACKAGES_ORACLE_9IAS} \
242 244 ${PACKAGES_POSTGRESQL} \
243 245 ${PACKAGES_S1AS} \
244 246 ${PACKAGES_S1MQ} \
245 247 ${PACKAGES_S1WS} \
246 248 ${PACKAGES_SAA} \
247 249 ${PACKAGES_SAP} \
248 250 ${PACKAGES_SAPDB} \
249 251 ${PACKAGES_SAPWEBAS} \
250 252 ${PACKAGES_SIEBEL} \
251 253 ${PACKAGES_SMB} \
252 254 ${PACKAGES_SOLARIS_ZONES} \
253 255 ${PACKAGES_SUN_GRID_ENG} \
254 256 ${PACKAGES_SWIFT_GWAY} \
255 257 ${PACKAGES_SYBASE} \
256 258 ${PACKAGES_WLS}"
|
↓ open down ↓ |
171 lines elided |
↑ open up ↑ |
257 259
258 260 # Support for S11 is unknown at this time, so include all agents
259 261 sparc_11_AGENTS="\
260 262 ${PACKAGES_AGFA_IMPAX} \
261 263 ${PACKAGES_APACHE} \
262 264 ${PACKAGES_APACHE_TC} \
263 265 ${PACKAGES_DHC} \
264 266 ${PACKAGES_DNS} \
265 267 ${PACKAGES_EBS} \
266 268 ${PACKAGES_HADB} \
269 + ${PACKAGES_IDS} \
267 270 ${PACKAGES_KERBEROS} \
268 271 ${PACKAGES_L10N} \
269 272 ${PACKAGES_LIVECACHE} \
270 273 ${PACKAGES_MQI} \
271 274 ${PACKAGES_MQS} \
272 275 ${PACKAGES_MYS} \
273 276 ${PACKAGES_N1G_SPS} \
274 277 ${PACKAGES_NFS} \
275 278 ${PACKAGES_ORACLE} \
276 279 ${PACKAGES_ORACLE_9IAS} \
277 280 ${PACKAGES_POSTGRESQL} \
278 281 ${PACKAGES_S1AS} \
279 282 ${PACKAGES_S1MQ} \
280 283 ${PACKAGES_S1WS} \
281 284 ${PACKAGES_SAA} \
282 285 ${PACKAGES_SAP} \
283 286 ${PACKAGES_SAPDB} \
284 287 ${PACKAGES_SAPWEBAS} \
285 288 ${PACKAGES_SIEBEL} \
286 289 ${PACKAGES_SMB} \
287 290 ${PACKAGES_SOLARIS_ZONES} \
288 291 ${PACKAGES_SUN_GRID_ENG} \
289 292 ${PACKAGES_SWIFT_GWAY} \
290 293 ${PACKAGES_SYBASE} \
291 294 ${PACKAGES_WLS}"
292 295
293 296 i386_10_AGENTS="\
294 297 ${PACKAGES_APACHE} \
295 298 ${PACKAGES_APACHE_TC} \
296 299 ${PACKAGES_DHC} \
297 300 ${PACKAGES_DNS} \
298 301 ${PACKAGES_HADB} \
299 302 ${PACKAGES_KERBEROS} \
300 303 ${PACKAGES_LIVECACHE} \
301 304 ${PACKAGES_MQI} \
302 305 ${PACKAGES_MQS} \
303 306 ${PACKAGES_MYS} \
304 307 ${PACKAGES_N1G_SPS} \
305 308 ${PACKAGES_NFS} \
306 309 ${PACKAGES_ORACLE} \
307 310 ${PACKAGES_ORACLE_9IAS} \
308 311 ${PACKAGES_POSTGRESQL} \
309 312 ${PACKAGES_S1AS} \
310 313 ${PACKAGES_S1MQ} \
311 314 ${PACKAGES_S1WS} \
312 315 ${PACKAGES_SAP} \
313 316 ${PACKAGES_SAPDB} \
314 317 ${PACKAGES_SAPWEBAS} \
315 318 ${PACKAGES_SMB} \
316 319 ${PACKAGES_SOLARIS_ZONES} \
317 320 ${PACKAGES_SUN_GRID_ENG} \
318 321 ${PACKAGES_SYBASE} \
319 322 ${PACKAGES_WLS}"
320 323
321 324 i386_11_AGENTS=${sparc_11_AGENTS}
322 325
323 326 AGENTS=$(eval echo \${${MACH}_${OS}_AGENTS})
324 327
325 328 #
326 329 # Functions
327 330 #
328 331 # Builds the external pieces of the image
329 332 # build_image_external()
330 333 build_image_external() {
331 334 # Check if this piece of the image has already been built
332 335 [ -h "${DVD}/Copyright" ] && return
333 336
334 337 echo "Adding the external pieces to the image"
335 338
336 339 # Create directories
337 340 ${MKDIR} ${DVD} || error "Can't create directory ${DVD}"
338 341
339 342 # Add dvdimage of symlinks to external products
340 343 (cd ${DVDIMAGE_DIR} && ${FIND} . -print | ${CPIO} -oc) | (cd ${DVD} &&
341 344 ${CPIO} -icdum)
342 345 }
343 346
344 347 # Builds the common pieces of the image
345 348 # build_image_common()
346 349 build_image_common() {
347 350 # Check if this piece of the image has already been built
348 351 [ -f "${AGENTS_DIR}/.producttoc" -a ! -h "${AGENTS_DIR}/.producttoc" ] && return
349 352
350 353 # Build the external pieces of the image
351 354 build_image_external
352 355
353 356 echo "Adding the common ${MACH} pieces to the image"
354 357
355 358 # Create directories
356 359 ${MKDIR} ${AGENTS_DIR} || error "Can't create directory ${AGENTS_DIR}"
357 360 [ -h "${AGENTS_DIR}/LICENSEREADME" ] && ${RM} ${AGENTS_DIR}/LICENSEREADME
358 361 ${MKDIR} ${AGENTS_DIR}/LICENSEREADME
359 362
360 363 # Add .producttoc to top level directory
361 364 copy ${PKGDEFS_DIR}/dot.producttoc.sun_cluster_agents.${MACH} ${AGENTS_DIR}/.producttoc
362 365
363 366 # Add Copyright to top level directory
364 367 copy ${CLOSED_PKGDEFS_DIR}/Copyright ${AGENTS_DIR}
365 368
366 369 # Add LICENSE file to LICENSEREADME directory
367 370 copy ${CLOSED_PKGDEFS_DIR}/Solaris_Cluster_Express_Entitlement.txt ${AGENTS_DIR}/LICENSEREADME
368 371 }
369 372
370 373 # Builds the solaris pieces of the image
371 374 # build_image_solaris()
372 375 build_image_solaris() {
373 376 # Check if this piece of the image has already been built
374 377 [ -f "${AGENTS_DIR}/${SOL}/Packages/.clustertoc" -a ! -h "${AGENTS_DIR}/${SOL}/Packages/.clustertoc" ] && return
375 378
376 379 # Build the common pieces of the image
377 380 build_image_common
378 381
379 382 echo "Adding the ${SOL} ${MACH} pieces to the image"
380 383
381 384 # Create directories
382 385 ${MKDIR} ${AGENTS_DIR}/${SOL}
383 386 ${MKDIR} ${AGENTS_DIR}/${SOL}/Packages
384 387
385 388 # Add .clustertoc to agents Packages directory
386 389 copy ${PKGDEFS_DIR}/dot.clustertoc ${AGENTS_DIR}/${SOL}/Packages/.clustertoc
387 390
388 391 # Add .order to agents Packages directory
389 392 copy ${PKGDEFS_DIR}/dot.order ${AGENTS_DIR}/${SOL}/Packages/.order
390 393
391 394 # Copy packages from package archive to agents Packages directory
392 395 [ -d "${PKGARCH}" ] || error "Package archive not found"
393 396
394 397 for pkg in ${AGENTS}
395 398 do
396 399 [ -h "${AGENTS_DIR}/${SOL}/Packages/${pkg}" ] && ${RM} -r ${AGENTS_DIR}/${SOL}/Packages/${pkg}
397 400 done
398 401
399 402 ${PKGTRANS} ${PKGARCH} ${AGENTS_DIR}/${SOL}/Packages ${AGENTS} || error "pkgtrans to ${AGENTS_DIR}/${SOL}/Packages failed"
400 403 }
401 404
402 405 # Builds the sparc solaris 9 pieces of the image
403 406 # build_image_sparc_9()
404 407 build_image_sparc_9() {
405 408 # Build the solaris pieces of the image
406 409 build_image_solaris
407 410 }
408 411
409 412 # Builds the sparc solaris 10 pieces of the image
410 413 # build_image_sparc_10()
411 414 build_image_sparc_10() {
412 415 # Build the solaris pieces of the image
413 416 build_image_solaris
414 417 }
415 418
416 419 # Builds the x86 solaris 10 pieces of the image
417 420 # build_image_x86_10()
418 421 build_image_x86_10() {
419 422 # Build the solaris pieces of the image
420 423 build_image_solaris
421 424 }
422 425
423 426 # Builds the sparc solaris 11 pieces of the image
424 427 # build_image_sparc_11()
425 428 build_image_sparc_11() {
426 429 # Build the solaris pieces of the image
427 430 build_image_solaris
428 431 }
429 432
430 433 # Builds the x86 solaris 11 pieces of the image
431 434 # build_image_x86_11()
432 435 build_image_x86_11() {
433 436 # Build the solaris pieces of the image
434 437 build_image_solaris
435 438 }
|
↓ open down ↓ |
159 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX