Index: head/net-mgmt/seafile-client/Makefile =================================================================== --- head/net-mgmt/seafile-client/Makefile (revision 483948) +++ head/net-mgmt/seafile-client/Makefile (revision 483949) @@ -1,60 +1,60 @@ # $FreeBSD$ PORTNAME= seafile-client DISTVERSIONPREFIX= v DISTVERSION= ${SEAFILE_CLIENT_VER} CATEGORIES= net-mgmt MAINTAINER= ultima@FreeBSD.org COMMENT= Open Source Cloud Storage (Client) LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= valac:lang/vala LIB_DEPENDS= libsearpc.so:devel/libsearpc \ libcurl.so:ftp/curl \ libinotify.so:devel/libinotify \ libccnet.so:net-mgmt/ccnet-client \ libevent.so:devel/libevent \ libuuid.so:misc/e2fsprogs-libuuid \ libjansson.so:devel/jansson RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} \ bash:shells/bash -USES= autoreconf iconv libarchive libtool localbase mysql \ +USES= autoreconf gnome iconv libarchive libtool localbase mysql \ pathfix pkgconfig python:-2.7 shebangfix sqlite ssl USE_GITHUB= yes GH_ACCOUNT= haiwen GH_PROJECT= seafile USE_GNOME= glib20 USE_LDCONFIG= yes CONFLICTS= seafile-server-[0-9]* SHEBANG_FILES= *.sh scripts/*.sh app/seaf-cli integration-tests/*.sh GNU_CONFIGURE= yes CONFIGURE_ENV= SSL_CFLAGS="${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" CPPFLAGS+= -I${LOCALBASE}/include/evhtp INSTALL_TARGET= install-strip OPTIONS_DEFINE= NLS NLS_USES= gettext post-patch: # Fix P_KTHREAD r295435 ${REINPLACE_CMD} 's/P_KTHREAD/P_KPROC/' ${WRKSRC}/lib/utils.c makesum-all: .for PORT in net-mgmt/ccnet-client net-mgmt/seafile-client net-mgmt/seafile-gui ${MAKE} -C "${PORTSDIR}/${PORT}" makesum .endfor .include "${.CURDIR}/Makefile.include" .include Index: head/net-mgmt/seafile-client/files/patch-daemon_http-tx-mgr.c =================================================================== --- head/net-mgmt/seafile-client/files/patch-daemon_http-tx-mgr.c (revision 483948) +++ head/net-mgmt/seafile-client/files/patch-daemon_http-tx-mgr.c (revision 483949) @@ -1,25 +1,35 @@ ---- daemon/http-tx-mgr.c.orig 2015-09-21 03:42:11 UTC +--- daemon/http-tx-mgr.c.orig 2018-02-02 05:55:07 UTC +++ daemon/http-tx-mgr.c -@@ -58,6 +58,22 @@ - #define USER_AGENT_OS "Linux" +@@ -68,6 +68,22 @@ + #define USER_AGENT_OS "BSD" #endif +#ifdef __FreeBSD__ +#define USER_AGENT_OS "FreeBSD" +#endif + +#ifdef __DragonFly__ +#define USER_AGENT_OS "DragonFly" +#endif + +#ifdef __NetBSD__ +#define USER_AGENT_OS "NetBSD" +#endif + +#ifdef __OpenBSD__ +#define USER_AGENT_OS "OpenBSD" +#endif + struct _Connection { CURL *curl; gint64 ctime; /* Used to clean up unused connection. */ +@@ -1091,7 +1107,9 @@ curl_error_to_http_task_error (int curl_ + case CURLE_SSL_CONNECT_ERROR: + case CURLE_PEER_FAILED_VERIFICATION: + case CURLE_SSL_CERTPROBLEM: ++#if LIBCURL_VERSION_NUM < 0x073e00 + case CURLE_SSL_CACERT: ++#endif + case CURLE_SSL_CACERT_BADFILE: + case CURLE_SSL_ISSUER_ERROR: + return HTTP_TASK_ERR_SSL;