summary refs log tree commit diff
path: root/pkgs/applications/misc/gammu/systemd.patch
blob: 22b49a5a2ffed09cb8cd56650a63f63893655526 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/cmake/templates/gammu.spec.in b/cmake/templates/gammu.spec.in
index 8302353..e3ca59a 100644
--- a/cmake/templates/gammu.spec.in
+++ b/cmake/templates/gammu.spec.in
@@ -387,9 +387,9 @@ fi
 %doc %{_mandir}/man7/gammu-smsd-run.7*
 %doc %{_mandir}/man7/gammu-smsd-sql.7*
 %doc %{_mandir}/man7/gammu-smsd-tables.7*
-%dir %{_libexecdir}/systemd
-%dir %{_libexecdir}/systemd/system
-%{_libexecdir}/systemd/system/gammu-smsd.service
+%dir %{_prefix}/systemd
+%dir %{_prefix}/systemd/system
+%{_prefix}/systemd/system/gammu-smsd.service
 
 %files -n libGammu%{so_ver} -f libgammu.lang
 %defattr(-,root,root,-)
diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt
index 78cc7fc..d674c36 100644
--- a/contrib/CMakeLists.txt
+++ b/contrib/CMakeLists.txt
@@ -97,7 +97,7 @@ endif (INSTALL_BASH_COMPLETION)
 if (WITH_SYSTEMD)
     install (
         FILES init/gammu-smsd.service
-        DESTINATION "${SYSTEMD_SERVICES_INSTALL_DIR}"
+        DESTINATION "${CMAKE_INSTALL_PREFIX}/systemd"
         COMPONENT "systemd"
     )
 endif (WITH_SYSTEMD)