summaryrefslogtreecommitdiff
path: root/sys-process/anacron
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-01 17:48:32 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-01 17:48:32 +0000
commit22230e510e031a97cafc85353610e573b7508e98 (patch)
tree5c9d831e9e8f88f2242dc85d277019715f77c501 /sys-process/anacron
parent1e39e6a8c127767a57f0465ed9ece4fefb44b4ae (diff)
gentoo auto-resync : 01:02:2024 - 17:48:32
Diffstat (limited to 'sys-process/anacron')
-rw-r--r--sys-process/anacron/Manifest1
-rw-r--r--sys-process/anacron/anacron-2.3-r5.ebuild71
2 files changed, 72 insertions, 0 deletions
diff --git a/sys-process/anacron/Manifest b/sys-process/anacron/Manifest
index 9b02e16c729e..eae6c91a448e 100644
--- a/sys-process/anacron/Manifest
+++ b/sys-process/anacron/Manifest
@@ -4,4 +4,5 @@ AUX anacron.rc6 249 BLAKE2B f5bcbd2ef69c776d2eb79095cdac4c2bd3a8890c8812a6e2d85b
AUX anacrontab 468 BLAKE2B 4f77a6759934e0e2693f3abeb9fe208de059d019906dc6c09160ac8b12e0c311d5f3414092c1cb6e62c947d950bf5fdf7990a6c351f4218f366ab2aaa4280c08 SHA512 f04850d22b459fe95bf5ccf594143f6fb02a1d29fc9cf36d2965a8b846920bc36b0d2d5665c5d6ac9828b904a4f30da49f62f6bedd51c75f548b981e056f097e
DIST anacron-2.3.tar.gz 24140 BLAKE2B 70fa2c716172a538b6810b65a4b80d8d8b70e8de7569856236f6386e30a3a77acc6b7aa11dfc3ce06aa432bc74009aa6dd44fd8d3b70f8585b979d0c5c596b98 SHA512 27bbbfad5bc35ddc68e4345c3a3acefd0a6f794aaba890f7c75ec42b2e4c4200fbb1667e75b2e344afb7722bdc9ba3dc5a7db66d3369808bc9f483ea3509849c
EBUILD anacron-2.3-r4.ebuild 1444 BLAKE2B 86e245a72f4d2e031087f12a4e378dca70a5ebe31ad1ad34cc4bbd5ed38121fa629ed452a6aca42ad0d48dc5c4086dbac1688837b4c379b8e6995a135b3101b9 SHA512 8b74d79ee9787e71e839382951e06ff5b25a23163fe84705a9296ce8a3e07212e956ab9fe463d2234653a6833533c50543439458b3a885dc36cad37bc5f1c466
+EBUILD anacron-2.3-r5.ebuild 1479 BLAKE2B 7a55e7243e5ca4600d0a05bc7847d0b4e9660b9e36d5226c08b15020fa6bb6933fa9a771b8db603634a6adde3e0b17bd33f9837e489f3d29f2cec073bc7ef2aa SHA512 a53df4e73c908669b9c752e2a4b6957e762349b1b158c3e84b00d9bd7a23a2fd44879ae0d396d7ba03a517fa646c9236e41d363f1fcbdd054b769e0143dbf204
MISC metadata.xml 245 BLAKE2B d86f1fdb933e73a5e78a4f0aa0ef6b797c02252fb1aaeaf354962de0169867785c5105b3ff63359611199bc5630da2f70e2dcd9885f2050bfcfdd7f4cf32fc5a SHA512 ac854f03ff1fb2c67db976e69f212eca29bc759756d6514249b259f9999657d6f97db403a8ba8211062185f95aa5c7bf42660c001362f2e9574b97af2b6a0b11
diff --git a/sys-process/anacron/anacron-2.3-r5.ebuild b/sys-process/anacron/anacron-2.3-r5.ebuild
new file mode 100644
index 000000000000..ee1545eb36d4
--- /dev/null
+++ b/sys-process/anacron/anacron-2.3-r5.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="A periodic command scheduler"
+HOMEPAGE="https://anacron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86"
+
+DEPEND="
+ acct-group/cron
+ sys-process/cronbase
+"
+
+RDEPEND="
+ ${DEPEND}
+ virtual/mta
+"
+
+BDEPEND="acct-group/cron"
+
+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
+}