创建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
?