Quote:
Originally Posted by 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...
|
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
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.