Sebastian Bargmann <not.DeleteThis@this.place> wrote:
>
> Now, I'd like my rpm package to just include these two files. When
> installing, it should extract the two files to some temporary directory and
> run the above mentioned configuration script. On completion it should delete
> the files from the temp dir.
>
> Is that possible or just a plain stupid way to "bend" RPM?
It is possible, even trivially easy if you will look how rpm packages
are put together, but it does not buy very much. After you installed
such package then 'rpm -V that_package' check will tell you that
everything installed is "missing" and every integrity verification will
list that as "broken". You just removed all what you installed and it
does not sound that you plan to hack with %{ghost} files. So what you
gained? A record that something like that is installed and maybe some
(weak) dependencies check. Are such results worth to bother? If yes
then start reading documentation.
http://docs.fedoraproject.org/drafts/rpm-guide-en/
LSB compliant distros will not have %{_initrddir} all over the place.
Michal