You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-process/dcron/dcron-4.5-r2.ebuild

53 lines
1.1 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit cron toolchain-funcs systemd
DESCRIPTION="A cute little cron from Matt Dillon"
HOMEPAGE="http://www.jimpryor.net/linux/dcron.html http://apollo.backplane.com/FreeSrc/"
SRC_URI="http://www.jimpryor.net/linux/releases/${P}.tar.gz"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
LICENSE="GPL-2"
SLOT="0"
DOCS=( CHANGELOG README extra/run-cron extra/root.crontab "${FILESDIR}"/crontab )
PATCHES=( "${FILESDIR}"/${PN}-4.5-ldflags.patch "${FILESDIR}"/${PN}-4.5-pidfile.patch )
src_prepare() {
default
tc-export CC
cat <<-EOF > config
PREFIX = /usr
CRONTAB_GROUP = cron
EOF
}
src_install() {
default
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
}