Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141993029
D40910.id124281.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
30 KB
Referenced Files
None
Subscribers
None
D40910.id124281.diff
View Options
Index: net-p2p/libutp/Makefile
===================================================================
--- net-p2p/libutp/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-PORTNAME= libutp
-DISTVERSION= g20180515
-CATEGORIES= net-p2p
-
-MAINTAINER= rigoletto@FreeBSD.org
-COMMENT= uTorrent Transport Protocol library and sample utilities
-WWW= https://github.com/bittorrent/libutp
-
-LICENSE= MIT
-
-USES= cmake uidfix
-
-USE_GITHUB= yes
-GH_ACCOUNT= transmission
-GH_TAGNAME= fda9f4b3db97ccb243fcbed2ce280eb4135d705b
-
-USE_LDCONFIG= yes
-
-PLIST_FILES= include/libutp/utp.h \
- include/libutp/utypes.h \
- lib/libutp.so
-
-.include <bsd.port.mk>
Index: net-p2p/libutp/distinfo
===================================================================
--- net-p2p/libutp/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1668792304
-SHA256 (transmission-libutp-g20180515-fda9f4b3db97ccb243fcbed2ce280eb4135d705b_GH0.tar.gz) = c515e6f9add47d3d202389e8a62feb765f0ae41d6398cc238e44028be520774e
-SIZE (transmission-libutp-g20180515-fda9f4b3db97ccb243fcbed2ce280eb4135d705b_GH0.tar.gz) = 71743
Index: net-p2p/libutp/files/patch-CMakeLists.txt
===================================================================
--- net-p2p/libutp/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- CMakeLists.txt.orig 2017-01-01 23:21:43 UTC
-+++ CMakeLists.txt
-@@ -11,7 +11,7 @@ include_directories(.)
-
- include_directories(.)
-
--add_library(${PROJECT_NAME} STATIC
-+add_library(${PROJECT_NAME} SHARED
- utp.cpp
- utp_utils.cpp
- ${${PROJECT_NAME}_ADD_SOURCES}
Index: net-p2p/libutp/pkg-descr
===================================================================
--- net-p2p/libutp/pkg-descr
+++ /dev/null
@@ -1,10 +0,0 @@
-# libutp - The uTorrent Transport Protocol library.
-Copyright (c) 2010 BitTorrent, Inc.
-
-uTP provides provides reliable, ordered delivery while maintaining
-minimum extra delay. It is implemented on top of UDP to be
-cross-platform and functional today. As a result, uTP is the primary
-transport for uTorrent peer-to-peer connections.
-
-uTP is written in C++, but the external interface is strictly C
-(ANSI C89).
Index: net-p2p/transmission-cli/Makefile
===================================================================
--- net-p2p/transmission-cli/Makefile
+++ /dev/null
@@ -1,91 +0,0 @@
-PORTNAME= transmission
-DISTVERSION= 3.00
-PORTREVISION?= 6
-CATEGORIES+= net-p2p
-SLAVEPORT?= cli
-PKGNAMESUFFIX?= -cli
-
-MAINTAINER= rigoletto@FreeBSD.org
-COMMENT= Meta-port for Transmission BitTorrent client
-WWW= https://www.transmissionbt.com/
-
-LICENSE+= MIT
-
-USES+= cpe
-
-CPE_VENDOR= transmissionbt
-CPE_PRODUCT= transmission
-
-.if ${SLAVEPORT:Ncli}
-LICENSE+= GPLv2+
-LICENSE_COMB= multi
-LICENSE_FILE= ${WRKSRC}/COPYING
-.endif
-
-.if ${SLAVEPORT:Nweb}
-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-p2p/libutp \
- libminiupnpc.so:net/miniupnpc
-
-USES+= cmake iconv libtool localbase pkgconfig ssl
-
-# Workaround: PR 248326
-# https://github.com/transmission/transmission/issues/1359
-CFLAGS+= -DNDEBUG
-
-. if ${SLAVEPORT:Mcli}
-NLS_USES= gettext-runtime:run
-. endif
-.endif
-
-USE_GITHUB= yes
-
-.if ${SLAVEPORT:Nutils}
-CMAKE_OFF+= ENABLE_UTILS
-.endif
-
-.if ${SLAVEPORT:Nweb}
-SLAVES= cli daemon gtk qt utils
-CMAKE_ON+= ENABLE_${SLAVEPORT:tu}
-CMAKE_OFF+= ${SLAVES:N${SLAVEPORT}:tu:S/^/ENABLE_/}
-
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${SLAVEPORT}
-CMAKE_ARGS+= -DCMAKE_INSTALL_DOCDIR=${DOCSDIR}
-
-OPTIONS_DEFINE+= DOCS LITE NLS
-OPTIONS_SUB= yes
-
-NLS_CMAKE_BOOL= ENABLE_NLS
-LITE_CMAKE_BOOL= ENABLE_LIGHTWEIGHT
-.endif
-
-post-extract:
- @${FIND} ${WRKSRC}/web -name .git* -delete
-
-.if ${SLAVEPORT:Mweb}
- @${FIND} ${WRKSRC}/web \( -name '*.am' -o -name '*.in' \
- -o -name '*.scss' \) -delete
-
-do-install:
- ( cd ${WRKSRC} && ${COPYTREE_SHARE} web ${STAGEDIR}${DATADIR} )
-.endif
-
-.if ${SLAVEPORT:Mdaemon}
-post-install:
- ${MKDIR} ${STAGEDIR}${ETCDIR}/home
-.endif
-
-.if ${SLAVEPORT:Mqt}
-post-install:
- ${REINPLACE_CMD} -e "s/Icon=.*/&-qt/" \
- ${STAGEDIR}${DESKTOPDIR}/transmission-qt.desktop
- ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \
- ${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png
-.endif
-
-.include <bsd.port.mk>
Index: net-p2p/transmission-cli/distinfo
===================================================================
--- net-p2p/transmission-cli/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1590336657
-SHA256 (transmission-transmission-3.00_GH0.tar.gz) = 535b8ccfb0d454ac80fe4b57acd7fdae14ddb0737e0ee4a15df10e2d189ed8fa
-SIZE (transmission-transmission-3.00_GH0.tar.gz) = 6786205
Index: net-p2p/transmission-cli/files/patch-CMakeLists.txt
===================================================================
--- net-p2p/transmission-cli/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,26 +0,0 @@
---- CMakeLists.txt.orig 2020-04-25 22:05:56 UTC
-+++ CMakeLists.txt
-@@ -437,7 +437,11 @@ set(NEEDED_HEADERS
- xlocale.h)
-
- if(ENABLE_NLS)
-- list(APPEND NEEDED_HEADERS libintl.h)
-+ list(APPEND NEEDED_HEADERS libintl.h)
-+ find_package(Intl)
-+ if(Intl_FOUND)
-+ set(LIBINTL_LIBRARY ${Intl_LIBRARIES})
-+ endif()
- endif()
-
- foreach(H ${NEEDED_HEADERS})
-@@ -552,10 +556,6 @@ foreach(P daemon cli utils gtk qt mac)
- add_subdirectory(${P})
- endif()
- endforeach()
--
--if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT)
-- tr_install_web(${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})
--endif()
-
- if(INSTALL_DOC)
- install(FILES AUTHORS COPYING NEWS README.md extras/rpc-spec.txt extras/send-email-when-torrent-done.sh DESTINATION ${CMAKE_INSTALL_DOCDIR})
Index: net-p2p/transmission-cli/files/patch-cmake_FindDHT.cmake
===================================================================
--- net-p2p/transmission-cli/files/patch-cmake_FindDHT.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
---- cmake/FindDHT.cmake.orig 2018-07-08 18:11:40 UTC
-+++ cmake/FindDHT.cmake
-@@ -15,6 +15,10 @@ endif()
- find_path(DHT_INCLUDE_DIR NAMES dht/dht.h HINTS ${_DHT_INCLUDEDIR})
- find_library(DHT_LIBRARY NAMES dht HINTS ${_DHT_LIBDIR})
-
-+if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
-+ set(DHT_INCLUDE_DIR /usr/local/lib)
-+endif()
-+
- set(DHT_INCLUDE_DIRS ${DHT_INCLUDE_DIR})
- set(DHT_LIBRARIES ${DHT_LIBRARY})
Index: net-p2p/transmission-cli/files/patch-libtransmission_CMakeLists.txt
===================================================================
--- net-p2p/transmission-cli/files/patch-libtransmission_CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- libtransmission/CMakeLists.txt.orig 2018-07-10 05:34:13 UTC
-+++ libtransmission/CMakeLists.txt
-@@ -281,7 +281,7 @@ if(ENABLE_TESTS)
- set(${TP}_TEST_BASENAME "${T}")
- endif()
- add_executable(${TP} ${${TP}_TEST_BASENAME}-test.c ${${T}-test_ADD_SOURCES})
-- target_link_libraries(${TP} ${TR_NAME} ${TR_NAME}-test)
-+ target_link_libraries(${TP} ${TR_NAME} ${TR_NAME}-test ${DHT_LIBRARIES})
- if(DEFINED ${T}-test_DEFINITIONS)
- target_compile_definitions(${TP} PRIVATE ${${T}-test_DEFINITIONS})
- endif()
Index: net-p2p/transmission-cli/files/patch-libtransmission_tr-dht.c
===================================================================
--- net-p2p/transmission-cli/files/patch-libtransmission_tr-dht.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- libtransmission/tr-dht.c.orig 2021-06-14 01:02:25 UTC
-+++ libtransmission/tr-dht.c
-@@ -716,7 +716,7 @@ static int tr_dhtAnnounce(tr_torrent* tor, int af, boo
- {
- rc = dht_search(tor->info.hash, announce ? tr_sessionGetPeerPort(session) : 0, af, callback, NULL);
-
-- if (rc >= 1)
-+ if (rc >= 0)
- {
- tr_logAddTorInfo(tor, "Starting %s DHT announce (%s, %d nodes)", af == AF_INET6 ? "IPv6" : "IPv4",
- tr_dhtPrintableStatus(status), numnodes);
Index: net-p2p/transmission-cli/files/patch-qt_Application.h
===================================================================
--- net-p2p/transmission-cli/files/patch-qt_Application.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- qt/Application.h.orig 2018-07-04 17:44:30 UTC
-+++ qt/Application.h
-@@ -15,6 +15,7 @@
- #include <QTimer>
- #include <QTranslator>
-
-+#include <time.h>
- #include "FaviconCache.h"
-
- class AddData;
Index: net-p2p/transmission-cli/pkg-descr
===================================================================
--- net-p2p/transmission-cli/pkg-descr
+++ /dev/null
@@ -1,7 +0,0 @@
-A fast and lightweight CLI (command line) BitTorrent client.
-
-Transmission has been built from the ground up to be a lightweight, yet
-powerful BitTorrent client. Its simple, intuitive interface is designed
-to integrate tightly with whatever computing environment you choose to
-use. Transmission strikes a balance between providing useful functionality
-without feature bloat. Furthermore, it is free for anyone to use or modify.
Index: net-p2p/transmission-cli/pkg-plist
===================================================================
--- net-p2p/transmission-cli/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-bin/transmission-cli
-share/man/man1/transmission-cli.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/NEWS.md
-%%PORTDOCS%%%%DOCSDIR%%/README.md
-%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
-%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
Index: net-p2p/transmission-daemon/Makefile
===================================================================
--- net-p2p/transmission-daemon/Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-PKGNAMESUFFIX= -daemon
-PORTREVISION= 5
-
-USES= ssl
-NLS_USES= gettext-runtime:run
-
-USERS= transmission
-GROUPS= transmission
-USE_RC_SUBR= transmission
-
-MASTERDIR= ${.CURDIR}/../transmission-cli
-DESCR= ${.CURDIR}/pkg-descr
-PKGMESSAGE= ${.CURDIR}/pkg-message
-PLIST= ${.CURDIR}/pkg-plist
-
-SLAVEPORT= daemon
-
-.include "${MASTERDIR}/Makefile"
Index: net-p2p/transmission-daemon/pkg-descr
===================================================================
--- net-p2p/transmission-daemon/pkg-descr
+++ /dev/null
@@ -1,9 +0,0 @@
-The transmission-daemon is a daemon-based Transmission session that can be
-controlled via RPC by transmission-remote (see transmission-utils) and
-other Transmission BiTtorrent client such as GTK+ and CLI interface.
-
-Transmission has been built from the ground up to be a lightweight, yet
-powerful BitTorrent client. Its simple, intuitive interface is designed
-to integrate tightly with whatever computing environment you choose to
-use. Transmission strikes a balance between providing useful functionality
-without feature bloat. Furthermore, it is free for anyone to use or modify.
Index: net-p2p/transmission-daemon/pkg-message
===================================================================
--- net-p2p/transmission-daemon/pkg-message
+++ /dev/null
@@ -1,22 +0,0 @@
-[
-{ type: install
- message: <<EOM
-To allow clients to connect to the transmission daemon using DNS with
-any hostname other than localhost, do one of the following:
- - Enable password authentication, then any hostname is allowed.
- This can be achieved by either:
- - setting rpc-authentication-required to true, and adding
- credentials to the rpc-username and rpc-password fields in
- settings.json (must be done whilst the transmission service is
- stopped); or
- - running transmission-daemon with the following arguments
- (these can be set with transmission_flags in /etc/rc.conf):
- -t -u USERNAME -v PASSWORD
- OR
- - Add the allowed server hostnames to the rpc-host-whitelist setting
- in settings.json (must be done whilst the transmission service is
- stopped). Note that this value is NOT a list of allowed CLIENTS,
- but instead a list of allowed SERVER hostnames.
-EOM
-}
-]
Index: net-p2p/transmission-daemon/pkg-plist
===================================================================
--- net-p2p/transmission-daemon/pkg-plist
+++ /dev/null
@@ -1,9 +0,0 @@
-bin/transmission-daemon
-share/man/man1/transmission-daemon.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/NEWS.md
-%%PORTDOCS%%%%DOCSDIR%%/README.md
-%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
-%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
-@dir %%ETCDIR%%/home
Index: net-p2p/transmission-gtk/Makefile
===================================================================
--- net-p2p/transmission-gtk/Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-PKGNAMESUFFIX= -gtk
-PORTREVISION= 6
-
-LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
- libnotify.so:devel/libnotify
-RUN_DEPENDS= xdg-open:devel/xdg-utils
-
-USES= desktop-file-utils gnome ssl
-NLS_USES= gettext-tools:build
-USE_GNOME= cairo gdkpixbuf2 gtk30 intlhack pango
-
-MASTERDIR= ${.CURDIR}/../transmission-cli
-DESCR= ${.CURDIR}/pkg-descr
-PLIST= ${.CURDIR}/pkg-plist
-
-SLAVEPORT= gtk
-
-.include "${MASTERDIR}/Makefile"
Index: net-p2p/transmission-gtk/pkg-descr
===================================================================
--- net-p2p/transmission-gtk/pkg-descr
+++ /dev/null
@@ -1,7 +0,0 @@
-A fast and lightweight GTK BitTorrent client.
-
-Transmission has been built from the ground up to be a lightweight, yet
-powerful BitTorrent client. Its simple, intuitive interface is designed
-to integrate tightly with whatever computing environment you choose to
-use. Transmission strikes a balance between providing useful functionality
-without feature bloat. Furthermore, it is free for anyone to use or modify.
Index: net-p2p/transmission-qt/Makefile
===================================================================
--- net-p2p/transmission-qt/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-PKGNAMESUFFIX= -qt
-PORTREVISION= 5
-
-LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
- libfreetype.so:print/freetype2
-
-USES= compiler:c++11-lang qt:5
-NLS_USES= gettext-runtime:run qt:5
-USE_QT= buildtools:build linguisttools:build qmake:build \
- core dbus gui network widgets
-CMAKE_ON= USE_QT
-
-MASTERDIR= ${.CURDIR}/../transmission-cli
-DESCR= ${.CURDIR}/pkg-descr
-PLIST= ${.CURDIR}/pkg-plist
-
-SLAVEPORT= qt
-
-.include "${MASTERDIR}/Makefile"
Index: net-p2p/transmission-qt/pkg-descr
===================================================================
--- net-p2p/transmission-qt/pkg-descr
+++ /dev/null
@@ -1,11 +0,0 @@
-A fast and lightweight Qt BitTorrent client, loosely based on the GTK+ client.
-
-This is the only Transmission client that can act as its own self-contained
-session (as the GTK+ and Mac clients do), and can also connect to a remote
-session (as the web client and transmission-remote terminal client do).
-
-Transmission has been built from the ground up to be a lightweight, yet
-powerful BitTorrent client. Its simple, intuitive interface is designed
-to integrate tightly with whatever computing environment you choose to
-use. Transmission strikes a balance between providing useful functionality
-without feature bloat. Furthermore, it is free for anyone to use or modify.
Index: net-p2p/transmission-utils/Makefile
===================================================================
--- net-p2p/transmission-utils/Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-PKGNAMESUFFIX= -utils
-PORTREVISION= 4
-
-NLS_USES= gettext-tools:build
-
-MASTERDIR= ${.CURDIR}/../transmission-cli
-DESCR= ${.CURDIR}/pkg-descr
-PLIST= ${.CURDIR}/pkg-plist
-
-SLAVEPORT= utils
-
-.include "${MASTERDIR}/Makefile"
Index: net-p2p/transmission-utils/pkg-descr
===================================================================
--- net-p2p/transmission-utils/pkg-descr
+++ /dev/null
@@ -1,7 +0,0 @@
-Transmission-utils includes the tools to create and manipulate torrent files.
-
-Transmission has been built from the ground up to be a lightweight, yet
-powerful BitTorrent client. Its simple, intuitive interface is designed to
-integrate tightly with whatever computing environment you choose to use.
-Transmission strikes a balance between providing useful functionality
-without feature bloat. Furthermore, it is free for anyone to use or modify.
Index: net-p2p/transmission-utils/pkg-plist
===================================================================
--- net-p2p/transmission-utils/pkg-plist
+++ /dev/null
@@ -1,14 +0,0 @@
-bin/transmission-create
-bin/transmission-edit
-bin/transmission-remote
-bin/transmission-show
-share/man/man1/transmission-create.1.gz
-share/man/man1/transmission-edit.1.gz
-share/man/man1/transmission-remote.1.gz
-share/man/man1/transmission-show.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/NEWS.md
-%%PORTDOCS%%%%DOCSDIR%%/README.md
-%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
-%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
Index: net-p2p/transmission/Makefile
===================================================================
--- net-p2p/transmission/Makefile
+++ net-p2p/transmission/Makefile
@@ -1,29 +1,132 @@
PORTNAME= transmission
-DISTVERSION= 3.00
-PORTREVISION= 1
+DISTVERSION= 4.0.3
CATEGORIES= net-p2p
-MAINTAINER= rigoletto@FreeBSD.org
-COMMENT= Meta-port for Transmission BitTorrent client
-WWW= https://www.transmissionbt.com/
+MAINTAINER= mondo.debater_0q@icloud.com
+COMMENT= Transmission BitTorrent client
+WWW= https://www.transmissionbt.com
-USES= metaport
+LICENSE= GPLv3+
-OPTIONS_DEFINE= CLI DAEMON GTK QT UTILS WEB
-OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
+LIB_DEPENDS= libb64.so:converters/libb64 \
+ libcurl.so:ftp/curl \
+ libdeflate.so:archivers/libdeflate \
+ libdht.so:devel/jech-dht \
+ libevent.so:devel/libevent \
+ libfmt.so:devel/libfmt \
+ libminiupnpc.so:net/miniupnpc \
+ libnatpmp.so:net/libnatpmp \
+ libpsl.so:dns/libpsl
-CLI_DESC= Command line version
-DAEMON_DESC= Daemon version
-GTK_DESC= GTK version
-QT_DESC= Qt version
-UTILS_DESC= Command line tools
-WEB_DESC= Web client
+FLAVORS= cli gtk qt
+FLAVOR?= ${FLAVORS:[1]}
+gtk_PKGNAMESUFFIX= -gtk
+gtk_LIB_DEPENDS= libayatana-appindicator3.so:devel/libayatana-appindicator \
+ libharfbuzz.so:print/harfbuzz
+gtk_PLIST= ${PKGDIR}/pkg-plist-gtk
+qt_PKGNAMESUFFIX= -qt
+qt_PLIST= ${PKGDIR}/pkg-plist-qt
-CLI_RUN_DEPENDS= transmission-cli:net-p2p/transmission-cli
-DAEMON_RUN_DEPENDS= transmission-daemon:net-p2p/transmission-daemon
-GTK_RUN_DEPENDS= transmission-gtk:net-p2p/transmission-gtk
-QT_RUN_DEPENDS= transmission-qt:net-p2p/transmission-qt
-UTILS_RUN_DEPENDS= transmission-create:net-p2p/transmission-utils
-WEB_RUN_DEPENDS= ${DATADIR}/web/index.html:www/transmission-web
+USES= cmake cpe iconv libtool localbase pkgconfig ssl
+
+CPE_VENDOR= transmissionbt
+CPE_PRODUCT= transmission
+
+USE_GITHUB= YES
+GH_TUPLE= google:googletest:af29db7:googletest/third-party/googletest \
+ transmission:libutp:c95738b:transmission/third-party/libutp \
+ transmission:fast_float:6624977:fast_float/third-party/fast_float \
+ transmission:utfcpp:b85efd6:utfcpp/third-party/utfcpp \
+ transmission:fmt:c4ee726:fmt/third-party/fmt \
+ transmission:wide-integer:4de0b52:wideinteger/third-party/wide-integer
+
+.if ${FLAVOR} == gtk
+USES+= desktop-file-utils gettext-runtime gettext-tools gnome
+USE_GNOME= gdkpixbuf2 glibmm gtkmm30
+.endif
+
+.if ${FLAVOR} == qt
+USES+= desktop-file-utils qmake:no_env qt:5
+USE_QT= core dbus gui network svg widgets buildtools:build \
+ linguisttools:build
+.endif
+
+USE_RC_SUBR= transmission
+
+CMAKE_ARGS= -DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=${LOCALBASE}/include \
+ -DCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES=${LOCALBASE}/include \
+ -DCMAKE_INSTALL_MANDIR="${PREFIX}/man"
+CMAKE_ON= USE_SYSTEM_B64 USE_SYSTEM_DEFLATE USE_SYSTEM_DHT \
+ USE_SYSTEM_EVENT2 USE_SYSTEM_MINIUPNPC USE_SYSTEM_NATPMP \
+ USE_SYSTEM_PSL
+CMAKE_OFF= ENABLE_MAC REBUILD_WEB USE_SYSTEM_UTP WITH_SYSTEMD
+CMAKE_BUILD_TYPE= Release
+
+USERS= transmission
+GROUPS= transmission
+
+.if ${FLAVOR:U} == cli
+CMAKE_OFF+= ENABLE_GTK ENABLE_QT
+.endif
+
+.if ${FLAVOR} == gtk
+CMAKE_ON+= ENABLE_GTK GTK_IS_REQUIRED
+CMAKE_OFF+= ENABLE_QT
+CMAKE_ARGS+= -DUSE_GTK_VERSION=3
+.endif
+
+.if ${FLAVOR} == qt
+CMAKE_ON+= ENABLE_QT QT_IS_REQUIRED
+CMAKE_OFF+= ENABLE_GTK
+CMAKE_ARGS+= -DUSE_QT_VERSION=5
+.endif
+
+OPTIONS_DEFINE= CLI DAEMON DOCS NLS TESTS UTILS WEB
+OPTIONS_DEFAULT= TESTS
+
+.if ${FLAVOR:U} == cli
+OPTIONS_DEFINE= DOCS NLS TESTS UTILS WEB
+OPTIONS_MULTI= CLI
+OPTIONS_MULTI_CLI= CLI DAEMON
+OPTIONS_DEFAULT= CLI DAEMON TESTS UTILS WEB
+.endif
+
+OPTIONS_SUB= yes
+
+CLI_DESC= Build command-line client
+DAEMON_DESC= Build daemon
+TESTS_DESC= Build unit tests
+UTILS_DESC= Build utilities (create, edit, show)
+WEB_DESC= Install web client
+
+CLI_CMAKE_BOOL= ENABLE_CLI
+
+DAEMON_CMAKE_BOOL= ENABLE_DAEMON
+
+NLS_USES= gettext-runtime:lib
+NLS_CMAKE_BOOL= ENABLE_NLS
+
+TESTS_CMAKE_BOOL= ENABLE_TESTS
+
+UTILS_CMAKE_BOOL= ENABLE_UTILS
+
+WEB_IMPLIES= DAEMON
+WEB_CMAKE_BOOL= INSTALL_WEB
+
+TESTS_CMAKE_BOOL= ENABLE_TESTS
+
+post-extract-DOCS-on:
+ @${ECHO_MSG} "Removing outdated release notes"
+ @${FIND} ${WRKSRC}/news \( -name 'news-[0-3]*' -o -name '*beta*' \) -delete
+
+.if ${FLAVOR} == qt
+post-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+ ${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.svg \
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/transmission.svg
+.endif
+
+post-install-DAEMON-on:
+ ${MKDIR} ${STAGEDIR}${ETCDIR}/home
.include <bsd.port.mk>
Index: net-p2p/transmission/distinfo
===================================================================
--- /dev/null
+++ net-p2p/transmission/distinfo
@@ -0,0 +1,15 @@
+TIMESTAMP = 1688004984
+SHA256 (transmission-transmission-4.0.3_GH0.tar.gz) = f6184a199c9878695cec020fab7cc9859309496e96f218a7753fd501434c632c
+SIZE (transmission-transmission-4.0.3_GH0.tar.gz) = 9062467
+SHA256 (google-googletest-af29db7_GH0.tar.gz) = cebd59f4dd7380870c4cbc57f75bd4453d84c68847fee020c95019b2841ae7a2
+SIZE (google-googletest-af29db7_GH0.tar.gz) = 841006
+SHA256 (transmission-libutp-c95738b_GH0.tar.gz) = 0cf69bccedab159c7d1b52cbb6f7085ef567ed5bf46d541f7d2074130d181ff1
+SIZE (transmission-libutp-c95738b_GH0.tar.gz) = 59671
+SHA256 (transmission-fast_float-6624977_GH0.tar.gz) = a7fed3253e8604ad0b3c0649f7b99e004f61bf0b82096f43edbb597f9a9b4dc3
+SIZE (transmission-fast_float-6624977_GH0.tar.gz) = 76763
+SHA256 (transmission-utfcpp-b85efd6_GH0.tar.gz) = 98c7f02180c92a6b5fa90bbf157c3f441fcf47565c10948d221de3097893507a
+SIZE (transmission-utfcpp-b85efd6_GH0.tar.gz) = 27376
+SHA256 (transmission-fmt-c4ee726_GH0.tar.gz) = 05ba66b0a9ed040e5cfb07e845a0aa61fdbbb9a0cbd22a1860a303e8cbf343e4
+SIZE (transmission-fmt-c4ee726_GH0.tar.gz) = 833672
+SHA256 (transmission-wide-integer-4de0b52_GH0.tar.gz) = 8754e29f002ba78228675ad95b7eb4d828e23c7a4ec227815fe8a2238c8111eb
+SIZE (transmission-wide-integer-4de0b52_GH0.tar.gz) = 124910
Index: net-p2p/transmission/files/patch-gtk_DetailsDialog.cc
===================================================================
--- /dev/null
+++ net-p2p/transmission/files/patch-gtk_DetailsDialog.cc
@@ -0,0 +1,10 @@
+--- gtk/DetailsDialog.cc.orig 2023-07-05 18:51:40 UTC
++++ gtk/DetailsDialog.cc
+@@ -68,6 +68,7 @@
+ #include <ws2tcpip.h>
+ #else
+ #include <arpa/inet.h>
++#include <sys/socket.h>
+ #endif
+
+ using namespace std::literals;
Index: net-p2p/transmission/files/transmission.in
===================================================================
--- net-p2p/transmission/files/transmission.in
+++ net-p2p/transmission/files/transmission.in
@@ -67,12 +67,4 @@
fi
}
-# Unfortunately there was a typo in a previous version, which may have
-# left some people with /var/run/transmission/damon.pid . Deal with
-# this for a few months at least, until everyone will have restarted
-# transmission
-if [ ! -f $pidfile -a -f /var/run/transmission/damon.pid ]; then
- pidfile=/var/run/transmission/damon.pid
-fi
-
run_rc_command $1
Index: net-p2p/transmission/pkg-plist
===================================================================
--- /dev/null
+++ net-p2p/transmission/pkg-plist
@@ -0,0 +1,28 @@
+%%CLI%%bin/transmission-cli
+%%UTILS%%bin/transmission-create
+%%DAEMON%%bin/transmission-daemon
+%%UTILS%%bin/transmission-edit
+%%UTILS%%bin/transmission-remote
+%%UTILS%%bin/transmission-show
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.0.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.1.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.2.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.3.md
+%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.md
+%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
+%%DAEMON%%@dir %%ETCDIR%%/home
+%%CLI%%man/man1/transmission-cli.1.gz
+%%UTILS%%man/man1/transmission-create.1.gz
+%%DAEMON%%man/man1/transmission-daemon.1.gz
+%%UTILS%%man/man1/transmission-edit.1.gz
+%%UTILS%%man/man1/transmission-remote.1.gz
+%%UTILS%%man/man1/transmission-show.1.gz
+%%WEB%%%%DATADIR%%/public_html/images/favicon.ico
+%%WEB%%%%DATADIR%%/public_html/images/favicon.png
+%%WEB%%%%DATADIR%%/public_html/images/webclip-icon.png
+%%WEB%%%%DATADIR%%/public_html/index.html
+%%WEB%%%%DATADIR%%/public_html/transmission-app.js
+%%WEB%%%%DATADIR%%/public_html/transmission-app.js.LICENSE.txt
Index: net-p2p/transmission/pkg-plist-gtk
===================================================================
--- net-p2p/transmission/pkg-plist-gtk
+++ net-p2p/transmission/pkg-plist-gtk
@@ -1,12 +1,26 @@
+%%CLI%%bin/transmission-cli
+%%UTILS%%bin/transmission-create
+%%DAEMON%%bin/transmission-daemon
+%%UTILS%%bin/transmission-edit
bin/transmission-gtk
-share/man/man1/transmission-gtk.1.gz
-%%NLS%%share/appdata/transmission-gtk.appdata.xml
+%%UTILS%%bin/transmission-remote
+%%UTILS%%bin/transmission-show
+%%CLI%%man/man1/transmission-cli.1.gz
+%%UTILS%%man/man1/transmission-create.1.gz
+%%DAEMON%%man/man1/transmission-daemon.1.gz
+%%UTILS%%man/man1/transmission-edit.1.gz
+%%UTILS%%man/man1/transmission-remote.1.gz
+%%UTILS%%man/man1/transmission-show.1.gz
+man/man1/transmission-gtk.1.gz
share/applications/transmission-gtk.desktop
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/NEWS.md
%%PORTDOCS%%%%DOCSDIR%%/README.md
-%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.0.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.1.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.2.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.3.md
+%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.md
%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
share/icons/hicolor/scalable/apps/transmission-devel.svg
share/icons/hicolor/scalable/apps/transmission.svg
@@ -18,7 +32,6 @@
%%NLS%%share/locale/be/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/bg/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/bn/LC_MESSAGES/transmission-gtk.mo
-%%NLS%%share/locale/bo/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/br/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/bs/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/ca/LC_MESSAGES/transmission-gtk.mo
@@ -70,13 +83,10 @@
%%NLS%%share/locale/mr/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/ms/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/mt/LC_MESSAGES/transmission-gtk.mo
-%%NLS%%share/locale/my/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/nb/LC_MESSAGES/transmission-gtk.mo
-%%NLS%%share/locale/nds/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/nl/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/nn/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/oc/LC_MESSAGES/transmission-gtk.mo
-%%NLS%%share/locale/pa/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/pl/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/pt/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/pt_BR/LC_MESSAGES/transmission-gtk.mo
@@ -89,11 +99,9 @@
%%NLS%%share/locale/sq/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/sr/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/sv/LC_MESSAGES/transmission-gtk.mo
-%%NLS%%share/locale/sw/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/ta/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/te/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/th/LC_MESSAGES/transmission-gtk.mo
-%%NLS%%share/locale/tl/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/tr/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/ug/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/uk/LC_MESSAGES/transmission-gtk.mo
@@ -103,3 +111,10 @@
%%NLS%%share/locale/zh_CN/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/zh_HK/LC_MESSAGES/transmission-gtk.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/transmission-gtk.mo
+share/metainfo/transmission-gtk.metainfo.xml
+%%CLI%%man/man1/transmission-cli.1.gz
+%%UTILS%%man/man1/transmission-create.1.gz
+%%DAEMON%%man/man1/transmission-daemon.1.gz
+%%UTILS%%man/man1/transmission-edit.1.gz
+%%UTILS%%man/man1/transmission-remote.1.gz
+%%UTILS%%man/man1/transmission-show.1.gz
Index: net-p2p/transmission/pkg-plist-qt
===================================================================
--- net-p2p/transmission/pkg-plist-qt
+++ net-p2p/transmission/pkg-plist-qt
@@ -1,12 +1,27 @@
bin/transmission-qt
-share/man/man1/transmission-qt.1.gz
+%%CLI%%bin/transmission-cli
+%%UTILS%%bin/transmission-create
+%%DAEMON%%bin/transmission-daemon
+%%UTILS%%bin/transmission-edit
+%%UTILS%%bin/transmission-remote
+%%UTILS%%bin/transmission-show
+man/man1/transmission-qt.1.gz
+%%CLI%%man/man1/transmission-cli.1.gz
+%%UTILS%%man/man1/transmission-create.1.gz
+%%DAEMON%%man/man1/transmission-daemon.1.gz
+%%UTILS%%man/man1/transmission-edit.1.gz
+%%UTILS%%man/man1/transmission-remote.1.gz
+%%UTILS%%man/man1/transmission-show.1.gz
share/applications/transmission-qt.desktop
-share/pixmaps/transmission-qt.png
+share/icons/hicolor/scalable/apps/transmission.svg
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/NEWS.md
%%PORTDOCS%%%%DOCSDIR%%/README.md
-%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.0.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.1.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.2.md
+%%PORTDOCS%%%%DOCSDIR%%/news/news-4.0.3.md
+%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.md
%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh
%%NLS%%%%DATADIR%%/translations/transmission_af.qm
%%NLS%%%%DATADIR%%/translations/transmission_ca.qm
@@ -29,6 +44,7 @@
%%NLS%%%%DATADIR%%/translations/transmission_nb.qm
%%NLS%%%%DATADIR%%/translations/transmission_nl.qm
%%NLS%%%%DATADIR%%/translations/transmission_pl.qm
+%%NLS%%%%DATADIR%%/translations/transmission_pt.qm
%%NLS%%%%DATADIR%%/translations/transmission_pt_BR.qm
%%NLS%%%%DATADIR%%/translations/transmission_pt_PT.qm
%%NLS%%%%DATADIR%%/translations/transmission_ru.qm
@@ -37,3 +53,8 @@
%%NLS%%%%DATADIR%%/translations/transmission_tr.qm
%%NLS%%%%DATADIR%%/translations/transmission_uk.qm
%%NLS%%%%DATADIR%%/translations/transmission_zh_CN.qm
+%%WEB%%%%DATADIR%%/public_html/images/favicon.ico
+%%WEB%%%%DATADIR%%/public_html/images/favicon.png
+%%WEB%%%%DATADIR%%/public_html/images/webclip-icon.png
+%%WEB%%%%DATADIR%%/public_html/index.html
+%%WEB%%%%DATADIR%%/public_html/transmission-app.js
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 3:12 PM (14 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27652396
Default Alt Text
D40910.id124281.diff (30 KB)
Attached To
Mode
D40910: net-p2p/transmission: Update 3.00 -> 4.0.3 & modernize port.
Attached
Detach File
Event Timeline
Log In to Comment