首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

创设SOLARIS安装包(SRV4格式)

2012-08-08 
创建SOLARIS安装包(SRV4格式)1.? 环境?OS:? Solaris_10_x86_32bits,Pkg:Erlang/OTP R13B03source folder:

创建SOLARIS安装包(SRV4格式)

1.? 环境

?

OS:? Solaris_10_x86_32bits,

Pkg:Erlang/OTP R13B03

source folder: /usr/local

?

?

2. 创建Prototype文件

?

# find /usr/local -print > /tmp/files

?

# cat /tmp/files | pkgproto > /tmp/Prototype

?

查看该文件内容如下:

?

#!/bin/sh#expected_release="5.6"expected_platform="sparc"#release=`uname -r`platform=`uname -p`#if [ ${platform} != ${expected_platform} ]; then    echo "\n\n\n\tThis package must be installed on a ${expected_platform} architecture\n"    echo "\tAborting installation.\n\n\n"    exit 1fi# if [ ${release} != ${expected_release} ]; then#     echo "\n\n\n\tThis package must be installed on a ${expected_release} machine\n"#     echo "\tAborting installation.\n\n\n"#     exit 1# fiexit 0

?

热点排行