sys-process/scron: new package, add 0.4

Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
This commit is contained in:
Efe İzbudak
2023-07-13 10:21:49 -04:00
parent 79f17c5eb9
commit bd4613a133
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST scron-0.4.tar.gz 10263 BLAKE2B 87bcaa0157afd0fcf2eebfb3e17bad1eba187d503fe57089fe2fa9faa02f286ee5bc13c2ca216df31bdfd2a1700d82bb5ddfa161e451c31101e08be08339e38f SHA512 585c8dd1acab29d37890b62b4c8de2ae6a26bc67c3e95c1c8eaefc6672b6a1b0c3432a93b34d44eb693ba322f4b8f29495e1a825e87b376edb6c5c842da26f1f

View File

@@ -0,0 +1,12 @@
#!/sbin/openrc-run
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/crond"
pidfile="/run/crond.pid"
depend() {
use clock logger
need localmount
provide cron
}

View File

@@ -0,0 +1,34 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Simple cron daemon"
HOMEPAGE="https://git.2f30.org/scron/"
SRC_URI="https://dl.2f30.org/releases/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="
!sys-process/cronie
!sys-process/bcron
!sys-process/dcron
!sys-process/fcron
!sys-process/systemd-cron
"
BDEPEND=""
src_install() {
emake MANPREFIX="/usr/share/man" PREFIX="/usr" DESTDIR="${D}" install
einstalldocs
newinitd "${FILESDIR}/${PN}-0.4-initd" ${PN}
}
pkg_postinst() {
elog "Start scron as a system service with"
elog "'rc-service scron start'. Enable it at startup with"
elog "'rc-update add scron default'."
}