1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_remove_ifeq_KVER.dpatch by <troyhebe@me>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./Makefile /tmp/dpep-work.EmgC3b/dumputils-0.9.2/Makefile
--- ./Makefile 2005-09-06 11:54:01.000000000 -0600
+++ /tmp/dpep-work.EmgC3b/dumputils-0.9.2/Makefile 2005-09-06 12:21:33.000000000 -0600
@@ -1,6 +1,5 @@
ARCH = $(shell arch | sed 's/i.86/i386/')
KERN = $(shell uname -r)
-KVER = $(shell uname -r | cut -d '.' -f 2)
CFLAGS= -Wall -O -ggdb
DEBUG=
DESTDIR=
@@ -26,44 +25,6 @@
$(INSTALL) -d $(DESTDIR)/usr/share/man/man1
$(INSTALL) -m 544 savedump.1 $(DESTDIR)/usr/share/man/man1
$(INSTALL) -m 544 configdump.1 $(DESTDIR)/usr/share/man/man1
-ifeq ($(KVER),6)
- $(INSTALL) -d $(DESTDIR)/etc/modprobe.d
- $(INSTALL) -m 644 etc.modprobe.d.dumputils $(DESTDIR)/etc/modprobe.d/dumputils
- echo "DUMP_FLAGS=0x80000000" >> $(DESTDIR)/etc/dumputils.conf
- @echo "Creating character special /dev/dump..."
- /bin/rm -f $(DESTDIR)/dev/dump
- /bin/mknod $(DESTDIR)/dev/dump c 10 230
-else
- $(INSTALL) -d $(DESTDIR)/etc/modutils
- $(INSTALL) -m 644 etc.modutils.dumputils $(DESTDIR)/etc/modutils/dumputils
- echo "DUMP_FLAGS=0" >> $(DESTDIR)/etc/dumputils.conf
- @echo "Creating character special /dev/dump..."
- /bin/rm -f $(DESTDIR)/dev/dump
- /bin/mknod $(DESTDIR)/dev/dump c 227 0
-endif
- @echo
- @echo
- @echo
- @echo " ******************************************************************"
- @echo " * I M P O R T A N T "
- @echo " ******************************************************************"
- @echo " * *"
- @echo " * To complete the installation, manual intervention is required! *"
- @echo " * *"
- @echo " * 1. You must manually create the appropriate symbolic link from *"
- @echo " * the appropriate run level to /etc/init.d/dumputils! See the *"
- @echo " * README file for specific information. *"
- @echo " * *"
- @echo " * 2. You must create a link to your dump partition/device. *"
- @echo " * *"
- @echo " * 3. You must configure and enable LKCD by editing *"
- @echo " * /etc/dumputils.conf *"
- @echo " * *"
- @echo " ******************************************************************"
- @echo " * See the README file for more information! *"
- @echo " ******************************************************************"
- @echo
- @echo
uninstall:
rm -f $(DESTDIR)/usr/sbin/savedump
@@ -73,11 +34,6 @@
rm -f $(DESTDIR)/usr/share/man/man1/savedump.1
rm -f $(DESTDIR)/usr/share/man/man1/configdump.1
rm -f $(DESTDIR)/dev/dump
-ifeq ($(KVER),6)
- rm -f $(DESTDIR)/etc/modprobe.d/dumputils
-else
- rm -f $(DESTDIR)/etc/modutils/dumputils
-endif
clean clobber:
rm -f *.o savedump configdump
|