public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/dcron/
Date: Fri, 17 Jan 2025 13:36:07 +0000 (UTC)	[thread overview]
Message-ID: <1737120959.299818b7525cde7a143e80bef678cc1a2abd5e6e.juippis@gentoo> (raw)

commit:     299818b7525cde7a143e80bef678cc1a2abd5e6e
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Thu Jan  9 11:10:17 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Jan 17 13:35:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=299818b7

sys-process/dcron: add 4.6 with new upstream

- remove PATCHES
  - PIDfile added in ce7ddfa552cd948e8c87fb2a25b4cf65f5b216c8
  - ldflags added in b2ca901b918029fdfef574d8109aae98aa035111
  	- with a typo, ine sed fixes it
- define empty src_test as upstream does not provide them
- update DESCRIPTION, HOMEPAGE & LICENSE
- patch out empty LDFLAGS assignment to respect system ones

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Closes: https://github.com/gentoo/gentoo/pull/38448
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sys-process/dcron/Manifest         |  1 +
 sys-process/dcron/dcron-4.6.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/sys-process/dcron/Manifest b/sys-process/dcron/Manifest
index 026c58f9f228..c8f167571a4f 100644
--- a/sys-process/dcron/Manifest
+++ b/sys-process/dcron/Manifest
@@ -1 +1,2 @@
 DIST dcron-4.5.tar.gz 44978 BLAKE2B c77cea026b074eed11200bb335cc2f58f7346410f88ae50685db137583beddab14e50394233b8e0f27ae7e3bf30c7875b539db84c32236f78f52bf91862b3272 SHA512 08521391d16ba5adf80278ec2a734319c26c48841fd94b119c0b27d744c2cfb3562b1a3630135a03d1c43b1668d49262713abb20ff5f7ecd397a2a19a2f6105a
+DIST dcron-4.6.tar.gz 46184 BLAKE2B 2cd90b3638813b2dd683008c43f8233d930a0d642833b67c6a210c626134ee343ecbed7324be89265b74b49f1152666fa7fcc3bc6cc3535787967697f0591184 SHA512 3f0ba26e488df804a9178478fd693ea7ad4b7d5f80230690669485e80f2f148da71d81e44e1c7a7e333078623caba6e1c3a51a8cdfada96437149872b7231863

diff --git a/sys-process/dcron/dcron-4.6.ebuild b/sys-process/dcron/dcron-4.6.ebuild
new file mode 100644
index 000000000000..6c7a9037427c
--- /dev/null
+++ b/sys-process/dcron/dcron-4.6.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cron toolchain-funcs systemd
+
+DESCRIPTION="Dillon's lightweight and minimalist cron daemon"
+HOMEPAGE="https://github.com/ptchinster/dcron"
+SRC_URI="https://github.com/ptchinster/dcron/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+src_prepare() {
+	default
+	# fix typo: https://github.com/ptchinster/dcron/pull/2
+	sed -i 's/CLFAGS/CFLAGS/g' Makefile || die
+
+	# use system LDFLAGS: https://github.com/ptchinster/dcron/issues/3
+	sed -i 's/^LDFLAGS =//g' Makefile || die
+}
+
+src_configure() {
+	tc-export CC
+
+	cat > config <<-EOF || die
+		PREFIX = /usr
+		CRONTAB_GROUP = cron
+	EOF
+}
+
+src_test(){ : ; } # no tests
+
+src_install() {
+	default
+	dodoc extra/run-cron extra/root.crontab "${FILESDIR}"/crontab
+
+	docrondir
+	docron crond -m0700 -o root -g wheel
+	docrontab
+
+	insinto /etc
+	doins "${FILESDIR}"/crontab
+
+	insinto /etc/cron.d
+	doins extra/prune-cronstamps
+
+	insinto /etc/logrotate.d
+	newins extra/crond.logrotate dcron
+
+	keepdir /var/spool/cron/cronstamps
+
+	newinitd "${FILESDIR}"/dcron.init dcron
+	newconfd "${FILESDIR}"/dcron.confd dcron
+	systemd_dounit "${FILESDIR}"/dcron.service
+}


             reply	other threads:[~2025-01-17 13:36 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-17 13:36 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 16:42 [gentoo-commits] repo/gentoo:master commit in: sys-process/dcron/ Arthur Zamarin
2025-03-08 14:51 Jakov Smolić
2025-03-08 14:34 Jakov Smolić
2025-03-08 13:27 Arthur Zamarin
2025-03-08 13:25 Arthur Zamarin
2025-03-08 13:12 Arthur Zamarin
2025-03-08 11:25 Sam James
2025-01-17 13:36 Joonas Niilola
2023-03-11 21:26 David Seifert
2022-08-28  6:30 WANG Xuerui
2021-07-21  2:22 Yixun Lan
2019-12-15 13:37 Michał Górny
2019-11-14 11:55 Agostino Sarubbo
2019-11-08 17:10 Aaron Bauman
2019-11-02  7:58 Mikle Kolyada
2019-11-02  7:58 Mikle Kolyada
2019-11-02  7:58 Mikle Kolyada
2019-10-22  7:25 Agostino Sarubbo
2019-10-22  7:24 Agostino Sarubbo
2019-10-21 19:21 Sergei Trofimovich
2019-10-21 12:48 Agostino Sarubbo
2019-10-21 12:18 Agostino Sarubbo
2019-10-21 12:17 Agostino Sarubbo
2019-10-21 12:16 Agostino Sarubbo
2018-08-09 19:18 Anthony G. Basile
2016-05-19 18:16 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1737120959.299818b7525cde7a143e80bef678cc1a2abd5e6e.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox