Not much here at present, most of my hacks are too frightening to release on an unsuspecting public.
One that is useful is a script to create a custom rpm build environment in a users home directory.
This allows rpms to be built by mortal users.
Mike Harris of Red Hat wrote the original .rpmmacros and .rpmrc
files. I simply edited them to suit my needs, and created the rpmsetup.sh script to automate directory creation and installation.
Simply download the rpm_environment.tar.gz file to your home directory:
%debug_package %{nil}%_missing_doc_files_terminate_build 0
%_unpackaged_files_terminate_build 0
A set of scripts to create an updated set of rpm files which can be used to create updated installation CDs for Red Hat Linux. These scripts simply update the rpm build tree, regenerate the hard drive lists, and create updated ISO images. Most useful when there are only a few updates, and there is no need to completely rebuild the installation media.
A set of scripts to rebuild the Red Hat install media. May be used to generate completely rebuilt installer images, including updated RPM files. These scripts generate new boot images, run split distro, create new hdlist files, etc. Use these to rebuild the installer from the ground up.
Lost your rpm database? If so, recover_rpm_db.sh might be able to help. Recent versions of rpm install a cron job that runs daily to create a list of installed rpms in /var/log/rpmpkgs. This script uses that file, or any other file containing a list of rpms, to rebuild a new rpm database. Simply run the script with arguments of -f {file_containing_rpm_list} -p {path(s)_containing_packages.rpm} (Multiple paths may be searched by providing a space seperated list of search paths.)
This script is intended for disaster recovery only.
If the existing rpm database is corrupt, or if you intend to rebuild the database completely, you may want to reinitialize the database first by running 'rpm --initdb'