From 56eb6bc591c3daff893e9060faed0c04b4adb7f1 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 23 Jan 2020 20:29:35 +0100 Subject: ebuild-writing/users-and-groups: Use example ebuilds from tree. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (who asked me to put my own name on it). Closes: https://bugs.gentoo.org/702508 Signed-off-by: Ulrich Müller --- 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
 
-- cgit v1.2.3-65-gdbad