1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Tool and library for transferring data with URLs
8 HOMEPAGE= https://curl.haxx.se/
12 SITES[main]= http://curl.haxx.se/download/
13 DISTFILE[1]= curl-7.55.0.tar.xz:main
15 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= IDN LDAP LDAPS SSH2
21 OPTIONS_STANDARD= IDN LDAP LDAPS SSH2
23 BUILDRUN_DEPENDS= libnghttp2:single:standard
24 RUN_DEPENDS= nss:caroot:standard
26 USES= cpe gmake libtool perl:build pkgconfig shebangfix ssl
30 LICENSE_FILE= MIT:{{WRKSRC}}/COPYING
33 FPC_EQUIVALENT= ftp/curl
37 CONFIGURE_ARGS= --disable-werror
42 --with-zsh-functions-dir={{LOCALBASE}}/share/zsh/site-functions
44 --with-ca-bundle={{LOCALBASE}}/share/certs/ca-root-nss.crt
48 --with-ssl={{OPENSSLBASE}}
50 --enable-threaded-resolver
51 CONFIGURE_ENV= LOCALBASE={{LOCALBASE}}
52 ac_cv_func_SSLv2_client_method=no
54 CPPFLAGS= -I{{OPENSSLINC}}
55 LDFLAGS= -L{{OPENSSLLIB}}
58 [SSH2].DESCRIPTION= SCP/SFTP support via libssh2
61 @${REINPLACE_CMD} -e '/^SUBDIRS = / s|$$| docs scripts|; /^DIST_SUBDIRS = / s| docs scripts||; /cd docs &&/d' ${WRKSRC}/Makefile.in
62 @${REINPLACE_CMD} -e 's|\(flags_dbg_off=\)".*"|\1""|; s|\(flags_opt_off=\)".*"|\1""|' ${WRKSRC}/configure
63 @${REINPLACE_CMD} -e 's|include <gssapi.h>|include <gssapi/gssapi.h>|' ${WRKSRC}/lib/curl_gssapi.h ${WRKSRC}/lib/urldata.h
66 ${MKDIR} ${STAGEDIR}${STD_DOCDIR}/libcurl \
67 ${STAGEDIR}${STD_EXAMPLESDIR}
68 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcurl.so
69 (cd ${WRKSRC}/docs/ && \
70 ${INSTALL_DATA} BUGS CODE_OF_CONDUCT.md CODE_STYLE.md CONTRIBUTE.md FAQ FEATURES HISTORY.md HTTP-COOKIES.md HTTP2.md INTERNALS.md KNOWN_BUGS LICENSE-MIXING.md MAIL-ETIQUETTE MANUAL RELEASE-PROCEDURE RESOURCES ROADMAP.md SECURITY.md SSL-PROBLEMS.md SSLCERTS.md TheArtOfHttpScripting VERSIONS ${STAGEDIR}${STD_DOCDIR}/)
71 (cd ${WRKSRC}/docs/libcurl/ && ${INSTALL_DATA} \
72 ABI *.html *.m4 ${STAGEDIR}${STD_DOCDIR}/libcurl/)
73 (cd ${WRKSRC}/docs/examples/ && ${INSTALL_DATA} \
74 README Makefile.example makefile* *.c *.cpp \
75 ${STAGEDIR}${STD_EXAMPLESDIR}/)
77 [FILE:779:descriptions/desc.primary]
78 Command line tool and library for transferring data with URLs.
80 curl is used in command lines or scripts to transfer data. It is also
81 used in cars, television sets, routers, printers, audio equipment, mobile
82 phones, tablets, settop boxes, media players and is the internet transfer
83 backbone for thousands of software applications affecting billions of
87 DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3,
88 POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMTP, SMTPS, Telnet and TFTP.
90 curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
91 form based upload, proxies, HTTP/2, cookies, user+password authentication
92 (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos),
93 file transfer resume, proxy tunneling and more.
97 cdd58522f8607fd4e871df79d73acb3155075e2134641e5adab12a0962df059d 2228476 curl-7.55.0.tar.xz
100 [FILE:288:manifests/plist.primary]
118 lib/pkgconfig/libcurl.pc
122 share/zsh/site-functions/_curl
125 [FILE:4114:patches/patch-configure]
126 Description: Tweak the build for a FreeBSD environment.
127 Respect user-supplied CFLAGS
128 Use the FreeBSD location of pkg-config's library directory.
129 Check for librtmp in sensible locations in all cases.
130 Forwarded: not-needed
131 Author: Peter Pentchev <roam@FreeBSD.org>
132 Last-Update: 2010-12-19
134 --- configure.orig 2017-06-14 06:10:57 UTC
136 @@ -4149,9 +4149,10 @@ $as_echo "$as_me: LIBS note: LIBS should
138 xc_bad_var_ldflags=yes
141 - xc_bad_var_ldflags=yes
143 +# Temporarily disable -l* flag check for SSP support (Mk/bsd.ssp.mk)
144 +# -l* | --library=*)
145 +# xc_bad_var_ldflags=yes
149 if test $xc_bad_var_ldflags = yes; then
150 @@ -4221,9 +4222,10 @@ $as_echo "$as_me: $xc_bad_var_msg librar
152 for xc_word in $CFLAGS; do
155 - xc_bad_var_cflags=yes
157 +# Temporarily disable -D* flag check (PR/177401, PR/180944)
159 +# xc_bad_var_cflags=yes
162 xc_bad_var_cflags=yes
164 @@ -17982,6 +17984,8 @@ $as_echo "$as_me: WARNING: compiler opti
166 tmp_CPPFLAGS="$CPPFLAGS"
168 +# Do not remove the user-supplied debug flags in CFLAGS (PR/150854)
171 for word1 in $tmp_CFLAGS; do
172 ac_var_strip_word="no"
173 @@ -18012,6 +18016,7 @@ $as_echo "$as_me: WARNING: compiler opti
175 tmp_CPPFLAGS="$ac_var_stripped"
180 if test "$want_debug" = "yes"; then
181 @@ -18229,6 +18234,8 @@ $as_echo "$honor_optimize_option" >&6; }
183 if test "$honor_optimize_option" = "yes"; then
185 +# Do not remove the user-supplied optimization flags in CFLAGS (PR/150854)
188 for word1 in $tmp_CFLAGS; do
189 ac_var_strip_word="no"
190 @@ -18259,6 +18266,7 @@ $as_echo "$honor_optimize_option" >&6; }
192 tmp_CPPFLAGS="$ac_var_stripped"
196 if test "$want_optimize" = "yes"; then
197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
198 @@ -26661,30 +26669,30 @@ $as_echo "found" >&6; }
208 + LD_RTMP="-L${PREFIX_RTMP}/lib$libsuff"
209 + CPP_RTMP="-I${PREFIX_RTMP}/include"
210 + DIR_RTMP="${PREFIX_RTMP}/lib$libsuff"
211 PREFIX_RTMP=$OPT_LIBRTMP
215 - if test -n "$PREFIX_RTMP"; then
216 - LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
217 - CPP_RTMP=-I${PREFIX_RTMP}/include
218 - DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
221 LDFLAGS="$LDFLAGS $LD_RTMP"
222 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
223 LIBS="$LIB_RTMP $LIBS"
225 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
226 -$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
227 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in $LIB_RTMP" >&5
228 +$as_echo_n "checking for RTMP_Init in $LIB_RTMP... " >&6; }
229 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
230 $as_echo_n "(cached) " >&6
232 ac_check_lib_save_LIBS=$LIBS
235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
236 /* end confdefs.h. */
238 @@ -41279,9 +41287,10 @@ $as_echo "$as_me: LIBS note: LIBS should
240 xc_bad_var_ldflags=yes
243 - xc_bad_var_ldflags=yes
245 +# Temporarily disable -l* flag check for SSP support (Mk/bsd.ssp.mk)
246 +# -l* | --library=*)
247 +# xc_bad_var_ldflags=yes
251 if test $xc_bad_var_ldflags = yes; then
252 @@ -41351,9 +41360,10 @@ $as_echo "$as_me: $xc_bad_var_msg librar
254 for xc_word in $CFLAGS; do
257 - xc_bad_var_cflags=yes
259 +# Temporarily disable -D* flag check (PR/177401, PR/180944)
261 +# xc_bad_var_cflags=yes
264 xc_bad_var_cflags=yes
268 [FILE:277:patches/patch-lib-hostcheck.h]
269 --- lib/hostcheck.h.orig 2013-09-08 22:11:15 UTC
272 ***************************************************************************/
274 #include <curl/curl.h>
275 +#include <netinet/in.h>
277 #define CURL_HOST_NOMATCH 0
278 #define CURL_HOST_MATCH 1
281 [FILE:643:patches/patch-lib-url.c]
282 Description: Different handling of signals and threads.
283 Forwarded: not-needed
284 Author: Peter Pentchev <roam@FreeBSD.org>
285 Last-Update: 2010-12-18
287 --- lib/url.c.orig 2017-04-18 06:36:20 UTC
289 @@ -671,6 +671,9 @@ CURLcode Curl_open(struct Curl_easy **cu
290 data->state.current_speed = -1; /* init to negative == impossible */
291 data->set.fnmatch = ZERO_NULL;
292 data->set.maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */
293 +#if defined(__FreeBSD_version)
294 + data->set.no_signal = TRUE; /* different handling of signals and threads */
295 +#endif /* __FreeBSD_version */
297 Curl_http2_init_state(&data->state);
301 [FILE:2250:patches/patch-src-tool_operate.c]
302 --- src/tool_operate.c.orig 2017-06-09 09:57:41 UTC
303 +++ src/tool_operate.c
304 @@ -654,20 +654,7 @@ static CURLcode operate_do(struct Global
305 DEBUGASSERT(!outs.filename);
308 - if(config->resume_from_current) {
309 - /* We're told to continue from where we are now. Get the size
310 - of the file as it is now and open it for append instead */
311 - struct_stat fileinfo;
312 - /* VMS -- Danger, the filesize is only valid for stream files */
313 - if(0 == stat(outfile, &fileinfo))
314 - /* set offset to current file size: */
315 - config->resume_from = fileinfo.st_size;
317 - /* let offset be 0 */
318 - config->resume_from = 0;
321 - if(config->resume_from) {
322 + if(config->resume_from || config->resume_from_current) {
324 /* open file for output, forcing VMS output format into stream
325 mode which is needed for stat() call above to always work. */
326 @@ -675,7 +662,8 @@ static CURLcode operate_do(struct Global
327 "ctx=stm", "rfm=stmlf", "rat=cr", "mrs=0");
329 /* open file for output: */
330 - FILE *file = fopen(outfile, config->resume_from?"ab":"wb");
331 + /* (always open for appending, it has no effect on new files) */
332 + FILE *file = fopen(outfile, "ab");
335 helpf(global->errors, "Can't open '%s'!\n", outfile);
336 @@ -684,6 +672,19 @@ static CURLcode operate_do(struct Global
341 + if(config->resume_from_current) {
342 + /* We're told to continue from where we are now. Get the size
343 + of the file as it is now */
344 + struct_stat fileinfo;
345 + if(0 == fstat(fileno(outs.stream), &fileinfo))
346 + /* set offset to current file size: */
347 + config->resume_from = fileinfo.st_size;
349 + /* let offset be 0 */
350 + config->resume_from = 0;
353 outs.init = config->resume_from;