From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2BBFE15815E for ; Thu, 1 Feb 2024 13:38:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F9FEE29F5; Thu, 1 Feb 2024 13:38:37 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53A7DE29F5 for ; Thu, 1 Feb 2024 13:38:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 59661343212 for ; Thu, 1 Feb 2024 13:38:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C1E19AE3 for ; Thu, 1 Feb 2024 13:38:34 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1706794712.cb0bc199d4224e880fce5f67e6e8c19d46c3129a.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/anacron/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/anacron/anacron-2.3-r5.ebuild X-VCS-Directories: sys-process/anacron/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: cb0bc199d4224e880fce5f67e6e8c19d46c3129a X-VCS-Branch: master Date: Thu, 1 Feb 2024 13:38:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 17c823b0-7d0e-4dfa-bbe5-d42d02e5c55e X-Archives-Hash: 8dc833708c528db93ecbb906d66fa111 commit: cb0bc199d4224e880fce5f67e6e8c19d46c3129a Author: Leonardo Hernández Hernández proton me> AuthorDate: Sat Sep 2 04:02:48 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Feb 1 13:38:32 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0bc199 sys-process/anacron: update EAPI 6 -> 8 Signed-off-by: Leonardo Hernández Hernández proton.me> Closes: https://github.com/gentoo/gentoo/pull/32545 Signed-off-by: Joonas Niilola gentoo.org> sys-process/anacron/anacron-2.3-r5.ebuild | 68 +++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) 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..b29113a20570 --- /dev/null +++ b/sys-process/anacron/anacron-2.3-r5.ebuild @@ -0,0 +1,68 @@ +# 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=" + 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 +}