|
|
The CDMT input files define how the CDMT tools create your custom-installable software distribution.
For each product, you must create three types of CDMT input files:
In
``Example product description file (WServer.prd)'',
the WServer.prd file
describes the product to which the WServer component belongs.
In ``Example component description file (WServer.cmpnt)'', the WServer.cmpnt file describes the WServer component.
In ``Example package description file (WServer.pkg)'', the WServer.pkg file describes some of the packages in the WServer component.
For details on the format of these CDMT input files, see cdmtInput(CDMT).
Create the CDMT input files and place them in
$CDMT_DIR/input.
For example:
$CDMT_DIR/input/WServer.prd
$CDMT_DIR/input/WServer.cmpnt
$CDMT_DIR/input/WServer.pkg
You can also use the cdmtConvert(CDMT) tool to generate the CDMT input files from a list of relative pathnames output from find(C).
Once you create the CDMT input files, you are ready to run the CDMT tools to create and populate the SSO tree. The following examples are product, component, and package description files for the WServer product.
Example product description file (WServer.prd)
PROD:SCO:testProd:
description ="Widget Server"
# $WServer_VER is a CDMT macro defined in the cdmt.config file.
version =$WServer_VER
packages =SCO:WServer
# $WServer_DIR is defined in cdmt.config.
cmpntFiles =$WServer_DIR/input/WServer.cmpnt
Example component description file (WServer.cmpnt)
COMP:SCO:WServer:
description = "Widget Server"
# $WServer_VER is a CDMT macro defined in the cdmt.config file.
version = $WServer_VER
subpackages = WSERVER,EXAMPLES
# $WServer_DIR is defined in cdmt.config.
distTreeRoot = $WServer_DIR
# distTreeRootSHARED specifies where the shared files are located
distTreeRootSHARED = $WServer_DIR
# distTreeRootCLIENT specifies where the non-shared files are located
distTreeRootCLIENT = $WServer_DIR
pkgFiles = $WServer_DIR/input/WServer.pkg
FILE_DEFAULT:
perms = 444
owner = bin
group = bin
DIR_DEFAULT:
perms = 755
owner = bin
group = bin
Example package description file (WServer.pkg)
(This example describes only a few of the packages in the WServer component.)
PKG:Control:
description = "WServer component definition files"
# $WServer_DIR is defined in cdmt.config.
distTreeRoot = $WServer_DIR
# distTreeRootSHARED specifies where the shared files are located
distTreeRootSHARED = $WServer_DIR
# distTreeRootCLIENT specifies where the non-shared files are located
distTreeRootCLIENT = $WServer_DIR
DIR:WSERVER:SHARED:./cntl:
perms = 0755
owner = bin
group = bin
FILE:WSERVER:SHARED:./cntl/ccs:
perms = 0755
owner = bin
group = bin
PKG:WSERVER:
description = "Widget Server"
distTreeRoot = $WServer_DIR
distTreeRootSHARED = $WServer_DIR
distTreeRootCLIENT = $WServer_DIR
DIR:WSERVER:SHARED:./bin:
perms = 0755
owner = bin
group = bin
FILE:WSERVER:SHARED:./bin/xm_wserver:
perms = 0755
owner = bin
group = bin
exportPath = /bin/xm_wserver
DIR:WSERVER:CLIENT:./usr:
perms = 0755
owner = bin
group = bin
DIR:WSERVER:CLIENT:./usr/lib:
perms = 0755
owner = bin
group = bin
DIR:WSERVER:CLIENT:./usr/lib/X11:
perms = 0755
owner = bin
group = bin
DIR:WSERVER:CLIENT:./usr/lib/X11/app-defaults:
perms = 0755
owner = bin
group = bin
FILE:WSERVER:CLIENT:./usr/lib/X11/app-defaults/WServer:
perms = 0444
owner = bin
group = bin
exportPath = ./lib/X11/app-defaults/WServer
.
.
.