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:
|
||||
@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)
|
||||
|
|
Loading…
Reference in New Issue