LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2011, 03:51 PM   #1
dschulz
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Wink making the user acknowledge a license agreement with rpm


Recently, we have been told that we need the customer to simply acknowlege a software license agreement. NOT necessarily display it. INSTALLP with AIX has an OPTION that sort of does this, and like a SPEC file for RPM, the TPL file for mkinstallp must contain a line for this also. It is my understanding that we would need a PRe section of the SPEC file to do this ....

thx,

Dick Schulz, IBM Charlotte
 
Old 03-02-2011, 04:52 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,504

Rep: Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992Reputation: 3992
Quote:
Originally Posted by dschulz View Post
Recently, we have been told that we need the customer to simply acknowlege a software license agreement. NOT necessarily display it. INSTALLP with AIX has an OPTION that sort of does this, and like a SPEC file for RPM, the TPL file for mkinstallp must contain a line for this also. It is my understanding that we would need a PRe section of the SPEC file to do this ....

thx,

Dick Schulz, IBM Charlotte
Spell your words out, please.

And yes, you already stated the solution, which is a PRE command in the RPM. The "pre" can be a script that you write, which will be run before package installation takes place. If you write the script correctly, the user will have to either say YES or NO. If no, obviously, then abort...if yes, continue and install.

And surely IBM has lots of Linux resources in house to pull this from, as I've seen other RPM's shipped out by IBM that have a license agreement on them already....
 
1 members found this post helpful.
Old 03-29-2011, 10:48 AM   #3
dschulz
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Does anyone have a quick example of what the lincs in the template file should be for mkinstallp? Obviously, License agreement acceptance required: Y should be a line. I assume that: Name of license agreement: should be the actual path that is used by INSTALLP to install the license agreement file:

exmp: /usr/swlag/en_US/<product name>.la

Now the tricky part: Include license files in this package: (Y or N)

If N, then I assume that the Licese file is installed in a separate fileset named something like: <product name>.license

If Y, then I assume that the path above: /usr/swlag/en_US/<license file name> must be in the USRFiles section of your product package.

any examples would be helpful
 
Old 03-29-2011, 11:12 AM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,088

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by dschulz View Post
Dick Schulz, IBM Charlotte
For reals? One of the resources I used when learning to build rpms was articles on the IBM website. If I worked for IBM I wouldn't say so when asking for help on a Linux forum. Anyway...

The flash-player package in openSUSE makes you accept a license agreement before installing. So you could grab a copy of the relevant src.rpm from http://software.opensuse.org/search and inspect it's contents to see how they do it.

The openSUSE package manager, zypper, has an option (-l) where it automatically accepts any software licenses. Which means you can install packages which ask you to accept a license without even being aware that they do so.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
java install not showing license agreement moxieman99 Fedora 9 08-17-2010 08:15 PM
auto scroll license agreement in bash doronunu Linux - General 2 12-27-2007 01:22 AM
License agreement - violation? Acrobat. kaz2100 Linux - Software 4 08-23-2007 06:41 PM
LXer: How to Write an End User License Agreement LXer Syndicated Linux News 0 05-09-2007 10:46 AM
license agreement in linux sailu_mvn General 65 01-10-2006 03:55 PM


All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration