52 | | variant rsyncd description {Installs rsyncd.conf and a StartupItem for rsyncd} { |
53 | | post-destroot { |
54 | | xinstall -m 644 ${filespath}/rsyncd.conf.example \ |
55 | | ${destroot}${prefix}/etc/rsyncd.conf.example |
56 | | reinplace "s|__PREFIX__|${prefix}|g" \ |
57 | | ${destroot}${prefix}/etc/rsyncd.conf.example |
58 | | } |
| 57 | startupitem.create yes |
| 58 | startupitem.name rsyncd |
| 59 | startupitem.logfile ${prefix}/var/log/rsyncd.log |
| 60 | startupitem.start "${prefix}/bin/rsync --daemon --config=${prefix}/etc/rsyncd.conf" |
| 61 | startupitem.stop "kill `cat ${prefix}/var/run/rsyncd.pid`" |
| 62 | startupitem.pidfile auto ${prefix}/var/run/rsyncd.pid |
60 | | post-install { |
61 | | ui_msg "****************************************************************" |
62 | | ui_msg "* *" |
63 | | ui_msg "* To use the rsyncd server you must copy *" |
64 | | ui_msg "* ${prefix}/etc/rsyncd.conf.example to rsyncd.conf and add *" |
65 | | ui_msg "* your modules there. See 'man rsyncd.conf' for more *" |
66 | | ui_msg "* information. *" |
67 | | ui_msg "* *" |
68 | | ui_msg "****************************************************************" |
69 | | } |
70 | | |
71 | | startupitem.create yes |
72 | | startupitem.name rsyncd |
73 | | startupitem.logfile ${prefix}/var/log/rsyncd.log |
74 | | startupitem.start "${prefix}/bin/rsync --daemon --config=${prefix}/etc/rsyncd.conf" |
75 | | startupitem.stop "kill `cat ${prefix}/var/run/rsyncd.pid`" |
76 | | startupitem.pidfile auto ${prefix}/var/run/rsyncd.pid |
77 | | } |
| 64 | notes " |
| 65 | To use the rsyncd server you must copy\ |
| 66 | ${prefix}/etc/rsyncd.conf.example to rsyncd.conf and add\ |
| 67 | your modules there. See 'man rsyncd.conf' for more\ |
| 68 | information. |
| 69 | " |