source: trunk/dports/sysutils/fcron/Portfile

Last change on this file was 127025, checked in by khindenburg@…, 3 years ago

fcron: update notes to correct instructions for starting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 127025 2014-10-19 17:18:25Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                fcron
7version             3.2.0
8categories          sysutils
9platforms           darwin
10license             GPL-2
11maintainers         yahoo.com:compconsultant
12description         fcron is an alternative scheduler aka cron daemon
13long_description    fcron is a scheduler. It aims at replacing Vixie Cron, so \
14    it implements most of its functionalities. But contrary to \
15    Vixie Cron, fcron does not need your system to be up 7 \
16    days a week, 24 hours a day : it also works well with \
17    systems which are not running neither all the time nor \
18    regularly (contrary to anacrontab).
19
20homepage            http://fcron.free.fr
21master_sites        ${homepage}/archives
22extract.suffix      .src.tar.gz
23
24checksums           rmd160  4cba8ea99361f201b46194b91529ca77c59fd021 \
25                    sha256  eb13b86ed96805d117e19847f1da30b834f1990f7ef4c38f5007234d44679564
26
27configure.args      --with-boot-install=no \
28                    --with-pam=no \
29                    --with-selinux=no
30
31set startup_root ""
32startupitem.create  yes
33startupitem.name    fcron
34startupitem.start   "\[ -x ${prefix}/sbin/fcron \] && ${prefix}/sbin/fcron -b"
35startupitem.stop    "\[ -r ${prefix}/var/run/fcron.pid \] \\" \
36                    "&& kill -KILL `cat ${prefix}/var/run/fcron.pid`"
37
38destroot.keepdirs   ${destroot}${prefix}/var/spool/fcron
39
40add_users fcron group=fcron shell=/bin/bash realname=fcronServer
41
42post-destroot {
43    foreach file [glob ${destroot}${prefix}/etc/fcron*] {
44        file rename ${file} ${file}.sample
45    }
46}
47
48notes "
49Before starting ${name}, create the configuration file ${prefix}/etc/fcron.conf\
50by using ${prefix}/etc/fcron.conf.sample as a reference.
51
52Before starting ${name}, create the file ${prefix}/etc/fcron.allow\
53by using ${prefix}/etc/fcron.allow.sample as a reference.
54
55A startup item has been generated that will aid in\
56starting ${name} with launchd. It is disabled\
57by default. Execute the following command to start it,\
58and to cause it to launch at startup:
59
60sudo launchctl load -w ${startup_root}/Library/LaunchDaemons/org.macports.fcron.plist
61
62"
63
64livecheck.type      regex
65livecheck.regex     {Stable : \<.*?\>([0-9.]+)\<}
Note: See TracBrowser for help on using the repository browser.