没有合适的资源?快使用搜索试试~ 我知道了~
Sun Solaris8 Application Packaging Developer’s Guide-190
需积分: 0 0 下载量 83 浏览量
2023-06-19
14:24:45
上传
评论
收藏 426KB PDF 举报
温馨提示
试读
190页
Sun Solaris8 Application Packaging Developer’s Guide-190
资源推荐
资源详情
资源评论
Application Packaging Developer’s
Guide
Sun Microsystems, Inc.
901 San Antonio Road
Palo Alto, CA 94303-4900
U.S.A.
Part No: 805-6338
February 2000
Copyright 2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California 94303-4900 U.S.A. All rights reserved.
This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and
decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of
Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered
trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, docs.sun.com, AnswerBook, AnswerBook2, SunOS, JumpStart, and Solaris are trademarks, registered
trademarks, or service marks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and
are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks
are based upon an architecture developed by Sun Microsystems, Inc.
The OPEN LOOK and Sun
TM
Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun
acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the
computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s
licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements.
RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227–14(g)(2)(6/87) and
FAR 52.227–19(6/87), or DFAR 252.227–7015(b)(6/95) and DFAR 227.7202–3(a).
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.
Copyright 2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, Californie 94303-4900 Etats-Unis. Tous droits réservés.
Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l’utilisation, la copie, la
distribution, et la décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque
moyen que ce soit, sans l’autorisation préalable et écrite de Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et
qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun.
Des parties de ce produit pourront être dérivées du système Berkeley BSD licenciés par l’Université de Californie. UNIX est une marque
déposée aux Etats-Unis et dans d’autres pays et licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, docs.sun.com, AnswerBook, AnswerBook2, SunOS, JumpStart et Solaris sont des marques de fabrique
ou des marques déposées, ou marques de service, de Sun Microsystems, Inc. aux Etats-Unis et dans d’autres pays. Toutes les marques
SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et
dans d’autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc.
L’interface d’utilisation graphique OPEN LOOK et Sun
TM
a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés.
Sun reconnaît les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d’utilisation visuelle ou
graphique pour l’industrie de l’informatique. Sun détient une licence non exclusive de Xerox sur l’interface d’utilisation graphique Xerox,
cette licence couvrant également les licenciés de Sun qui mettent en place l’interface d’utilisation graphique OPEN LOOK et qui en outre
se conforment aux licences écrites de Sun.
CETTE PUBLICATION EST FOURNIE “EN L’ETAT” ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N’EST ACCORDEE, Y
COMPRIS DES GARANTIES CONCERNANT LA VALEUR MARCHANDE, L’APTITUDE DE LA PUBLICATION A REPONDRE A UNE
UTILISATION PARTICULIERE, OU LE FAIT QU’ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE
GARANTIE NE S’APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU.
Please
Recycle
Contents
Preface ix
1. Designing a Package 1
Where to Find Packaging Tasks 1
What Are Packages? 2
Package Components 2
Required Package Components 3
Optional Package Components 4
Things to Think About Before Building a Package 5
Make Packages Installable Remotely 6
Optimize for Client-Server Configurations 6
Package by Functional Boundaries 6
Package Along Royalty Boundaries 6
Package by System Dependencies 6
Eliminate Overlap in Packages 7
Package Along Localization Boundaries 7
Packaging Commands, Files, and Scripts 7
2. Building a Package 11
The Process of Building a Package Task Map 11
Package Environment Variables 12
Contents iii
General Rules on Using Environment Variables 13
Package Environment Variables Summary 13
Creating a pkginfo File 14
Defining a Package Instance 15
Defining a Package Name (NAME)16
Defining a Package Category (CATEGORY)17
H
How to Create a pkginfo File 17
Organizing a Package’s Contents 18
H
How to Organize A Package’s Contents 18
Creating a prototype File 20
The Format of the prototype File 20
Creating a prototype File From Scratch 26
Creating a prototype File With the pkgproto Command 26
Fine-Tuning a prototype File Created With the pkgproto
Command 27
Adding Functionality to a prototype File 29
H
How to Create a prototype File Using the pkgproto Command 32
Building a Package 34
Using the Simplest pkgmk Command 34
The pkgmap File 35
H
How to Build a Package 35
3. Enhancing the Functionality of a Package 41
Creating Information Files and Installation Scripts Task Map 41
Creating Information Files 43
Defining Package Dependencies 43
H
How to Define Package Dependencies 43
Writing a Copyright Message 46
H
How to Write a Copyright Message 46
iv
Application Packaging Developer’s Guide ♦ February 2000
Reserving Additional Space on a Target System 47
H
How to Reserve Additional Space on a Target System 48
Creating Installation Scripts 49
Script Processing During Package Installation 50
Script Processing During Package Removal 50
Package Environment Variables Available to Scripts 51
Obtaining Package Information for a Script 53
Exit Codes for Scripts 53
Writing a request Script 54
H
How to Write a request Script 55
Gathering Data With the checkinstall Script 56
H
How to Gather File System Data 57
Writing Procedure Scripts 59
H
How to Write Procedure Scripts 60
Writing Class Action Scripts 61
H
How to Write Class Action Scripts 68
4. Verifying and Transferring a Package 71
Verifying and Transferring a Package Task Map 71
Installing Software Packages 72
The Installation Software Database 72
Interacting with the pkgadd Command 73
Installing Packages on Standalones or Servers in a Homogeneous
Environment 73
H
How to Install a Package on a Standalone or Server 74
Verifying the Integrity of a Package 75
H
How to Verify the Integrity of Your Package 75
Displaying Additional Information About Installed Packages 77
The pkgparam Command 77
Contents v
剩余189页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 65
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功