summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-08-21 13:01:13 +0800
committerChengwei Yang <chengwei.yang@intel.com>2013-08-21 13:12:38 +0800
commit3b269607504c4ab518dab56cdaaf4270da022017 (patch)
treefc3e04cbc9ee2b98414cb8aa3d862726811d0d47 /src
parent448157562ba5dfafe46458821a6d2e3f64fcbe74 (diff)
downloadoma-ds-agent-3b269607504c4ab518dab56cdaaf4270da022017.tar.gz
oma-ds-agent-3b269607504c4ab518dab56cdaaf4270da022017.tar.bz2
oma-ds-agent-3b269607504c4ab518dab56cdaaf4270da022017.zip
Move systemd unit file out of packaging
As Tizen packaging guide suggests, systemd unit file should be part of source code rather than part of packaging. Change-Id: I3fa6a6196d881fa9229fe231e025e501f4d00822 Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/agent/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/agent/CMakeLists.txt b/src/agent/CMakeLists.txt
index 77638be..5588bdb 100755
--- a/src/agent/CMakeLists.txt
+++ b/src/agent/CMakeLists.txt
@@ -74,6 +74,11 @@ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/oma-ds-cfg DESTINATION /usr/share)
# install oma ds dbus file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/com.samsung.omadsagent.service DESTINATION /usr/share/dbus-1/services)
+# install systemd unit
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/oma-ds-agent.service DESTINATION /usr/lib/systemd/system)
+INSTALL(CODE "FILE(MAKE_DIRECTORY \$ENV{DESTDIR}/usr/lib/systemd/system/graphical.target.wants)")
+INSTALL(CODE "EXECUTE_PROCESS(COMMAND ln -sf ../oma-ds-agent.service . WORKING_DIRECTORY \$ENV{DESTDIR}/usr/lib/systemd/system/graphical.target.wants)")
+
# install booting script file
INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/${PROJECT_NAME} DESTINATION /etc/init.d/)