Ticket #18221: Portfile-fcron.diff

File Portfile-fcron.diff, 3.0 KB (added by compconsultant@…, 15 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 33297 2008-01-23 09:32:47Z ryandesign@macports.org $
     1# $Id$
    22
    33PortSystem 1.0
    44
    55name                    fcron
    6 version                 3.0.2
     6version                 3.0.4
    77categories              sysutils
    88platforms               darwin
    9 maintainers             nomaintainer
     9maintainers             yahoo.com:compconsultant
    1010description             fcron is an alternative scheduler aka cron daemon
    1111long_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
     18homepage                http://fcron.free.fr
     19master_sites            ${homepage}/archives
     20extract.suffix          .src.tar.gz
     21checksums               md5 5a26a1dfd91fdc7e87401e98aef870e6 \
     22                        sha1 daaa5287be026a425ea5bb56959ad38b1b6d030a \
     23                        rmd160 2bb8eb489251eaa1380b4e37b6526d2040291313
     24
     25patchfiles              patch-fcrontab.c.diff
     26
     27configure.args          --with-boot-install=no \
     28                        --with-pam=no \
     29                        --with-selinux=no
    3430
    3531startupitem.create      yes
    3632startupitem.name        fcron
     
    3834startupitem.stop        "\[ -r ${prefix}/var/run/fcron/fcron.pid \] \\" \
    3935                                        "&& kill -KILL `cat ${prefix}/var/run/fcron/fcron.pid`"
    4036
     37destroot.keepdirs       ${destroot}${prefix}/var/spool/fcron \
     38                        ${destroot}${prefix}/var/run/fcron
    4139pre-destroot    {
    42         # add user:group 'fcron:fcron'
    4340        addgroup fcron
    4441        set gid [existsgroup fcron]
    45         adduser fcron shell=/bin/sh gid=${gid} \
    46                         home=${prefix}/var/run/fcron realname=fcron\ Server
     42        adduser fcron shell=/bin/bash gid=${gid} \
     43                        realname=fcronServer
    4744}
    4845post-destroot {
    4946        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        }
    5550}
    5651