Dear All
I would like to ask you for some hint\advise.
I have a tar.gz package which contains install script and some binary.
Code:
[server1 ~ ]# tar -tvf package.tar.gz
drwxr-xr-x root/root 0 2018-05-07 15:05 package/
-rw-r--r-- root/root 14 2018-05-07 15:07 package/exec
-rw-r--r-- root/root 5 2018-05-07 15:07 package/install
install script moves
exec binary to
/bin directory and config some stuff for it.
Now i need to build it in RPM. I can create RPM with
install and
exec files. After installing RPM files are placed in
/var/tmp/package/ directory. In post script I can run
/var/tmp/package/install.
I do not need
/var/tmp/package/install file and
/var/tmp/package/ directory so i can remove them in post script.
I know that final
/bin/exec file is not recognized as part of any RPM however i cannot skip install script and just copy exec file directly to
/bin directory.
And now the question: How to deal with following warning during RPM uninstallation:
Quote:
warning: file /var/tmp/package/exec: remove failed: No such file or directory
warning: file /var/tmp/package/install: remove failed: No such file or directory
|
I thought about creating empty files before uninstallation however i do not think that's a good idea.
How would you solve this issue?
Is there any better way to build rpm and keep
install script?
Regards