Skip to content

Commit 8c289be

Browse files
committed
Add the "Ebuild > Categories acct-group and acct-user" note.
1 parent d96de0e commit 8c289be

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
+++
2+
title = "Ebuild > Categories acct-group and acct-user"
3+
+++
4+
5+
See also the [parent note](@/notes/Ebuild/_index.md).
6+
7+
The packages in the categories `acct-user` and `acct-group` are used to create new users and user groups, respectively, allowing other packages to require the existence of such users and groups.
8+
9+
Example of a new user ebuild:
10+
11+
```bash
12+
# acct-group/webdav/webdav-0.ebuild
13+
14+
EAPI=8
15+
16+
inherit acct-group
17+
18+
DESCRIPTION="Group for net-fs/webdav-server-rs"
19+
20+
ACCT_GROUP_ID=-1
21+
```
22+
23+
Example of a new group ebuild:
24+
25+
```bash
26+
# acct-user/webdav/webdav-0.ebuild
27+
28+
EAPI=8
29+
30+
inherit acct-user
31+
32+
DESCRIPTION="User for net-fs/webdav-server-rs"
33+
34+
ACCT_USER_ID=-1
35+
ACCT_USER_GROUPS=( ${PN} )
36+
37+
acct-user_add_deps
38+
```
39+
40+
Example of declaring the dependence on the existence of this user-group pair:
41+
42+
43+
```bash
44+
# package.ebuild
45+
46+
RDEPEND="
47+
acct-group/webdav
48+
acct-user/webdav
49+
"
50+
```
51+
52+
## References
53+
54+
- [Gentoo Wiki: Categories acct-group and acct-user](https://wiki.gentoo.org/wiki/Categories_acct-group_and_acct-user)

content/notes/Ebuild/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Links:
1111

1212
Child notes:
1313

14+
- [Categories acct-group and acct-user](@/notes/Ebuild/Categories_acct-group_and_acct-user.md)
1415
- [Snapshots](@/notes/Ebuild/Snapshots.md)
1516
- [Sub-slots](@/notes/Ebuild/Sub-slots.md)
1617

0 commit comments

Comments
 (0)