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