aboutsummaryrefslogtreecommitdiff
path: root/sys-process
diff options
context:
space:
mode:
authorng0 <ng0@we.make.ritual.n0.is>2016-08-24 18:48:36 +0000
committerng0 <ng0@we.make.ritual.n0.is>2016-08-24 18:48:36 +0000
commita191d760ab1809c64c5ea9617d657789ed37f67f (patch)
treea474498736bad57f1332b1bf64cf63c1dd9d3638 /sys-process
parent8b291fe7155c43dcfa38f9a42e1381f180ac2f2f (diff)
downloadyoubroketheinternet-overlay-a191d760ab1809c64c5ea9617d657789ed37f67f.tar.gz
youbroketheinternet-overlay-a191d760ab1809c64c5ea9617d657789ed37f67f.zip
sys-process/scron: new, import from suckless-overlay
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/scron/files/init-0.3.211
-rw-r--r--sys-process/scron/scron-0.3.2.ebuild20
-rw-r--r--sys-process/scron/scron-9999.ebuild39
3 files changed, 70 insertions, 0 deletions
diff --git a/sys-process/scron/files/init-0.3.2 b/sys-process/scron/files/init-0.3.2
new file mode 100644
index 0000000..dd756b1
--- /dev/null
+++ b/sys-process/scron/files/init-0.3.2
@@ -0,0 +1,11 @@
1#!/sbin/runscript
2
3command="crond"
4name="cron daemon"
5pidfile="/var/run/crond.pid"
6extra_started_commands="reload"
7
8reload() {
9 ebegin "Reloading crontab"
10 start-stop-daemon --signal HUP --pidfile "${pidfile}"
11}
diff --git a/sys-process/scron/scron-0.3.2.ebuild b/sys-process/scron/scron-0.3.2.ebuild
new file mode 100644
index 0000000..b29c471
--- /dev/null
+++ b/sys-process/scron/scron-0.3.2.ebuild
@@ -0,0 +1,20 @@
1# Copyright 2016 © ng0
2# Distributed under the terms of the GNU General Public License v3 or later
3
4EAPI="5"
5
6DESCRIPTION="Simple cron daemon"
7HOMEPAGE="http://git.2f30.org/scron/"
8SRC_URI="http://git.2f30.org/scron/snapshot/${P}.tar.gz"
9
10LICENSE="MIT"
11SLOT="0"
12KEYWORDS="~x86 ~amd64"
13
14RESTRICT="strip"
15
16src_install() {
17 emake DESTDIR="${D}" PREFIX="${EPREFIX}" install
18 newinitd "${FILESDIR}/init-0.3.2" crond
19 dodoc README
20}
diff --git a/sys-process/scron/scron-9999.ebuild b/sys-process/scron/scron-9999.ebuild
new file mode 100644
index 0000000..be61efe
--- /dev/null
+++ b/sys-process/scron/scron-9999.ebuild
@@ -0,0 +1,39 @@
1# Copyright © 2016 ng0
2# Distributed under the terms of the GNU General Public License v3 or later
3
4EAPI="5"
5
6inherit git-r3
7
8DESCRIPTION="Simple cron daemon"
9HOMEPAGE="http://git.2f30.org/scron/"
10EGIT_REPO_URI="git://git.2f30.org/scron.git"
11
12LICENSE="MIT"
13SLOT="0"
14KEYWORDS=""
15
16RDEPEND=""
17DEPEND="
18 ${RDEPEND}
19 !sys-process/cronbase
20"
21
22RESTRICT="strip"
23
24src_install() {
25 emake \
26 DESTDIR="${D}" \
27 PREFIX="${EPREFIX}/usr" \
28 MANPREFIX="${PREFIX}/usr/share/man/" \
29 install
30
31 newinitd "${FILESDIR}/init-0.3.2" crond
32
33 dodoc README
34}
35
36pkg_postinst() {
37 elog "You will need to set up /etc/crontab file before running scron."
38 elog "For details, please see the scron(1) manual page."
39}