Add WITH_SMACK option to switch smack feature during compile time.
- If WITH_SMACK is 1, systemd requires SMACK feature for security.
- If WITH_SMACK is 0, systemd doesn't require SMACK feature.
Change-Id: If4a4a6f24d9f34b4cb44b28324341d46f2193d9f
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
%define WITH_DOC 0
%define WITH_HOSTNAMED 0
%define WITH_VIRT 1
+%define WITH_SMACK 1
%define build_dir _build
%define dbuspolicydir %{_datadir}/dbus-1
%define _vpath_builddir %{build_dir}
%meson \
-Dkdbus=true \
+%if ! 0%{?WITH_SMACK}
+ -Dsmack=false \
+%endif
%if ! 0%{?WITH_VIRT}
-Dvirt=false \
%endif
-Drpmmacrosdir=%{_sysconfdir}/rpm/ \
-Dsysvinit-path="" \
-Dsysvrcnd-path="" \
+%if 0%{?WITH_SMACK}
-Dsmack-run-label=System::Privileged \
+%endif
-Dinstall-tests=true \
-Ddefault-hierarchy=legacy \
-Db_pie=true