Skip to content

Commit

Permalink
curl retrportado
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Mar 12, 2019
1 parent c55ed7e commit 9d66aee
Show file tree
Hide file tree
Showing 5 changed files with 533 additions and 0 deletions.
44 changes: 44 additions & 0 deletions arboldes/usr/ports/mystuff/net/curl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# $OpenBSD: Makefile,v 1.141 2019/02/11 20:34:39 naddy Exp $

COMMENT= get files from FTP, Gopher, HTTP or HTTPS servers

DISTNAME= curl-7.64.0
SHARED_LIBS= curl 25.20 # 9.0
CATEGORIES= net
HOMEPAGE= https://curl.haxx.se/

MAINTAINER= Christian Weisgerber <naddy@openbsd.org>

# MIT
PERMIT_PACKAGE_CDROM= Yes

MASTER_SITES= https://curl.haxx.se/download/
EXTRACT_SUFX= .tar.xz

LIB_DEPENDS= www/nghttp2
WANTLIB= c crypto pthread nghttp2 ssl z

AUTOCONF_VERSION=2.69
CONFIGURE_STYLE=autoconf
# Beware of circular dependency curl -> brotli -> cmake -> curl
CONFIGURE_ARGS= --with-ca-bundle=/etc/ssl/cert.pem \
--without-brotli \
--without-libidn2 \
--without-libpsl \
--without-libssh \
--without-libssh2
CONFIGURE_ENV= ac_cv_path_NROFF="/usr/bin/mandoc -Tascii"

# speed up some time-consuming configure tests
CONFIGURE_ENV+= \
curl_cv_func_select_args="int,fd_set *,struct timeval *,int" \
curl_cv_func_recv_args="int,void *,size_t,int,ssize_t" \
curl_cv_func_send_args="int,const void *,size_t,int,ssize_t"

# Note:
# use ulimit -p 256 for test

# runsshserver: sshserver.pl --user=$USER
TEST_ENV= USER=$$USER

.include <bsd.port.mk>
2 changes: 2 additions & 0 deletions arboldes/usr/ports/mystuff/net/curl/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (curl-7.64.0.tar.xz) = Ly8T+jTUSqKctEQHetfcTcbRiVhK1VLgqusG5givYAE=
SIZE (curl-7.64.0.tar.xz) = 2398904
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
$OpenBSD: patch-m4_curl-compilers_m4,v 1.1 2019/02/11 20:34:39 naddy Exp $

The curl configure script wants to take control of the compiler
flags for optimization and debugging. The actual interactions are
more complex, but the gist is that the flags are stripped from
CFLAGS, and if --enable-optimize or --enable-debug are specified,
an approved optimization or debugging flag is added.

Do not strip debugging flags (-g).

Do not override optimization flags in CFLAGS.

Index: m4/curl-compilers.m4
--- m4/curl-compilers.m4.orig
+++ m4/curl-compilers.m4
@@ -737,8 +737,8 @@ AC_DEFUN([CURL_SET_COMPILER_DEBUG_OPTS], [
tmp_options=""
tmp_CFLAGS="$CFLAGS"
tmp_CPPFLAGS="$CPPFLAGS"
- CURL_VAR_STRIP([tmp_CFLAGS],[$flags_dbg_all])
- CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_dbg_all])
+# CURL_VAR_STRIP([tmp_CFLAGS],[$flags_dbg_all])
+# CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_dbg_all])
#
if test "$want_debug" = "yes"; then
AC_MSG_CHECKING([if compiler accepts debug enabling options])
@@ -791,7 +791,7 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
tmp_options=""
tmp_CFLAGS="$CFLAGS"
tmp_CPPFLAGS="$CPPFLAGS"
- honor_optimize_option="yes"
+ honor_optimize_option="no"
#
dnl If optimization request setting has not been explicitly specified,
dnl it has been derived from the debug setting and initially assumed.
7 changes: 7 additions & 0 deletions arboldes/usr/ports/mystuff/net/curl/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
curl is a command line tool for transferring data with URL syntax,
supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS,
POP3, POP3S, RTSP, SMB, SMBS, SMTP, SMTPS, Telnet and TFTP. curl
supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
form based upload, proxies, cookies, user+password authentication
(Basic, Digest, NTLM, Negotiate, ...), file transfer resume, proxy
tunneling and a busload of other useful tricks.
Loading

0 comments on commit 9d66aee

Please sign in to comment.