packages: cronie/cronie.spec - %*post scripts for systemd - rel. 5
wiget
wiget at pld-linux.org
Sun Dec 4 02:16:58 CET 2011
Author: wiget Date: Sun Dec 4 01:16:58 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- %*post scripts for systemd
- rel. 5
---- Files affected:
packages/cronie:
cronie.spec (1.45 -> 1.46)
---- Diffs:
================================================================
Index: packages/cronie/cronie.spec
diff -u packages/cronie/cronie.spec:1.45 packages/cronie/cronie.spec:1.46
--- packages/cronie/cronie.spec:1.45 Fri Dec 2 21:43:45 2011
+++ packages/cronie/cronie.spec Sun Dec 4 02:16:53 2011
@@ -18,7 +18,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
@@ -40,7 +40,7 @@
%{?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
@@ -97,6 +97,7 @@
Summary: systemd units for cronie
Group: Base
Requires: %{name} = %{version}-%{release}
+Requires: systemd-units
%description systemd
systemd units for cronie.
@@ -143,7 +144,8 @@
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
@@ -199,6 +201,16 @@
%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
@@ -238,7 +250,8 @@
%files systemd
%defattr(644,root,root,755)
-/lib/systemd/system/crond.service
+%{systemdunitdir}/crond.service
+%{systemdunitdir}/cronie.service
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -246,6 +259,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.46 2011/12/04 01:16:53 wiget
+- %*post scripts for systemd
+- rel. 5
+
Revision 1.45 2011/12/02 20:43:45 cactus
- rel 4; systemd service
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cronie/cronie.spec?r1=1.45&r2=1.46&f=u
More information about the pld-cvs-commit
mailing list