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 1 2 # $Id: Portfile 37983 2008-07-01 22:22:32Z simon@macports.org $ 2 3 3 4 PortSystem 1.0 … … 38 39 ${destroot}${prefix}/share/doc/${name} 39 40 } 40 41 42 variant 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 41 54 livecheck.check regex 42 55 livecheck.regex "Rsync version (\\d+(?:\\.\\d+)*) released"