在RPM软件包中添加许可协议 [英] Adding License Agreement in RPM package

查看:264
本文介绍了在RPM软件包中添加许可协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在RPM软件包中添加许可协议? 当用户安装RPM时,它会提示您接受用户许可协议.

解决方案

出于技术和用户界面方面的考虑,这是一个糟糕的主意.

不仅因为在安装过程中可能没有显示,而且还因为在安装过程中甚至首次运行时可能没有 user ,或者提取rpm文件的机制可能根本不支持任何方法显示文本或接受输入.

本质上,如果您必须进行此操作,最坏的方法是执行Ignacio建议,这是Sun所做的,并创建无此限制的RPM文件,然后将其放在显示许可证的自解压二进制文件,提示用户,然后解包RPM.本着破坏用户体验的精神,您还将需要类似Sun所创建的一组说明:这是RPM指南中解决此类问题的部分:

该软件包可能不使用交互式 安装前,安装后, 卸载前或卸载后 脚本.不得提示用户 在安装过程中的任何时候, 升级或删除—一切都必须 完全自动化. ( RPM指南,Fedora项目)

请记住,您的用户对您的产品的第一印象可能是:
(来源: virtuatopia.com )

或者这个:

Is it possbile to add License agreement in the RPM package? When user installs the RPM, it should prompt to accept the user license agreement.

解决方案

This is a bad idea for both technical and user-interface reasons.

Not only because there may be no display during install, but also because there may be no user during installation or even first run, or the mechanism for extracting the rpm file may simply not support any method to display text or accept input.

Essentially, if you have to do this, the least worst way is to do Ignacio suggests, which is what Sun do, and create a RPM file with no such restriction, then put it inside a self-extracting binary which displays the license, prompts the user and then unwraps the RPM. In the spirit of ruining the user experience, you will also require a set of instructions like these created by Sun: JRE RPM Installation for Linux.

The correct way of doing this of course is to use the License field and include a file as %doc which contains your licensing terms. This does away with the 'click-through' step, which maybe unacceptable to your lawyers, although it is widely considered to be unenforceable anyway.

This is the section of the RPM guidelines which addresses such things:

The package may not use interactive pre-install, post-install, pre-uninstall, or post-uninstall scripts. The user must not be prompted at anytime during the install, upgrade, or removal — Everything must be completely automated. (RPM Guidelines, Fedora Project)

Remember, the first impression your user will get of your product could be either this:
(source: virtuatopia.com)

or this:

这篇关于在RPM软件包中添加许可协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