Ticket #18221: Portfile-fcron.diff
File Portfile-fcron.diff, 3.0 KB (added by compconsultant@…, 16 years ago) |
---|
-
Portfile
old new 1 # $Id : Portfile 33297 2008-01-23 09:32:47Z ryandesign@macports.org$1 # $Id$ 2 2 3 3 PortSystem 1.0 4 4 5 5 name fcron 6 version 3.0. 26 version 3.0.4 7 7 categories sysutils 8 8 platforms darwin 9 maintainers nomaintainer9 maintainers yahoo.com:compconsultant 10 10 description fcron is an alternative scheduler aka cron daemon 11 11 long_description fcron is a scheduler. It aims at replacing Vixie Cron, so \ 12 it implements most of its functionalities. But contrary to \ 13 Vixie Cron, fcron does not need your system to be up 7 \ 14 days a week, 24 hours a day : it also works well with \ 15 systems which are not running neither all the time nor \ 16 regularly (contrary to anacrontab). 17 18 homepage http://fcron.free.fr/ 19 master_sites ${homepage}/archives/ 20 worksrcdir ${distname} 21 distname ${distname}.src 22 checksums md5 f35e6af41d356ebcb38882f86a14fb94 \ 23 sha1 76df8bdfb874df78e81885eca90f1b9c91b0bd24 \ 24 rmd160 822f559550780c61c5822f4034fe99dd47577847 25 patchfiles patch-configure 26 27 28 configure.args --with-etcdir=${prefix}/etc \ 29 --with-piddir=${prefix}/var/run/fcron \ 30 --with-fifodir=${prefix}/var/run/fcron \ 31 --with-spooldir=${prefix}/var/spool/fcron \ 32 --with-boot-install=no \ 33 --with-pam=no 12 it implements most of its functionalities. But contrary to \ 13 Vixie Cron, fcron does not need your system to be up 7 \ 14 days a week, 24 hours a day : it also works well with \ 15 systems which are not running neither all the time nor \ 16 regularly (contrary to anacrontab). 17 18 homepage http://fcron.free.fr 19 master_sites ${homepage}/archives 20 extract.suffix .src.tar.gz 21 checksums md5 5a26a1dfd91fdc7e87401e98aef870e6 \ 22 sha1 daaa5287be026a425ea5bb56959ad38b1b6d030a \ 23 rmd160 2bb8eb489251eaa1380b4e37b6526d2040291313 24 25 patchfiles patch-fcrontab.c.diff 26 27 configure.args --with-boot-install=no \ 28 --with-pam=no \ 29 --with-selinux=no 34 30 35 31 startupitem.create yes 36 32 startupitem.name fcron … … 38 34 startupitem.stop "\[ -r ${prefix}/var/run/fcron/fcron.pid \] \\" \ 39 35 "&& kill -KILL `cat ${prefix}/var/run/fcron/fcron.pid`" 40 36 37 destroot.keepdirs ${destroot}${prefix}/var/spool/fcron \ 38 ${destroot}${prefix}/var/run/fcron 41 39 pre-destroot { 42 # add user:group 'fcron:fcron'43 40 addgroup fcron 44 41 set gid [existsgroup fcron] 45 adduser fcron shell=/bin/ sh gid=${gid} \46 home=${prefix}/var/run/fcron realname=fcron\Server42 adduser fcron shell=/bin/bash gid=${gid} \ 43 realname=fcronServer 47 44 } 48 45 post-destroot { 49 46 set dp ${destroot}${prefix} 50 xinstall -m 755 -d ${dp}/var/run/fcron/ ${dp}/var/spool/fcron 51 system "touch ${dp}/var/spool/fcron/fcron ${dp}/var/run/fcron/fcron.pid" 52 file attributes ${dp}/var/spool/fcron -owner fcron -group fcron 53 file attributes ${dp}/var/spool/fcron/fcron -owner fcron -group fcron 54 file attributes ${dp}/var/run/fcron/fcron.pid -owner root -group wheel 47 foreach file [glob ${dp}/etc/fcron*] { 48 file rename ${file} ${file}-default 49 } 55 50 } 56 51