diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-08-12 06:32:46 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-08-12 06:32:46 +0100 |
commit | 28e3d252dc8ac8a5635206dfefe1cfe05058d1db (patch) | |
tree | e75bce604750fb72e53ed3684059e2e5d2094509 /sys-process/dcron/dcron-4.5-r2.ebuild | |
parent | f625b9919a60a30f1bd860f7d1b2eac183ced593 (diff) |
gentoo resync : 12.08.2018
Diffstat (limited to 'sys-process/dcron/dcron-4.5-r2.ebuild')
-rw-r--r-- | sys-process/dcron/dcron-4.5-r2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-process/dcron/dcron-4.5-r2.ebuild b/sys-process/dcron/dcron-4.5-r2.ebuild new file mode 100644 index 000000000000..e0d83c3e1c1b --- /dev/null +++ b/sys-process/dcron/dcron-4.5-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 ~s390 ~sh ~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 +} |