Blame SOURCES/0003-RH-Make-build-system-RH-Fedora-friendly.patch

f20720
From f5e11246063b07d6dce6d37d3b74662475baa981 Mon Sep 17 00:00:00 2001
f20720
From: Fabio M. Di Nitto <fdinitto@redhat.com>
f20720
Date: Thu, 15 Oct 2009 04:39:27 +0200
f20720
Subject: [PATCH 08/12] RH: Make build system RH/Fedora friendly
f20720
f20720
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
f20720
---
f20720
:100644 100644 7ec25d5... 06fb625... M	Makefile.inc
f20720
:100644 100644 21e4ad4... 06d79c0... M	kpartx/Makefile
f20720
:100644 100644 32d9ef5... 25e1483... M	multipathd/Makefile
f20720
 Makefile.inc             |    2 +-
f20720
 kpartx/Makefile          |   10 +++++-----
f20720
 libmpathpersist/Makefile |    7 ++-----
f20720
 libmultipath/Makefile    |    2 ++
f20720
 multipathd/Makefile      |    1 +
f20720
 5 files changed, 11 insertions(+), 11 deletions(-)
f20720
f20720
Index: multipath-tools-130222/Makefile.inc
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/Makefile.inc
f20720
+++ multipath-tools-130222/Makefile.inc
f20720
@@ -29,7 +29,7 @@ multipathdir = $(TOPDIR)/libmultipath
f20720
 mandir      = $(prefix)/usr/share/man/man8
f20720
 man5dir     = $(prefix)/usr/share/man/man5
f20720
 man3dir      = $(prefix)/usr/share/man/man3
f20720
-rcdir	    = $(prefix)/etc/init.d
f20720
+rcdir	    = $(prefix)/etc/rc.d/init.d
f20720
 syslibdir   = $(prefix)/$(LIB)
f20720
 libdir	    = $(prefix)/$(LIB)/multipath
f20720
 unitdir     = $(prefix)/lib/systemd/system
f20720
Index: multipath-tools-130222/kpartx/Makefile
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/kpartx/Makefile
f20720
+++ multipath-tools-130222/kpartx/Makefile
f20720
@@ -26,17 +26,17 @@ $(EXEC): $(OBJS)
f20720
 install: $(EXEC) $(EXEC).8
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir)
f20720
 	$(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)
f20720
-	$(INSTALL_PROGRAM) -d $(DESTDIR)$(libudevdir)
f20720
-	$(INSTALL_PROGRAM) -m 755 kpartx_id $(DESTDIR)$(libudevdir)
f20720
-	$(INSTALL_PROGRAM) -d $(DESTDIR)/etc/udev/rules.d
f20720
-	$(INSTALL_PROGRAM) -m 644 kpartx.rules $(DESTDIR)/etc/udev/rules.d/
f20720
+#	$(INSTALL_PROGRAM) -d $(DESTDIR)$(libudevdir)
f20720
+#	$(INSTALL_PROGRAM) -m 755 kpartx_id $(DESTDIR)$(libudevdir)
f20720
+#	$(INSTALL_PROGRAM) -d $(DESTDIR)/etc/udev/rules.d
f20720
+#	$(INSTALL_PROGRAM) -m 644 kpartx.rules $(DESTDIR)/etc/udev/rules.d/
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(mandir)
f20720
 	$(INSTALL_PROGRAM) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
f20720
 
f20720
 uninstall:
f20720
 	rm -f $(DESTDIR)$(bindir)/$(EXEC)
f20720
 	rm -f $(DESTDIR)$(mandir)/$(EXEC).8.gz
f20720
-	rm -f $(DESTDIR)$(libudevdir)/kpartx_id
f20720
+#	rm -f $(DESTDIR)$(libudevdir)/kpartx_id
f20720
 
f20720
 clean:
f20720
 	rm -f core *.o $(EXEC) *.gz
f20720
Index: multipath-tools-130222/multipathd/Makefile
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/multipathd/Makefile
f20720
+++ multipath-tools-130222/multipathd/Makefile
f20720
@@ -35,6 +35,7 @@ install:
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir)
f20720
 	$(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(rcdir)
f20720
+	$(INSTALL_PROGRAM) -m 755 multipathd.init.redhat $(DESTDIR)$(rcdir)/$(EXEC)
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(unitdir)
f20720
 	$(INSTALL_PROGRAM) -m 644 $(EXEC).service $(DESTDIR)$(unitdir)
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(mandir)
f20720
Index: multipath-tools-130222/libmultipath/Makefile
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/libmultipath/Makefile
f20720
+++ multipath-tools-130222/libmultipath/Makefile
f20720
@@ -46,9 +46,11 @@ install:
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(syslibdir)
f20720
 	$(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(syslibdir)/$(LIBS)
f20720
 	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir)
f20720
+	ln -sf $(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB)
f20720
 
f20720
 uninstall:
f20720
 	rm -f $(DESTDIR)$(syslibdir)/$(LIBS)
f20720
+	rm -f $(DESTDIR)$(syslibdir)/$(DEVLIB)
f20720
 
f20720
 clean:
f20720
 	rm -f core *.a *.o *.gz *.so *.so.*
f20720
Index: multipath-tools-130222/libmpathpersist/Makefile
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/libmpathpersist/Makefile
f20720
+++ multipath-tools-130222/libmpathpersist/Makefile
f20720
@@ -28,17 +28,14 @@ $(LIBS):
f20720
 install: $(LIBS)
f20720
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(syslibdir)
f20720
 	$(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(syslibdir)/$(LIBS)
f20720
-	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(syslibdir)
f20720
 	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(man3dir)
f20720
-	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)/usr/include/
f20720
-	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)/usr/share/doc/mpathpersist/
f20720
-	ln -sf $(DESTDIR)$(syslibdir)/$(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB)
f20720
+	ln -sf $(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB)
f20720
 	install -m 644 mpath_persistent_reserve_in.3.gz $(DESTDIR)$(man3dir)	
f20720
 	install -m 644 mpath_persistent_reserve_out.3.gz $(DESTDIR)$(man3dir)	
f20720
-	install -m 644 mpath_persist.h $(DESTDIR)/usr/include/
f20720
 
f20720
 uninstall:
f20720
 	rm -f $(DESTDIR)$(syslibdir)/$(LIBS)
f20720
+	rm -f $(DESTDIR)$(syslibdir)/$(DEVLIB)
f20720
 	rm $(DESTDIR)$(mandir)/mpath_persistent_reserve_in.3.gz	
f20720
 	rm $(DESTDIR)$(mandir)/mpath_persistent_reserve_out.3.gz	
f20720