INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/security-config.conf DESTINATION /usr/lib/tmpfiles.d/)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/90_user-content-permissions.post DESTINATION ${SYSCONF_INSTALL_DIR}/gumd/useradd.d)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/91_user-dbspace-permissions.post DESTINATION ${SYSCONF_INSTALL_DIR}/gumd/useradd.d)
+
+IF("${PROFILE}" STREQUAL "mobile" OR "${PROFILE}" STREQUAL "wearable")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/smack/onlycap DESTINATION /etc/smack)
-IF(NOT "${PROFILE}" STREQUAL "tv")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/smack/smack_default_labeling DESTINATION /usr/share/security-config)
ENDIF()
-IF("${ARCH}" STREQUAL "arm" OR "${ARCH}" STREQUAL "aarch64")
- IF("${PROFILE}" STREQUAL "mobile")
- INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/service_list/target/mobile/service_daemon_list DESTINATION /usr/share/security-config)
- ELSEIF("${PROFILE}" STREQUAL "wearable")
- INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/service_list/target/wearable/service_daemon_list DESTINATION /usr/share/security-config)
- ENDIF()
-ENDIF()
-
IF("${ARCH}" STREQUAL "i386" OR "${ARCH}" STREQUAL "x86_64")
IF("${PROFILE}" STREQUAL "mobile")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/service_list/emulator/mobile/service_daemon_list DESTINATION /usr/share/security-config)
ELSEIF("${PROFILE}" STREQUAL "wearable")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/service_list/emulator/wearable/service_daemon_list DESTINATION /usr/share/security-config)
ENDIF()
+ELSE("${ARCH}" STREQUAL "i386" OR "${ARCH}" STREQUAL "x86_64")
+ IF("${PROFILE}" STREQUAL "mobile")
+ INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/service_list/target/mobile/service_daemon_list DESTINATION /usr/share/security-config)
+ ELSEIF("${PROFILE}" STREQUAL "wearable")
+ INSTALL(FILES ${CMAKE_SOURCE_DIR}/config/service_list/target/wearable/service_daemon_list DESTINATION /usr/share/security-config)
+ ENDIF()
ENDIF()
INSTALL(FILES
)
ADD_SUBDIRECTORY(test)
-IF(NOT "${PROFILE}" STREQUAL "tv")
+IF("${PROFILE}" STREQUAL "mobile" OR "${PROFILE}" STREQUAL "wearable")
ADD_SUBDIRECTORY(systemd)
ENDIF()
cp LICENSE %{buildroot}%{_datadir}/license/security-config
%make_install
-%if "%{?profile}" != "tv"
+%if ("%{?profile}" == "mobile" || "%{?profile}" == "wearable")
mkdir -p %{buildroot}/%{_unitdir}/multi-user.target.wants
ln -s ../%{name}.service %{buildroot}/%{_unitdir}/multi-user.target.wants/%{name}.service
%endif
%manifest %{_datadir}/%{name}.manifest
%{_datadir}/license/%{name}
%defattr(-,root,root,-)
-%attr(644,root,root) /etc/smack/onlycap
%attr(755,root,root) /usr/share/security-config/group_id_setting
%attr(755,root,root) /usr/share/security-config/set_label
%attr(755,root,root) /usr/share/security-config/set_capability
%attr(755,root,root) /usr/share/security-config/test/security_mount_option_test/*
%attr(755,root,root) %{_sysconfdir}/gumd/useradd.d/90_user-content-permissions.post
%attr(755,root,root) %{_sysconfdir}/gumd/useradd.d/91_user-dbspace-permissions.post
-%if "%{?profile}" != "tv"
+%if ("%{?profile}" == "mobile" || "%{?profile}" == "wearable")
+%attr(755,root,root) /usr/share/security-config/service_daemon_list
%attr(-,root,root) %{_unitdir}/security-config.service
%attr(-,root,root) %{_unitdir}/multi-user.target.wants/security-config.service
%attr(755,root,root) /usr/share/security-config/smack_default_labeling
-%endif
-%if ("%{?profile}" == "mobile" || "%{?profile}" == "wearable") && ("%{?_arch}" == "arm" || "%{?_arch}" == "aarch64" || "%{?_arch}" == "i386" || "%{?_arch}" == "x86_64")
-%attr(755,root,root) /usr/share/security-config/service_daemon_list
+%attr(644,root,root) /etc/smack/onlycap
%endif