I was wondering what's the proper way to include the (pre and post) (install and uninstall) scripts from a .rpm into a SlackBuild script.
I can see how to include the install scriptlets (preinstall and postinstall).
What about the preuninstall and postuninstall scripts ?
See attached get-rpm-scriptlets.txt (added .txt extension to allow attachment) which can extract the scriptlets from a .rpm file.
Save as get-rpm-scriptlets and set permissions to executable:
mv get-rpm-scriptlets.txt get-rpm-scriptlets
chmod 755 get-rpm-scriptlets
I was able to install the IBM symphony rpm and run the postinstall scriptlet on my Slackware 12.1-ish box and I would like to package it up as a SlackBuild and also include the uninstall and update code from the .rpm file in the SlackBuild Package.
attached: get-rpm-scriptlets.txt ( save as get-rpm-scriptlets )