Package: rinse Version: 1.8.1-1 Dear Colleagues,
please find attached a source patch against rinse version 1.8.1 for adding support of Redhat Enterprise Linux 5. Please be aware, there are afaik no public yum repositories for RHEL5 right now, so you have to adjust the repository urls in /etc/rinse/rinse.conf to match your needs. Regards, \sh
diff -ruN rinse-1.8.1/etc/rhel-5.packages rinse-1.8.2/etc/rhel-5.packages --- rinse-1.8.1/etc/rhel-5.packages 1970-01-01 00:00:00.000000000 +0000 +++ rinse-1.8.2/etc/rhel-5.packages 2011-07-07 11:40:15.847256708 +0000 @@ -0,0 +1,86 @@ +# +# Packages which we'll need to download for a minimal installation +# RHEL 5 +# + + +MAKEDEV +SysVinit +audit-libs +basesystem +bash +beecrypt +bzip2-libs +redhat-release +coreutils +cracklib +cracklib-dicts +db4 +device-mapper +e2fsprogs +elfutils-libelf +e2fsprogs-libs +ethtool +expat +filesystem +findutils +gawk +gdbm +glib2 +glibc +glibc-common +grep +info +initscripts +iproute +iputils +krb5-libs +libacl +libattr +libcap +libgcc +libidn +libselinux +libsepol +libstdc++ +libsysfs +libtermcap +libxml2 +libxml2-python +mcstrans +mingetty +mktemp +module-init-tools +ncurses +neon +net-tools +nss +nspr +openssl +pam +pcre +popt +procps +psmisc +python +python-libs +python-elementtree +python-sqlite +python-urlgrabber +python-iniparse +readline +rpm +rpm-libs +rpm-python +sed +setup +shadow-utils +sqlite +sysklogd +termcap +tzdata +udev +util-linux +yum +yum-metadata-parser +zlib diff -ruN rinse-1.8.1/etc/rinse.conf rinse-1.8.2/etc/rinse.conf --- rinse-1.8.1/etc/rinse.conf 2011-06-06 08:10:54.000000000 +0000 +++ rinse-1.8.2/etc/rinse.conf 2011-07-07 11:30:15.000000000 +0000 @@ -19,6 +19,11 @@ mirror = http://mirror.bytemark.co.uk/centos/5/os/i386/CentOS/ mirror.amd64 = http://mirror.bytemark.co.uk/centos/5/os/x86_64/CentOS/ +# RedHat Enterprise Linux 5 (RHEL-5) +[rhel-5] +mirror = http://your.mirror.to.rhel5.repository.here/rhel/5/i386/Server/ +mirror.amd64 = http://your.mirror.to.rhel5.repository.here/rhel/5/x86_64/Server/ + # Scientific Linux CERN 5 (SLC-5) [slc-5] diff -ruN rinse-1.8.1/scripts/rhel-5/post-install.sh rinse-1.8.2/scripts/rhel-5/post-install.sh --- rinse-1.8.1/scripts/rhel-5/post-install.sh 1970-01-01 00:00:00.000000000 +0000 +++ rinse-1.8.2/scripts/rhel-5/post-install.sh 2011-07-07 11:37:46.000000000 +0000 @@ -0,0 +1,69 @@ +#!/bin/sh +# +# + + +prefix=$1 + +if [ ! -d "${prefix}" ]; then + echo "Serious error - the named directory doesn't exist." + exit +fi + +# +# 1. Make sure there is a resolv.conf file present, such that +# DNS lookups succeed. +# +echo " Creating resolv.conf" +if [ ! -d "${prefix}/etc/" ]; then + mkdir -p "${prefix}/etc/" +fi +cp /etc/resolv.conf "${prefix}/etc/" + + +# +# 3.5 BUGFIX: +echo "BUGFIX" +mkdir -p ${prefix}/usr/lib/python2.4/site-packages/urlgrabber.skx +for i in ${prefix}/usr/lib/python2.4/site-packages/urlgrabber/keepalive.*; do + mv $i ${prefix}/usr/lib/python2.4/site-packages/urlgrabber.skx/ +done + +# +# 4. Run "yum install yum". +# +echo " Mounting /proc" +if [ ! -d "${prefix}/proc" ]; then + mkdir -p "${prefix}/proc" +fi +mount -o bind /proc ${prefix}/proc + +echo " Bootstrapping yum" +chroot ${prefix} /usr/bin/yum -y install yum 2>/dev/null +chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null +chroot ${prefix} /usr/bin/yum -y install dhclient 2>/dev/null + +# +# 4.5 make 'passwd' work. +# +echo " Authfix" +chroot ${prefix} /usr/bin/yum -y install authconfig +chroot ${prefix} /usr/bin/authconfig --enableshadow --update + +# +# 5. Clean up +# +echo " Cleaning up" +chroot ${prefix} /usr/bin/yum clean all +umount ${prefix}/proc + + +# +# 6. Remove the .rpm files from the prefix root. +# +echo " Final tidy..." +for i in ${prefix}/*.rpm; do + rm -f $i +done +find ${prefix} -name '*.rpmorig' -delete +find ${prefix} -name '*.rpmnew' -delete