packages: cronie/cronie.spec, cronie/crond.service (NEW) - rel 4; systemd s...

cactus cactus at pld-linux.org
Fri Dec 2 21:43:51 CET 2011


Author: cactus                       Date: Fri Dec  2 20:43:50 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 4; systemd service

---- Files affected:
packages/cronie:
   cronie.spec (1.44 -> 1.45) , crond.service (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/cronie/cronie.spec
diff -u packages/cronie/cronie.spec:1.44 packages/cronie/cronie.spec:1.45
--- packages/cronie/cronie.spec:1.44	Mon Oct 31 10:50:44 2011
+++ packages/cronie/cronie.spec	Fri Dec  2 21:43:45 2011
@@ -18,7 +18,7 @@
 Summary:	Cron daemon for executing programs at set times
 Name:		cronie
 Version:	1.4.8
-Release:	3
+Release:	4
 License:	MIT and BSD and GPL v2
 Group:		Daemons
 Source0:	https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
@@ -29,6 +29,7 @@
 Source4:	%{name}.crontab
 Source5:	%{name}.pam
 Source6:	%{name}.upstart
+Source7:	crond.service
 Patch0:		inotify-nosys.patch
 Patch1:		%{name}-nosyscrontab.patch
 Patch2:		sendmail-path.patch
@@ -92,6 +93,14 @@
 %description upstart -l pl.UTF-8
 Opis zadania Upstart dla Cronie.
 
+%package systemd
+Summary:	systemd units for cronie
+Group:		Base
+Requires:	%{name} = %{version}-%{release}
+
+%description systemd
+systemd units for cronie.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -119,7 +128,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/var/{log,spool/{ana,}cron},%{_mandir}} \
+install -d $RPM_BUILD_ROOT{/var/{log,spool/{ana,}cron},%{_mandir},/lib/systemd/system}\
 	$RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,sysconfig,init} \
 	$RPM_BUILD_ROOT%{_sysconfdir}/{cron,cron.{d,hourly,daily,weekly,monthly},pam.d}
 
@@ -134,6 +143,7 @@
 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
 
 touch $RPM_BUILD_ROOT/var/log/cron
 
@@ -226,12 +236,19 @@
 %config(noreplace) %verify(not md5 mtime size) /etc/init/crond.conf
 %endif
 
+%files systemd
+%defattr(644,root,root,755)
+/lib/systemd/system/crond.service
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.45  2011/12/02 20:43:45  cactus
+- rel 4; systemd service
+
 Revision 1.44  2011/10/31 09:50:44  glen
 - obsoleted should not obsolete version we provide
 

================================================================
Index: packages/cronie/crond.service
diff -u /dev/null packages/cronie/crond.service:1.1
--- /dev/null	Fri Dec  2 21:43:51 2011
+++ packages/cronie/crond.service	Fri Dec  2 21:43:45 2011
@@ -0,0 +1,11 @@
+[Unit]
+Description=Command Scheduler
+After=syslog.target auditd.service sssd.service ypbind.service
+
+[Service]
+EnvironmentFile=/etc/sysconfig/cron
+ExecStart=/usr/sbin/crond -n $CROND_ARGS
+
+[Install]
+WantedBy=multi-user.target
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cronie/cronie.spec?r1=1.44&r2=1.45&f=u



More information about the pld-cvs-commit mailing list