-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
system-accounts: Experimental package to replace old sysusers approach
Signed-off-by: Ikey Doherty <[email protected]>
- Loading branch information
Showing
18 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** Human readable report. This is not consumed by boulder */ | ||
{ | ||
"manifest-version": "0.2", | ||
"packages": { | ||
"system-accounts": { | ||
"build-depends": [ | ||
"binary(jq)" | ||
], | ||
"files": [ | ||
"/usr/lib/userdb/10.group", | ||
"/usr/lib/userdb/100.group", | ||
"/usr/lib/userdb/11.group", | ||
"/usr/lib/userdb/12.group", | ||
"/usr/lib/userdb/13.group", | ||
"/usr/lib/userdb/15.group", | ||
"/usr/lib/userdb/28.group", | ||
"/usr/lib/userdb/3.group", | ||
"/usr/lib/userdb/30.group", | ||
"/usr/lib/userdb/4.group", | ||
"/usr/lib/userdb/5.group", | ||
"/usr/lib/userdb/61.group", | ||
"/usr/lib/userdb/8.group", | ||
"/usr/lib/userdb/9.group", | ||
"/usr/lib/userdb/97.group", | ||
"/usr/lib/userdb/audio.group", | ||
"/usr/lib/userdb/cdrom.group", | ||
"/usr/lib/userdb/dialout.group", | ||
"/usr/lib/userdb/disk.group", | ||
"/usr/lib/userdb/input.group", | ||
"/usr/lib/userdb/kmem.group", | ||
"/usr/lib/userdb/kvm.group", | ||
"/usr/lib/userdb/lp.group", | ||
"/usr/lib/userdb/render.group", | ||
"/usr/lib/userdb/tape.group", | ||
"/usr/lib/userdb/tty.group", | ||
"/usr/lib/userdb/users.group", | ||
"/usr/lib/userdb/utmp.group", | ||
"/usr/lib/userdb/video.group", | ||
"/usr/lib/userdb/wheel.group" | ||
], | ||
"name": "system-accounts" | ||
} | ||
}, | ||
"source-name": "system-accounts", | ||
"source-release": "3", | ||
"source-version": "0.1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "audio", | ||
"gid" : 11, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "cdrom", | ||
"gid" : 15, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "dialout", | ||
"gid" : 10, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "disk", | ||
"gid" : 8, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "input", | ||
"gid" : 97, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "kmem", | ||
"gid" : 3, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "kvm", | ||
"gid" : 61, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "lp", | ||
"gid" : 9, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "render", | ||
"gid" : 30, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "tape", | ||
"gid" : 4, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "tty", | ||
"gid" : 5, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "users", | ||
"gid" : 100, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "utmp", | ||
"gid" : 13, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "video", | ||
"gid" : 12, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"groupName" : "wheel", | ||
"gid" : 28, | ||
"disposition" : "system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# SPDX-FileCopyrightText: © 2020-2024 Serpent OS Developers | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
name : system-accounts | ||
version : "0.1.0" | ||
release : 3 | ||
license : MPL-2.0 | ||
homepage : https://serpentos.com | ||
summary : Core system account definitions | ||
description : | | ||
System account definitions via userdb | ||
builddeps : | ||
- binary(jq) | ||
install : | | ||
%install_dir %(installroot)%(libdir)/userdb | ||
for group in \ | ||
audio \ | ||
cdrom \ | ||
dialout \ | ||
disk \ | ||
input \ | ||
kmem \ | ||
kvm \ | ||
lp \ | ||
render \ | ||
tape \ | ||
tty \ | ||
users \ | ||
utmp \ | ||
video \ | ||
wheel \ | ||
; do | ||
%install_file "%(pkgdir)/${group}.group" %(installroot)%(libdir)/userdb/${group}.group | ||
gid=`jq .gid "%(pkgdir)/${group}.group"` | ||
ln -s ${group}.group %(installroot)%(libdir)/userdb/${gid}.group | ||
done |