View | Details | Raw Unified | Return to bug 226710 | Differences between
and this patch

Collapse All | Expand All

(-)net-p2p/Makefile (-2 / +1 lines)
Lines 92-99 Link Here
92
    SUBDIR += transmission-cli
92
    SUBDIR += transmission-cli
93
    SUBDIR += transmission-daemon
93
    SUBDIR += transmission-daemon
94
    SUBDIR += transmission-gtk
94
    SUBDIR += transmission-gtk
95
    SUBDIR += transmission-qt4
95
    SUBDIR += transmission-qt
96
    SUBDIR += transmission-qt5
97
    SUBDIR += transmission-remote-gui
96
    SUBDIR += transmission-remote-gui
98
    SUBDIR += tribler
97
    SUBDIR += tribler
99
    SUBDIR += twister
98
    SUBDIR += twister
(-)net-p2p/transmission/Makefile (-7 / +22 lines)
Lines 1-18 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	transmission
3
PORTNAME=	transmission
4
PORTVERSION=	2.93
4
DISTVERSION=	2.94
5
CATEGORIES=	net-p2p
5
CATEGORIES=	net-p2p
6
6
7
MAINTAINER=	crees@FreeBSD.org
7
MAINTAINER=	lebarondemerde@privacychain.ch
8
COMMENT=	Meta-port for Transmission BitTorrent client
8
COMMENT=	Meta-port for Transmission BitTorrent client
9
9
10
RUN_DEPENDS=	transmission-cli:net-p2p/transmission-cli \
10
LICENSE=	GPLv2+ MIT
11
		transmission-daemon:net-p2p/transmission-daemon \
11
LICENSE_COMB=	multi
12
		transmission-gtk:net-p2p/transmission-gtk
13
12
14
CONFLICTS_INSTALL=	${PORTNAME}${PKGNAMESUFFIX}-2.[56]*
13
USES=		metaport
15
14
16
USES=	metaport
15
OPTIONS_DEFINE=		CLI DAEMON GTK QT4 QT5 WEB
17
16
17
CLI_DESC=	Command line version
18
DAEMON_DESC=	Daemon version
19
GTK_DESC=	GTK version
20
QT4_DESC=	Qt4 version
21
QT5_DESC=	Qt5 version
22
WEB_DESC=	Web client
23
24
OPTIONS_DEFAULT=	CLI DAEMON GTK QT4 QT5 WEB
25
26
CLI_RUN_DEPENDS=	transmission-cli:net-p2p/transmission-cli
27
DAEMON_RUN_DEPENDS=	transmission-daemon:net-p2p/transmission-daemon
28
GTK_RUN_DEPENDS=	transmission-gtk:net-p2p/transmission-gtk
29
QT4_RUN_DEPENDS=	transmission-qt:net-p2p/transmission-qt@qt4
30
QT5_RUN_DEPENDS=	transmission-qt:net-p2p/transmission-qt@qt5
31
WEB_RUN_DEPENDS=	${DATADIR}/web/index.html:www/transmission-web
32
18
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)net-p2p/transmission-cli/Makefile (-85 / +57 lines)
Lines 1-116 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	transmission
3
PORTNAME=	transmission
4
PORTVERSION=	2.93
4
DISTVERSION=	2.94
5
PORTREVISION?=	1
5
CATEGORIES+=	net-p2p
6
CATEGORIES?=	net-p2p
6
SLAVEPORT?=	cli
7
MASTER_SITES=	https://github.com/transmission/transmission-releases/raw/master/ \
8
		http://transmission.cachefly.net/
9
PKGNAMESUFFIX?=	-cli
7
PKGNAMESUFFIX?=	-cli
10
8
11
MAINTAINER?=	crees@FreeBSD.org
9
MAINTAINER=	lebarondemerde@privacychain.ch
12
COMMENT?=	Lightweight CLI (command line) BitTorrent client and utilities
10
COMMENT=	Meta-port for Transmission BitTorrent client
13
11
14
SLAVEPORT?=	cli
12
LICENSE+=	MIT
15
13
16
LICENSE=	GPLv2+
14
.if ${SLAVEPORT:Ncli}
17
.if ${SLAVEPORT} == cli
15
LICENSE+=	GPLv2+
18
LICENSE+=	MIT
19
LICENSE_COMB=	multi
16
LICENSE_COMB=	multi
17
LICENSE_FILE=	${WRKSRC}/COPYING
20
.endif
18
.endif
21
LICENSE_FILE=	${WRKSRC}/COPYING
22
19
23
USES+=		cpe tar:xz
20
.if ${SLAVEPORT:Nweb}
21
LIB_DEPENDS+=	libcurl.so:ftp/curl \
22
		libdht.so:devel/jech-dht \
23
		libb64.so:converters/libb64 \
24
		libevent.so:devel/libevent \
25
		libnatpmp.so:net/libnatpmp \
26
		libutp.so:net/libutp \
27
		libminiupnpc.so:net/miniupnpc
