From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3E1CC158089 for ; Thu, 19 Oct 2023 13:17:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 194B22BC06B; Thu, 19 Oct 2023 13:17:28 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 00B2F2BC06B for ; Thu, 19 Oct 2023 13:17:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 20B32335D12 for ; Thu, 19 Oct 2023 13:17:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B6449128F for ; Thu, 19 Oct 2023 13:17:25 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1697721424.73ce9e854e0ec71abf11e90aeac0354fa7f6473d.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/qbittorrent/, net-p2p/qbittorrent/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/qbittorrent/Manifest net-p2p/qbittorrent/files/qbittorrent.confd net-p2p/qbittorrent/files/qbittorrent.initd net-p2p/qbittorrent/metadata.xml net-p2p/qbittorrent/qbittorrent-4.5.5.ebuild net-p2p/qbittorrent/qbittorrent-9999.ebuild X-VCS-Directories: net-p2p/qbittorrent/ net-p2p/qbittorrent/files/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 73ce9e854e0ec71abf11e90aeac0354fa7f6473d X-VCS-Branch: master Date: Thu, 19 Oct 2023 13:17:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 22cf6652-9d03-4169-9b1c-cc4b4cbb728c X-Archives-Hash: d4e670656941c4131a5a868bfeae3372 commit: 73ce9e854e0ec71abf11e90aeac0354fa7f6473d Author: Alexey Lunev gmail com> AuthorDate: Mon Oct 16 20:29:57 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Oct 19 13:17:04 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73ce9e85 net-p2p/qbittorrent: bump to 4.5.5, add openrc service & qt6 Closes: https://bugs.gentoo.org/914197 Closes: https://github.com/gentoo/gentoo/pull/33365 Signed-off-by: Alexey Lunev gmail.com> Signed-off-by: Florian Schmaus gentoo.org> net-p2p/qbittorrent/Manifest | 1 + net-p2p/qbittorrent/files/qbittorrent.confd | 20 ++++++++++++++++ net-p2p/qbittorrent/files/qbittorrent.initd | 27 ++++++++++++++++++++++ net-p2p/qbittorrent/metadata.xml | 24 ++++++++++++------- ...orrent-9999.ebuild => qbittorrent-4.5.5.ebuild} | 14 ++++++++--- net-p2p/qbittorrent/qbittorrent-9999.ebuild | 14 ++++++++--- 6 files changed, 86 insertions(+), 14 deletions(-) diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest index 6fd98e73cd6e..a71b8e8e1eaf 100644 --- a/net-p2p/qbittorrent/Manifest +++ b/net-p2p/qbittorrent/Manifest @@ -1,2 +1,3 @@ DIST qbittorrent-4.5.2.tar.gz 8890525 BLAKE2B 48585b703ce6edf862ea3c8cfad6cab2edcb65a138c6e8d232322b4f4fd682c87447ff11d29c04c26b5623e730ab9a1ce0496456b3ba6122f97913bd92b86790 SHA512 e900a1c5f0f70163463557aec3de0d31394fac56cfed91ea53ee5cf852cce4b2998bf79be60fc547c1c34a1658378f3ed9dbfb30aae5a772b85d819c7e7ce458 DIST qbittorrent-4.5.4.tar.gz 8791236 BLAKE2B 70b3194d6c4819655998406e0a13d22f3a5068e724048010daebd83d8b8db9e17daee943ca8dabaacd92a0fbc5249257de6d175b35287c748dc2d15395bd71fc SHA512 2e7988922137c9fade99e90236cc0c5b8b30f09021472f8ffc9048a7a2d989925eed7bfab4d79c93ca7d0f21acfde2e7feee5e6c43b557bf2c6f472fd52fbcea +DIST qbittorrent-4.5.5.tar.gz 8802492 BLAKE2B 1d20d7900b5b65603c5cf13452fb5aebe396473290d4904641b78867c5345d783482c46edc7042a2e86e79afd790e8c470df62131595eba288f195cc5e716eec SHA512 8b5c2654b3bc03c0b4de77e8388ee543c3892ef9453749ea737aaee999a16d50bd1b30ebe0519a86d7ab8ffc6224d7d9cf678464aebf96433cd71dd57b46dd53 diff --git a/net-p2p/qbittorrent/files/qbittorrent.confd b/net-p2p/qbittorrent/files/qbittorrent.confd new file mode 100644 index 000000000000..21e2e4200fef --- /dev/null +++ b/net-p2p/qbittorrent/files/qbittorrent.confd @@ -0,0 +1,20 @@ +# /etc/conf.d/qbittorrent: config file for /etc/init.d/qbittorrent + +# User and group as which to run +#QBITTORRENT_USER="qbittorrent" +#QBITTORRENT_GROUP="qbittorrent" + +# Directory where qBittorrent saves its logs (and maybe downloads) +#QBITTORRENT_DIRECTORY="/var/lib/qbittorrent" + +# umask used to create files +#QBITTORRENT_UMASK=0022 + +# I/O nice level of qBittorrent +#QBITTORRENT_IONICE=0 + +# Nice level of qBittorrent +#QBITTORRENT_NICE=0 + +# Extra opts given to qBittorrent +#QBITTORRENT_OPTS="" diff --git a/net-p2p/qbittorrent/files/qbittorrent.initd b/net-p2p/qbittorrent/files/qbittorrent.initd new file mode 100644 index 000000000000..7f800e640e76 --- /dev/null +++ b/net-p2p/qbittorrent/files/qbittorrent.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +QBITTORRENT_USER=${QBITTORRENT_USER:-qbittorrent} +QBITTORRENT_GROUP=${QBITTORRENT_GROUP:-qbittorrent} +QBITTORRENT_DIRECTORY=${QBITTORRENT_DIRECTORY:-/var/lib/qbittorrent} +QBITTORRENT_UMASK=${QBITTORRENT_UMASK:-0022} +QBITTORRENT_IONICE=${QBITTORRENT_IONICE:-0} +QBITTORRENT_NICE=${QBITTORRENT_NICE:-0} + +description="BitTorrent client in C++ and Qt" +command="/usr/bin/qbittorrent-nox" +command_args="${QBITTORRENT_OPTS}" +pidfile="/run/${RC_SVCNAME}.pid" +command_background="yes" +command_user="${QBITTORRENT_USER}:${QBITTORRENT_USER}" +umask="${QBITTORRENT_UMASK}" +start_stop_daemon_args="--ionice ${QBITTORRENT_IONICE} --nicelevel ${QBITTORRENT_NICE}" + +depend() { + need localmount net +} + +start_pre() { + checkpath -q -d -o ${QBITTORRENT_USER}:${QBITTORRENT_GROUP} ${QBITTORRENT_DIRECTORY} +} diff --git a/net-p2p/qbittorrent/metadata.xml b/net-p2p/qbittorrent/metadata.xml index 7cd55c83f828..14e773c514d6 100644 --- a/net-p2p/qbittorrent/metadata.xml +++ b/net-p2p/qbittorrent/metadata.xml @@ -1,12 +1,20 @@ - - - Enable the Web UI - - - qbittorrent/qBittorrent - qbittorrent - + + cheembox573@gmail.com + Alexey Lunev + + + proxy-maint@gentoo.org + Proxy Maintainers + + + + Install qBittorrent Web UI (qbittorrent-nox) and systemd/OpenRC service + + + + qbittorrent/qBittorrent + diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild b/net-p2p/qbittorrent/qbittorrent-4.5.5.ebuild similarity index 91% copy from net-p2p/qbittorrent/qbittorrent-9999.ebuild copy to net-p2p/qbittorrent/qbittorrent-4.5.5.ebuild index eeba63e2c817..9ff0a380b472 100644 --- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild +++ b/net-p2p/qbittorrent/qbittorrent-4.5.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,7 +19,7 @@ fi LICENSE="GPL-2" SLOT="0" -IUSE="+dbus +gui qt6 test webui" +IUSE="+dbus +gui qt6 test webui systemd" RESTRICT="!test? ( test )" REQUIRED_USE="|| ( gui webui )" @@ -47,7 +47,9 @@ RDEPEND=" dev-qt/qtnetwork:5[ssl] dev-qt/qtsql:5[sqlite] dev-qt/qtxml:5 - )" + ) + acct-group/qbittorrent + acct-user/qbittorrent" DEPEND=" ${RDEPEND} dev-libs/boost @@ -98,6 +100,9 @@ src_configure() { mycmakeargs+=( -DGUI=OFF -DDBUS=OFF + ) + + use systemd && mycmakeargs+=( # The systemd service calls qbittorrent-nox, which is only # installed when GUI=OFF. -DSYSTEMD=ON @@ -127,4 +132,7 @@ src_test() { src_install() { multibuild_foreach_variant cmake_src_install einstalldocs + + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" } diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild b/net-p2p/qbittorrent/qbittorrent-9999.ebuild index eeba63e2c817..9ff0a380b472 100644 --- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild +++ b/net-p2p/qbittorrent/qbittorrent-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,7 +19,7 @@ fi LICENSE="GPL-2" SLOT="0" -IUSE="+dbus +gui qt6 test webui" +IUSE="+dbus +gui qt6 test webui systemd" RESTRICT="!test? ( test )" REQUIRED_USE="|| ( gui webui )" @@ -47,7 +47,9 @@ RDEPEND=" dev-qt/qtnetwork:5[ssl] dev-qt/qtsql:5[sqlite] dev-qt/qtxml:5 - )" + ) + acct-group/qbittorrent + acct-user/qbittorrent" DEPEND=" ${RDEPEND} dev-libs/boost @@ -98,6 +100,9 @@ src_configure() { mycmakeargs+=( -DGUI=OFF -DDBUS=OFF + ) + + use systemd && mycmakeargs+=( # The systemd service calls qbittorrent-nox, which is only # installed when GUI=OFF. -DSYSTEMD=ON @@ -127,4 +132,7 @@ src_test() { src_install() { multibuild_foreach_variant cmake_src_install einstalldocs + + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" }