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 7D71815800F for ; Thu, 12 Jan 2023 14:41:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E936E0942; Thu, 12 Jan 2023 14:41:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 15394E0942 for ; Thu, 12 Jan 2023 14:41:53 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E54A6340CF6 for ; Thu, 12 Jan 2023 14:41:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1196F824 for ; Thu, 12 Jan 2023 14:41:51 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1673534498.0fe44f7a1d0009f74cfe5cd7e9d8495859c5052a.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/, net-p2p/deluge/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/deluge/deluge-2.1.1-r2.ebuild net-p2p/deluge/deluge-2.1.1.ebuild net-p2p/deluge/files/deluge-web.service-4 X-VCS-Directories: net-p2p/deluge/files/ net-p2p/deluge/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 0fe44f7a1d0009f74cfe5cd7e9d8495859c5052a X-VCS-Branch: master Date: Thu, 12 Jan 2023 14:41:51 +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: 699c9ed3-f812-4b46-a6e8-0deaf5c0458e X-Archives-Hash: 0a345e2d783116385893a71e187642da commit: 0fe44f7a1d0009f74cfe5cd7e9d8495859c5052a Author: Paolo Pedroni iol it> AuthorDate: Tue Dec 27 14:38:22 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Jan 12 14:41:38 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fe44f7a net-p2p/deluge: Fix deluge-web systemd service unit Also clarify systemd service usage and drop old. Closes: https://bugs.gentoo.org/888183 Signed-off-by: Paolo Pedroni iol.it> Closes: https://github.com/gentoo/gentoo/pull/28852 Signed-off-by: Joonas Niilola gentoo.org> .../deluge/{deluge-2.1.1.ebuild => deluge-2.1.1-r2.ebuild} | 12 ++++++++---- net-p2p/deluge/files/deluge-web.service-4 | 10 ++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/net-p2p/deluge/deluge-2.1.1.ebuild b/net-p2p/deluge/deluge-2.1.1-r2.ebuild similarity index 94% rename from net-p2p/deluge/deluge-2.1.1.ebuild rename to net-p2p/deluge/deluge-2.1.1-r2.ebuild index 6e8715c9404e..e30912c37127 100644 --- a/net-p2p/deluge/deluge-2.1.1.ebuild +++ b/net-p2p/deluge/deluge-2.1.1-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,7 @@ if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://git.deluge-torrent.org/${PN}" else SRC_URI="http://download.deluge-torrent.org/source/$(ver_cut 1-2)/${P}.tar.xz" - KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86" fi LICENSE="GPL-2" @@ -64,6 +64,8 @@ RDEPEND=" ') " +PATCHES=( "${FILESDIR}/${P}-twisted-22.10.patch" ) + distutils_enable_tests pytest python_prepare_all() { @@ -131,7 +133,7 @@ python_install_all() { if use webinterface; then newinitd "${FILESDIR}/deluge-web.init-2" deluge-web newconfd "${FILESDIR}/deluge-web.conf" deluge-web - systemd_newunit "${FILESDIR}/deluge-web.service-3" deluge-web.service + systemd_newunit "${FILESDIR}/deluge-web.service-4" deluge-web.service systemd_install_serviced "${FILESDIR}/deluge-web.service.conf" else rm -r "${D}/$(python_get_sitedir)/deluge/ui/web/" || die @@ -156,7 +158,9 @@ pkg_postinst() { elog elog "To start the daemon either run 'deluged' as user" elog "or modify /etc/conf.d/deluged and run" - elog "/etc/init.d/deluged start as root" + elog "'/etc/init.d/deluged start' as root if you use OpenRC" + elog "or" + elog "'systemctl start deluged.service' as root if you use systemd" elog "You can still use deluge the old way" elog elog "Systemd unit files for deluged and deluge-web no longer source" diff --git a/net-p2p/deluge/files/deluge-web.service-4 b/net-p2p/deluge/files/deluge-web.service-4 new file mode 100644 index 000000000000..9ebfcbc84745 --- /dev/null +++ b/net-p2p/deluge/files/deluge-web.service-4 @@ -0,0 +1,10 @@ +[Unit] +Description=Deluge WebUI +Documentation=man:deluge-web +After=deluged.service + +[Service] +ExecStart=/usr/bin/deluge-web -d -c ${DELUGE_WEB_HOME} ${DELUGE_WEB_OPTS} + +[Install] +WantedBy=multi-user.target