diff --git a/net-p2p/qbittorrent/Makefile b/net-p2p/qbittorrent/Makefile index 744974b337f6..b5662a56dcaf 100644 --- a/net-p2p/qbittorrent/Makefile +++ b/net-p2p/qbittorrent/Makefile @@ -1,87 +1,87 @@ PORTNAME= qbittorrent DISTVERSION= 4.5.5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= net-p2p MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES= 5b90e222a80849f346d0b12752aa1f7a9fb839fc.patch:-p1 # PR: Enable DBUS cmake option on FreeBSD MAINTAINER= yuri@FreeBSD.org COMMENT= Bittorrent client using Qt6 and libtorrent-rasterbar WWW= https://www.qbittorrent.org/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_FreeBSD_12_powerpc64= fails to build: ./base/tristatebool.h:44:5: 'constexpr' constructor does not have empty body LIB_DEPENDS= libboost_system.so:devel/boost-libs CXXFLAGS+= -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED # error: "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`." FLAVORS= default nox FLAVOR?= ${FLAVORS:[1]} nox_PKGNAMESUFFIX= -nox nox_PLIST= ${MASTERDIR}/pkg-plist-nox USES= compiler:c++14-lang cpe pkgconfig cmake qt:6 ssl tar:xz USE_QT= base translations USE_CXXSTD= c++17 # prevent boost-related SEGV, see bug#264278 USE_GITHUB= nodefault GH_ACCOUNT= qBittorrent GH_PROJECT= qBittorrent CMAKE_ON= QT6 .if ${FLAVOR} == default USES+= desktop-file-utils gl USE_QT+= svg USE_GL= gl CMAKE_OFF= WEBUI .endif .if ${FLAVOR} == nox COMMENT+= (web UI version) CMAKE_OFF= GUI USERS= qbittorrent GROUPS= qbittorrent USE_RC_SUBR= qbittorrent SUB_LIST= USER=${USERS} GROUP=${GROUPS} PLIST_SUB= USER=${USERS} GROUP=${GROUPS} OPTIONS_EXCLUDE= DBUS .endif OPTIONS_DEFINE= DBUS PYTHON DEBUG OPTIONS_RADIO= LIBTORRENT OPTIONS_RADIO_LIBTORRENT= LIBTORRENT1 LIBTORRENT2 OPTIONS_DEFAULT= DBUS PYTHON LIBTORRENT1 LIBTORRENT_DESC= libtorrent version number to use LIBTORRENT1_DESC= Version 1.x (default) LIBTORRENT2_DESC= Version 2.x (experimental) DEBUG_CMAKE_BOOL= debug DBUS_CMAKE_BOOL= DBUS LIBTORRENT1_BUILD_DEPENDS= libtorrent-rasterbar>0:net-p2p/libtorrent-rasterbar LIBTORRENT1_RUN_DEPENDS= libtorrent-rasterbar>0:net-p2p/libtorrent-rasterbar LIBTORRENT2_BUILD_DEPENDS= libtorrent-rasterbar2>0:net-p2p/libtorrent-rasterbar2 LIBTORRENT2_RUN_DEPENDS= libtorrent-rasterbar2>0:net-p2p/libtorrent-rasterbar2 LIBTORRENT2_EXTRA_PATCHES= ${FILESDIR}/extrapatch-libtorrent-rasterbar2-settings PYTHON_DESC= Install Python to support some plugin functionality PYTHON_USES= python:run post-patch-PYTHON-on: @${REINPLACE_CMD} \ -e 's|"python3"|"${PYTHON_CMD}"|' \ ${WRKSRC}/src/base/utils/foreignapps.cpp post-install: .if ${FLAVOR} == nox @${MKDIR} ${STAGEDIR}/var/db/qbittorrent/conf ${STAGEDIR}/var/db/qbittorrent/Downloads .endif .include diff --git a/net-p2p/qbittorrent/files/qbittorrent.in b/net-p2p/qbittorrent/files/qbittorrent.in index 943f55c643b2..147419c1f8c3 100644 --- a/net-p2p/qbittorrent/files/qbittorrent.in +++ b/net-p2p/qbittorrent/files/qbittorrent.in @@ -1,42 +1,45 @@ #!/bin/sh # PROVIDE: qbittorrent # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable this service: # # qbittorrent_enable: Set to NO by default. Set it to YES to enable it. # qbittorrent_conf_dir: Directory where qbittorrent configuration # data is stored. # Default: /var/db/qbittorrent/conf # qbittorrent_download_dir: Directory to store downloaded data. # Default: /var/db/qbittorrent/Downloads # qbittorrent_user: The user account transmission daemon runs as. # Default is 'qbittorrent' # qbittorrent_group: The group associated with username qbittorrent # daemon runs as. Default is 'qbittorrent' +# qbittorrent_flags: Arguments that will be passed to qbittorrent. +# For example, --webui-port={port}. # . /etc/rc.subr name=qbittorrent rcvar=qbittorrent_enable load_rc_config $name : ${qbittorrent_enable="NO"} : ${qbittorrent_conf_dir="/var/db/qbittorrent/conf"} : ${qbittorrent_download_dir="/var/db/qbittorrent/Downloads"} : ${qbittorrent_user=%%USER%%} : ${qbittorrent_group=%%GROUP%%} +: ${qbittorrent_flags=""} command="%%PREFIX%%/bin/qbittorrent-nox" command_args="--daemon" qbittorrent_flags=" \ ${qbittorrent_conf_dir:+--profile=${qbittorrent_conf_dir}} \ ${qbittorrent_download_dir:+--save-path=${qbittorrent_download_dir}} \ ${qbittorrent_flags}" run_rc_command $1