diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2015-10-19 17:57:34 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2015-10-19 17:57:34 +0900 |
commit | fbdc55f94a86f4a56c40d0b3ad87ae02f51cbebf (patch) | |
tree | faf578cd24fc37ae31d592644e718e40fa817666 | |
parent | 23bbcf881f65ca6b317485b3ecafec91b5e4d9ac (diff) | |
download | aul-1-fbdc55f94a86f4a56c40d0b3ad87ae02f51cbebf.tar.gz aul-1-fbdc55f94a86f4a56c40d0b3ad87ae02f51cbebf.tar.bz2 aul-1-fbdc55f94a86f4a56c40d0b3ad87ae02f51cbebf.zip |
install .appsvc.db in skel directorysubmit/tizen/20151019.090006
Change-Id: I1c4279973071d86566734cde0127ec6b01251678
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | packaging/aul.spec | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/aul.spec b/packaging/aul.spec index de182d5f..f920d049 100644 --- a/packaging/aul.spec +++ b/packaging/aul.spec @@ -20,6 +20,7 @@ Requires(post): /usr/bin/systemctl Requires(postun): /sbin/ldconfig Requires(postun): /usr/bin/systemctl Requires(preun): /usr/bin/systemctl +Requires: tizen-platform-config BuildRequires: cmake BuildRequires: pkgconfig(dbus-glib-1) @@ -87,6 +88,8 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %__make %{?_smp_mflags} +sqlite3 .appsvc.db < ./data/appsvc_db.sql + %install rm -rf %{buildroot} %make_install @@ -94,6 +97,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{_tmpfilesdir} mkdir -p %{buildroot}%{_unitdir_user}/default.target.wants mkdir -p %{buildroot}%{_unitdir_user}/sockets.target.wants +mkdir -p %{buildroot}%{_sysconfdir}/skel/.applications/dbspace +install -m 0644 .appsvc.db %{buildroot}%{_sysconfdir}/skel/.applications/dbspace/.appsvc.db install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/ac.conf install -m 0644 %SOURCE101 %{buildroot}%{_unitdir_user}/ac.service install -m 0644 %SOURCE102 %{buildroot}%{_unitdir_user}/ac.socket @@ -106,6 +111,7 @@ ln -sf ../amd_session_agent.socket %{buildroot}%{_unitdir_user}/sockets.target.w mkdir -p %{buildroot}%{_datadir}/appsvc cp -R %{_builddir}/%{name}-%{version}/alias/* %{buildroot}%{_datadir}/appsvc + %preun if [ $1 == 0 ]; then systemctl stop ac.service @@ -115,6 +121,9 @@ fi %post /sbin/ldconfig + +chsmack -a 'User::Home' %{_sysconfdir}/skel/.applications/dbspace/.appsvc.db + systemctl daemon-reload if [ $1 == 1 ]; then systemctl restart ac.service @@ -146,6 +155,7 @@ systemctl daemon-reload %{_bindir}/amd %{_bindir}/daemon-manager-release-agent %{_bindir}/daemon-manager-launch-agent +%{_sysconfdir}/skel/.applications/dbspace/.appsvc.db %files test |