1From 85763549c53b2907dab094163f1404b2233f8029 Mon Sep 17 00:00:00 2001
2From: Adam Duskett <aduskett@gmail.com>
3Date: Mon, 9 Oct 2017 16:51:20 -0400
4Subject: [PATCH] Add DESTDIR to setfiles
5
6The addition of this patch makes the use of DESTDIR
7mandatory as there are conditional checks which would fail if it's not
8defined.
9
10This patch was updated from the patch provided by Niranjan Reddy to
11accomodate version 2.5
12
13Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
14Signed-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com>
15Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
16[Update for 2.8]
17Signed-off-by: Adam Duskett <aduskett@gmail.com>
18[Update for 3.2]
19---
20 setfiles/Makefile | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/setfiles/Makefile b/setfiles/Makefile
24index a3bbbe1..df675cf 100644
25--- a/setfiles/Makefile
26+++ b/setfiles/Makefile
27@@ -3,7 +3,7 @@ LINGUAS ?= ru
28 PREFIX ?= /usr
29 SBINDIR ?= /sbin
30 MANDIR = $(PREFIX)/share/man
31-AUDITH ?= $(shell test -f /usr/include/libaudit.h && echo y)
32+AUDITH ?= $(shell test -f $(DESTDIR)$(PREFIX)/include/libaudit.h && echo y)
33
34 CFLAGS ?= -g -Werror -Wall -W
35 override LDLIBS += -lselinux -lsepol
36--
372.13.6
38
39