mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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@pm.me> Closes: https://github.com/gentoo/gentoo/pull/38448 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
ab190362ba
commit
299818b752
@@ -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
|
||||
|
||||
58
sys-process/dcron/dcron-4.6.ebuild
Normal file
58
sys-process/dcron/dcron-4.6.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user