免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5053 | 回复: 11
打印 上一主题 下一主题

关于depot安装包的制作,焦头烂额,请教各位了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-18 16:17 |只看该作者 |倒序浏览
我编译好了一个程序,想作成一个depot为后缀的一个安装文件,执行这个安装包后,可以在本地机器上设置几个目录,并把程序和配置文件等放入其中。

本以为很容易,结果查找了整整一天的资料都没有搞定。

因为我用swpackage 命令打包时,是需要制定打包到那个软件仓库里去的,指定好软件仓库后,并没有生产.depot文件啊?到底怎样才能生成.depot呢?

论坛徽章:
5
CU大牛徽章
日期:2013-09-18 15:16:55CU大牛徽章
日期:2013-09-18 15:18:22CU大牛徽章
日期:2013-09-18 15:18:432015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
2 [报告]
发表于 2009-09-18 16:30 |只看该作者
不懂

论坛徽章:
0
3 [报告]
发表于 2009-09-18 16:36 |只看该作者
因为depot文件就是tar文件,那么我想,是不是自己将软件仓库打包成tar再改一下名字就行了呢?试试看吧。软件仓库的概念不太容易理解,里面还包括了产品,字产品,软件包,文件集和文件等,搞不清楚是什么东西。

干嘛弄这么麻烦,rpm不久挺好的嘛。

论坛徽章:
0
4 [报告]
发表于 2009-09-18 16:45 |只看该作者
官网有介绍,搜索一下吧。

论坛徽章:
0
5 [报告]
发表于 2009-09-18 16:48 |只看该作者
官网的介绍我已经看了整整一天了,东西是很多,可是我就是不知道该怎样生产。depot文件。

倒是从里面找到了一句话:
软件包(可选)只有 HP 工厂才能提供软件包。不支持客户对软件包打包。

莫非,用户是不可以制作软件包的?
该死,到底什么是软件包!

论坛徽章:
0
6 [报告]
发表于 2009-09-18 22:43 |只看该作者
原帖由 sirdan 于 2009-9-18 16:48 发表
官网的介绍我已经看了整整一天了,东西是很多,可是我就是不知道该怎样生产。depot文件。

倒是从里面找到了一句话:
软件包(可选)只有 HP 工厂才能提供软件包。不支持客户对软件包打包。

莫非,用户是 ...



是那个Software Distributor Administration Guide么?(HP Part Number: 5992-4826) chapter 10

看了几眼,够复杂……看完会觉得还是做个tar包省事

论坛徽章:
0
7 [报告]
发表于 2009-09-19 05:20 |只看该作者
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

论坛徽章:
0
8 [报告]
发表于 2009-09-19 13:18 |只看该作者
不错不错。

论坛徽章:
0
9 [报告]
发表于 2009-09-19 21:50 |只看该作者
有点类似于Solaris 下面的打包工具

论坛徽章:
0
10 [报告]
发表于 2009-09-24 09:05 |只看该作者

非常感谢

原帖由 sun_up 于 2009-9-19 05:20 发表
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 fi ...


真的非常非常非常感谢你,一句感谢根本表达不了我的感激之情。
thank you very much!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP