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

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

问题描述

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

解决方案

从技术和用户界面的角度来看,这都是一个坏主意.

不仅因为安装时可能没有显示,而且可能在安装甚至第一次运行时没有用户,或者解压rpm文件的机制可能根本不支持任何方法显示文本或接受输入.

基本上,如果您必须这样做,最糟糕的方法是按照 Ignacio 的建议,这就是 Sun 所做的,并创建一个没有此类限制的 RPM 文件,然后将其放入显示许可证、提示用户然后解包 RPM 的自解压二进制文件.本着破坏用户体验的精神,您还需要一组类似 Sun 创建的指令:
(来源:
(来源:flickr.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:


(source: flickr.com)

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

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