Dne 26.12.2010 19:27, Mathias Homann napsal(a):
How about this approach:
- package a txt file with your software containing the license in question (you should contain such a file anyways, it could install into %docdir/%packagename) - write a small script that displays the license and asks for a Y/N - call that script from %pre
the script could later be used in an obs macro so that you would simply call %_confirm_license licensefilename from %pre
Um, no. Please don't use any interactive scripts in any RPM scripts like %pre or %post. That would work when using plain 'rpm' command for installation, but would break when using YaST (no console output in GUI!) or an automatic installation. And zypper has option '--auto-agree-with-licenses' which also wouldn’t work correctly with custom scripts... -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org