1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Network file distribution/synchronization utility
8 HOMEPAGE= https://rsync.samba.org/
12 SITES[main]= https://rsync.samba.org/ftp/rsync/
13 ftp://ftp.samba.org/pub/rsync/
14 http://www.mirrorservice.org/sites/rsync.samba.org/
15 DISTFILE[1]= rsync-3.2.6.tar.gz:main
17 SPKGS[standard]= single
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILDRUN_DEPENDS= xxhash:single:standard
24 USES= cpe iconv zstd zlib lz4 shebangfix ssl
28 FPC_EQUIVALENT= net/rsync
29 SHEBANG_FILES= support/rrsync
32 CONFIGURE_ARGS= --disable-debug
36 --with-rsyncd-conf={{PREFIX}}/etc/rsync/rsyncd.conf
37 --with-included-popt=yes
38 --with-included-zlib=no
42 INSTALL_TARGET= install-strip
43 RC_SUBR= rsyncd:single
49 ${REINPLACE_CMD} -e 's|perl.*|${DO_NADA}|' ${WRKSRC}/Makefile.in
50 ${REINPLACE_CMD} -e 's:/etc/:${PREFIX}/etc/rsync/:g' \
51 ${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5
52 ${REINPLACE_CMD} -e 's|/usr/bin/rsync|${PREFIX}/bin/rsync|g' \
53 ${WRKSRC}/support/rrsync
56 @${MKDIR} ${STAGEDIR}${PREFIX}/etc/rsync
57 ${INSTALL_DATA} ${FILESDIR}/rsyncd.conf.sample ${STAGEDIR}${PREFIX}/etc/rsync
58 ${INSTALL_SCRIPT} ${WRKSRC}/support/rrsync ${STAGEDIR}${PREFIX}/sbin
60 [FILE:494:descriptions/desc.single]
61 rsync is a replacement for rcp that has many more features.
63 rsync uses the "rsync algorithm" which provides a very fast method for
64 bringing remote files into sync. It does this by sending just the
65 differences in the files across the link, without requiring that both
66 sets of files are present at one of the ends of the link beforehand.
67 This makes rsync a good remote file distribution/synchronization utility
68 in a dialup PPP/SLIP environment.
70 Note, requires rsync on the destination machine.
74 fb3365bab27837d41feaf42e967c57bd3a47bc8f10765a3671efd6a3835454d3 1138593 rsync-3.2.6.tar.gz
77 [FILE:148:manifests/plist.single]
78 @sample etc/rsync/rsyncd.conf.sample
86 share/man/man5/rsyncd.conf.5.gz
89 [FILE:768:files/rsyncd.conf.sample]
90 # rsyncd.conf - Example file, see rsyncd.conf(5)
93 # Set this if you want to stop rsync daemon with rc.d scripts
94 pid file = /var/run/rsyncd.pid
96 # Edit this file before running rsync daemon!!
102 #syslog facility = local5
105 # path = /var/ftp/pub
106 # comment = whole ftp area (approx 6.1 GB)
109 # path = /var/ftp/pub/samba
110 # comment = Samba ftp area (approx 300 MB)
113 # path = /var/ftp/pub/rsync
114 # comment = rsync ftp area (approx 6 MB)
117 # path = /public_html/samba
118 # comment = Samba WWW pages (approx 240 MB)
122 # comment = CVS repository (requires authentication)
123 # auth users = tridge, susan
124 # secrets file = /raven/etc/rsync/rsyncd.secrets
127 [FILE:974:files/rsyncd.in]
133 # BEFORE: securelevel
136 # Add the following lines to /etc/rc.conf to enable `%%NAME%%':
138 # %%NAME%%_enable="YES"
139 # %%NAME%%_flags="<set as needed>"
141 # See rsync(1) for %%NAME%%_flags
147 rcvar=%%NAME%%_enable
149 command="%%PREFIX%%/bin/rsync"
150 start_precmd="%%NAME%%_precmd"
151 pidfile="/var/run/$name.pid"
153 # read configuration and set defaults
154 load_rc_config "$name"
155 : ${%%NAME%%_enable="NO"}
156 : ${%%NAME%%_configfile:=%%ETCDIR%%/$name.conf}
158 required_files="${%%NAME%%_configfile}"
160 command_args="--daemon --config ${%%NAME%%_configfile}"
164 if [ -f "%%PREFIX%%/etc/$name.conf" ] && [ ! -L "%%PREFIX%%/etc/$name.conf" ]; then
165 echo "Found %%PREFIX%%/etc/$name.conf in old location. Migrating to %%ETCDIR%%/$name.conf."
166 mv %%PREFIX%%/etc/$name.conf %%ETCDIR%%/$name.conf
167 ln -s %%ETCDIR%%/$name.conf %%PREFIX%%/etc/$name.conf