28
29
USES+=		cmake:outsource cpe iconv libtool localbase pkgconfig
30
31
.  if ${SLAVEPORT:Mcli}
32
USES+=		ssl
33
NLS_USES=	gettext-runtime:run
34
.  endif
35
24
CPE_VENDOR=	transmissionbt
36
CPE_VENDOR=	transmissionbt
37
.endif
25
38
26
CONFLICTS_INSTALL=	${PORTNAME}${PKGNAMESUFFIX}-2.5*
39
USE_GITHUB=	yes
27
40
28
EXTRACT_AFTER_ARGS=--no-same-owner --no-same-permissions --exclude third-party
29
30
.if ${SLAVEPORT} != web
41
.if ${SLAVEPORT} != web
31
LIB_DEPENDS?=	${GEN_LIB_DEPENDS}
42
SLAVES=		cli daemon gtk qt
43
CMAKE_ON+=	ENABLE_${SLAVEPORT:tu}
44
CMAKE_OFF+=	${SLAVES:N${SLAVEPORT}:tu:S/^/ENABLE_/}
32
45
33
# General dependencies
46
.  if ${SLAVEPORT:Nweb:Ncli}
34
GEN_LIB_DEPENDS=libb64.so:converters/libb64 \
47
CMAKE_OFF+=	ENABLE_UTILS
35
		libcurl.so:ftp/curl \
48
.  endif
36
		libdht.so:devel/jech-dht \
37
		libminiupnpc.so:net/miniupnpc \
38
		libnatpmp.so:net/libnatpmp \
39
		libutp.so:net/libutp \
40
		libevent.so:devel/libevent
41
GEN_RUN_DEPENDS=${LOCALBASE}/share/transmission/web/index.html:www/transmission-web
42
49
43
# This is master port of transmission-*, so don't override USES definition
50
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${SLAVEPORT}
44
USES+=		gmake iconv libtool localbase pkgconfig
51
CMAKE_ARGS+=	-DCMAKE_INSTALL_DOCDIR=${DOCSDIR}
45
GNU_CONFIGURE=	yes
46
LIBS+=		${ICONV_LIB}
47
CONFIGURE_ENV=	${ICONV_LIB:C@.+@ac_cv_func_iconv=yes@}
48
CONFIGURE_ARGS=	--without-inotify \
49
		--enable-external-b64 \
50
		--enable-external-dht \
51
		--enable-external-natpmp \
52
		${EXTRA_CONF_ARGS}
53
52
54
EXTRA_CONF_ARGS?=--enable-cli \
53
OPTIONS_DEFINE+=	DOCS LITE NLS
55
		 --disable-daemon \
54
OPTIONS_SUB=		yes
56
		 --without-gtk \
55
OPTIONS_DEFAULT=	OPENSSL
57
		 --disable-mac \
58
		 --disable-nls
59
56
60
EXTRA_PATCHES=	${PATCHDIR}/disable-web
57
NLS_CMAKE_BOOL=		ENABLE_NLS
61
58
62
OPTIONS_DEFINE+=	DOCS LITE
59
OPTIONS_SINGLE=		SSL
63
OPTIONS_DEFAULT+=	OPENSSL
60
OPTIONS_SINGLE_SSL=	OPENSSL WOLFSSL
64
OPTIONS_SINGLE+=	SSL
65
OPTIONS_SINGLE_SSL+=	OPENSSL WOLFSSL
66
61
67
LITE_CONFIGURE_ENABLE=	lightweight
68
69
OPENSSL_USES=		ssl
62
OPENSSL_USES=		ssl
70
OPENSSL_CONFIGURE_ENV=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
63
OPENSSL_CMAKE_ARGS=	-DWITH_CRYPTO="openssl"
71
			OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto"
72
OPENSSL_CONFIGURE_ON=	--with-crypto=openssl
73
64
74
WOLFSSL_LIB_DEPENDS=	libwolfssl.so:security/wolfssl
65
WOLFSSL_LIB_DEPENDS=	libwolfssl.so:security/wolfssl
75
WOLFSSL_CONFIGURE_ON=	--with-crypto=cyassl
66
WOLFSSL_CMAKE_ARGS=	-DWITH_CRYPTO="cyassl"
76
WOLFSSL_BROKEN=		Requires security/wolfssl built with --enable-arc4
67
68
LITE_CONFIGURE_ENABLE=	lightweight
69
LITE_CMAKE_BOOL=	ENABLE_LIGHTWEIGHT
77
.endif
70
.endif
78
71
79
DOCS=		AUTHORS NEWS README
72
post-extract:
80
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
73
	@${FIND} ${WRKSRC}/web -name .git* -delete
81
74
82
general-patch:
75
.if ${SLAVEPORT:Mweb}
83
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
76
	@${FIND} ${WRKSRC}/web \( -name '*.am' -o -name '*.in' \
84
		's|noinst_PROGRAMS = |noinst_PROGRAMS = #|g'
77
		-o -name '*.scss' \) -delete
85
.if ${SLAVEPORT} != gtk
78
86
	@${REINPLACE_CMD} -e '/#define DISABLE_GETTEXT/s,/\* \(.*\) \*/,\1,' \
79
do-install:
87
		${WRKSRC}/libtransmission/utils.h
80
	( cd ${WRKSRC} && ${COPYTREE_SHARE} web ${STAGEDIR}${DATADIR} )
88
.endif
81
.endif
89
	@${REINPLACE_CMD} -e \
90
		's|rt_clock_gettime=yes|rt_clock_gettime=no|g ; \
91
		s|" == "|" = "|g' \
92
			${WRKSRC}/configure
93
	@${REINPLACE_CMD} -e 's|doc \\| \\|g' \
94
		${WRKSRC}/Makefile.in
