public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] [PATCH 3/3] net-p2p/transmission: depend on acct-user/transmission
Date: Sun,  4 Aug 2019 21:18:45 -0400	[thread overview]
Message-ID: <20190805011845.11284-3-floppym@gentoo.org> (raw)
In-Reply-To: <20190805011845.11284-1-floppym@gentoo.org>

Package-Manager: Portage-2.3.70_p2, Repoman-2.3.16_p22
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
 net-p2p/transmission/transmission-2.94.ebuild | 18 ++++++-----------
 net-p2p/transmission/transmission-9999.ebuild | 20 +++++++------------
 2 files changed, 13 insertions(+), 25 deletions(-)

diff --git a/net-p2p/transmission/transmission-2.94.ebuild b/net-p2p/transmission/transmission-2.94.ebuild
index 246560fb9ad7..745abf9221fa 100644
--- a/net-p2p/transmission/transmission-2.94.ebuild
+++ b/net-p2p/transmission/transmission-2.94.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools flag-o-matic gnome2-utils qmake-utils systemd user xdg-utils
+inherit autotools flag-o-matic gnome2-utils qmake-utils systemd xdg-utils
 
 DESCRIPTION="A Fast, Easy and Free BitTorrent client"
 HOMEPAGE="http://www.transmissionbt.com/"
@@ -16,7 +16,7 @@ SLOT=0
 IUSE="ayatana gtk libressl lightweight systemd qt5 xfs"
 KEYWORDS="amd64 ~arm ~arm64 ~mips ppc ppc64 x86 ~x86-fbsd ~amd64-linux"
 
-RDEPEND=">=dev-libs/libevent-2.0.10:=
+COMMON_DEPEND=">=dev-libs/libevent-2.0.10:=
 	!libressl? ( dev-libs/openssl:0= )
 	libressl? ( dev-libs/libressl:0= )
 	net-libs/libnatpmp
@@ -37,7 +37,7 @@ RDEPEND=">=dev-libs/libevent-2.0.10:=
 		dev-qt/qtwidgets:5
 		)
 	systemd? ( >=sys-apps/systemd-209:= )"
-DEPEND="${RDEPEND}
+DEPEND="${COMMON_DEPEND}
 	>=dev-libs/glib-2.32
 	dev-util/intltool
 	sys-devel/gettext
@@ -45,6 +45,8 @@ DEPEND="${RDEPEND}
 	virtual/pkgconfig
 	qt5? ( dev-qt/linguist-tools:5 )
 	xfs? ( sys-fs/xfsprogs )"
+RDEPEND="${COMMON_DEPEND}
+	acct-user/transmission"
 
 REQUIRED_USE="ayatana? ( gtk )"
 
@@ -137,14 +139,6 @@ pkg_postinst() {
 	xdg_desktop_database_update
 	gnome2_icon_cache_update
 
-	enewgroup transmission
-	enewuser transmission -1 -1 /var/lib/transmission transmission
-
-	if [[ ! -e "${EROOT%/}"/var/lib/transmission ]]; then
-		mkdir -p "${EROOT%/}"/var/lib/transmission || die
-		chown transmission:transmission "${EROOT%/}"/var/lib/transmission || die
-	fi
-
 	elog "If you use transmission-daemon, please, set 'rpc-username' and"
 	elog "'rpc-password' (in plain text, transmission-daemon will hash it on"
 	elog "start) in settings.json file located at /var/lib/transmission/config or"
diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild
index 392d8cb5bf3e..312540191f40 100644
--- a/net-p2p/transmission/transmission-9999.ebuild
+++ b/net-p2p/transmission/transmission-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit cmake-utils gnome2-utils readme.gentoo-r1 systemd user xdg-utils
+inherit cmake-utils gnome2-utils readme.gentoo-r1 systemd xdg-utils
 
 if [[ ${PV} == 9999 ]]; then
 	inherit git-r3
@@ -24,7 +24,7 @@ SLOT="0"
 IUSE="ayatana gtk libressl lightweight nls mbedtls qt5 systemd test"
 RESTRICT="!test? ( test )"
 
-RDEPEND="
+COMMON_DEPEND="
 	dev-libs/libb64:0=
 	>=dev-libs/libevent-2.0.10:=
 	!mbedtls? (
@@ -51,7 +51,7 @@ RDEPEND="
 	)
 	systemd? ( >=sys-apps/systemd-209:= )
 "
-DEPEND="${RDEPEND}
+DEPEND="${COMMON_DEPEND}
 	virtual/pkgconfig
 	nls? (
 		virtual/libintl
@@ -64,6 +64,9 @@ DEPEND="${RDEPEND}
 		)
 	)
 "
+RDEPEND="${COMMON_DEPEND}
+	acct-user/transmission
+"
 
 src_unpack() {
 	if [[ ${PV} == 9999 ]]; then
@@ -137,14 +140,5 @@ pkg_postrm() {
 pkg_postinst() {
 	xdg_desktop_database_update
 	gnome2_icon_cache_update
-
-	enewgroup transmission
-	enewuser transmission -1 -1 /var/lib/transmission transmission
-
-	if [[ ! -e "${EROOT%/}"/var/lib/transmission ]]; then
-		mkdir -p "${EROOT%/}"/var/lib/transmission || die
-		chown transmission:transmission "${EROOT%/}"/var/lib/transmission || die
-	fi
-
 	readme.gentoo_print_elog
 }
-- 
2.22.0



      parent reply	other threads:[~2019-08-05  1:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-05  1:18 [gentoo-dev] [PATCH 1/3] acct-group/transmission: new group (169) Mike Gilbert
2019-08-05  1:18 ` [gentoo-dev] [PATCH 2/3] acct-user/transmission: new user (169) Mike Gilbert
2019-08-05  1:18 ` Mike Gilbert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190805011845.11284-3-floppym@gentoo.org \
    --to=floppym@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox