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

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