diff options
author | ng0 <ng0@we.make.ritual.n0.is> | 2016-08-24 18:48:36 +0000 |
---|---|---|
committer | ng0 <ng0@we.make.ritual.n0.is> | 2016-08-24 18:48:36 +0000 |
commit | a191d760ab1809c64c5ea9617d657789ed37f67f (patch) | |
tree | a474498736bad57f1332b1bf64cf63c1dd9d3638 /sys-process | |
parent | 8b291fe7155c43dcfa38f9a42e1381f180ac2f2f (diff) | |
download | youbroketheinternet-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.2 | 11 | ||||
-rw-r--r-- | sys-process/scron/scron-0.3.2.ebuild | 20 | ||||
-rw-r--r-- | sys-process/scron/scron-9999.ebuild | 39 |
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 | |||
3 | command="crond" | ||
4 | name="cron daemon" | ||
5 | pidfile="/var/run/crond.pid" | ||
6 | extra_started_commands="reload" | ||
7 | |||
8 | reload() { | ||
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 | |||
4 | EAPI="5" | ||
5 | |||
6 | DESCRIPTION="Simple cron daemon" | ||
7 | HOMEPAGE="http://git.2f30.org/scron/" | ||
8 | SRC_URI="http://git.2f30.org/scron/snapshot/${P}.tar.gz" | ||
9 | |||
10 | LICENSE="MIT" | ||
11 | SLOT="0" | ||
12 | KEYWORDS="~x86 ~amd64" | ||
13 | |||
14 | RESTRICT="strip" | ||
15 | |||
16 | src_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 | |||
4 | EAPI="5" | ||
5 | |||
6 | inherit git-r3 | ||
7 | |||
8 | DESCRIPTION="Simple cron daemon" | ||
9 | HOMEPAGE="http://git.2f30.org/scron/" | ||
10 | EGIT_REPO_URI="git://git.2f30.org/scron.git" | ||
11 | |||
12 | LICENSE="MIT" | ||
13 | SLOT="0" | ||
14 | KEYWORDS="" | ||
15 | |||
16 | RDEPEND="" | ||
17 | DEPEND=" | ||
18 | ${RDEPEND} | ||
19 | !sys-process/cronbase | ||
20 | " | ||
21 | |||
22 | RESTRICT="strip" | ||
23 | |||
24 | src_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 | |||
36 | pkg_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 | } | ||