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

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