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

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