summaryrefslogtreecommitdiffstats
path: root/pykolab.spec.in
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-20 11:34:04 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-20 11:34:04 +0100
commit1ec0bdeddb9919ab66f0f35248ccd36964135229 (patch)
tree4ac2f593388de98209fb87cf1daad0d84e1aa309 /pykolab.spec.in
parent07f108b041d21880d6d1fababb78d1c33b447f1f (diff)
downloadpykolab-1ec0bdeddb9919ab66f0f35248ccd36964135229.tar.gz
Install systemd unit files for Fedora > 15
Diffstat (limited to 'pykolab.spec.in')
-rw-r--r--pykolab.spec.in16
1 files changed, 10 insertions, 6 deletions
diff --git a/pykolab.spec.in b/pykolab.spec.in
index 574fa26..ba05198 100644
--- a/pykolab.spec.in
+++ b/pykolab.spec.in
@@ -119,15 +119,19 @@ This is the Kolab Content Filter, with plugins
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
-mkdir -p \
- %{buildroot}/%{_initrddir} \
- %{buildroot}/%{_sysconfdir}/sysconfig
-
-%{__install} -p -m 644 saslauthd/kolab-saslauthd.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/kolab-saslauthd
+%if 0{?fedora} > 15
+mkdir -p %{buildroot}/%{_unitdir}
+%{__install} -p -m 644 kolabd/kolabd.systemd %{buildroot}/%{_unitdir}/kolabd.service
+%{__install} -p -m 644 saslauthd/kolab-saslauthd.systemd %{buildroot}/%{_unitdir}/kolab-saslauthd.service
+%else
+mkdir -p %{buildroot}/%{_initddir}
+%{__install} -p -m 755 kolabd/kolabd.sysvinit %{buildroot}/%{_initrddir}/kolabd
%{__install} -p -m 755 saslauthd/kolab-saslauthd.sysvinit %{buildroot}/%{_initrddir}/kolab-saslauthd
+%endif
+mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig
%{__install} -p -m 644 kolabd/kolabd.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/kolabd
-%{__install} -p -m 755 kolabd/kolabd.sysvinit %{buildroot}/%{_initrddir}/kolabd
+%{__install} -p -m 644 saslauthd/kolab-saslauthd.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/kolab-saslauthd
%find_lang pykolab