From a889e6f3d1143ca438e4802b7a972124a0152211 Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Wed, 30 Mar 2016 13:57:42 +0200 Subject: [PATCH] Remove pkg_initdb binary This binary is moved to app-installers with name "pkg_initdb". Requires to be submitted with: - https://review.tizen.org/gerrit/64204 Change-Id: I4b2d6c2291ca3753492eede9c2ebdecb1dd5416f --- CMakeLists.txt | 4 ---- data/10_package-manager-add.post | 2 +- packaging/pkgmgr-tool.spec | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fbd38e..f816b98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,10 +58,6 @@ ADD_EXECUTABLE(pkg_clearcache src/pkg_clearcache.c) TARGET_LINK_LIBRARIES(pkg_clearcache ${pkgs_test_LDFLAGS}) INSTALL(TARGETS pkg_clearcache DESTINATION bin) -ADD_EXECUTABLE(pkg_initdb src/pkg_initdb.c) -TARGET_LINK_LIBRARIES(pkg_initdb ${pkgs_initdb_LDFLAGS}) -INSTALL(TARGETS pkg_initdb DESTINATION bin) - ADD_EXECUTABLE(install_preload_tpk src/install_preload_tpk.c) TARGET_LINK_LIBRARIES(install_preload_tpk ${pkgs_test_LDFLAGS}) INSTALL(TARGETS install_preload_tpk DESTINATION bin) diff --git a/data/10_package-manager-add.post b/data/10_package-manager-add.post index 337a4c9..aa13d61 100644 --- a/data/10_package-manager-add.post +++ b/data/10_package-manager-add.post @@ -1 +1 @@ -pkg_initdb $2 +pkg_initdb --uid $2 diff --git a/packaging/pkgmgr-tool.spec b/packaging/pkgmgr-tool.spec index 687bb36..8e1685e 100644 --- a/packaging/pkgmgr-tool.spec +++ b/packaging/pkgmgr-tool.spec @@ -27,6 +27,7 @@ BuildRequires: pkgconfig(pkgmgr-installer) BuildRequires: pkgmgr-info-parser-devel BuildRequires: pkgmgr-info-parser BuildRequires: fdupes +Requires(posttrans): /usr/bin/pkg_initdb %description Packager Manager Tool for packaging @@ -77,7 +78,6 @@ fi %dir %{_sysconfdir}/opt/upgrade %{_sysconfdir}/opt/upgrade/pkgmgr.patch.sh %{_bindir}/pkgcmd -%attr(0755,root,root) %{_bindir}/pkg_initdb %attr(755,root,root) %{_sysconfdir}/gumd/useradd.d/10_package-manager-add.post %{_bindir}/pkg_getsize %{_bindir}/pkg_clearcache -- 2.7.4