[38183] trunk/dports/net/rsync
simon at macports.org
simon at macports.org
Fri Jul 11 08:46:38 PDT 2008
Revision: 38183
http://trac.macosforge.org/projects/macports/changeset/38183
Author: simon at macports.org
Date: 2008-07-11 08:46:38 -0700 (Fri, 11 Jul 2008)
Log Message:
-----------
net/rsync: Added a variant to support rsyncd, closes #15307. Thanks to takeshi at macports.org.
Modified Paths:
--------------
trunk/dports/net/rsync/Portfile
Added Paths:
-----------
trunk/dports/net/rsync/files/
trunk/dports/net/rsync/files/rsyncd.conf.example
Modified: trunk/dports/net/rsync/Portfile
===================================================================
--- trunk/dports/net/rsync/Portfile 2008-07-11 15:10:53 UTC (rev 38182)
+++ trunk/dports/net/rsync/Portfile 2008-07-11 15:46:38 UTC (rev 38183)
@@ -69,3 +69,30 @@
patchfiles-delete fileflags.diff \
crtimes.diff
}
+
+variant rsyncd description {Installs rsyncd.conf and a StartupItem for rsyncd} {
+ post-destroot {
+ xinstall -m 644 ${filespath}/rsyncd.conf.example \
+ ${destroot}${prefix}/etc/rsyncd.conf.example
+ reinplace "s|__PREFIX__|${prefix}|g" \
+ ${destroot}${prefix}/etc/rsyncd.conf.example
+ }
+
+ post-install {
+ ui_msg "****************************************************************"
+ ui_msg "* *"
+ ui_msg "* To use the rsyncd server you must rename *"
+ ui_msg "* ${prefix}/etc/rsyncd.conf.example to rsyncd.conf and add *"
+ ui_msg "* your modules there. See 'man rsyncd.conf' for more *"
+ ui_msg "* information. *"
+ ui_msg "* *"
+ ui_msg "****************************************************************"
+ }
+
+ startupitem.create yes
+ startupitem.name rsyncd
+ startupitem.logfile ${prefix}/var/log/rsyncd.log
+ startupitem.start "${prefix}/bin/rsync --daemon --config=${prefix}/etc/rsyncd.conf"
+ startupitem.stop "kill `cat ${prefix}/var/run/rsyncd.pid`"
+ startupitem.pidfile auto ${prefix}/var/run/rsyncd.pid
+}
Added: trunk/dports/net/rsync/files/rsyncd.conf.example
===================================================================
--- trunk/dports/net/rsync/files/rsyncd.conf.example (rev 0)
+++ trunk/dports/net/rsync/files/rsyncd.conf.example 2008-07-11 15:46:38 UTC (rev 38183)
@@ -0,0 +1,12 @@
+# Sample rsyncd configuration file.
+# You must rename it rsyncd.conf to use it.
+
+
+log file=__PREFIX__/var/log/rsyncd.log
+pid file=__PREFIX__/var/run/rsyncd.pid
+read only=true
+use chroot=yes
+list=false
+
+# Specify the modules you want to use here. See "man rsyncd.conf" for more
+# information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080711/19f03e2e/attachment.html
More information about the macports-changes
mailing list