public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 8950e52d017b10ec594986900967e97c1c89d77e
@ 2013-07-09 11:30 git
  0 siblings, 0 replies; only message in thread
From: git @ 2013-07-09 11:30 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 9098 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 3.x development tree".

The branch, master has been updated
       via  8950e52d017b10ec594986900967e97c1c89d77e (commit)
       via  010fd8be4d6c5a8babfbe570c08653e12e16df78 (commit)
       via  3b51edb73910c5bc223688e9e5b920919fe70ad6 (commit)
      from  c955da5a71e3b553d83c4cd304149b06d791a5e4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8950e52d017b10ec594986900967e97c1c89d77e
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Jul 9 13:30:08 2013 +0200

    cronie: Update to 1.4.9.
    
    Add anacron.

commit 010fd8be4d6c5a8babfbe570c08653e12e16df78
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Jul 9 13:29:40 2013 +0200

    crontabs: New package.

commit 3b51edb73910c5bc223688e9e5b920919fe70ad6
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Jul 9 12:36:31 2013 +0200

    libunistring: New package.
    
    The GNU Unicode string library.

-----------------------------------------------------------------------

Summary of changes:
 cronie/cronie.nm                                   | 70 +++++++++++++++++++++-
 cronie/patches/cronie-1.4.10-use-setenv.patch      | 27 +++++++++
 crontabs/crontabs.nm                               | 56 +++++++++++++++++
 libssh2/libssh2.nm => libunistring/libunistring.nm | 31 ++++------
 4 files changed, 161 insertions(+), 23 deletions(-)
 create mode 100644 cronie/patches/cronie-1.4.10-use-setenv.patch
 create mode 100644 crontabs/crontabs.nm
 copy libssh2/libssh2.nm => libunistring/libunistring.nm (51%)

Difference in files:
diff --git a/cronie/cronie.nm b/cronie/cronie.nm
index 0ad2b6e..c541043 100644
--- a/cronie/cronie.nm
+++ b/cronie/cronie.nm
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = cronie
-version    = 1.4.8
+version    = 1.4.9
 release    = 1
 
 groups     = System/Environment/Base
@@ -30,21 +30,44 @@ build
 		libselinux-devel
 		pam-devel
 		readline-devel
+		systemd-units
 		texinfo
 	end
 
 	configure_options += \
 		--with-pam \
 		--with-audit \
-		--with-selinux
+		--with-selinux \
+		--with-inotify \
+		--enable-anacron \
+		--enable-pie \
+		--enable-relro
 
 	install_cmds
-		mkdir -pv %{BUILDROOT}%{localstatedir}/spool/cron
+		mkdir -pv %{BUILDROOT}%{localstatedir}/spool/{ana,}cron
+
+		mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.d
+		touch %{BUILDROOT}%{sysconfdir}/cron.deny
+
+		# Install anacron
+		install -m 644 contrib/anacrontab %{BUILDROOT}%{sysconfdir}/anacrontab
+
+		mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.hourly
+		install -c -m 755 contrib/0anacron %{BUILDROOT}%{sysconfdir}/cron.hourly/0anacron
+		for i in daily weekly monthly; do
+			touch %{BUILDROOT}%{localstatedir}/spool/anacron/cron.${i}
+		done
+
+		install -c -m 755 contrib/0hourly %{BUILDROOT}%{sysconfdir}/cron.d/0hourly
 	end
 end
 
 packages
 	package %{name}
+		requires
+			dailyjobs
+		end
+
 		# Just search for new unit files that were just installed.
 		script postin
 			systemctl daemon-reload >/dev/null 2>&1 || :
@@ -71,6 +94,47 @@ packages
 		end
 	end
 
