summaryrefslogtreecommitdiff
path: root/sys-process/anacron
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-process/anacron
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-process/anacron')
-rw-r--r--sys-process/anacron/Manifest11
-rw-r--r--sys-process/anacron/anacron-2.3-r2.ebuild61
-rw-r--r--sys-process/anacron/anacron-2.3-r3.ebuild63
-rw-r--r--sys-process/anacron/anacron-2.3-r4.ebuild68
-rw-r--r--sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch11
-rw-r--r--sys-process/anacron/files/anacron-2.3-headers.patch40
-rwxr-xr-xsys-process/anacron/files/anacron.rc613
-rw-r--r--sys-process/anacron/files/anacrontab11
-rw-r--r--sys-process/anacron/metadata.xml11
9 files changed, 289 insertions, 0 deletions
diff --git a/sys-process/anacron/Manifest b/sys-process/anacron/Manifest
new file mode 100644
index 000000000000..26fe774a611b
--- /dev/null
+++ b/sys-process/anacron/Manifest
@@ -0,0 +1,11 @@
+AUX anacron-2.3-compile-fix-from-debian.patch 315 SHA256 eaef07404a4524c09e39161d8f3b31f1f10f4c2282cd4e9d55039cb80fcda0d4 SHA512 8faff19a8dc86da255b4c905ff5e91fd488b75df21f7a8b8eb2717232ab8174a22421f6930fd65a8972029b77852d5435f110a37c0faa593457628d45af1ff9e WHIRLPOOL 9b4d671ca49a4199a1f74f579a090daf9cbcfd267fe4831afed45e70b50605d29dd71bfb774bb07f57cba7aa685dee52b1dfb1b2cff148e592618fcdea63dcc5
+AUX anacron-2.3-headers.patch 895 SHA256 d4a3e7e2072d56f8def44e9fbfa9cd7d11695fa6295ea1cf66ced29f01e6ac92 SHA512 33c5f3274e50e3156b407aec6f0fb882b80ea8d134a71a789dc2ad39effe322c36c579725cde71ec34e801a0d52efe06d159b4a6d423137c31e14b82e732dd3b WHIRLPOOL d149284e3c54d87aca80fa37c85592514183444a4cdb2e7e8ee11ccd19db28c47fe62b2311e7d1d02ef9221f7ec9299cb0d5b5146821c6516f19c5493bcb3ea5
+AUX anacron.rc6 252 SHA256 cc54333ffe4048533d0272b39d505e53b8c0aabc7030c7246a9d004e0326e4e4 SHA512 5578e8bff57387131fe2cb8d176e8a8cc4f2e736e6b6e4e8ef9bbb2aec201fe3893b2c3763652ee78a5b3f665a99e2aa3c22226cd3a53f4e0a76bfbcca50cd6a WHIRLPOOL 8191d24b0491775e021dd331b65d4ffd1badb335367c5cb85b8249931b055f32eca6b76b1f182b273662c4016580c3184a297d991c7a12874b93810e01bcfb2d
+AUX anacrontab 468 SHA256 54e383cbd02b7452b72786b683c4cf5cc22489516ff4b5dc2a0ff6f9676f82fb SHA512 f04850d22b459fe95bf5ccf594143f6fb02a1d29fc9cf36d2965a8b846920bc36b0d2d5665c5d6ac9828b904a4f30da49f62f6bedd51c75f548b981e056f097e WHIRLPOOL cbd24e6bbb0e50eecdd6620652ef146478b0312b598b6a55e91c5566cf939992f51b8f7b111f6a654c5d5f51e4ef356533a2e2133f9157e84ee3151736cabb0d
+DIST anacron-2.3.tar.gz 24140 SHA256 5ceee6f22cd089bdaf1c0841200dbe5726babaf9e2c432bb17c1fc95da5ca99f SHA512 27bbbfad5bc35ddc68e4345c3a3acefd0a6f794aaba890f7c75ec42b2e4c4200fbb1667e75b2e344afb7722bdc9ba3dc5a7db66d3369808bc9f483ea3509849c WHIRLPOOL 119193e7a44855ab3844755ac0d912bc14d6ee55638a2979d7a107f99062c5f0f2bd27f45a429dcf0b8bfc3187c33b10374a0f6a83303a9539dd1eae95fd3d00
+EBUILD anacron-2.3-r2.ebuild 1414 SHA256 27718652110b8d8ac288476a088abbc11dce14a3fb61d710fbda20f2a49f0db4 SHA512 1c7d3eb080e4c140c78e0cc22287e02266fe799917234a2556e9c8f84b3b1cf115fdc035ee9ae21d9baeb5011e5cfccce45a0480fa0e553b3e3682383f7efbe3 WHIRLPOOL fc7cf2c9cdc38161d670a17f38156793ae1b56d4146adb174554dbb8f5f3810ec80536fe37e178171077e39c2660164601510b6d6de398da6295a134720d5e8d
+EBUILD anacron-2.3-r3.ebuild 1444 SHA256 4073b59b4e36fdd543511a8cf3fc7093182c80386715501809aba5050cae55bc SHA512 2ce3e597493c8ced6cacbe6e15a36903eb857a1b27cedc80c1cbb109436dfbe39bcf49b0bafdebd812d0d352c03f831fa5334d676f1ca7e6e033ab9eacacec20 WHIRLPOOL 2466f27abdce1f1c224e1a8ded541c877615c76a036027bc6014c52432d68cbfa43af9b9f615a5a4f5765651604525d55e78e9fe35da8380358093afbc40fd43
+EBUILD anacron-2.3-r4.ebuild 1443 SHA256 594f472447d0a3a3d58eb750a1b1df67ff60dea73c2a7eba6e81c7a55c03a06d SHA512 82f32961b4d066682474eb3f6f26589000d746b9251ae2a826c0901d49869aed7c17096cf56d5ee6520bda49ac5ec1a6f2a2d9a8806f874454f5c4835eb5a1cb WHIRLPOOL e8f7cac222e589ba92703c0248d867a489f6cc22451599c62e275ee09fb29878a0f5e52e30791f6896ecab1f3139b493453e1bf10bfb2cd9f82b6b8ceb954683
+MISC ChangeLog 5251 SHA256 94cec365ea6123a60de6ccb1225ca5e955ca821ca88f2f050af160d633a369f5 SHA512 db330efc70ebb5d4ec2cb40e6e00813d16a7a0095a6cf19e2658eea6710166dfaa28ef859cf560348ea662f9e79be2ed993b1693fcd9658a0ae317509ae7583c WHIRLPOOL fa25f5bfbcc3737b709f0765a95b413c4ab5dc7aab4baa3edc068d4869608ee5c21af5a7ea0208485f695dffd23edbfc819021e548ea696b111f8c806ea61a6c
+MISC ChangeLog-2015 3135 SHA256 001181b9203717612648c58136ce0fa0007b963899bdd916306c8064ed12c4e8 SHA512 066d03e2ddd5fa2cec0f2fbb6cd4fe1be499910aa5ac485a9a44bc550b3aadb151318cabeb4609c51181c16c6bc543afcab37944628471037cbc58f505cc6aeb WHIRLPOOL 7ebf96a1b077e57b2cef2673dd8e90f5e1e06c4c486e5639d9d5a23b867506e738d244059d1dafa1956168fba66446e04d2dd7eca08d416055dacb41b86f8b43
+MISC metadata.xml 333 SHA256 b43a517ad907a0b693b1eac80411c983d7fcc5a4a126e1c6c3b155a931b3ee2d SHA512 d122ed7448f601536b07379879b67b2f73d6f89257074e63ac0ebe07601bd53ba64af280bf6f9e5d44b907d1be922cc67b6205bb5030b0364e7731f1ce7a215a WHIRLPOOL bba15de5ad3e91154d6c990bf4219c818f728863a6ff9fecbe02599012add45a26cbaad0142d61f07f4f628ed19c172ed5257140a56cf0359209fc3c2a31ce13
diff --git a/sys-process/anacron/anacron-2.3-r2.ebuild b/sys-process/anacron/anacron-2.3-r2.ebuild
new file mode 100644
index 000000000000..66f8e558937e
--- /dev/null
+++ b/sys-process/anacron/anacron-2.3-r2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="a periodic command scheduler"
+HOMEPAGE="http://anacron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4
+ sys-process/cronbase"
+RDEPEND="virtual/mta
+ virtual/cron"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch
+ sed -i "s:^CFLAGS =:CFLAGS = $CFLAGS:" Makefile
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ #this does not work if the directory exists already
+ diropts -m0750 -o root -g cron
+ keepdir /var/spool/anacron
+
+ doman anacrontab.5 anacron.8
+
+ newinitd "${FILESDIR}"/anacron.rc6 anacron
+
+ dodoc ChangeLog README TODO
+
+ insinto /usr/sbin
+ insopts -o root -g root -m 0750 ; doins anacron
+
+ insinto /etc
+ doins "${FILESDIR}"/anacrontab
+}
+
+pkg_postinst() {
+ einfo "Schedule the command \"anacron -s\" as a daily cron-job (preferably"
+ einfo "at some early morning hour). This will make sure that jobs are run"
+ einfo "when the systems is left running for a night."
+ einfo ""
+ einfo "Update /etc/anacrontab to include what you want anacron to run."
+
+ echo
+ einfo "You may wish to read the Gentoo Linux Cron Guide, which can be"
+ einfo "found online at:"
+ einfo " https://wiki.gentoo.org/wiki/Cron"
+ echo
+}
diff --git a/sys-process/anacron/anacron-2.3-r3.ebuild b/sys-process/anacron/anacron-2.3-r3.ebuild
new file mode 100644
index 000000000000..30f89d829732
--- /dev/null
+++ b/sys-process/anacron/anacron-2.3-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="a periodic command scheduler"
+HOMEPAGE="http://anacron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE=""
+
+DEPEND="sys-process/cronbase"
+RDEPEND="${RDEPEND}
+ virtual/mta"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch
+ epatch "${FILESDIR}"/${P}-headers.patch
+ sed -i \
+ -e '/^CFLAGS/{s:=:+=:;s:-O2::}' \
+ Makefile || die
+}
+
+src_configure() {
+ tc-export CC
+}
+
+src_install() {
+ #this does not work if the directory exists already
+ diropts -m0750 -o root -g cron
+ keepdir /var/spool/anacron
+
+ doman anacrontab.5 anacron.8
+
+ newinitd "${FILESDIR}"/anacron.rc6 anacron
+
+ dodoc ChangeLog README TODO
+
+ dosbin anacron
+
+ insinto /etc
+ doins "${FILESDIR}"/anacrontab
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably"
+ elog "at some early morning hour). This will make sure that jobs are run"
+ elog "when the systems is left running for a night."
+ echo
+ elog "Update /etc/anacrontab to include what you want anacron to run."
+
+ echo
+ elog "You may wish to read the Gentoo Linux Cron Guide, which can be"
+ elog "found online at:"
+ elog " https://wiki.gentoo.org/wiki/Cron"
+ fi
+}
diff --git a/sys-process/anacron/anacron-2.3-r4.ebuild b/sys-process/anacron/anacron-2.3-r4.ebuild
new file mode 100644
index 000000000000..62b12e5f3be9
--- /dev/null
+++ b/sys-process/anacron/anacron-2.3-r4.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="a periodic command scheduler"
+HOMEPAGE="http://anacron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE=""
+
+DEPEND="
+ sys-process/cronbase"
+
+RDEPEND="
+ ${DEPEND}
+ virtual/mta"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-compile-fix-from-debian.patch
+ "${FILESDIR}"/${P}-headers.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^CFLAGS/{s:=:+=:;s:-O2::}' \
+ Makefile || die
+}
+
+src_configure() {
+ tc-export CC
+}
+
+src_install() {
+ # This does not work if the directory already exists.
+ diropts -m0750 -o root -g cron
+ keepdir "/var/spool/${PN}"
+
+ doman "${PN}tab.5" "${PN}.8"
+ newinitd "${FILESDIR}/${PN}.rc6" "${PN}"
+ dodoc ChangeLog README TODO
+ dosbin "${PN}"
+
+ insinto /etc
+ doins "${FILESDIR}/${PN}tab"
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably"
+ elog "at some early morning hour). This will make sure that jobs are run"
+ elog "when the systems is left running for a night."
+ echo
+ elog "Update /etc/anacrontab to include what you want anacron to run."
+
+ echo
+ elog "You may wish to read the Gentoo Linux Cron Guide, which can be"
+ elog "found online at:"
+ elog " https://wiki.gentoo.org/wiki/Cron"
+ fi
+}
diff --git a/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch b/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch
new file mode 100644
index 000000000000..174a975f0ca3
--- /dev/null
+++ b/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch
@@ -0,0 +1,11 @@
+--- anacron-2.3/gregor.c 2000-06-23 02:00:14.000000000 +0200
++++ anacron-2.3-maks/gregor.c 2004-03-26 20:45:13.000000000 +0100
+@@ -65,7 +65,7 @@
+ {
+ int dn;
+ int i;
+- const int isleap; /* save three calls to leap() */
++ int isleap; /* save three calls to leap() */
+
+ /* Some validity checks */
+
diff --git a/sys-process/anacron/files/anacron-2.3-headers.patch b/sys-process/anacron/files/anacron-2.3-headers.patch
new file mode 100644
index 000000000000..2d4b1762d357
--- /dev/null
+++ b/sys-process/anacron/files/anacron-2.3-headers.patch
@@ -0,0 +1,40 @@
+add headers for various function prototypes
+
+--- a/main.c
++++ b/main.c
+@@ -24,6 +24,7 @@
+
+ #include <time.h>
+ #include <stdio.h>
++#include <stdlib.h> /* exit */
+ #include <unistd.h>
+ #include <signal.h>
+ #include <fcntl.h>
+--- a/log.c
++++ b/log.c
+@@ -37,6 +37,7 @@
+ #include <unistd.h>
+ #include <syslog.h>
+ #include <stdio.h>
++#include <stdlib.h> /* exit */
+ #include <stdarg.h>
+ #include <errno.h>
+ #include <signal.h>
+@@ -78,6 +79,7 @@ make_msg(const char *fmt, va_list args)
+ strcpy(msg + sizeof(msg) - sizeof(truncated), truncated);
+ }
+
++#define log my_log /* log is a math builtin */
+ static void
+ log(int priority, const char *fmt, va_list args)
+ /* Log a message, described by "fmt" and "args", with the specified
+--- a/matchrx.c
++++ b/matchrx.c
+@@ -23,6 +23,7 @@
+
+
+ #include <stdio.h>
++#include <string.h> /* memset */
+ #include <regex.h>
+ #include <stdarg.h>
+ #include <stdlib.h>
diff --git a/sys-process/anacron/files/anacron.rc6 b/sys-process/anacron/files/anacron.rc6
new file mode 100755
index 000000000000..645eedf988f9
--- /dev/null
+++ b/sys-process/anacron/files/anacron.rc6
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use clock hostname logger
+}
+
+start() {
+ ebegin "Running anacron"
+ anacron -s >>/var/log/cron.log 2>&1
+ eend $?
+}
diff --git a/sys-process/anacron/files/anacrontab b/sys-process/anacron/files/anacrontab
new file mode 100644
index 000000000000..c279929fcb65
--- /dev/null
+++ b/sys-process/anacron/files/anacrontab
@@ -0,0 +1,11 @@
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+# format: period delay job-identifier command
+##
+## If you turn any of the following on, make sure that the
+## regular cron daemon does not run them also. This could
+## lead to double execution of the jobs.
+#1 5 cron.daily run-parts /etc/cron.daily
+#7 10 cron.weekly run-parts /etc/cron.weekly
+#30 15 cron.monthly run-parts /etc/cron.monthly
+
diff --git a/sys-process/anacron/metadata.xml b/sys-process/anacron/metadata.xml
new file mode 100644
index 000000000000..6cf88ebdc1c8
--- /dev/null
+++ b/sys-process/anacron/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cron-bugs@gentoo.org</email>
+ <name>Gentoo Cron Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">anacron</remote-id>
+ </upstream>
+</pkgmetadata>