40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
|
From 73f6d5cdb2a4ce78cec6f49517116a3c7616f393 Mon Sep 17 00:00:00 2001
|
||
|
From: Joe Lawrence <joe.lawrence@redhat.com>
|
||
|
Date: Thu, 12 Nov 2020 15:15:47 -0500
|
||
|
Subject: [PATCH] Makefile: set install permission modes
|
||
|
|
||
|
By default, the install command will apply rwxr-xr-x permissions (how
|
||
|
intuitive). Give the command expected file modes to avoid rpmbuild
|
||
|
complaints like this:
|
||
|
|
||
|
*** WARNING: ./usr/lib/python3.9/site-packages/dnf-plugins/kpatch.py is executable but has no shebang, removing executable bit
|
||
|
*** WARNING: ./etc/dnf/plugins/kpatch.conf is executable but has no shebang, removing executable bit
|
||
|
|
||
|
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
|
||
|
---
|
||
|
Makefile | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/Makefile b/Makefile
|
||
|
index fb92d06..77c8eb5 100644
|
||
|
--- a/Makefile
|
||
|
+++ b/Makefile
|
||
|
@@ -23,11 +23,11 @@ all: $(TARGETS)
|
||
|
|
||
|
install: $(TARGETS)
|
||
|
install -d $(MANDIR)
|
||
|
- install man/dnf.kpatch.8.gz $(MANDIR)
|
||
|
+ install -m 644 man/dnf.kpatch.8.gz $(MANDIR)
|
||
|
install -d $(CONFDIR)
|
||
|
- install conf/kpatch.conf $(CONFDIR)
|
||
|
+ install -m 644 conf/kpatch.conf $(CONFDIR)
|
||
|
install -d $(DNFPLUGINDIR)
|
||
|
- install kpatch.py $(DNFPLUGINDIR)
|
||
|
+ install -m 644 kpatch.py $(DNFPLUGINDIR)
|
||
|
|
||
|
%.gz: %
|
||
|
gzip --keep $^
|
||
|
--
|
||
|
2.25.4
|
||
|
|