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 D57F2138A1A for ; Thu, 19 Feb 2015 22:07:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2AFEE08E1; Thu, 19 Feb 2015 22:07:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 115A4E08E1 for ; Thu, 19 Feb 2015 22:07:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB692340834 for ; Thu, 19 Feb 2015 22:07:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 786E6121EB for ; Thu, 19 Feb 2015 22:07:46 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1424383955.075711ddee821d79f2421fa2f7ef3422953cbcc5.ulm@gentoo> Subject: [gentoo-commits] proj/emacs:master commit in: app-emacs/emacs-common-gentoo/ X-VCS-Repository: proj/emacs X-VCS-Files: app-emacs/emacs-common-gentoo/ChangeLog app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999-r1.ebuild X-VCS-Directories: app-emacs/emacs-common-gentoo/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 075711ddee821d79f2421fa2f7ef3422953cbcc5 X-VCS-Branch: master Date: Thu, 19 Feb 2015 22:07:46 +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: 1ae7e772-dbad-44db-9aaa-4aac3e9ce524 X-Archives-Hash: c2fb6b7a8a4219c2ccaf3464e9b5bc55 commit: 075711ddee821d79f2421fa2f7ef3422953cbcc5 Author: Ulrich Müller gentoo org> AuthorDate: Thu Feb 19 22:12:35 2015 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu Feb 19 22:12:35 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=075711dd app-emacs/emacs-common-gentoo: Use "gamestat" group for shared score files, following QA tree policy. Package-Manager: portage-2.2.17 --- app-emacs/emacs-common-gentoo/ChangeLog | 4 ++++ .../emacs-common-gentoo-9999-r1.ebuild | 16 +++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app-emacs/emacs-common-gentoo/ChangeLog b/app-emacs/emacs-common-gentoo/ChangeLog index 40b3c91..dd947e4 100644 --- a/app-emacs/emacs-common-gentoo/ChangeLog +++ b/app-emacs/emacs-common-gentoo/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 19 Feb 2015; Ulrich Müller + emacs-common-gentoo-9999-r1.ebuild: + Use "gamestat" group for shared score files, following QA tree policy. + 10 Feb 2015; Ulrich Müller emacs-common-gentoo-9999-r1.ebuild: Fix permissions of shared score dir in pkg_postinst. diff --git a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999-r1.ebuild b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999-r1.ebuild index 564b4bf..2d872dd 100644 --- a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999-r1.ebuild +++ b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999-r1.ebuild @@ -22,7 +22,7 @@ PDEPEND="virtual/emacs" S="${WORKDIR}/${PN}" pkg_setup() { - use games && enewgroup scores 36 + use games && enewgroup gamestat 36 } src_install() { @@ -36,7 +36,7 @@ src_install() { if use games; then keepdir /var/games/emacs - fowners root:scores /var/games/emacs + fowners root:gamestat /var/games/emacs fperms g+w /var/games/emacs fi @@ -107,7 +107,7 @@ pkg_preinst() { cp "${EROOT}/var/lib${f#/var}" "${ED}${f}" || die fi touch "${ED}${f}" || die - chown root:scores "${ED}${f}" || die + chown root:gamestat "${ED}${f}" || die chmod g+w "${ED}${f}" || die done fi @@ -129,10 +129,12 @@ pkg_preinst() { } pkg_postinst() { - # update permissions of shared score dir - chmod 755 "${EROOT}"/var/games - chown root:scores "${EROOT}"/var/games/emacs - chmod 775 "${EROOT}"/var/games/emacs + if use games; then + # update permissions of shared score dir + chmod 755 "${EROOT}"/var/games + chown root:gamestat "${EROOT}"/var/games/emacs + chmod 775 "${EROOT}"/var/games/emacs + fi if use X; then fdo-mime_desktop_database_update