policycoreutils: genhomedircon generation to allow spec file to pass in SEMODULE_PATH
Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
88f2791330
commit
6697e4db8b
|
@ -12,9 +12,11 @@ all: fixfiles genhomedircon chcat
|
||||||
genhomedircon:
|
genhomedircon:
|
||||||
@echo "#!/bin/sh" > genhomedircon
|
@echo "#!/bin/sh" > genhomedircon
|
||||||
@echo >> genhomedircon
|
@echo >> genhomedircon
|
||||||
@if [ ! -e semodule_path ]; then echo -n "$(USRSBINDIR)/" >> genhomedircon; fi
|
@if [ -z "${SEMODULE_PATH}" ]; then \
|
||||||
@if [ -e semodule_path ]; then echo -n "`cat semodule_path`/" >> genhomedircon; fi
|
echo "${USRSBINDIR}/semodule -Bn" >> genhomedircon; \
|
||||||
@echo "semodule -Bn" >> genhomedircon
|
else \
|
||||||
|
echo "${SEMODULE_PATH}/semodule -Bn" >> genhomedircon; \
|
||||||
|
fi
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
-mkdir -p $(BINDIR)
|
-mkdir -p $(BINDIR)
|
||||||
|
|
Loading…
Reference in New Issue