Updated rpm.macros

This commit is contained in:
Lukas Vrabec 2018-02-05 17:01:34 +01:00
parent 4b0a66cafc
commit 4caea74068

View File

@ -108,7 +108,7 @@ if [ -z "${_policytype}" ]; then \
fi \ fi \
LOCAL_MODIFICATIONS=$(semanage boolean -E) \ LOCAL_MODIFICATIONS=$(semanage boolean -E) \
if [ ! -f %_file_custom_defined_booleans ]; then \ if [ ! -f %_file_custom_defined_booleans ]; then \
echo "# This file is managed by macros.selinux-policy. Do not edit it manually" > %_file_custom_defined_booleans \ /bin/echo "# This file is managed by macros.selinux-policy. Do not edit it manually" > %_file_custom_defined_booleans \
fi \ fi \
semanage_import='' \ semanage_import='' \
for boolean in %*; do \ for boolean in %*; do \
@ -132,7 +132,7 @@ done; \
if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \
/bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" \
else \ else \
echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype} -N" \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype} -N" \
fi \ fi \
%{nil} %{nil}
@ -157,6 +157,6 @@ done; \
if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \
/bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" \
else \ else \
echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype} -N" \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype} -N" \
fi \ fi \
%{nil} %{nil}