Page MenuHomeFreeBSD

D14699.id40376.diff
No OneTemporary

D14699.id40376.diff

Index: net-p2p/transmission/Makefile
===================================================================
--- net-p2p/transmission/Makefile
+++ net-p2p/transmission/Makefile
@@ -1,18 +1,75 @@
# $FreeBSD$
PORTNAME= transmission
-PORTVERSION= 2.93
+DISTVERSION= 2.93
CATEGORIES= net-p2p
+PKGNAMESUFFIX= -${FLAVOR}
MAINTAINER= crees@FreeBSD.org
-COMMENT= Meta-port for Transmission BitTorrent client
+COMMENT= Transmission is a fast, easy, and free BitTorrent client
-RUN_DEPENDS= transmission-cli:net-p2p/transmission-cli \
- transmission-daemon:net-p2p/transmission-daemon \
- transmission-gtk:net-p2p/transmission-gtk
-
-CONFLICTS_INSTALL= ${PORTNAME}${PKGNAMESUFFIX}-2.[56]*
-
-USES= metaport
+# Still need to figure out how to add LICENSE per FLAVOR
+# since some of the FLAVORS do have more permissive LICENSE.
+# Alternativelly, if possible, use LICENSE_GROUP then.
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+# FLAVOR should come after LIB_DEPENDS but I couldn't find a
+# workaround to the web FLAVOR which does not have LIB_DEPENDS.
+FLAVORS= cli daemon gtk qt4 qt5 web
+FLAVOR?= ${FLAVORS:[1]}
+
+. if ${FLAVOR} != web
+LIB_DEPENDS= libcurl.so:ftp/curl \
+ libdht.so:devel/jech-dht \
+ libb64.so:converters/libb64 \
+ libevent.so:devel/libevent \
+ libnatpmp.so:net/libnatpmp \
+ libutp.so:net/libutp \
+ libminiupnpc.so:net/miniupnpc
+. endif
+
+GTK_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
+ libnotify.so:devel/libnotify
+QT4_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2
+QT5_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2
+GTK_RUN_DEPENDS= xdg-open:devel/xdg-utils
+
+USES= autoreconf cpe cmake:outsource,noninja gmake gettext \
+ iconv libtool localbase pkgconfig
+USE_GITHUB= yes
+GH_TUPLE= transmission:libevent:c51b159:transmission/third-party/libevent \
+
+LDFLAGS+= -L${LOCALBASE}/lib -lintl
+GNU_CONFIGURE= yes
+
+CMAKE_VERBOSE= yes
+
+. if ${FLAVOR} == cli
+CLI_CMAKE_BOOL= ENABLE_CLI
+. endif
+
+. if ${FLAVOR} == daemon
+DAEMON_CMAKE_BOOL= ENABLE_DAEMON
+GTK_CMAKE_BOOL= DISABLE_GTK
+QT_CMAKE_BOOL= DISABLE_QT
+
+USE_RC_SUBR= transmission
+USERS= transmission
+GROUPS= transmission
+. endif
+
+# Install -web stuff
+. if ${FLAVOR} == web
+post-extract:
+ @${FIND} ${WRKSRC}/web -name Makefile.* -delete
+ @${FIND} ${WRKSRC}/web -name .git* -delete
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${DATADIR}/web
+ (cd ${WRKSRC}/web && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/web)
+. endif
.include <bsd.port.mk>
Index: net-p2p/transmission/distinfo
===================================================================
--- /dev/null
+++ net-p2p/transmission/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1521265253
+SHA256 (transmission-transmission-2.93_GH0.tar.gz) = 870ea21a2803c141126bb3f2da4e9acab8db7c0b403a64f685f410b629497a8a
+SIZE (transmission-transmission-2.93_GH0.tar.gz) = 6341015
+SHA256 (transmission-libevent-c51b159_GH0.tar.gz) = 2c40406be1ef897a925cd7826d05304fb07659828abd09712c4e152b756340fd
+SIZE (transmission-libevent-c51b159_GH0.tar.gz) = 512552
Index: net-p2p/transmission/files/patch-libtransmission_crypto-utils-openssl.c
===================================================================
--- /dev/null
+++ net-p2p/transmission/files/patch-libtransmission_crypto-utils-openssl.c
@@ -0,0 +1,20 @@
+--- libtransmission/crypto-utils-openssl.c.orig 2018-03-17 02:51:58 UTC
++++ libtransmission/crypto-utils-openssl.c
+@@ -147,7 +147,7 @@ tr_sha1_final (tr_sha1_ctx_t handle,
+ ****
+ ***/
+
+-#if OPENSSL_VERSION_NUMBER < 0x0090802fL
++#if OPENSSL_VERSION_NUMBER < 0x0090802fL || defined(LIBRESSL_VERSION_NUMBER)
+
+ static EVP_CIPHER_CTX *
+ openssl_evp_cipher_context_new (void)
+@@ -230,7 +230,7 @@ tr_rc4_process (tr_rc4_ctx_t handle,
+ ****
+ ***/
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
+ static inline int
+ DH_set0_pqg (DH * dh,
+ BIGNUM * p,
Index: net-p2p/transmission/files/patch-libtransmission_fdlimit.c
===================================================================
--- /dev/null
+++ net-p2p/transmission/files/patch-libtransmission_fdlimit.c
@@ -0,0 +1,11 @@
+--- libtransmission/fdlimit.c.orig 2018-03-17 03:06:48 UTC
++++ libtransmission/fdlimit.c
+@@ -517,7 +517,7 @@ tr_fdSocketCreate (tr_session * session,
+
+ if (gFd->peerCount < session->peerLimit)
+ if ((s = socket (domain, type, 0)) == TR_BAD_SOCKET)
+- if (sockerrno != EAFNOSUPPORT)
++ if (sockerrno != EPROTONOSUPPORT)
+ {
+ char err_buf[512];
+ tr_logAddError (_("Couldn't create socket: %s"),
Index: net-p2p/transmission/files/patch-qt_Application.h
===================================================================
--- /dev/null
+++ net-p2p/transmission/files/patch-qt_Application.h
@@ -0,0 +1,10 @@
+--- qt/Application.h.orig 2018-03-17 03:09:04 UTC
++++ qt/Application.h
+@@ -10,6 +10,7 @@
+ #ifndef QTR_APPLICATION_H
+ #define QTR_APPLICATION_H
+
++#include <ctime>
+ #include <QApplication>
+ #include <QSet>
+ #include <QTimer>
Index: net-p2p/transmission/files/patch-qt_qtr.pro
===================================================================
--- /dev/null
+++ net-p2p/transmission/files/patch-qt_qtr.pro
@@ -0,0 +1,20 @@
+--- qt/qtr.pro.orig 2018-03-17 03:10:10 UTC
++++ qt/qtr.pro
+@@ -8,7 +8,7 @@ target.path = /bin
+ INSTALLS += target
+
+ unix: INSTALLS += man
+-man.path = /share/man/man1/
++man.path = /man/man1/
+ man.files = transmission-qt.1
+
+ CONFIG += qt thread debug link_pkgconfig c++11 warn_on
+@@ -34,7 +34,7 @@ LIBS += $${DHT_LIBS}
+ LIBS += $${LIBB64_LIBS}
+ LIBS += $${LIBUPNP_LIBS}
+ LIBS += $${LIBNATPMP_LIBS}
+-unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt
++unix: LIBS += -L$${EVENT_TOP}/lib -lz -levent_core -levent_extra
+ win32:LIBS += -levent-2.0 -lws2_32 -lintl
+ win32:LIBS += -lidn -liconv -lwldap32 -liphlpapi
+

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 21, 7:14 AM (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27796109
Default Alt Text
D14699.id40376.diff (5 KB)

Event Timeline