]> git.pld-linux.org Git - packages/cronie.git/commitdiff
- %*post scripts for systemd auto/th/cronie-1_4_8-5
authorArtur Frysiak <artur@frysiak.net>
Sun, 4 Dec 2011 01:16:53 +0000 (01:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel. 5

Changed files:
    cronie.spec -> 1.46

cronie.spec

index 0bc8acd4f8b1d61ffd0e524622bb81d9f17d053c..4d3cecf1e8a5bdbd6da6b41f1d607bd92413afbb 100644 (file)
@@ -17,7 +17,7 @@
 Summary:       Cron daemon for executing programs at set times
 Name:          cronie
 Version:       1.4.8
-Release:       4
+Release:       5
 License:       MIT and BSD and GPL v2
 Group:         Daemons
 Source0:       https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
@@ -39,7 +39,7 @@ BuildRequires:        automake
 %{?with_selinux:BuildRequires: libselinux-devel}
 BuildRequires: pam-devel
 BuildRequires: rpm >= 4.4.9-56
-BuildRequires: rpmbuild(macros) >= 1.561
+BuildRequires: rpmbuild(macros) >= 1.623
 Requires(post):        fileutils
 Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
@@ -96,6 +96,7 @@ Opis zadania Upstart dla Cronie.
 Summary:       systemd units for cronie
 Group:         Base
 Requires:      %{name} = %{version}-%{release}
+Requires:      systemd-units
 
 %description systemd
 systemd units for cronie.
@@ -142,7 +143,8 @@ cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/cron
 cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/crontab
 cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/crond
 cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/init/crond.conf
-cp -a %{SOURCE7} $RPM_BUILD_ROOT/lib/systemd/system/crond.service
+cp -a %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir}/cronie.service
+ln -s cronie.service $RPM_BUILD_ROOT%{systemdunitdir}/crond.service
 
 touch $RPM_BUILD_ROOT/var/log/cron
 
@@ -198,6 +200,16 @@ chmod 754 /etc/rc.d/init.d/crond
 %postun upstart
 %upstart_postun crond
 
+%post systemd
+%systemd_post
+%systemd_enable cronie.service
+
+%preun systemd
+%systemd_preun cornie.service
+
+%postun systemd
+%systemd_postun cornie.service
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
@@ -237,4 +249,5 @@ chmod 754 /etc/rc.d/init.d/crond
 
 %files systemd
 %defattr(644,root,root,755)
-/lib/systemd/system/crond.service
+%{systemdunitdir}/crond.service
+%{systemdunitdir}/cronie.service
This page took 0.112818 seconds and 4 git commands to generate.