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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51EEE138334 for ; Tue, 5 Feb 2019 21:42:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56736E0986; Tue, 5 Feb 2019 21:42:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2EA1BE0986 for ; Tue, 5 Feb 2019 21:42:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 81FDE335DC7 for ; Tue, 5 Feb 2019 21:42:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4B7F536 for ; Tue, 5 Feb 2019 21:42:42 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1549402952.4b819c24ab015129d190ae1fd3ad1247b694f839.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/moria/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-roguelike/moria/moria-5.7.10.ebuild X-VCS-Directories: games-roguelike/moria/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 4b819c24ab015129d190ae1fd3ad1247b694f839 X-VCS-Branch: master Date: Tue, 5 Feb 2019 21:42:42 +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: 864fc016-d22c-46aa-9221-9b5f0f21b11e X-Archives-Hash: 22e69d44769473ae367720d5122feab0 commit: 4b819c24ab015129d190ae1fd3ad1247b694f839 Author: Stefan Strogin gmail com> AuthorDate: Tue Feb 5 11:55:53 2019 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Tue Feb 5 21:42:32 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b819c24 games-roguelike/moria: use 'gamestat' group for accessing data files Closes: https://bugs.gentoo.org/677204 Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Stefan Strogin gmail.com> Closes: https://github.com/gentoo/gentoo/pull/10986 Signed-off-by: James Le Cuirot gentoo.org> games-roguelike/moria/moria-5.7.10.ebuild | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/games-roguelike/moria/moria-5.7.10.ebuild b/games-roguelike/moria/moria-5.7.10.ebuild index a5e1c54cf23..1f337859cbc 100644 --- a/games-roguelike/moria/moria-5.7.10.ebuild +++ b/games-roguelike/moria/moria-5.7.10.ebuild @@ -4,7 +4,7 @@ EAPI=7 CMAKE_IN_SOURCE_BUILD="yes" -inherit cmake-utils +inherit cmake-utils user DESCRIPTION="The Dungeons of Moria, a single player roguelike game, also known as Umoria" HOMEPAGE="https://umoria.org/" @@ -23,6 +23,10 @@ S="${WORKDIR}/umoria-${PV}" PATCHES=( "${FILESDIR}/${P}-gentoo-paths.patch" ) +pkg_setup(){ + enewgroup gamestat 36 +} + src_prepare() { cmake-utils_src_prepare sed -i "s/@PF@/${PF}/" src/config.cpp || die @@ -36,7 +40,7 @@ src_install() { insinto /var/lib/moria doins data/scores.dat - fowners root:games /var/lib/moria/scores.dat + fowners root:gamestat /var/lib/moria/scores.dat fperms g+w /var/lib/moria/scores.dat doman "${FILESDIR}"/${PN}.6 @@ -47,3 +51,10 @@ src_install() { doins LICENSE docompress -x /usr/share/doc/${PF}/LICENSE } + +pkg_postinst() { + elog + elog "Please add users to the 'gamestat' group, so they can run Moria:" + elog " usermod -aG gamestat " + elog +}