RPM

RPMs - faking them
Handy for persuading an installer that something is actually installed. The following recipe creates an RPM that does nothing but fake an RPM installation. Usually you can get away with something like this to install an RPM:

rpm -Uvh --nodeps 

but if an application has an installer that calls RPM directly to see whether something is installed, this might get you over that hurdle. Make sure the corresponding ebuild is installed from Portage!

rpmbuild -ba
 * Create a .spec file in /usr/src/rpm/SPECS/. Then "build" the rpm

rpm -Uvh
 * Watch the output from the above to see where the .rpm is created and then install it

Sample .spec file
Create a .spec file using the following as a template. Set the name and version strings accordingly.

Name: gettext Version: 0.18.1.1 Release: r1 Summary: Use to generate virtual package to fake gettext. Group: Development/Tools License: GPL2 BuildArch: noarch %description Create virtual package specifying gettext as a virtual package. %prep %build %install %files %changelog
 * 1) Provides: