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

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