95
.if ${SLAVEPORT} != cli
96
	@${REINPLACE_CMD} -e 's|utils \\|\\|g' \
97
		${WRKSRC}/Makefile.in
98
.endif
99
# Don't conflict with patches but force system libraries
100
	@${REINPLACE_CMD} -e 's|third-party \\|\\|g' \
101
		${WRKSRC}/Makefile.in
102
	@${REINPLACE_CMD} \
103
		-e 's|third-party/[^ ]*Makefile||g' \
104
		${WRKSRC}/configure
105
82
106
post-patch: general-patch
83
.if ${SLAVEPORT:Mdaemon}
107
84
post-install:
108
general-install:
85
	${MKDIR} ${STAGEDIR}${ETCDIR}/home
109
.if ${SLAVEPORT} != web
110
	(cd ${WRKSRC} && ${COPYTREE_SHARE} \
111
		"${DOCS}" ${STAGEDIR}${DOCSDIR})
112
.endif
86
.endif
113
87
114
post-install: general-install
115
116
.include <bsd.port.mk>
88
.include <bsd.port.mk>
(-)net-p2p/transmission-cli/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1519849051
1
TIMESTAMP = 1530806424
2
SHA256 (transmission-2.93.tar.xz) = 8815920e0a4499bcdadbbe89a4115092dab42ce5199f71ff9a926cfd12b9b90b
2
SHA256 (transmission-transmission-2.94_GH0.tar.gz) = 440c2fd0f89b1ab59d8a4b79ecd7bffd61bc000e36fb5b6c8e88142a4fadbb1f
3
SIZE (transmission-2.93.tar.xz) = 3363868
3
SIZE (transmission-transmission-2.94_GH0.tar.gz) = 6342775
(-)net-p2p/transmission-cli/files/disable-web (-19 lines)
Lines 1-19 Link Here
1
--- Makefile.in.orig	2010-10-23 15:56:02.000000000 -0500
2
+++ Makefile.in	2010-10-23 15:56:55.000000000 -0500
3
@@ -303,15 +303,13 @@
4
 @BUILD_GTK_TRUE@GTK_DIR = gtk po
5
 @BUILD_MAC_TRUE@MAC_DIR = macosx
6
 SUBDIRS = \
7
-  extras \
8
   third-party \
9
   libtransmission \
10
   utils \
11
   $(DAEMON_DIR) \
12
   $(CLI_DIR) \
13
   $(GTK_DIR) \
14
-  $(MAC_DIR) \
15
-  web
16
+  $(MAC_DIR)
17
 
18
 EXTRA_DIST = \
19
   qt \
(-)net-p2p/transmission-cli/files/patch-CMakeLists.txt (+29 lines)
Line 0 Link Here
1
--- CMakeLists.txt.orig	2018-07-09 22:28:43 UTC
2
+++ CMakeLists.txt
3
@@ -511,9 +511,9 @@ endif()
4
 # endif()
5
 
6
 if(ENABLE_NLS)
7
-    check_library_exists(intl libintl_gettext "" HAVE_LIBINTL)
8
-    if(HAVE_LIBINTL)
9
-        set(LIBINTL_LIBRARY intl)
10
+    find_package(Intl)
11
+    if(Intl_FOUND)
12
+        set(LIBINTL_LIBRARY ${Intl_LIBRARIES})
13
     endif()
14
 endif()
15
 
16
@@ -536,13 +536,6 @@ foreach(P daemon cli utils gtk qt)
17
     endif()
18
 endforeach()
19
 
20
-if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT)
21
-    install(DIRECTORY web DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME}
22
-        PATTERN *.am EXCLUDE
23
-        PATTERN *.in EXCLUDE
24
-        PATTERN *.scss EXCLUDE)
25
-endif()
26
-
27
 if(ENABLE_GTK AND ENABLE_NLS)
28
     find_package(Gettext REQUIRED)
29
     add_subdirectory(po)
(-)net-p2p/transmission-cli/files/patch-cmake_FindDHT.cmake (+12 lines)
Line 0 Link Here
1
--- cmake/FindDHT.cmake.orig	2018-07-08 18:11:40 UTC
2
+++ cmake/FindDHT.cmake
3
@@ -15,6 +15,10 @@ endif()
4
 find_path(DHT_INCLUDE_DIR NAMES dht/dht.h HINTS ${_DHT_INCLUDEDIR})
5
 find_library(DHT_LIBRARY NAMES dht HINTS ${_DHT_LIBDIR})
6
 
7
+if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
8
+  set(DHT_INCLUDE_DIR /usr/local/lib)
9
+endif()
10
+
11
 set(DHT_INCLUDE_DIRS ${DHT_INCLUDE_DIR})
12
 set(DHT_LIBRARIES ${DHT_LIBRARY})
(-)net-p2p/transmission-cli/files/patch-configure (-20 lines)
Lines 1-20 Link Here
1
--- configure.orig	2016-03-06 20:24:37 UTC
2
+++ configure
3
@@ -19348,7 +19348,7 @@ $as_echo_n "checking µTP... " >&6; }
4
 build_utp="no"
5
 
6
 ac_save_LIBS="$LIBS"
7
-LIBS="-lutp"
8
+LIBS="-lutp $LIBS"
9
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10
 /* end confdefs.h.  */
11
 #include <libutp/utp.h>
12
@@ -19423,7 +19423,7 @@ $as_echo "$build_utp" >&6; }
13
 
