summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/debianutils/files/debianutils-1.16.7-gentoo.patch')
-rw-r--r--sys-apps/debianutils/files/debianutils-1.16.7-gentoo.patch106
1 files changed, 0 insertions, 106 deletions
diff --git a/sys-apps/debianutils/files/debianutils-1.16.7-gentoo.patch b/sys-apps/debianutils/files/debianutils-1.16.7-gentoo.patch
deleted file mode 100644
index a003edfe201e..000000000000
--- a/sys-apps/debianutils/files/debianutils-1.16.7-gentoo.patch
+++ /dev/null
@@ -1,106 +0,0 @@
-diff -urN debianutils-1.16.7.old/installkernel debianutils-1.16.7/installkernel
---- debianutils-1.16.7.old/installkernel 2002-09-28 12:17:03.000000000 -0700
-+++ debianutils-1.16.7/installkernel 2003-04-03 16:16:55.000000000 -0800
-@@ -33,7 +33,7 @@
- cat "$2" > "$dir/$1-$ver"
-
- if [ -f "$dir/$1" ] ; then
-- if [ -L "$dir/$1" -a $(ls -l "$dir/$1" | awk '{print $11}') \
-+ if [ -L "$dir/$1" -a "$(ls -l "$dir/$1" | awk '{print $11}')" \
- = "$1-$ver" ] ; then
- ln -sf "$1-$ver.old" "$dir/$1.old"
- else
-@@ -53,4 +53,4 @@
- updatever config "$config"
- fi
-
--mkboot -i
-+/usr/sbin/mkboot -i
---- debianutils-1.16.7.old/mkboot 2002-10-16 20:20:42.000000000 -0700
-+++ debianutils-1.16.7/mkboot 2003-04-03 16:16:55.000000000 -0800
-@@ -14,7 +14,18 @@
-
- # check whether GRUB is installed
- grubcheck () {
-- [ $(dpkg -s grub | grep -i ^status: | cut -d ' ' -f 4) = "installed" ]
-+ # Right way in Gentoo to check, but grub is in system profile,
-+ # so rather check for lilo first....
-+ if [ -x /usr/bin/portageq ] ; then
-+ if portageq has_version / "sys-boot/grub" ; then
-+ return 0
-+ elif portageq has_version / "sys-boot/grub-static" ; then
-+ return 0
-+ fi
-+ return 1
-+ else
-+ return 1
-+ fi
- }
-
- # check whether LILO is installed
-@@ -90,7 +90,7 @@
-
- # make a boot disk
- makedisk () {
-- kernel=${1:-/vmlinuz}
-+ kernel=${1:-/boot/vmlinuz}
- if [ ! -r $kernel ] ; then
- echo "Error: Can't read $kernel."
- exit 1
-@@ -96,7 +102,7 @@
- fi
-
- boottype="lilo"
-- if [ $(whoami) != root ] ; then
-+ if [ "$(whoami)" != root ] ; then
- echo "Since you don't have root permissions, I can't put LILO on the diskette."
- echo "I will make a non-LILO diskette instead, but it won't be as useful. You"
- echo "can hit <Ctrl-C> to cancel."
-@@ -146,6 +152,16 @@
- echo "either make a bootable floppy diskette, re-run LILO, or have GRUB"
- echo "installed."
-
-+ lilocheck
-+ if [ $? -eq 0 ] ; then
-+ echo -en "\nShould I run /sbin/lilo? (y/n) "
-+ read input
-+ if [ "$input" = "y" ] ; then
-+ /sbin/lilo && exit 0
-+ echo "There was a problem running /sbin/lilo."
-+ fi
-+ fi
-+
- grubcheck
- if [ $? -eq 0 ] ; then
- echo -e "\nGRUB is installed. To automatically switch to new kernels, point your"
-@@ -153,16 +169,6 @@
- exit 0
- fi
-
-- lilocheck
-- if [ $? -eq 0 ] ; then
-- echo -en "\nShould I run /sbin/lilo? (y/n) "
-- read input
-- if [ "$input" = "y" ] ; then
-- /sbin/lilo && exit 0
-- echo "There was a problem running /sbin/lilo."
-- fi
-- fi
--
- echo -en "\nShould I make a bootdisk? (y/n) "
- read input
- if [ "$input" = "y" ] ; then
---- debianutils-1.16.7.old/run-parts.c 2002-10-16 21:19:37.000000000 -0700
-+++ debianutils-1.16.7/run-parts.c 2003-04-03 16:17:20.000000000 -0800
-@@ -120,7 +120,8 @@
- !fnmatch("*~", c, 0) ||
- !fnmatch("*.pre_fcopy", c, 0) ||
- !fnmatch("*.notslocate", c, 0) ||
-- !fnmatch("*.disabled", c, 0) );
-+ !fnmatch("*.disabled", c, 0) ||
-+ !fnmatch("*.keep", c, 0) );
- }
-
-
---- /usr/sbin/mkboot.orig 2004-10-05 20:12:50.198385480 -0400
-+++ /usr/sbin/mkboot 2004-10-05 20:13:29.477414160 -0400