2017-10-18 00:32:18 +02:00
|
|
|
From 85763549c53b2907dab094163f1404b2233f8029 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Adam Duskett <Adamduskett@outlook.com>
|
|
|
|
Date: Mon, 9 Oct 2017 16:51:20 -0400
|
|
|
|
Subject: [PATCH] Add DESTDIR to setfiles
|
|
|
|
|
2016-10-25 21:26:03 +02:00
|
|
|
The addition of this patch makes the use of DESTDIR
|
|
|
|
mandatory as there are conditional checks which would fail if it's not
|
|
|
|
defined.
|
|
|
|
|
|
|
|
This patch was updated from the patch provided by Niranjan Reddy to
|
|
|
|
accomodate version 2.5
|
|
|
|
|
|
|
|
Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
|
|
|
|
Signed-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com>
|
|
|
|
Signed-off-by: Adam Duskett <AdamDuskett@outlook.com>
|
2018-10-11 21:37:05 +02:00
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
[Update for 2.8]
|
2016-10-25 21:26:03 +02:00
|
|
|
---
|
2017-10-18 00:32:18 +02:00
|
|
|
setfiles/Makefile | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2016-10-25 21:26:03 +02:00
|
|
|
|
|
|
|
diff --git a/setfiles/Makefile b/setfiles/Makefile
|
2017-10-18 00:32:18 +02:00
|
|
|
index c08e2dd..36c0638 100644
|
2016-10-25 21:26:03 +02:00
|
|
|
--- a/setfiles/Makefile
|
|
|
|
+++ b/setfiles/Makefile
|
2017-10-18 00:32:18 +02:00
|
|
|
@@ -3,7 +3,7 @@ PREFIX ?= $(DESTDIR)/usr
|
2018-10-11 21:37:05 +02:00
|
|
|
PREFIX ?= /usr
|
|
|
|
SBINDIR ?= /sbin
|
2016-10-25 21:26:03 +02:00
|
|
|
MANDIR = $(PREFIX)/share/man
|
2017-10-18 00:32:18 +02:00
|
|
|
-AUDITH ?= $(shell test -f /usr/include/libaudit.h && echo y)
|
2018-10-11 21:37:05 +02:00
|
|
|
+AUDITH ?= $(shell test -f $(DESTDIR)$(PREFIX)/include/libaudit.h && echo y)
|
2016-10-25 21:26:03 +02:00
|
|
|
|
|
|
|
ABORT_ON_ERRORS=$(shell grep "^\#define ABORT_ON_ERRORS" setfiles.c | awk -S '{ print $$3 }')
|
|
|
|
|
|
|
|
--
|
2017-10-18 00:32:18 +02:00
|
|
|
2.13.6
|
2016-10-25 21:26:03 +02:00
|
|
|
|