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:
Dan Walsh 2013-01-28 14:36:22 -05:00 committed by Eric Paris
parent 88f2791330
commit 6697e4db8b
1 changed files with 5 additions and 3 deletions

View File

@ -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)