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:
@echo "#!/bin/sh" > genhomedircon
@echo >> genhomedircon
@if [ ! -e semodule_path ]; then echo -n "$(USRSBINDIR)/" >> genhomedircon; fi
@if [ -e semodule_path ]; then echo -n "`cat semodule_path`/" >> genhomedircon; fi
@echo "semodule -Bn" >> genhomedircon
@if [ -z "${SEMODULE_PATH}" ]; then \
echo "${USRSBINDIR}/semodule -Bn" >> genhomedircon; \
else \
echo "${SEMODULE_PATH}/semodule -Bn" >> genhomedircon; \
fi
install: all
-mkdir -p $(BINDIR)