From 07d9496c2b1a4426f068f8874c518071d9e69fc9 Mon Sep 17 00:00:00 2001 From: Sungbae Yoo Date: Mon, 4 Jul 2016 22:14:30 +0900 Subject: [PATCH] Add build feature for applications Change-Id: I74cded186b36d166fda14c3df57da975b8c7b687 Signed-off-by: Sungbae Yoo --- CMakeLists.txt | 2 ++ packaging/krate.spec | 62 +++++++++++++++++++++++++++------------------------- 2 files changed, 34 insertions(+), 30 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba4a34b..df3adf8 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,4 +91,6 @@ ADD_SUBDIRECTORY(${KRATE_SERVER}) #ADD_SUBDIRECTORY(${KRATE_VOLUME}) #ADD_SUBDIRECTORY(${KRATE_LIB}) #ADD_SUBDIRECTORY(${KRATE_MODULE}) +IF("${TIZEN_PROFILE_NAME}" STREQUAL "mobile") ADD_SUBDIRECTORY(${KRATE_TOOLS}) +ENDIF() diff --git a/packaging/krate.spec b/packaging/krate.spec index 98c2fd0..36f2523 100644 --- a/packaging/krate.spec +++ b/packaging/krate.spec @@ -119,8 +119,40 @@ developing the krate client program. %{_includedir}/krate %{_libdir}/pkgconfig/krate.pc +## PAM Plugin Package ######################################################## +%package -n dpm-pam-krate +Summary: PAM Plugin for zone policy in device policy manager +Group: Development/Libraries +Requires: systemd + +%description -n dpm-pam-krate +PAM Plugin for zone policy in device policy manager and CLI tool + +%post -n dpm-pam-krate +mv /etc/pam.d/systemd-user /etc/pam.d/systemd-user.keep +cp /etc/pam.d/systemd-user-zone /etc/pam.d/systemd-user + +%postun -n dpm-pam-krate +mv /etc/pam.d/systemd-user.keep /etc/pam.d/systemd-user + +%files -n dpm-pam-krate +%manifest krate.manifest +%defattr(600,root,root,700) +%attr(700,root,root) %{_libdir}/security/pam_*.so +%attr(700,root,root) %{_sbindir}/krate-admin-cli +%attr(700,root,root) %dir %{TZ_SYS_ETC}/krate +%attr(600,root,root) %config %{TZ_SYS_ETC}/krate/owner.xml +%attr(700,root,root) /etc/gumd/useradd.d/20_pam-krate-add.post +%attr(700,root,root) /etc/gumd/userdel.d/20_pam-krate-remove.post +%attr(644,root,root) %{TZ_SYS_RO_ICONS}/krate/indicator_icon.png +%attr(644,root,root) %{TZ_SYS_RO_ICONS}/krate/noti_list_sub_icon.png +%config /etc/pam.d/* + %endif +## Begin of mobile feature ################################################### +%if "%{profile}" == "mobile" + ## Krate Setup Wizard Package ################################################# %package -n org.tizen.krate-setup-wizard Summary: Tizen Krate setup wizard Interface @@ -131,7 +163,6 @@ BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(notification) BuildRequires: pkgconfig(zone) -Requires: libzone = %{version}-%{release} %description -n org.tizen.krate-setup-wizard Tizen Krate setup wizard interface for zone @@ -193,33 +224,4 @@ Tizen Krate keyguard interface %{keyguard_home}/res/* %{TZ_SYS_RO_PACKAGES}/org.tizen.keyguard.xml -%if 0 -## PAM Plugin Package ######################################################## -%package -n dpm-pam-krate -Summary: PAM Plugin for zone policy in device policy manager -Group: Development/Libraries -Requires: systemd - -%description -n dpm-pam-krate -PAM Plugin for zone policy in device policy manager and CLI tool - -%post -n dpm-pam-krate -mv /etc/pam.d/systemd-user /etc/pam.d/systemd-user.keep -cp /etc/pam.d/systemd-user-zone /etc/pam.d/systemd-user - -%postun -n dpm-pam-krate -mv /etc/pam.d/systemd-user.keep /etc/pam.d/systemd-user - -%files -n dpm-pam-krate -%manifest krate.manifest -%defattr(600,root,root,700) -%attr(700,root,root) %{_libdir}/security/pam_*.so -%attr(700,root,root) %{_sbindir}/krate-admin-cli -%attr(700,root,root) %dir %{TZ_SYS_ETC}/krate -%attr(600,root,root) %config %{TZ_SYS_ETC}/krate/owner.xml -%attr(700,root,root) /etc/gumd/useradd.d/20_pam-krate-add.post -%attr(700,root,root) /etc/gumd/userdel.d/20_pam-krate-remove.post -%attr(644,root,root) %{TZ_SYS_RO_ICONS}/krate/indicator_icon.png -%attr(644,root,root) %{TZ_SYS_RO_ICONS}/krate/noti_list_sub_icon.png -%config /etc/pam.d/* %endif -- 2.7.4