Ravenports generated: 17 Sep 2022 15:25
[ravenports.git] / bucket_9C / rsync
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               rsync
4 VERSION=                3.2.6
5 KEYWORDS=               net
6 VARIANTS=               standard
7 SDESC[standard]=        Network file distribution/synchronization utility
8 HOMEPAGE=               https://rsync.samba.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
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
16 DF_INDEX=               1
17 SPKGS[standard]=        single
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 BUILDRUN_DEPENDS=       xxhash:single:standard
23
24 USES=                   cpe iconv zstd zlib lz4 shebangfix ssl
25
26 CPE_PRODUCT=            rsync
27 CPE_VENDOR=             samba
28 FPC_EQUIVALENT=         net/rsync
29 SHEBANG_FILES=          support/rrsync
30
31 MUST_CONFIGURE=         gnu
32 CONFIGURE_ARGS=         --disable-debug
33                         --enable-ipv6
34                         --enable-iconv
35                         --enable-iconv-open
36                         --with-rsyncd-conf={{PREFIX}}/etc/rsync/rsyncd.conf
37                         --with-included-popt=yes
38                         --with-included-zlib=no
39                         --with-rsh=ssh
40                         --disable-simd
41
42 INSTALL_TARGET=         install-strip
43 RC_SUBR=                rsyncd:single
44 SUB_LIST=               NAME=rsyncd
45
46 TEST_TARGET=            check
47
48 post-patch:
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
54
55 post-install:
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
59
60 [FILE:494:descriptions/desc.single]
61 rsync is a replacement for rcp that has many more features.
62
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.
69
70 Note, requires rsync on the destination machine.
71
72
73 [FILE:97:distinfo]
74 fb3365bab27837d41feaf42e967c57bd3a47bc8f10765a3671efd6a3835454d3      1138593 rsync-3.2.6.tar.gz
75
76
77 [FILE:148:manifests/plist.single]
78 @sample etc/rsync/rsyncd.conf.sample
79 bin/
80  rsync
81  rsync-ssl
82 sbin/rrsync
83 share/man/man1/
84  rsync-ssl.1.gz
85  rsync.1.gz
86 share/man/man5/rsyncd.conf.5.gz
87
88
89 [FILE:768:files/rsyncd.conf.sample]
90 # rsyncd.conf - Example file, see rsyncd.conf(5)
91 #
92
93 # Set this if you want to stop rsync daemon with rc.d scripts
94 pid file = /var/run/rsyncd.pid
95
96 # Edit this file before running rsync daemon!!
97
98 #uid = nobody
99 #gid = nobody
100 #use chroot = no
101 #max connections = 4
102 #syslog facility = local5
103
104 #[ftp]
105 #       path = /var/ftp/pub
106 #       comment = whole ftp area (approx 6.1 GB)
107
108 #[sambaftp]
109 #       path = /var/ftp/pub/samba
110 #       comment = Samba ftp area (approx 300 MB)
111
112 #[rsyncftp]
113 #       path = /var/ftp/pub/rsync
114 #       comment = rsync ftp area (approx 6 MB)
115
116 #[sambawww]
117 #       path = /public_html/samba
118 #       comment = Samba WWW pages (approx 240 MB)
119
120 #[cvs]
121 #       path = /data/cvs
122 #       comment = CVS repository (requires authentication)
123 #       auth users = tridge, susan
124 #       secrets file = /raven/etc/rsync/rsyncd.secrets
125
126
127 [FILE:974:files/rsyncd.in]
128 #!/bin/sh
129 #
130
131 # PROVIDE: %%NAME%%
132 # REQUIRE: LOGIN
133 # BEFORE:  securelevel
134 # KEYWORD: shutdown
135
136 # Add the following lines to /etc/rc.conf to enable `%%NAME%%':
137 #
138 # %%NAME%%_enable="YES"
139 # %%NAME%%_flags="<set as needed>"
140 #
141 # See rsync(1) for %%NAME%%_flags
142 #
143
144 . /etc/rc.subr
145
146 name="%%NAME%%"
147 rcvar=%%NAME%%_enable
148
149 command="%%PREFIX%%/bin/rsync"
150 start_precmd="%%NAME%%_precmd"
151 pidfile="/var/run/$name.pid"
152
153 # read configuration and set defaults
154 load_rc_config "$name"
155 : ${%%NAME%%_enable="NO"}
156 : ${%%NAME%%_configfile:=%%ETCDIR%%/$name.conf}
157
158 required_files="${%%NAME%%_configfile}"
159
160 command_args="--daemon --config ${%%NAME%%_configfile}"
161
162 %%NAME%%_precmd()
163 {
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
168         fi
169 }
170
171 run_rc_command "$1"
172