- 论坛徽章:
- 0
|
LZ provides you the right HP document.
It is easy to build a depot package in two steps if you don't have any control script.
Step 1. create a psf file for your package
Here is a psf file called as myutil.psf for myutil I created. All of what you need is just to replace the name of "myutil" to your utility and the company of ABC to your company name.
************* cut here *************************
# PSF which define the myutil product
depot
layout_version 1.0
# Product definition
product
tag myutil
revision 1.2.0
vendor_tag ABC
title ABC HP-UX Myutil Utility Program
copyright "
Myutil Utility Application
Version 1.2.0
(C) COPYRIGHT 2009 ABC Corporation
All Rights Reserved"
readme <Readme # if you have a readme file called as "Readme"
os_name HP-UX
os_release ?.11.*
os_version ?
directory /
is_locatable false
# Utility fileset definitions:
fileset
tag utility
title myutil files
# Utility files:
directory ./=/opt/myutil
file_permissions -m 555 -o bin,2 -g bin,2
file myutil # myutil will be installed in the directory of "/opt/myutil"
file Readme
end
# End product
end
*********** cut here ****************************
Step 2. Run swpackage command to build the package
/usr/sbin/swpackage -x target_type=tape -s ./myutil.psf @ ./myutil.1.2.0.depot |
|