Ticket #15307: Portfile.diff

File Portfile.diff, 1.1 KB (added by tenomoto (Takeshi Enomoto), 16 years ago)
  • Portfile

    old new  
     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
    12# $Id: Portfile 37983 2008-07-01 22:22:32Z simon@macports.org $
    23
    34PortSystem 1.0
     
    3839                        ${destroot}${prefix}/share/doc/${name}
    3940}
    4041
     42variant rsyncd description {installs rsyncd} {
     43        post-destroot {
     44                xinstall -m 644 ${filespath}/rsyncd.conf ${destroot}${prefix}/etc/${name}d.conf
     45        }
     46        startupitem.create  yes
     47        startupitem.name    ${name}d
     48        startupitem.logfile ${prefix}/var/log/${name}d.log
     49        startupitem.start   "${prefix}/bin/rsync --daemon --config=${prefix}/etc/${name}d.conf"
     50        startupitem.stop    "kill `cat ${prefix}/var/run/${name}d.pid`"
     51        startupitem.pidfile auto ${prefix}/var/run/${name}d.pid
     52}
     53
    4154livecheck.check regex
    4255livecheck.regex "Rsync version (\\d+(?:\\.\\d+)*) released"