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.19.0/
13 DISTFILE[1]= syncthing-source-v1.19.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
31 LICENSE_FILE= MPL:{{WRKSRC}}/syncthing/LICENSE
34 FPC_EQUIVALENT= net/syncthing
36 MAKE_ENV= CGO_ENABLED=0
39 RC_SUBR= syncthing:single
40 syncthing-discosrv:single
41 syncthing-relaysrv:single
42 syncthing-relaypoolsrv:single
45 cd ${WRKSRC}/syncthing &&\
46 ${SETENV} ${MAKE_ENV} go run build.go -version v1.19.0 -no-upgrade build &&\
47 ${SETENV} ${MAKE_ENV} go run build.go -version v1.19.0 -no-upgrade build stdiscosrv &&\
48 ${SETENV} ${MAKE_ENV} go run build.go -version v1.19.0 -no-upgrade build strelaysrv &&\
49 ${SETENV} ${MAKE_ENV} go run build.go -version v1.19.0 -no-upgrade build strelaypoolsrv
52 cd ${WRKSRC}/syncthing && ${INSTALL_PROGRAM} \
53 syncthing stdiscosrv strelaysrv strelaypoolsrv \
54 ${STAGEDIR}${PREFIX}/bin
56 [FILE:260:descriptions/desc.single]
57 Syncthing replaces proprietary sync and cloud services with something
58 open, trustworthy and decentralized. Your data is yours alone and you
59 deserve to choose where it is stored, if it is shared with some third
60 party and how it's transmitted over the Internet.
64 6fcd4e45c252d23148eaa0814d85c44e1bc9af0b9b2fa70b1f01aa87b76e688d 13225230 syncthing-source-v1.19.0.tar.gz
67 [FILE:56:manifests/plist.single]
75 [FILE:2776:files/syncthing-discosrv.in]
78 # PROVIDE: syncthingdiscosrv
82 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
83 # to enable this service:
85 # syncthingdiscosrv_enable (bool): Set to NO by default.
86 # Set it to YES to enable syncthing-discosrv.
87 # syncthingdiscosrv_user (user): Set user to run syncthing-discosrv.
88 # Default is "syncthing".
89 # syncthingdiscosrv_group (group): Set group to run syncthing-discosrv.
90 # Default is "syncthing".
91 # syncthingdiscosrv_dir (dir): Set dir to run syncthing-discosrv in.
92 # Default is "/var/db/syncthing-discosrv".
93 # syncthingdiscosrv_log_file (path): Syncthing log file
94 # Default: /var/log/syncthing-discosrv.log
95 # syncthingdiscosrv_key (file): Set key file to use
96 # Default is "${syncthingdiscosrv_dir}/syncthing.key".
97 # syncthingdiscosrv_cert (file): Set cert file to use
98 # Default is "${syncthingdiscosrv_dir}/syncthing.cert".
99 # syncthingdiscosrv_args (string): Extra args to pass to syncthing-discosrv
104 name=syncthingdiscosrv
105 rcvar=syncthingdiscosrv_enable
109 : ${syncthingdiscosrv_enable:="NO"}
110 : ${syncthingdiscosrv_user:="syncthing"}
111 : ${syncthingdiscosrv_group:="syncthing"}
112 : ${syncthingdiscosrv_dir:="/var/db/syncthing-discosrv"}
113 : ${syncthingdiscosrv_log_file=/var/log/syncthing-discosrv.log}
114 : ${syncthingdiscosrv_key:="${syncthingdiscosrv_dir}/syncthing.key"}
115 : ${syncthingdiscosrv_cert:="${syncthingdiscosrv_dir}/syncthing.cert"}
117 export STNORESTART=true
119 pidfile=/var/run/syncthingdiscosrv.pid
120 procname="%%PREFIX%%/bin/stdiscosrv"
121 command="/usr/sbin/daemon"
122 command_args="-p ${pidfile} ${procname} -key ${syncthingdiscosrv_key} -cert ${syncthingdiscosrv_cert} ${syncthingdiscosrv_args} >> ${syncthingdiscosrv_log_file}"
123 syncthingdiscosrv_chdir=${syncthingdiscosrv_dir}
125 start_precmd=syncthingdiscosrv_startprecmd
127 syncthingdiscosrv_startprecmd()
129 if [ ! -e ${pidfile} ]; then
130 install -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} /dev/null ${pidfile};
133 if [ ! -d ${syncthingdiscosrv_dir} ]; then
134 install -d -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} ${syncthingdiscosrv_dir}
136 if [ ! -e ${syncthingdiscosrv_log_file} ]; then
137 install -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} /dev/null ${syncthingdiscosrv_log_file};
144 [FILE:2440:files/syncthing-relaypoolsrv.in]
147 # PROVIDE: syncthingrelaypoolsrv
151 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
152 # to enable this service:
154 # syncthingrelaypoolsrv_enable (bool): Set to NO by default.
155 # Set it to YES to enable syncthing-relaypoolsrv.
156 # syncthingrelaypoolsrv_user (user): Set user to run syncthing-relaypoolsrv.
157 # Default is "syncthing".
158 # syncthingrelaypoolsrv_group (group): Set group to run syncthing-relaypoolsrv.
159 # Default is "syncthing".
160 # syncthingrelaypoolsrv_dir (dir): Set dir to run syncthing-relaypoolsrv in.
161 # Default is "/var/db/syncthing-relaypoolsrv".
162 # syncthingrelaypoolsrv_log_file (path): Syncthing log file
163 # Default: /var/log/syncthing-relaypoolsrv.log
164 # syncthingrelaypoolsrv_args (string): Extra args to pass to syncthing-relaypoolsrv
169 name=syncthingrelaypoolsrv
170 rcvar=syncthingrelaypoolsrv_enable
174 : ${syncthingrelaypoolsrv_enable:="NO"}
175 : ${syncthingrelaypoolsrv_user:="syncthing"}
176 : ${syncthingrelaypoolsrv_group:="syncthing"}
177 : ${syncthingrelaypoolsrv_dir:="/var/db/syncthing-relaypoolsrv"}
178 : ${syncthingrelaypoolsrv_log_file=/var/log/syncthing-relaypoolsrv.log}
180 export STNORESTART=true
182 pidfile=/var/run/syncthingrelaypoolsrv.pid
183 procname="%%PREFIX%%/bin/strelaypoolsrv"
184 command="/usr/sbin/daemon"
185 command_args="-c -p ${pidfile} ${procname} -keys ${syncthingrelaypoolsrv_dir} ${syncthingrelaypoolsrv_args} >> ${syncthingrelaypoolsrv_log_file} 2>&1"
187 start_precmd=syncthingrelaypoolsrv_startprecmd
189 syncthingrelaypoolsrv_startprecmd()
191 if [ ! -e ${pidfile} ]; then
192 install -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} /dev/null ${pidfile};
195 if [ ! -d ${syncthingrelaypoolsrv_dir} ]; then
196 install -d -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} ${syncthingrelaypoolsrv_dir}
198 if [ ! -e ${syncthingrelaypoolsrv_log_file} ]; then
199 install -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} /dev/null ${syncthingrelaypoolsrv_log_file};
206 [FILE:2564:files/syncthing-relaysrv.in]
209 # PROVIDE: syncthingrelaysrv
213 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
214 # to enable this service:
216 # syncthingrelaysrv_enable (bool): Set to NO by default.
217 # Set it to YES to enable syncthing-relaysrv.
218 # syncthingrelaysrv_user (user): Set user to run syncthing-relaysrv.
219 # Default is "syncthing".
220 # syncthingrelaysrv_group (group): Set group to run syncthing-relaysrv.
221 # Default is "syncthing".
222 # syncthingrelaysrv_dir (dir): Set dir to run syncthing-relaysrv in.
223 # Default is "/var/db/syncthing-relaysrv".
224 # syncthingrelaysrv_log_file (path): Syncthing log file
225 # Default: /var/log/syncthing-relaysrv.log
226 # syncthingrelaysrv_key (file): Set key file to use
227 # Default is "${syncthingrelaysrv_dir}/syncthing.key".
228 # syncthingrelaysrv_cert (file): Set cert file to use
229 # Default is "${syncthingrelaysrv_dir}/syncthing.cert".
230 # syncthingrelaysrv_args (string): Extra args to pass to syncthing-relaysrv
235 name=syncthingrelaysrv
236 rcvar=syncthingrelaysrv_enable
240 : ${syncthingrelaysrv_enable:="NO"}
241 : ${syncthingrelaysrv_user:="syncthing"}
242 : ${syncthingrelaysrv_group:="syncthing"}
243 : ${syncthingrelaysrv_dir:="/var/db/syncthing-relaysrv"}
244 : ${syncthingrelaysrv_log_file=/var/log/syncthing-relaysrv.log}
246 export STNORESTART=true
248 pidfile=/var/run/syncthingrelaysrv.pid
249 procname="%%PREFIX%%/bin/strelaysrv"
250 command="/usr/sbin/daemon"
251 command_args="-c -p ${pidfile} ${procname} -keys ${syncthingrelaysrv_dir} ${syncthingrelaysrv_args} >> ${syncthingrelaysrv_log_file} 2>&1"
253 start_precmd=syncthingrelaysrv_startprecmd
255 syncthingrelaysrv_startprecmd()
257 if [ ! -e ${pidfile} ]; then
258 install -o ${syncthingrelaysrv_user} -g ${syncthingrelaysrv_group} /dev/null ${pidfile};
261 if [ ! -d ${syncthingrelaysrv_dir} ]; then
262 install -d -o ${syncthingrelaysrv_user} -g ${syncthingrelaysrv_group} ${syncthingrelaysrv_dir}
264 if [ ! -e ${syncthingrelaysrv_log_file} ]; then
265 install -o ${syncthingrelaysrv_user} -g ${syncthingrelaysrv_group} /dev/null ${syncthingrelaysrv_log_file};
272 [FILE:1868:files/syncthing.in]
279 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
280 # to enable this service:
282 # syncthing_enable (bool): Set to NO by default.
283 # Set it to YES to enable syncthing.
284 # syncthing_home (path): Directory where syncthing configuration
286 # Default: %%PREFIX%%/etc/syncthing
287 # syncthing_log_file (path): Syncthing log file
288 # Default: /var/log/syncthing.log
289 # syncthing_user (user): Set user to run syncthing.
290 # Default is "syncthing".
291 # syncthing_group (group): Set group to run syncthing.
292 # Default is "syncthing".
297 rcvar=syncthing_enable
301 : ${syncthing_enable:="NO"}
302 : ${syncthing_home=%%PREFIX%%/etc/syncthing}
303 : ${syncthing_log_file=/var/log/syncthing.log}
304 : ${syncthing_user:="syncthing"}
305 : ${syncthing_group=${syncthing_group:-$syncthing_user}}
307 pidfile=/var/run/syncthing.pid
308 procname="%%PREFIX%%/bin/syncthing"
309 command="/usr/sbin/daemon"
310 command_args="-cf -p ${pidfile} ${procname} ${syncthing_home:+-home=${syncthing_home}} ${syncthing_log_file:+-logfile=${syncthing_log_file}} -no-browser ${syncthing_args}"
312 start_precmd=syncthing_startprecmd
314 syncthing_startprecmd()
316 if [ ! -e ${pidfile} ]; then
317 install -o ${syncthing_user} -g ${syncthing_group} /dev/null ${pidfile};
320 if [ ! -d ${syncthing_home} ]; then
321 install -d -o ${syncthing_user} -g ${syncthing_group} ${syncthing_home}
324 if [ ! -e ${syncthing_log_file} ]; then
325 install -o ${syncthing_user} -g ${syncthing_group} /dev/null ${syncthing_log_file};