Blame SOURCES/0001-contrib-disable-upstart-kpatch.conf-install.patch

190f5a
From f056d60fb309896a52882fd3fc10fb5305f5a47e Mon Sep 17 00:00:00 2001
190f5a
From: Joe Lawrence <joe.lawrence@redhat.com>
190f5a
Date: Thu, 21 Jun 2018 15:40:20 -0400
190f5a
Subject: [PATCH] contrib: disable upstart kpatch.conf install
190f5a
190f5a
Do not install the upstart configuration file to avoid this rhpkg
190f5a
build complaint:
190f5a
190f5a
  Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/kpatch-0.6.1-1.el7.noarch
190f5a
  error: Installed (but unpackaged) file(s) found:
190f5a
     /etc/init/kpatch.conf
190f5a
      Installed (but unpackaged) file(s) found:
190f5a
     /etc/init/kpatch.conf
190f5a
190f5a
We'll need to think of a better way to do this upstream, but for now,
190f5a
just skip the unneeded file on RHEL.
190f5a
190f5a
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
190f5a
---
190f5a
 contrib/Makefile | 8 ++++----
190f5a
 1 file changed, 4 insertions(+), 4 deletions(-)
190f5a
190f5a
diff --git a/contrib/Makefile b/contrib/Makefile
190f5a
index 0b0eeeb23a56..e873f27d6eae 100644
190f5a
--- a/contrib/Makefile
190f5a
+++ b/contrib/Makefile
190f5a
@@ -6,12 +6,12 @@ install: all
190f5a
 	$(INSTALL) -d $(SYSTEMDDIR)
190f5a
 	$(INSTALL) -m 0644 kpatch.service $(SYSTEMDDIR)
190f5a
 	sed -i 's~PREFIX~$(PREFIX)~' $(SYSTEMDDIR)/kpatch.service
190f5a
-	$(INSTALL) -d $(UPSTARTDIR)
190f5a
-	$(INSTALL) -m 0644 kpatch.conf $(UPSTARTDIR)
190f5a
-	sed -i 's~PREFIX~$(PREFIX)~' $(UPSTARTDIR)/kpatch.conf
190f5a
+#	$(INSTALL) -d $(UPSTARTDIR)
190f5a
+#	$(INSTALL) -m 0644 kpatch.conf $(UPSTARTDIR)
190f5a
+#	sed -i 's~PREFIX~$(PREFIX)~' $(UPSTARTDIR)/kpatch.conf
190f5a
 
190f5a
 uninstall:
190f5a
 	$(RM) $(SYSTEMDDIR)/kpatch.service
190f5a
-	$(RM) $(UPSTARTDIR)/kpatch.conf
190f5a
+#	$(RM) $(UPSTARTDIR)/kpatch.conf
190f5a
 
190f5a
 clean:
190f5a
-- 
190f5a
1.8.3.1
190f5a