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 C4779138350 for ; Thu, 23 Jan 2020 19:30:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F38B9E0AC7; Thu, 23 Jan 2020 19:30:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 D9F4DE0AC7 for ; Thu, 23 Jan 2020 19:30:22 +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 94FE234E3FB for ; Thu, 23 Jan 2020 19:30:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 807A3A3 for ; Thu, 23 Jan 2020 19:29:59 +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: <1579807775.56eb6bc591c3daff893e9060faed0c04b4adb7f1.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/users-and-groups/ X-VCS-Repository: proj/devmanual X-VCS-Files: ebuild-writing/users-and-groups/text.xml X-VCS-Directories: ebuild-writing/users-and-groups/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 56eb6bc591c3daff893e9060faed0c04b4adb7f1 X-VCS-Branch: master Date: Thu, 23 Jan 2020 19:29:59 +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: 0a7f9849-a626-4aed-9cf1-ccf3bfd0092e X-Archives-Hash: 17cd7fe378accc076f6946872e227d83 commit: 56eb6bc591c3daff893e9060faed0c04b4adb7f1 Author: Ulrich Müller gentoo org> AuthorDate: Thu Jan 23 19:29:35 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu Jan 23 19:29:35 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=56eb6bc5 ebuild-writing/users-and-groups: Use example ebuilds from tree. The acct-user/group ebuilds for suricata are rather typical examples, so replace the fictitious user 123 by them. This also has ${PN} as single element in ACCT_USER_GROUPS, and it drops the uncommon ACCT_USER_{SHELL,HOME{,_OWNER,_PERMS}} variables from the example. Original patch from Michael Orlitzky gentoo.org> (who asked me to put my own name on it). Closes: https://bugs.gentoo.org/702508 Signed-off-by: Ulrich Müller gentoo.org> ebuild-writing/users-and-groups/text.xml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/ebuild-writing/users-and-groups/text.xml b/ebuild-writing/users-and-groups/text.xml index 184f890..294d558 100644 --- a/ebuild-writing/users-and-groups/text.xml +++ b/ebuild-writing/users-and-groups/text.xml @@ -42,8 +42,8 @@ and must not be used for new packages.

Group ebuilds are placed in acct-group category, with the package name -matching the group name. The following can be used as a template for writing -group ebuilds: +matching the group name. The following ebuild for acct-group/suricata +can be used as a template for writing group ebuilds:

@@ -54,8 +54,8 @@ EAPI=7
 
 inherit acct-group
 
-DESCRIPTION="Meaningful description of the group"
-ACCT_GROUP_ID=123
+DESCRIPTION="Group for Suricata IDS"
+ACCT_GROUP_ID=477
 

@@ -71,8 +71,8 @@ ACCT_GROUP_ID=123

User ebuilds are placed in acct-user category, with the package name -matching the user name. The following can be used as a template for writing -user ebuilds: +matching the user name. The following ebuild for acct-user/suricata +can be used as a template for writing user ebuilds:

@@ -83,13 +83,9 @@ EAPI=7
 
 inherit acct-user
 
-DESCRIPTION="Meaningful description of the user"
-ACCT_USER_ID=123
-ACCT_USER_SHELL=/usr/bin/foo
-ACCT_USER_HOME=/var/lib/foo
-ACCT_USER_HOME_OWNER=foo:bar
-ACCT_USER_HOME_PERMS=0775
-ACCT_USER_GROUPS=( foo bar baz )
+DESCRIPTION="User for Suricata IDS"
+ACCT_USER_ID=477
+ACCT_USER_GROUPS=( ${PN} )
 
 acct-user_add_deps