forked from pool/pesign
a886b9fdba
set the rpm macro directory at build time (boo#1185663) OBS-URL: https://build.opensuse.org/request/show/890939 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign?expand=0&rev=58
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
diff --git a/Make.defaults b/Make.defaults
|
|
index 2d18005..7ecba00 100644
|
|
--- a/Make.defaults
|
|
+++ b/Make.defaults
|
|
@@ -11,6 +11,7 @@ includedir ?= $(prefix)include/
|
|
bindir ?= $(prefix)bin/
|
|
pcdir ?= $(libdir)pkgconfig/
|
|
docdir ?= $(prefix)share/doc/
|
|
+rpmmacrodir ?= /etc/rpm/
|
|
DESTDIR ?=
|
|
INSTALLROOT = $(DESTDIR)
|
|
|
|
diff --git a/src/Makefile b/src/Makefile
|
|
index 5fb2841..ca546a3 100644
|
|
--- a/src/Makefile
|
|
+++ b/src/Makefile
|
|
@@ -90,8 +90,8 @@ install :
|
|
$(INSTALL) -m 644 pesigcheck.1 $(INSTALLROOT)$(mandir)man1/
|
|
$(INSTALL) -m 644 authvar.1 $(INSTALLROOT)$(mandir)man1/
|
|
$(INSTALL) -m 644 efisiglist.1 $(INSTALLROOT)$(mandir)man1/
|
|
- $(INSTALL) -d -m 755 $(INSTALLROOT)/etc/rpm/
|
|
- $(INSTALL) -m 644 macros.pesign $(INSTALLROOT)/etc/rpm/
|
|
+ $(INSTALL) -d -m 755 $(INSTALLROOT)$(rpmmacrodir)
|
|
+ $(INSTALL) -m 644 macros.pesign $(INSTALLROOT)$(rpmmacrodir)
|
|
$(INSTALL) -d -m 755 $(INSTALLROOT)$(libexecdir)/pesign/
|
|
$(INSTALL) -m 750 pesign-authorize $(INSTALLROOT)$(libexecdir)/pesign/
|
|
$(INSTALL) -d -m 700 $(INSTALLROOT)/etc/pesign
|