14
 
15
 ac_save_LIBS="$LIBS"
16
-LIBS="-lminiupnpc"
17
+LIBS="-lminiupnpc $LIBS"
18
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system miniupnpc library" >&5
19
 $as_echo_n "checking system miniupnpc library... " >&6; }
20
 
(-)net-p2p/transmission-cli/files/patch-fix-with-libressl (-23 lines)
Lines 1-23 Link Here
1
--- libtransmission/crypto-utils-openssl.c.orig 2018-03-01 00:44:45 UTC
2
+++ libtransmission/crypto-utils-openssl.c
3
@@ -147,7 +147,7 @@ tr_sha1_final (tr_sha1_ctx_t   handle,
4
 ****
5
 ***/
6
 
7
-#if OPENSSL_VERSION_NUMBER < 0x0090802fL
8
+#if OPENSSL_VERSION_NUMBER < 0x0090802fL || defined(LIBRESSL_VERSION_NUMBER)
9
 
10
 static EVP_CIPHER_CTX *
11
 openssl_evp_cipher_context_new (void)
12
@@ -230,7 +230,7 @@ tr_rc4_process (tr_rc4_ctx_t   handle,
13
 ****
14
 ***/
15
 
16
-#if OPENSSL_VERSION_NUMBER < 0x10100000
17
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
18
 static inline int
19
 DH_set0_pqg (DH     * dh,
20
              BIGNUM * p,
21
22
23
(-)net-p2p/transmission-cli/files/patch-fix_without_ipv6 (-11 lines)
Lines 1-11 Link Here
1
--- libtransmission/fdlimit.c.orig	2015-07-01 00:54:41 UTC
2
+++ libtransmission/fdlimit.c
3
@@ -517,7 +517,7 @@ tr_fdSocketCreate (tr_session * session,
4
 
5
   if (gFd->peerCount < session->peerLimit)
6
     if ((s = socket (domain, type, 0)) == TR_BAD_SOCKET)
7
-      if (sockerrno != EAFNOSUPPORT)
8
+      if (sockerrno != EPROTONOSUPPORT)
9
         {
10
           char err_buf[512];
11
           tr_logAddError (_("Couldn't create socket: %s"),
(-)net-p2p/transmission-cli/files/patch-libtransmission_CMakeLists.txt (+11 lines)
Line 0 Link Here
1
--- libtransmission/CMakeLists.txt.orig	2018-07-10 05:34:13 UTC
2
+++ libtransmission/CMakeLists.txt
3
@@ -281,7 +281,7 @@ if(ENABLE_TESTS)
4
             set(${TP}_TEST_BASENAME "${T}")
5
         endif()
6
         add_executable(${TP} ${${TP}_TEST_BASENAME}-test.c ${${T}-test_ADD_SOURCES})
7
-        target_link_libraries(${TP} ${TR_NAME} ${TR_NAME}-test)
8
+        target_link_libraries(${TP} ${TR_NAME} ${TR_NAME}-test ${DHT_LIBRARIES})
9
         if(DEFINED ${T}-test_DEFINITIONS)
10
             target_compile_definitions(${TP} PRIVATE ${${T}-test_DEFINITIONS})
11
         endif()
(-)net-p2p/transmission-cli/files/patch-libtransmission_crypto-utils-openssl.c (-11 lines)
Lines 1-11 Link Here
1
--- libtransmission/crypto-utils-openssl.c.orig	2018-01-23 19:17:43 UTC
2
+++ libtransmission/crypto-utils-openssl.c
3
@@ -230,7 +230,7 @@ tr_rc4_process (tr_rc4_ctx_t   handle,
4
 ****
5
 ***/
6
 
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000)
9
 static inline int
10
 DH_set0_pqg (DH     * dh,
11
              BIGNUM * p,
(-)net-p2p/transmission-cli/files/patch-qt-app-h (-10 lines)
Lines 1-10 Link Here
1
--- qt/Application.h.orig	2013-11-13 20:00:41.000000000 +0100
2
+++ qt/Application.h	2013-11-13 20:00:51.000000000 +0100
3
@@ -13,6 +13,7 @@
4
 #ifndef QTR_APP_H
5
 #define QTR_APP_H
6
 
7
+#include <ctime>
8
 #include <QApplication>
9
 #include <QSet>
10
 #include <QTimer>
(-)net-p2p/transmission-cli/files/patch-qt_Application.h (+10 lines)
Line 0 Link Here
1
--- qt/Application.h.orig	2018-07-04 17:44:30 UTC
2
+++ qt/Application.h
3
@@ -15,6 +15,7 @@
4
 #include <QTimer>
5
 #include <QTranslator>
6
 
7
+#include <time.h>
8
 #include "FaviconCache.h"
9
 
10
 class AddData;
(-)net-p2p/transmission-cli/files/patch-qt_qtr_pro (-21 lines)
Lines 1-21 Link Here
1
$OpenBSD: patch-qt_qtr_pro,v 1.4 2012/04/07 10:55:04 naddy Exp $
2
--- qt/qtr.pro.orig	Fri Aug  9 04:45:47 2013
3
+++ qt/qtr.pro	Thu Aug 22 16:37:03 2013
4
@@ -8,7 +8,7 @@ target.path = /bin
5
 INSTALLS += target
6
 
7
 unix: INSTALLS += man
8
-man.path = /share/man/man1/
9
+man.path = /man/man1/
10
 man.files = transmission-qt.1
11
 
12
 CONFIG += qt thread debug link_pkgconfig c++11 warn_on
13
@@ -34,7 +34,7 @@ LIBS += $${DHT_LIBS}
14
 LIBS += $${LIBB64_LIBS}
15
 LIBS += $${LIBUPNP_LIBS}
16
 LIBS += $${LIBNATPMP_LIBS}
17
-unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt
18
+unix: LIBS += -L$${EVENT_TOP}/lib -lz -levent_core -levent_extra
19
 win32:LIBS += -levent-2.0 -lws2_32 -lintl
20
 win32:LIBS += -lidn -liconv -lwldap32 -liphlpapi
21
 
(-)net-p2p/transmission-cli/pkg-plist (+3 lines)
Lines 7-11 Link Here
7
man/man1/transmission-edit.1.gz
7
man/man1/transmission-edit.1.gz
8
man/man1/transmission-show.1.gz
8
man/man1/transmission-show.1.gz
9
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
9
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
10
%%PORTDOCS%%%%DOCSDIR%%/COPYING
10
%%PORTDOCS%%%%DOCSDIR%%/NEWS
11
%%PORTDOCS%%%%DOCSDIR%%/NEWS
11
%%PORTDOCS%%%%DOCSDIR%%/README
12
%%PORTDOCS%%%%DOCSDIR%%/README
13
%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
14
%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
(-)net-p2p/transmission-daemon/Makefile (-18 / +8 lines)
Lines 2-29 Link Here
2
2
3
PKGNAMESUFFIX=	-daemon
3
PKGNAMESUFFIX=	-daemon
4
4
5
MAINTAINER=	crees@FreeBSD.org
5
USES=		ssl
6
COMMENT=	Fast and lightweight daemon BitTorrent client
6
NLS_USES=	gettext-runtime:run
7
7
8
RUN_DEPENDS=	${GEN_RUN_DEPENDS}
8
USERS=		transmission
9
GROUPS=		transmission
10
USE_RC_SUBR=	transmission
9
11
12
MASTERDIR=	${.CURDIR}/../transmission-cli
10
DESCR=		${.CURDIR}/pkg-descr
13
DESCR=		${.CURDIR}/pkg-descr
11
MASTERDIR=	${.CURDIR}/../transmission-cli
14
PKGMESSAGE=	${.CURDIR}/pkg-message
12
PLIST=		${.CURDIR}/pkg-plist
15
PLIST=		${.CURDIR}/pkg-plist
16
13
SLAVEPORT=	daemon
17
SLAVEPORT=	daemon
14
PKGMESSAGE=	${.CURDIR}/pkg-message
15
18
16
USE_RC_SUBR=	transmission
17
USERS=		transmission
18
GROUPS=		transmission
19
20
EXTRA_CONF_ARGS=--disable-cli \
21
		--enable-daemon \
22
		--without-gtk \
23
		--disable-mac \
24
		--disable-nls
25
26
post-install:
27
		${MKDIR} ${STAGEDIR}${ETCDIR}/home
28
29
.include "${MASTERDIR}/Makefile"
19
.include "${MASTERDIR}/Makefile"
(-)net-p2p/transmission-daemon/pkg-plist (+3 lines)
Lines 3-8 Link Here
3
man/man1/transmission-daemon.1.gz
3
man/man1/transmission-daemon.1.gz
4
man/man1/transmission-remote.1.gz
4
man/man1/transmission-remote.1.gz
5
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
5
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
6
%%PORTDOCS%%%%DOCSDIR%%/COPYING
6
%%PORTDOCS%%%%DOCSDIR%%/NEWS
7
%%PORTDOCS%%%%DOCSDIR%%/NEWS
7
%%PORTDOCS%%%%DOCSDIR%%/README
8
%%PORTDOCS%%%%DOCSDIR%%/README
9
%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
10
%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
8
@dir %%ETCDIR%%/home
11
@dir %%ETCDIR%%/home
(-)net-p2p/transmission-gtk/Makefile (-23 / +8 lines)
Lines 2-34 Link Here
2
2
3
PKGNAMESUFFIX=	-gtk
3
PKGNAMESUFFIX=	-gtk
4
4
5
MAINTAINER=	crees@FreeBSD.org
5
LIB_DEPENDS=	libdbus-glib-1.so:devel/dbus-glib \
6
COMMENT=	Fast and lightweight GTK+3 BitTorrent client
6
		libnotify.so:devel/libnotify
7
RUN_DEPENDS=	xdg-open:devel/xdg-utils
7
8
8
LIB_DEPENDS=	${GEN_LIB_DEPENDS} \
9
USES=		desktop-file-utils ssl
9
		libnotify.so:devel/libnotify \
10
NLS_USES=	gettext-tools:build
10
		libdbus-glib-1.so:devel/dbus-glib
11
USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30 intlhack pango
11
12
12
RUN_DEPENDS=	${GEN_RUN_DEPENDS} \
13
MASTERDIR=	${.CURDIR}/../transmission-cli
13
		xdg-open:devel/xdg-utils
14
15
DESCR=		${.CURDIR}/pkg-descr
14
DESCR=		${.CURDIR}/pkg-descr
16
MASTERDIR=	${.CURDIR}/../transmission-cli
17
PLIST=		${.CURDIR}/pkg-plist
15
PLIST=		${.CURDIR}/pkg-plist
16
18
SLAVEPORT=	gtk
17
SLAVEPORT=	gtk
19
18
20
USE_GNOME=	cairo gtk30 intlhack
21
USES=		gettext pathfix desktop-file-utils
22
INSTALLS_ICONS=	yes
23
24
EXTRA_CONF_ARGS=--disable-cli \
25
		--disable-daemon \
26
		--with-gtk \
27
		--disable-mac \
28
		--enable-nls
29
30
post-patch: general-patch
31
	@${REINPLACE_CMD} -e 's|TryExec=.*||g ; /^$$/d' \
32
		${WRKSRC}/gtk/transmission-gtk.desktop.in
33
34
.include "${MASTERDIR}/Makefile"
19
.include "${MASTERDIR}/Makefile"
(-)net-p2p/transmission-gtk/pkg-plist (-2 / +4 lines)
Lines 2-9 Link Here
2
man/man1/transmission-gtk.1.gz
2
man/man1/transmission-gtk.1.gz
3
share/applications/transmission-gtk.desktop
3
share/applications/transmission-gtk.desktop
4
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
4
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
5
%%PORTDOCS%%%%DOCSDIR%%/COPYING
5
%%PORTDOCS%%%%DOCSDIR%%/NEWS
6
%%PORTDOCS%%%%DOCSDIR%%/NEWS
6
%%PORTDOCS%%%%DOCSDIR%%/README
7
%%PORTDOCS%%%%DOCSDIR%%/README
8
%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
9
%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
7
share/icons/hicolor/16x16/apps/transmission.png
10
share/icons/hicolor/16x16/apps/transmission.png
8
share/icons/hicolor/22x22/apps/transmission.png
11
share/icons/hicolor/22x22/apps/transmission.png
9
share/icons/hicolor/24x24/apps/transmission.png
12
share/icons/hicolor/24x24/apps/transmission.png
Lines 48-55 Link Here
48
share/locale/he/LC_MESSAGES/transmission-gtk.mo
51
share/locale/he/LC_MESSAGES/transmission-gtk.mo
49
share/locale/hi/LC_MESSAGES/transmission-gtk.mo
52
share/locale/hi/LC_MESSAGES/transmission-gtk.mo
50
share/locale/hr/LC_MESSAGES/transmission-gtk.mo
53
share/locale/hr/LC_MESSAGES/transmission-gtk.mo
54
share/locale/hu/LC_MESSAGES/transmission-gtk.mo
51
share/locale/hy/LC_MESSAGES/transmission-gtk.mo
55
share/locale/hy/LC_MESSAGES/transmission-gtk.mo
52
share/locale/hu/LC_MESSAGES/transmission-gtk.mo
53
share/locale/ia/LC_MESSAGES/transmission-gtk.mo
56
share/locale/ia/LC_MESSAGES/transmission-gtk.mo
54
share/locale/id/LC_MESSAGES/transmission-gtk.mo
57
share/locale/id/LC_MESSAGES/transmission-gtk.mo
55
share/locale/is/LC_MESSAGES/transmission-gtk.mo
58
share/locale/is/LC_MESSAGES/transmission-gtk.mo
Lines 99-102 Link Here
99
share/locale/vi/LC_MESSAGES/transmission-gtk.mo
102
share/locale/vi/LC_MESSAGES/transmission-gtk.mo
100
share/locale/zh_CN/LC_MESSAGES/transmission-gtk.mo
103
share/locale/zh_CN/LC_MESSAGES/transmission-gtk.mo
101
share/locale/zh_TW/LC_MESSAGES/transmission-gtk.mo
104
share/locale/zh_TW/LC_MESSAGES/transmission-gtk.mo
102
share/pixmaps/transmission.png
(-)net-p2p/transmission-qt/Makefile (+36 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PKGNAMESUFFIX=	-${FLAVOR}
4
5
LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
6
		libfreetype.so:print/freetype2
7
8
FLAVORS=	qt4 qt5
9
FLAVOR?=	${FLAVORS:[1]}
10
11
qt4_CONFLICTS_INSTALL=	transmission-qt5
12
qt5_CONFLICTS_INSTALL=	transmission-qt4
13
14
.if ${FLAVOR} == qt4
15
USES=		qt:4
16
NLS_USES=	gettext-runtime:run qt:4
17
USE_QT=		moc_build linguisttools_build qmake_build rcc_build \
18
		uic_build corelib dbus gui network xml
19
CMAKE_OFF+=	USE_QT5
20
.endif
21
22
.if ${FLAVOR} == qt5
23
USES=		qt:5
24
NLS_USES=	gettext-runtime:run qt:5
25
USE_QT=		buildtools_build linguisttools_build qmake_build \
26
		core dbus gui network widgets
27
CMAKE_ON=	USE_QT5
28
.endif
29
30
MASTERDIR=	${.CURDIR}/../transmission-cli
31
DESCR=		${.CURDIR}/pkg-descr
32
PLIST=		${.CURDIR}/pkg-plist
33
34
SLAVEPORT=	qt
35
36
.include "${MASTERDIR}/Makefile"
(-)net-p2p/transmission-qt/pkg-descr (+13 lines)
Line 0 Link Here
1
A fast and lightweight Qt BitTorrent client, loosely based on the GTK+ client.
2
3
This is the only Transmission client that can act as its own self-contained
4
session (as the GTK+ and Mac clients do), and can also connect to a remote
5
session (as the web client and transmission-remote terminal client do).
6
7
Transmission has been built from the ground up to be a lightweight, yet
8
powerful BitTorrent client. Its simple, intuitive interface is designed
9
to integrate tightly with whatever computing environment you choose to
10
use. Transmission strikes a balance between providing useful functionality
11
without feature bloat. Furthermore, it is free for anyone to use or modify.
12
13
WWW: http://www.transmissionbt.com/
(-)net-p2p/transmission-qt/pkg-plist (+25 lines)
Line 0 Link Here
1
bin/transmission-qt
2
man/man1/transmission-qt.1.gz
3
share/applications/transmission-qt.desktop
4
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
5
%%PORTDOCS%%%%DOCSDIR%%/COPYING
6
%%PORTDOCS%%%%DOCSDIR%%/NEWS
7
%%PORTDOCS%%%%DOCSDIR%%/README
8
%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
9
%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
10
%%DATADIR%%/translations/transmission_de.qm
11
%%DATADIR%%/translations/transmission_en.qm
12
%%DATADIR%%/translations/transmission_es.qm
13
%%DATADIR%%/translations/transmission_eu.qm
14
%%DATADIR%%/translations/transmission_fr.qm
15
%%DATADIR%%/translations/transmission_hu.qm
16
%%DATADIR%%/translations/transmission_id.qm
17
%%DATADIR%%/translations/transmission_it_IT.qm
18
%%DATADIR%%/translations/transmission_kk.qm
19
%%DATADIR%%/translations/transmission_ko.qm
20
%%DATADIR%%/translations/transmission_lt.qm
21
%%DATADIR%%/translations/transmission_pl_PL.qm
22
%%DATADIR%%/translations/transmission_pt_BR.qm
23
%%DATADIR%%/translations/transmission_ru.qm
24
%%DATADIR%%/translations/transmission_uk.qm
25
%%DATADIR%%/translations/transmission_zh_CN.qm
(-)net-p2p/transmission-qt4/Makefile (-52 lines)
Lines 1-52 Link Here
1
# $FreeBSD$
2
3
PKGNAMESUFFIX=	-qt4
4
5
MAINTAINER=	crees@FreeBSD.org
6
COMMENT=	Fast and lightweight Qt4 BitTorrent client
7
8
LIB_DEPENDS=	${GEN_LIB_DEPENDS} \
9
		libfontconfig.so:x11-fonts/fontconfig \
10
		libfreetype.so:print/freetype2
11
RUN_DEPENDS=	${GEN_RUN_DEPENDS}
12
13
CONFLICTS_INSTALL=	transmission-qt5-[0-9]*
14
15
DESCR=		${.CURDIR}/pkg-descr
16
MASTERDIR=	${.CURDIR}/../transmission-cli
17
PLIST=		${.CURDIR}/pkg-plist
18
SLAVEPORT=	qt4
19
20
USE_QT=		moc_build qmake_build uic_build rcc_build \
21
		corelib gui dbus network xml
22
USES=		compiler:c++11-lib desktop-file-utils qmake:no_env qt:4
23
24
EXTRA_CONF_ARGS=--disable-cli \
25
		--disable-daemon \
26
		--without-gtk \
27
		--disable-mac \
28
		--disable-nls
29
30
post-patch: general-patch
31
	@${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \
32
		${WRKSRC}/qt/qtr.pro
33
	@${ECHO_CMD} 'LIBS += -l${PORT_OPTIONS:M*SSL:tl:S/openssl/crypto/}' \
34
		>>${WRKSRC}/qt/qtr.pro
35
36
post-build:
37
	@(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD})
38
39
do-install:
40
	@(cd ${WRKSRC}/qt && \
41
		${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install)
42
43
post-install: general-install
44
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
45
	@${INSTALL_DATA} ${WRKSRC}/qt/README.txt \
46
		${STAGEDIR}${DOCSDIR}/README-qt4
47
	@${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \
48
		${STAGEDIR}${PREFIX}/share/applications/
49
	@${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \
50
		${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png
51
52
.include "${MASTERDIR}/Makefile"
(-)net-p2p/transmission-qt4/pkg-descr (-13 lines)
Lines 1-13 Link Here
1
A fast and lightweight Qt4 BitTorrent client, loosely based on the GTK+ client.
2
3
This is the only Transmission client that can act as its own self-contained
4
session (as the GTK+ and Mac clients do), and can also connect to a remote
5
session (as the web client and transmission-remote terminal client do).
6
7
Transmission has been built from the ground up to be a lightweight, yet
8
powerful BitTorrent client. Its simple, intuitive interface is designed
9
to integrate tightly with whatever computing environment you choose to
10
use. Transmission strikes a balance between providing useful functionality
11
without feature bloat. Furthermore, it is free for anyone to use or modify.
12
13
WWW: http://www.transmissionbt.com/
(-)net-p2p/transmission-qt4/pkg-plist (-8 lines)
Lines 1-8 Link Here
1
bin/transmission-qt
2
man/man1/transmission-qt.1.gz
3
share/applications/transmission-qt.desktop
4
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
5
%%PORTDOCS%%%%DOCSDIR%%/NEWS
6
%%PORTDOCS%%%%DOCSDIR%%/README
7
%%PORTDOCS%%%%DOCSDIR%%/README-qt4
8
share/pixmaps/transmission-qt.png
(-)net-p2p/transmission-qt5/Makefile (-52 lines)
Lines 1-52 Link Here
1
# $FreeBSD$
2
3
PKGNAMESUFFIX=	-qt5
4
5
MAINTAINER=	crees@FreeBSD.org
6
COMMENT=	Fast and lightweight Qt5 BitTorrent client
7
8
LIB_DEPENDS=	${GEN_LIB_DEPENDS} \
9
		libfontconfig.so:x11-fonts/fontconfig \
10
		libfreetype.so:print/freetype2
11
RUN_DEPENDS=	${GEN_RUN_DEPENDS}
12
13
CONFLICTS_INSTALL=	transmission-qt4-[0-9]*
14
15
DESCR=		${.CURDIR}/pkg-descr
16
MASTERDIR=	${.CURDIR}/../transmission-cli
17
PLIST=		${.CURDIR}/pkg-plist
18
SLAVEPORT=	qt5
19
20
USE_QT=		buildtools_build qmake_build core dbus gui network widgets
21
USES=		compiler:c++11-lib desktop-file-utils qmake:no_env qt:5
22
23
EXTRA_CONF_ARGS=--disable-cli \
24
		--disable-daemon \
25
		--without-gtk \
26
		--disable-mac \
27
		--disable-nls
28
29
post-patch: general-patch
30
	@${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \
31
		${WRKSRC}/qt/qtr.pro
32
	@${ECHO_CMD} 'LIBS += -l${PORT_OPTIONS:M*SSL:tl:S/openssl/crypto/}' \
33
		>>${WRKSRC}/qt/qtr.pro
34
35
post-build:
36
	@(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD})
37
38
do-install:
39
	@(cd ${WRKSRC}/qt && \
40
		${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install)
41
42
post-install: general-install
43
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/transmission-qt
44
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
45
	@${INSTALL_DATA} ${WRKSRC}/qt/README.txt \
46
		${STAGEDIR}${DOCSDIR}/README-qt5
47
	@${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \
48
		${STAGEDIR}${PREFIX}/share/applications/
49
	@${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \
50
		${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png
51
52
.include "${MASTERDIR}/Makefile"
(-)net-p2p/transmission-qt5/pkg-descr (-13 lines)
Lines 1-13 Link Here
1
A fast and lightweight Qt5 BitTorrent client, loosely based on the GTK+ client.
2
3
This is the only Transmission client that can act as its own self-contained
4
session (as the GTK+ and Mac clients do), and can also connect to a remote
5
session (as the web client and transmission-remote terminal client do).
6
7
Transmission has been built from the ground up to be a lightweight, yet
8
powerful BitTorrent client. Its simple, intuitive interface is designed
9
to integrate tightly with whatever computing environment you choose to
10
use. Transmission strikes a balance between providing useful functionality
11
without feature bloat. Furthermore, it is free for anyone to use or modify.
12
13
WWW: http://www.transmissionbt.com/
(-)net-p2p/transmission-qt5/pkg-plist (-8 lines)
Lines 1-8 Link Here
1
bin/transmission-qt
2
man/man1/transmission-qt.1.gz
3
share/applications/transmission-qt.desktop
4
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
5
%%PORTDOCS%%%%DOCSDIR%%/NEWS
6
%%PORTDOCS%%%%DOCSDIR%%/README
7
%%PORTDOCS%%%%DOCSDIR%%/README-qt5
8
share/pixmaps/transmission-qt.png
(-)www/transmission-web/Makefile (-13 / +12 lines)
Lines 1-25 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
CATEGORIES=	www net-p2p
3
CATEGORIES=	www
4
PKGNAMESUFFIX=	-web
4
PKGNAMESUFFIX=	-web
5
5
6
MAINTAINER=	crees@FreeBSD.org
6
USES=		cpe
7
COMMENT=	Fast and lightweight WebUI for Transmission BitTorrent client
7
NO_ARCH=	yes
8
NO_BUILD=	yes
9
PORTDATA=	web
8
10
11
MASTERDIR=	${.CURDIR}/../../net-p2p/transmission-cli
9
DESCR=		${.CURDIR}/pkg-descr
12
DESCR=		${.CURDIR}/pkg-descr
10
MASTERDIR=	${.CURDIR}/../../net-p2p/transmission-cli
11
PLIST=		${NONEXISTENT}
13
PLIST=		${NONEXISTENT}
14
12
SLAVEPORT=	web
15
SLAVEPORT=	web
13
16
14
PORTDATA=	web
17
#post-extract:
18
#	@${FIND} ${WRKSRC}/web \( -name '*.am' -o -name '*.in' \
19
		-o -name '*.scss' \) -delete
15
20
16
NO_BUILD=	yes
21
#do-install:
22
#	( cd ${WRKSRC} && ${COPYTREE_SHARE} web ${STAGEDIR}${DATADIR} )
17
23
18
post-extract:
19
	@${FIND} ${WRKSRC}/web -name Makefile.* -delete
20
21
do-install:
22
	${MKDIR} ${STAGEDIR}${DATADIR}/web
23
	(cd ${WRKSRC}/web && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/web)
24
25
.include "${MASTERDIR}/Makefile"
24
.include "${MASTERDIR}/Makefile"

Return to bug 226710