+	package anacron
+		summary = Utility for running regular jobs.
+		description
+			Anacron is part of cronie that is used for running jobs with regular
+			periodicity which do not have exact time of day of execution.
+
+			The default settings of anacron execute the daily, weekly, and monthly
+			jobs, but anacron allows setting arbitrary periodicity of jobs.
+
+			Using anacron allows running the periodic jobs even if the system is often
+			powered off and it also allows randomizing the time of the job execution
+			for better utilization of resources shared among multiple systems.
+		end
+		groups = System/Base Base
+
+		provides
+			dailyjobs
+		end
+
+		requires
+			cronie = %{thisver}
+			crontabs
+		end
+
+		files
+			%{sbindir}/anacron
+			%{sysconfdir}/cron.hourly/0anacron
+			%{sysconfdir}/anacrontab
+			%{localstatedir}/spool/anacron
+			%{mandir}/man*/anacron*
+		end
+
+		configfiles
+			%{sysconfdir}/anacrontab
+		end
+
+		datafiles
+			%{localstatedir}/spool/anacron/*
+		end
+	end
+
 	package %{name}-debuginfo
 		template DEBUGINFO
 	end
diff --git a/cronie/patches/cronie-1.4.10-use-setenv.patch b/cronie/patches/cronie-1.4.10-use-setenv.patch
new file mode 100644
index 0000000..ddbfbbb
--- /dev/null
+++ b/cronie/patches/cronie-1.4.10-use-setenv.patch
@@ -0,0 +1,27 @@
+From 5ac31751adfa31c5e5e316afc2f800037bd1cdca Mon Sep 17 00:00:00 2001
+From: Tomas Mraz <tmraz(a)fedoraproject.org>
+Date: Thu, 6 Jun 2013 20:13:26 +0200
+Subject: [PATCH] Do not use putenv with string literal.
+
+---
+ src/cron.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/cron.c b/src/cron.c
+index 9974887..08d0812 100644
+--- a/src/cron.c
++++ b/src/cron.c
+@@ -244,8 +244,8 @@ int main(int argc, char *argv[]) {
+ 	check_spool_dir();
+ 
+ 	if (ChangePath) {
+-		if (putenv("PATH=" _PATH_DEFPATH) < 0) {
+-			log_it("CRON", pid, "DEATH", "can't putenv PATH",
++		if (setenv("PATH", _PATH_DEFPATH, 1) < 0) {
++			log_it("CRON", pid, "DEATH", "can't setenv PATH",
+ 				errno);
+ 			exit(1);
+ 		}
+-- 
+1.7.7.6
+
diff --git a/crontabs/crontabs.nm b/crontabs/crontabs.nm
new file mode 100644
index 0000000..e17811f
--- /dev/null
+++ b/crontabs/crontabs.nm
@@ -0,0 +1,56 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info(a)ipfire.org>                   #
+###############################################################################
+
+name       = crontabs
+version    = 1.11
+snap_rel   = 20121102git
+release    = 1.%{snap_rel}
+arch       = noarch
+
+groups     = System/Base
+url        = https://fedorahosted.org/crontabs
+license    = Public Domain and GPLv2
+summary    = Root crontab files used to schedule the execution of programs.
+
+description
+	This package is used mainly for executing files by cron.
+
+	The crontabs package contains root crontab files and directories.
+	You will need to install cron daemon to run the jobs from the crontabs.
+	The cron daemon such as cronie or fcron checks the crontab files to
+	see when particular commands are scheduled to be executed.  If commands
+	are scheduled, it executes them.
+
+	Crontabs handles a basic system function, so it should be installed on
+	your system.
+end
+
+source_dl  = https://fedorahosted.org/releases/c/r/crontabs/
+sources    = %{name}-%{version}-1.%{snap_rel}.tar.gz
+
+build
+	build
+		# empty
+	end
+
+	install
+		mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.{hourly,daily,weekly,monthly}
+		mkdir -pv %{BUILDROOT}%{bindir} %{BUILDROOT}%{mandir}/man4
+
+		install -m 644 crontab %{BUILDROOT}%{sysconfdir}/crontab
+		install -m 755 run-parts %{BUILDROOT}%{bindir}/run-parts
+		install -m 644 {crontabs,run-parts}.4 %{BUILDROOT}%{mandir}/man4
+	end
+end
+
+packages
+	package %{name}
+		groups += Base
+
+		requires
+			/etc/cron.d
+		end
+	end
+end
diff --git a/libunistring/libunistring.nm b/libunistring/libunistring.nm
new file mode 100644
index 0000000..aba7680
--- /dev/null
+++ b/libunistring/libunistring.nm
@@ -0,0 +1,41 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info(a)ipfire.org>                   #
+###############################################################################
+
+name       = libunistring
+version    = 0.9.3
+release    = 1
+
+groups     = System/Libraries
+url        = http://www.gnu.org/software/libunistring/
+license    = LGPLv3+
+summary    = GNU Unicode string library.
+
+description
+	This portable C library implements Unicode string types in three flavours:
+	(UTF-8, UTF-16, UTF-32), together with functions for character processing
+	(names, classifications, properties) and functions for string processing
+	(iteration, formatted output, width, word breaks, line breaks, normalization,
+	case folding and regular expressions).
+end
+
+source_dl  = ftp://ftp.gnu.org/gnu/libunistring/
+
+build
+	configure_options += \
+		--disable-static \
+		--disable-rpath
+end
+
+packages
+	package %{name}
+
+	package %{name}-devel
+		template DEVEL
+	end
+
+	package %{name}-debuginfo
+		template DEBUGINFO
+	end
+end


hooks/post-receive
--
IPFire 3.x development tree

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-09 11:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-09 11:30 [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 8950e52d017b10ec594986900967e97c1c89d77e git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox