Separate the exec-checker plugin to rpm package 41/263041/2
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 25 Aug 2021 03:41:38 +0000 (12:41 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Wed, 25 Aug 2021 04:27:57 +0000 (13:27 +0900)
Change-Id: Iab6db7263710402975524333b1f527312576a9cd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
packaging/aul-exec-checker-plugin.manifest [new file with mode: 0644]
packaging/aul.spec
parser/exec-checker/CMakeLists.txt
parser/exec-checker/data/exec-checker.info [moved from parser/exec-checker/data/exec_checker.info with 100% similarity]

diff --git a/packaging/aul-exec-checker-plugin.manifest b/packaging/aul-exec-checker-plugin.manifest
new file mode 100644 (file)
index 0000000..2a0cec5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+  <request>
+    <domain name="_"/>
+  </request>
+</manifest>
index 44e5b24..e3c8ddb 100644 (file)
@@ -7,6 +7,7 @@ License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 Source1001: %{name}.manifest
 Source1002: %{name}-server.manifest
+Source1003: %{name}-exec-checker-plugin.manifest
 
 Requires(post):   /sbin/ldconfig
 Requires(post):   /usr/bin/systemctl
@@ -58,6 +59,14 @@ Requires:   %{name} = %{version}-%{release}
 %description devel
 Application utility library (devel)
 
+%package exec-checker-plugin
+Summary:    App binary executable cheker
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description exec-checker-plugin
+Application utility library (exec checker)
+
 %package test
 Summary:    App utility test tools
 Group:      Development/Libraries
@@ -109,6 +118,7 @@ Application Utility Library (devel)
 sed -i 's|TZ_SYS_DB|%{TZ_SYS_DB}|g' %{SOURCE1001}
 cp %{SOURCE1001} .
 cp %{SOURCE1002} .
+cp %{SOURCE1003} .
 
 %build
 %if 0%{?gcov:1}
@@ -223,16 +233,22 @@ chmod +x %{_aulresdir}/tpk/install.sh
 %{_datadir}/aul/miregex/*
 %{_datadir}/aul/preexec_list.txt
 %{_datadir}/appsvc/*
-%{_datadir}/parser-plugins/*
+%{_datadir}/parser-plugins/component.info
+%{_datadir}/parser-plugins/alias-appid.info
+%{_datadir}/parser-plugins/allowed-appid.info
 %{TZ_SYS_DB}/.appsvc.db*
 %{TZ_SYS_DB}/.component.db*
 %{_sysconfdir}/package-manager/parserlib/metadata/*.so
 %{_sysconfdir}/package-manager/parserlib/libcomponent-based-application.so
-%{_sysconfdir}/package-manager/parserlib/libexec-checker.so*
 
 %attr(0755,root,root) %{_sysconfdir}/gumd/useradd.d/*
 %attr(0755,root,root) %{_datadir}/upgrade/scripts/501.component_upgrade.sh
 
+%files exec-checker-plugin
+%manifest %{name}-exec-checker-plugin.manifest
+%{_datadir}/parser-plugins/exec-checker.info
+%{_sysconfdir}/package-manager/parserlib/libexec-checker.so*
+
 %files test
 %{_bindir}/app-control-tests
 %{_bindir}/aul-unit-tests
index 97134e1..e1b9b95 100644 (file)
@@ -25,5 +25,5 @@ APPLY_PKG_CONFIG(${TARGET_CHECK_EXEC_PLUGIN_PARSER} PUBLIC
 
 INSTALL(TARGETS ${TARGET_CHECK_EXEC_PLUGIN_PARSER}
   DESTINATION ${SYSCONF_INSTALL_DIR}/package-manager/parserlib)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/exec_checker.info
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/exec-checker.info
   DESTINATION ${SHARED_DIR}/parser-plugins)