1 From 27fd1c85ca95b5d66ab0241a08242a75b60b375c Mon Sep 17 00:00:00 2001
2 From: Adam Duskett <Aduskett@gmail.com>
3 Date: Thu, 14 Jul 2016 13:22:57 -0400
4 Subject: [PATCH] Change sepolicy python install arguments to be a variable
6 To allow the python install arguments to be overwritten, change the
7 arguments to be a variable. This also cleans up the DESTDIR detection a
10 Updated to work with version 2.5
12 Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
13 Signed-off-by: Adam Duskett <AdamDuskett@outlook.com>
14 Signed-off-by: Adam Duskett <Aduskett@gmail.com>
16 policycoreutils/sepolicy/Makefile | 5 ++++-
17 1 file changed, 4 insertions(+), 1 deletion(-)
19 diff --git a/sepolicy/Makefile b/sepolicy/Makefile
20 index a16f8de..2013301 100644
21 --- a/sepolicy/Makefile
22 +++ b/sepolicy/Makefile
26 +PYTHON_INSTALL_ARGS ?= --root $(DESTDIR)
29 # Installation directories.
30 PREFIX ?= $(DESTDIR)/usr
31 @@ -32,7 +35,7 @@ test:
32 @$(PYTHON) test_sepolicy.py -v
35 - $(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
36 + $(PYTHON) setup.py install $(PYTHON_INSTALL_ARGS)
37 [ -d $(BINDIR) ] || mkdir -p $(BINDIR)
38 install -m 755 sepolicy.py $(BINDIR)/sepolicy
39 (cd $(BINDIR); ln -sf sepolicy sepolgen)