From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 02975138206 for ; Sat, 23 Apr 2016 18:06:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4625E0857; Sat, 23 Apr 2016 18:06:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55BC8E0857 for ; Sat, 23 Apr 2016 18:06:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 208A1340CCA for ; Sat, 23 Apr 2016 18:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3065B95B for ; Sat, 23 Apr 2016 18:06:13 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1461434768.ff7c2b479cd5485f64c70c244ecfcec75e89c036.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/transmission/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/transmission/transmission-2.92.ebuild X-VCS-Directories: net-p2p/transmission/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: ff7c2b479cd5485f64c70c244ecfcec75e89c036 X-VCS-Branch: master Date: Sat, 23 Apr 2016 18:06:13 +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-Archives-Salt: b2402658-37a4-4eac-a612-3fd606e8b239 X-Archives-Hash: d369bf4470293c752f6ce8f0aea23be6 commit: ff7c2b479cd5485f64c70c244ecfcec75e89c036 Author: Mike Gilbert gentoo org> AuthorDate: Sat Apr 23 18:05:37 2016 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sat Apr 23 18:06:08 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff7c2b47 net-p2p/transmission: Create /var/lib/transmission in postinst The openrc init script normally creates this, but this does not work for systemd users. Bug: https://bugs.gentoo.org/580932 Package-Manager: portage-2.2.28_p70 net-p2p/transmission/transmission-2.92.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net-p2p/transmission/transmission-2.92.ebuild b/net-p2p/transmission/transmission-2.92.ebuild index 7a402d1..4ae6553 100644 --- a/net-p2p/transmission/transmission-2.92.ebuild +++ b/net-p2p/transmission/transmission-2.92.ebuild @@ -149,7 +149,12 @@ pkg_postinst() { gnome2_icon_cache_update enewgroup transmission - enewuser transmission -1 -1 -1 transmission + enewuser transmission -1 -1 /var/lib/transmission transmission + + if [[ ! -e "${ROOT%/}"/var/lib/transmission ]]; then + mkdir -p "${ROOT%/}"/var/lib/transmission + chown transmission:transmission "${ROOT%/}"/var/lib/transmission + fi elog "If you use transmission-daemon, please, set 'rpc-username' and" elog "'rpc-password' (in plain text, transmission-daemon will hash it on"