1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Open Source Continuous File Synchronization
8 HOMEPAGE= https://syncthing.net/
11 DOWNLOAD_GROUPS= main qtls quic
12 SITES[main]= https://github.com/syncthing/syncthing/releases/download/v1.9.0/
13 DISTFILE[1]= syncthing-source-v1.9.0.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILD_DEPENDS= golang:single:standard
24 USERGROUP_SPKG= single
29 LICENSE_FILE= MPL:{{WRKSRC}}/syncthing/LICENSE
32 FPC_EQUIVALENT= net/syncthing
34 MAKE_ENV= CGO_ENABLED=0
37 RC_SUBR= syncthing:single
38 syncthing-discosrv:single
39 syncthing-relaysrv:single
40 syncthing-relaypoolsrv:single
43 cd ${WRKSRC}/syncthing &&\
44 ${SETENV} ${MAKE_ENV} go run build.go -version v1.9.0 -no-upgrade build &&\
45 ${SETENV} ${MAKE_ENV} go run build.go -version v1.9.0 -no-upgrade build stdiscosrv &&\
46 ${SETENV} ${MAKE_ENV} go run build.go -version v1.9.0 -no-upgrade build strelaysrv &&\
47 ${SETENV} ${MAKE_ENV} go run build.go -version v1.9.0 -no-upgrade build strelaypoolsrv
50 cd ${WRKSRC}/syncthing && ${INSTALL_PROGRAM} \
51 syncthing stdiscosrv strelaysrv strelaypoolsrv \
52 ${STAGEDIR}${PREFIX}/bin
54 [FILE:260:descriptions/desc.single]
55 Syncthing replaces proprietary sync and cloud services with something
56 open, trustworthy and decentralized. Your data is yours alone and you
57 deserve to choose where it is stored, if it is shared with some third
58 party and how it's transmitted over the Internet.
62 a4e3e5997b2c4c76512ed9b32a067b2a90e26c0d445f8c3c62af65d2b93d4d8b 11142643 syncthing-source-v1.9.0.tar.gz
65 [FILE:56:manifests/plist.single]
73 [FILE:2776:files/syncthing-discosrv.in]
76 # PROVIDE: syncthingdiscosrv
80 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
81 # to enable this service:
83 # syncthingdiscosrv_enable (bool): Set to NO by default.
84 # Set it to YES to enable syncthing-discosrv.
85 # syncthingdiscosrv_user (user): Set user to run syncthing-discosrv.
86 # Default is "syncthing".
87 # syncthingdiscosrv_group (group): Set group to run syncthing-discosrv.
88 # Default is "syncthing".
89 # syncthingdiscosrv_dir (dir): Set dir to run syncthing-discosrv in.
90 # Default is "/var/db/syncthing-discosrv".
91 # syncthingdiscosrv_log_file (path): Syncthing log file
92 # Default: /var/log/syncthing-discosrv.log
93 # syncthingdiscosrv_key (file): Set key file to use
94 # Default is "${syncthingdiscosrv_dir}/syncthing.key".
95 # syncthingdiscosrv_cert (file): Set cert file to use
96 # Default is "${syncthingdiscosrv_dir}/syncthing.cert".
97 # syncthingdiscosrv_args (string): Extra args to pass to syncthing-discosrv
102 name=syncthingdiscosrv
103 rcvar=syncthingdiscosrv_enable
107 : ${syncthingdiscosrv_enable:="NO"}
108 : ${syncthingdiscosrv_user:="syncthing"}
109 : ${syncthingdiscosrv_group:="syncthing"}
110 : ${syncthingdiscosrv_dir:="/var/db/syncthing-discosrv"}
111 : ${syncthingdiscosrv_log_file=/var/log/syncthing-discosrv.log}
112 : ${syncthingdiscosrv_key:="${syncthingdiscosrv_dir}/syncthing.key"}
113 : ${syncthingdiscosrv_cert:="${syncthingdiscosrv_dir}/syncthing.cert"}
115 export STNORESTART=true
117 pidfile=/var/run/syncthingdiscosrv.pid
118 procname="%%PREFIX%%/bin/stdiscosrv"
119 command="/usr/sbin/daemon"
120 command_args="-p ${pidfile} ${procname} -key ${syncthingdiscosrv_key} -cert ${syncthingdiscosrv_cert} ${syncthingdiscosrv_args} >> ${syncthingdiscosrv_log_file}"
121 syncthingdiscosrv_chdir=${syncthingdiscosrv_dir}
123 start_precmd=syncthingdiscosrv_startprecmd
125 syncthingdiscosrv_startprecmd()
127 if [ ! -e ${pidfile} ]; then
128 install -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} /dev/null ${pidfile};
131 if [ ! -d ${syncthingdiscosrv_dir} ]; then
132 install -d -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} ${syncthingdiscosrv_dir}
134 if [ ! -e ${syncthingdiscosrv_log_file} ]; then
135 install -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} /dev/null ${syncthingdiscosrv_log_file};
142 [FILE:2440:files/syncthing-relaypoolsrv.in]
145 # PROVIDE: syncthingrelaypoolsrv
149 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
150 # to enable this service:
152 # syncthingrelaypoolsrv_enable (bool): Set to NO by default.
153 # Set it to YES to enable syncthing-relaypoolsrv.
154 # syncthingrelaypoolsrv_user (user): Set user to run syncthing-relaypoolsrv.
155 # Default is "syncthing".
156 # syncthingrelaypoolsrv_group (group): Set group to run syncthing-relaypoolsrv.
157 # Default is "syncthing".
158 # syncthingrelaypoolsrv_dir (dir): Set dir to run syncthing-relaypoolsrv in.
159 # Default is "/var/db/syncthing-relaypoolsrv".
160 # syncthingrelaypoolsrv_log_file (path): Syncthing log file
161 # Default: /var/log/syncthing-relaypoolsrv.log
162 # syncthingrelaypoolsrv_args (string): Extra args to pass to syncthing-relaypoolsrv
167 name=syncthingrelaypoolsrv
168 rcvar=syncthingrelaypoolsrv_enable
172 : ${syncthingrelaypoolsrv_enable:="NO"}
173 : ${syncthingrelaypoolsrv_user:="syncthing"}
174 : ${syncthingrelaypoolsrv_group:="syncthing"}
175 : ${syncthingrelaypoolsrv_dir:="/var/db/syncthing-relaypoolsrv"}
176 : ${syncthingrelaypoolsrv_log_file=/var/log/syncthing-relaypoolsrv.log}
178 export STNORESTART=true
180 pidfile=/var/run/syncthingrelaypoolsrv.pid
181 procname="%%PREFIX%%/bin/strelaypoolsrv"
182 command="/usr/sbin/daemon"
183 command_args="-c -p ${pidfile} ${procname} -keys ${syncthingrelaypoolsrv_dir} ${syncthingrelaypoolsrv_args} >> ${syncthingrelaypoolsrv_log_file} 2>&1"
185 start_precmd=syncthingrelaypoolsrv_startprecmd
187 syncthingrelaypoolsrv_startprecmd()
189 if [ ! -e ${pidfile} ]; then
190 install -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} /dev/null ${pidfile};
193 if [ ! -d ${syncthingrelaypoolsrv_dir} ]; then
194 install -d -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} ${syncthingrelaypoolsrv_dir}
196 if [ ! -e ${syncthingrelaypoolsrv_log_file} ]; then
197 install -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} /dev/null ${syncthingrelaypoolsrv_log_file};
204 [FILE:2564:files/syncthing-relaysrv.in]
207 # PROVIDE: syncthingrelaysrv
211 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
212 # to enable this service:
214 # syncthingrelaysrv_enable (bool): Set to NO by default.
215 # Set it to YES to enable syncthing-relaysrv.
216 # syncthingrelaysrv_user (user): Set user to run syncthing-relaysrv.
217 # Default is "syncthing".
218 # syncthingrelaysrv_group (group): Set group to run syncthing-relaysrv.
219 # Default is "syncthing".
220 # syncthingrelaysrv_dir (dir): Set dir to run syncthing-relaysrv in.
221 # Default is "/var/db/syncthing-relaysrv".
222 # syncthingrelaysrv_log_file (path): Syncthing log file
223 # Default: /var/log/syncthing-relaysrv.log
224 # syncthingrelaysrv_key (file): Set key file to use
225 # Default is "${syncthingrelaysrv_dir}/syncthing.key".
226 # syncthingrelaysrv_cert (file): Set cert file to use
227 # Default is "${syncthingrelaysrv_dir}/syncthing.cert".
228 # syncthingrelaysrv_args (string): Extra args to pass to syncthing-relaysrv
233 name=syncthingrelaysrv
234 rcvar=syncthingrelaysrv_enable
238 : ${syncthingrelaysrv_enable:="NO"}
239 : ${syncthingrelaysrv_user:="syncthing"}
240 : ${syncthingrelaysrv_group:="syncthing"}
241 : ${syncthingrelaysrv_dir:="/var/db/syncthing-relaysrv"}
242 : ${syncthingrelaysrv_log_file=/var/log/syncthing-relaysrv.log}
244 export STNORESTART=true
246 pidfile=/var/run/syncthingrelaysrv.pid
247 procname="%%PREFIX%%/bin/strelaysrv"
248 command="/usr/sbin/daemon"
249 command_args="-c -p ${pidfile} ${procname} -keys ${syncthingrelaysrv_dir} ${syncthingrelaysrv_args} >> ${syncthingrelaysrv_log_file} 2>&1"
251 start_precmd=syncthingrelaysrv_startprecmd
253 syncthingrelaysrv_startprecmd()
255 if [ ! -e ${pidfile} ]; then
256 install -o ${syncthingrelaysrv_user} -g ${syncthingrelaysrv_group} /dev/null ${pidfile};
259 if [ ! -d ${syncthingrelaysrv_dir} ]; then
260 install -d -o ${syncthingrelaysrv_user} -g ${syncthingrelaysrv_group} ${syncthingrelaysrv_dir}
262 if [ ! -e ${syncthingrelaysrv_log_file} ]; then
263 install -o ${syncthingrelaysrv_user} -g ${syncthingrelaysrv_group} /dev/null ${syncthingrelaysrv_log_file};
270 [FILE:1868:files/syncthing.in]
277 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
278 # to enable this service:
280 # syncthing_enable (bool): Set to NO by default.
281 # Set it to YES to enable syncthing.
282 # syncthing_home (path): Directory where syncthing configuration
284 # Default: %%PREFIX%%/etc/syncthing
285 # syncthing_log_file (path): Syncthing log file
286 # Default: /var/log/syncthing.log
287 # syncthing_user (user): Set user to run syncthing.
288 # Default is "syncthing".
289 # syncthing_group (group): Set group to run syncthing.
290 # Default is "syncthing".
295 rcvar=syncthing_enable
299 : ${syncthing_enable:="NO"}
300 : ${syncthing_home=%%PREFIX%%/etc/syncthing}
301 : ${syncthing_log_file=/var/log/syncthing.log}
302 : ${syncthing_user:="syncthing"}
303 : ${syncthing_group=${syncthing_group:-$syncthing_user}}
305 pidfile=/var/run/syncthing.pid
306 procname="%%PREFIX%%/bin/syncthing"
307 command="/usr/sbin/daemon"
308 command_args="-cf -p ${pidfile} ${procname} ${syncthing_home:+-home=${syncthing_home}} ${syncthing_log_file:+-logfile=${syncthing_log_file}} -no-browser ${syncthing_args}"
310 start_precmd=syncthing_startprecmd
312 syncthing_startprecmd()
314 if [ ! -e ${pidfile} ]; then
315 install -o ${syncthing_user} -g ${syncthing_group} /dev/null ${pidfile};
318 if [ ! -d ${syncthing_home} ]; then
319 install -d -o ${syncthing_user} -g ${syncthing_group} ${syncthing_home}
322 if [ ! -e ${syncthing_log_file} ]; then
323 install -o ${syncthing_user} -g ${syncthing_group} /dev/null ${syncthing_log_file};