LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-07-2009, 07:03 AM   #1
jfb
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
How can I display EULA agreement during package installation (RPM or Debian)


Hi,

I'm using rpm either debian as an installation package for our developed product (multi-targets)
I have to display a EULA (end-user license agreement) during its installation.
How can I design that requirement ?

Thanks

JFB
 
Old 10-07-2009, 08:08 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I assume you build the rpm's your self so just put in a %pre section followed by a bash script. The script will be run before the installation of the rpm itself. So if the EULA is not accepted just bail out.
 
Old 10-13-2009, 07:39 AM   #3
jfb
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jfb View Post
Hi,

I'm using rpm either debian as an installation package for our developed product (multi-targets)
I have to display a EULA (end-user license agreement) during its installation.
How can I design that requirement ?

Thanks

JFB
I agree with Zhijlm, I'm building my own RPM. But I never tried to launch a GUI through a bash script. A terminal-script is not user-friendly...
What do you exactly mean by "...followed by a bash script" ?

Rgds
 
Old 10-13-2009, 08:33 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by jfb View Post
I agree with Zhijlm, I'm building my own RPM. But I never tried to launch a GUI through a bash script. A terminal-script is not user-friendly...
Me neither launched a GUI from a bash script but there sure are ways. Also I never used rpm through a GUI so I'd say the user is on the console anyways and so a terminal-script should be ok. You could also use a ncurses like GUI.

Quote:
Originally Posted by jfb View Post
What do you exactly mean by "...followed by a bash script" ?

Rgds
It's just the way rpm.spec files are build. You start with a %pre section and then write a normal bash script after it. rpm will just run this script when the time comes
example
Code:
%install
%makeinstall

%pre
echo "hello world"

%postun
echo "bye world"
%pre will be run before the package gets installed
%postun would be run when the package gets uninstalled

But while thinking of it the way I suggested won't work cause of the --noscripts options of rpm which just does not run the scripts inside the rpm spec files.

So you gotta find something else. Maybe build a fixed binary that installs all the files once run. Maybe http://docs.fedoraproject.org/drafts...ramming-c.html will evolve.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm - EULA acception orka Programming 2 08-10-2009 01:52 AM
rpm package installation pelagic Linux - Software 3 09-09-2003 02:22 AM
RPM to Debian package davsinc Linux - General 3 01-02-2003 08:33 AM
rpm package installation DaDdY SnEb Linux - Newbie 3 06-19-2002 10:52 AM
RPM Package Installation Pimple Linux - General 5 03-15-2002 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:01 PM.

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
Open Source Consulting | Domain Registration