Ravenports generated: 11 Aug 2017 10:49
[ravenports.git] / bucket_53 / curl
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               curl
4 VERSION=                7.55.0
5 KEYWORDS=               ftp net www
6 VARIANTS=               standard
7 SDESC[standard]=        Tool and library for transferring data with URLs
8 HOMEPAGE=               https://curl.haxx.se/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://curl.haxx.se/download/
13 DISTFILE[1]=            curl-7.55.0.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         examples
18                         docs
19
20 OPTIONS_AVAILABLE=      IDN LDAP LDAPS SSH2
21 OPTIONS_STANDARD=       IDN LDAP LDAPS SSH2
22
23 BUILDRUN_DEPENDS=       libnghttp2:single:standard
24 RUN_DEPENDS=            nss:caroot:standard
25
26 USES=                   cpe gmake libtool perl:build pkgconfig shebangfix ssl
27
28 LICENSE=                MIT:primary
29 LICENSE_SCHEME=         solo
30 LICENSE_FILE=           MIT:{{WRKSRC}}/COPYING
31
32 CPE_VENDOR=             haxx
33 FPC_EQUIVALENT=         ftp/curl
34 SHEBANG_FILES=          */*.pl
35
36 MUST_CONFIGURE=         gnu
37 CONFIGURE_ARGS=         --disable-werror
38                         --enable-imap
39                         --enable-pop3
40                         --enable-rtsp
41                         --enable-smtp
42                         --with-zsh-functions-dir={{LOCALBASE}}/share/zsh/site-functions
43                         --without-axtls
44                         --with-ca-bundle={{LOCALBASE}}/share/certs/ca-root-nss.crt
45                         --enable-cookies
46                         --with-nghttp2
47                         --with-ipv6
48                         --with-ssl={{OPENSSLBASE}}
49                         --enable-pthreads
50                         --enable-threaded-resolver
51 CONFIGURE_ENV=          LOCALBASE={{LOCALBASE}}
52                         ac_cv_func_SSLv2_client_method=no
53
54 CPPFLAGS=               -I{{OPENSSLINC}}
55 LDFLAGS=                -L{{OPENSSLLIB}}
56 TEST_TARGET=            test
57
58 [SSH2].DESCRIPTION=                     SCP/SFTP support via libssh2
59
60 post-patch:
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
64
65 post-install:
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}/)
76
77 [FILE:779:descriptions/desc.primary]
78 Command line tool and library for transferring data with URLs.
79
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
84 humans daily.
85
86 Protocols:
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.
89
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.
94
95
96 [FILE:97:distinfo]
97 cdd58522f8607fd4e871df79d73acb3155075e2134641e5adab12a0962df059d      2228476 curl-7.55.0.tar.xz
98
99
100 [FILE:288:manifests/plist.primary]
101 bin/
102  curl
103  curl-config
104 include/curl/
105  curl.h
106  curlver.h
107  easy.h
108  mprintf.h
109  multi.h
110  stdcheaders.h
111  system.h
112  typecheck-gcc.h
113 lib/
114  libcurl.a
115  libcurl.so
116  libcurl.so.4
117  libcurl.so.4.4.0
118 lib/pkgconfig/libcurl.pc
119 share/man/man1/
120  curl-config.1.gz
121  curl.1.gz
122 share/zsh/site-functions/_curl
123
124
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
133
134 --- configure.orig      2017-06-14 06:10:57 UTC
135 +++ configure
136 @@ -4149,9 +4149,10 @@ $as_echo "$as_me: LIBS note: LIBS should
137        -I*)
138          xc_bad_var_ldflags=yes
139          ;;
140 -      -l* | --library=*)
141 -        xc_bad_var_ldflags=yes
142 -        ;;
143 +# Temporarily disable -l* flag check for SSP support (Mk/bsd.ssp.mk)
144 +#      -l* | --library=*)
145 +#        xc_bad_var_ldflags=yes
146 +#        ;;
147      esac
148    done
149    if test $xc_bad_var_ldflags = yes; then
150 @@ -4221,9 +4222,10 @@ $as_echo "$as_me: $xc_bad_var_msg librar
151    xc_bad_var_cflags=no
152    for xc_word in $CFLAGS; do
153      case "$xc_word" in
154 -      -D*)
155 -        xc_bad_var_cflags=yes
156 -        ;;
157 +# Temporarily disable -D* flag check (PR/177401, PR/180944)
158 +#      -D*)
159 +#        xc_bad_var_cflags=yes
160 +#        ;;
161        -U*)
162          xc_bad_var_cflags=yes
163          ;;
164 @@ -17982,6 +17984,8 @@ $as_echo "$as_me: WARNING: compiler opti
165      tmp_CFLAGS="$CFLAGS"
166      tmp_CPPFLAGS="$CPPFLAGS"
167  
168 +# Do not remove the user-supplied debug flags in CFLAGS (PR/150854)
169 +if false; then
170      ac_var_stripped=""
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
174    done
175      tmp_CPPFLAGS="$ac_var_stripped"
176    squeeze tmp_CPPFLAGS
177 +fi
178  
179      #
180      if test "$want_debug" = "yes"; then
181 @@ -18229,6 +18234,8 @@ $as_echo "$honor_optimize_option" >&6; }
182      #
183      if test "$honor_optimize_option" = "yes"; then
184  
185 +# Do not remove the user-supplied optimization flags in CFLAGS (PR/150854)
186 +if false; then
187      ac_var_stripped=""
188    for word1 in $tmp_CFLAGS; do
189      ac_var_strip_word="no"
190 @@ -18259,6 +18266,7 @@ $as_echo "$honor_optimize_option" >&6; }
191    done
192      tmp_CPPFLAGS="$ac_var_stripped"
193    squeeze tmp_CPPFLAGS
194 +fi
195  
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; }
199      ;;
200    off)
201          LIB_RTMP="-lrtmp"
202 +        LD_RTMP=""
203 +        CPP_RTMP=""
204 +        DIR_RTMP=""
205      ;;
206    *)
207          LIB_RTMP="-lrtmp"
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
212      ;;
213    esac
214  
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
219 -  fi
220 -
221    LDFLAGS="$LDFLAGS $LD_RTMP"
222    CPPFLAGS="$CPPFLAGS $CPP_RTMP"
223    LIBS="$LIB_RTMP $LIBS"
224  
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
231  else
232    ac_check_lib_save_LIBS=$LIBS
233 -LIBS="-lrtmp  $LIBS"
234 +LIBS="$LIBS"
235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
236  /* end confdefs.h.  */
237  
238 @@ -41279,9 +41287,10 @@ $as_echo "$as_me: LIBS note: LIBS should
239        -I*)
240          xc_bad_var_ldflags=yes
241          ;;
242 -      -l* | --library=*)
243 -        xc_bad_var_ldflags=yes
244 -        ;;
245 +# Temporarily disable -l* flag check for SSP support (Mk/bsd.ssp.mk)
246 +#      -l* | --library=*)
247 +#        xc_bad_var_ldflags=yes
248 +#        ;;
249      esac
250    done
251    if test $xc_bad_var_ldflags = yes; then
252 @@ -41351,9 +41360,10 @@ $as_echo "$as_me: $xc_bad_var_msg librar
253    xc_bad_var_cflags=no
254    for xc_word in $CFLAGS; do
255      case "$xc_word" in
256 -      -D*)
257 -        xc_bad_var_cflags=yes
258 -        ;;
259 +# Temporarily disable -D* flag check (PR/177401, PR/180944)
260 +#      -D*)
261 +#        xc_bad_var_cflags=yes
262 +#        ;;
263        -U*)
264          xc_bad_var_cflags=yes
265          ;;
266
267
268 [FILE:277:patches/patch-lib-hostcheck.h]
269 --- lib/hostcheck.h.orig        2013-09-08 22:11:15 UTC
270 +++ lib/hostcheck.h
271 @@ -23,6 +23,7 @@
272   ***************************************************************************/
273  
274  #include <curl/curl.h>
275 +#include <netinet/in.h>
276  
277  #define CURL_HOST_NOMATCH 0
278  #define CURL_HOST_MATCH   1
279
280
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
286
287 --- lib/url.c.orig      2017-04-18 06:36:20 UTC
288 +++ lib/url.c
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 */
296  
297      Curl_http2_init_state(&data->state);
298    }
299
300
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);
306            }
307  
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;
316 -            else
317 -              /* let offset be 0 */
318 -              config->resume_from = 0;
319 -          }
320 -
321 -          if(config->resume_from) {
322 +          if(config->resume_from || config->resume_from_current) {
323  #ifdef __VMS
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");
328  #else
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");
333  #endif
334              if(!file) {
335                helpf(global->errors, "Can't open '%s'!\n", outfile);
336 @@ -684,6 +672,19 @@ static CURLcode operate_do(struct Global
337              }
338              outs.fopened = TRUE;
339              outs.stream = file;
340 +
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;
348 +              else
349 +                /* let offset be 0 */
350 +                config->resume_from = 0;
351 +            }
352 +
353              outs.init = config->resume_from;
354            }
355            else {
356