File libhbalinux-remove-install-data-hook of Package libhbalinux2
From 56559ee5a001ee9f6a9a5fb8abbd7f80c4ced3bc Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Fri, 13 Sep 2013 08:37:05 +0200
Subject: [PATCH] Remove install-data-hook from Makefile.am
During build we should not install /etc/hba.conf; that will be
done later during post-install.
Signed-off-by: Hannes Reinecke <hare@suse.de>
diff --git a/Makefile.am b/Makefile.am
index 1349e7b..7c5ac14 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,23 +12,3 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libhbalinux.pc
dist_noinst_DATA = README COPYING INSTALL libhbalinux.pc.in libhbalinux.spec
-
-install-data-hook: libhbalinux.la
- . $${PWD}/$<; \
- ORG=org.open-fcoe.libhbalinux; \
- LIB=${libdir}/$${dlname}; \
- STR="$$ORG $$LIB"; \
- CONF=${sysconfdir}/hba.conf; \
- if test -f $$CONF; then \
- grep -E -q ^[[:space:]]*$$ORG[[:space:]]+$$LIB $$CONF; \
- if test $$? -ne 0; then \
- echo $$STR >> $$CONF; \
- else \
- echo "** $$CONF already configured"; \
- echo "** system configuration not updated"; \
- fi; \
- else \
- echo "** WARNING: $$CONF does not exist"; \
- echo "** system configuration not updated"; \
- fi
-