diff options
author | Donghee Ye <donghee.ye@samsung.com> | 2013-09-11 13:37:04 +0900 |
---|---|---|
committer | Donghee Ye <donghee.ye@samsung.com> | 2013-09-11 13:37:04 +0900 |
commit | 826d76c8dbf7291d0534b5ff455521e50e581b38 (patch) | |
tree | a0d3320eea73766cdc5c6992f2cb28899fb6a82b | |
parent | f550e31f9749ceab5609a9424dbc22474ae842f5 (diff) | |
download | contacts-service-826d76c8dbf7291d0534b5ff455521e50e581b38.tar.gz contacts-service-826d76c8dbf7291d0534b5ff455521e50e581b38.tar.bz2 contacts-service-826d76c8dbf7291d0534b5ff455521e50e581b38.zip |
Add systemd socket file to gurantee contacts_connect at booting time
Change-Id: I964633e555eadaa7546daa4d7a9f243d8d6b3006
-rwxr-xr-x | CMakeLists.txt | 2 | ||||
-rw-r--r-- | contacts-service2.manifest | 2 | ||||
-rw-r--r-- | packaging/contacts-service.socket | 10 | ||||
-rw-r--r-- | packaging/contacts-service.spec | 9 |
4 files changed, 20 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d448801..ba0020e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX}) SET(EXEC_PREFIX "\${prefix}") SET(INCLUDEDIR "\${prefix}/${DEST_INCLUDE_DIR}") SET(VERSION_MAJOR 0) -SET(VERSION "${VERSION_MAJOR}.9.114.4") +SET(VERSION "${VERSION_MAJOR}.9.114.5") EXECUTE_PROCESS(COMMAND build-util/generator.sh) diff --git a/contacts-service2.manifest b/contacts-service2.manifest index de0b3aa..8eff097 100644 --- a/contacts-service2.manifest +++ b/contacts-service2.manifest @@ -18,7 +18,7 @@ </request> </define> <assign> - <filesystem path="/usr/lib/libcontacts-service2.so.0.9.114.4" label="_"/> + <filesystem path="/usr/lib/libcontacts-service2.so.0.9.114.5" label="_"/> <filesystem path="/usr/lib/libcontacts-service2.so.0" label="_"/> <filesystem path="/opt/usr/dbspace/.contacts-svc.db" label="contacts-service::db"/> <filesystem path="/opt/usr/dbspace/.contacts-svc.db-journal" label="contacts-service::db"/> diff --git a/packaging/contacts-service.socket b/packaging/contacts-service.socket new file mode 100644 index 0000000..b349931 --- /dev/null +++ b/packaging/contacts-service.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Contacts Service socket + +[Socket] +ListenStream=/tmp/.contacts_svc_ipc-monitor +SmackLabelIPIn=* +SmackLabelIPOut=@ + +[Install] +WantedBy=sockets.target diff --git a/packaging/contacts-service.spec b/packaging/contacts-service.spec index 72efb3f..efee9e3 100644 --- a/packaging/contacts-service.spec +++ b/packaging/contacts-service.spec @@ -1,11 +1,12 @@ Name: contacts-service Summary: Contacts Service -Version: 0.9.114.4 +Version: 0.9.114.5 Release: 1 Group: TO_BE/FILLED_IN License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1: contacts-service.service +Source2: contacts-service.socket BuildRequires: cmake BuildRequires: vconf-keys-devel BuildRequires: pkgconfig(db-util) @@ -69,6 +70,10 @@ mkdir -p %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants install -m 0644 %SOURCE1 %{buildroot}/usr/lib/systemd/user/contacts-service.service ln -s ../contacts-service.service %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service +mkdir -p %{buildroot}/usr/lib/systemd/user/sockets.target.wants +install -m 0644 %SOURCE2 %{buildroot}/usr/lib/systemd/user/contacts-service.socket +ln -s ../contacts-service.socket %{buildroot}/usr/lib/systemd/user/sockets.target.wants/contacts-service.socket + %post -n contacts-service2 /sbin/ldconfig @@ -102,6 +107,8 @@ vconftool set -t int db/contacts-svc/phonenumber_min_match_digit 8 -g 6005 -s co /opt/usr/data/contacts-svc/img/* /usr/lib/systemd/user/contacts-service.service /usr/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service +/usr/lib/systemd/user/sockets.target.wants/contacts-service.socket +/usr/lib/systemd/user/contacts-service.socket %config(noreplace) /opt/usr/dbspace/.contacts-svc.db* /usr/share/packages/%{name}2.xml /opt/etc/smack/accesses.d/%{name}2.rule |