summaryrefslogtreecommitdiff
path: root/acct-user/cynerd/cynerd-0.1.4.ebuild
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-09-13 11:33:00 +0200
committerKarel Kočí <cynerd@email.cz>2021-09-13 11:33:00 +0200
commit258d791d36de1947cee5c3aab46235b04bd8649f (patch)
tree8e844828929735182af1b1cbeaf6052c5948251a /acct-user/cynerd/cynerd-0.1.4.ebuild
parent06539d2b5d61cd54a79d44b7a2c70625ab9e7118 (diff)
downloadgentoo-personal-overlay-258d791d36de1947cee5c3aab46235b04bd8649f.tar.gz
gentoo-personal-overlay-258d791d36de1947cee5c3aab46235b04bd8649f.tar.bz2
gentoo-personal-overlay-258d791d36de1947cee5c3aab46235b04bd8649f.zip
acct-user/cynerd: add to dialout group
Diffstat (limited to 'acct-user/cynerd/cynerd-0.1.4.ebuild')
-rw-r--r--acct-user/cynerd/cynerd-0.1.4.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/acct-user/cynerd/cynerd-0.1.4.ebuild b/acct-user/cynerd/cynerd-0.1.4.ebuild
new file mode 100644
index 0000000..daa7da5
--- /dev/null
+++ b/acct-user/cynerd/cynerd-0.1.4.ebuild
@@ -0,0 +1,72 @@
+EAPI=7
+
+inherit acct-user
+
+DESCRIPTION="Personal user for Cynerd"
+IUSE="cups docker desktop server lxd wireshark roccat qemu"
+
+ACCT_USER_ID=1000
+ACCT_USER_SHELL=/bin/zsh
+ACCT_USER_HOME=/home/cynerd
+ACCT_USER_HOME_OWNER=cynerd:cynerd
+ACCT_USER_HOME_PERMS=750
+ACCT_USER_GROUPS=(
+ cynerd
+ wheel
+ usb
+)
+
+RDEPEND="
+ sys-apps/shellrc[zsh]
+
+ acct-group/dialout
+
+ cups? ( net-print/cups )
+
+ desktop? (
+ acct-group/audio
+ media-sound/pulseaudio
+ acct-group/video
+ acct-group/input
+ acct-group/plugdev
+ )
+ server? ( acct-group/build )
+ docker? ( acct-group/docker )
+ lxd? ( app-emulation/lxd )
+ wireshark? ( acct-group/pcap )
+ roccat? ( sys-apps/roccat-tools )
+ qemu? (
+ acct-group/qemu
+ acct-group/kvm
+ )
+"
+
+acct-user_add_deps
+
+pkg_setup() {
+ ACCT_USER_GROUPS+=( users portage uucp dialout )
+ use cups && \
+ ACCT_USER_GROUPS+=( lp lpadmin )
+ use desktop && \
+ ACCT_USER_GROUPS+=( audio pulse pulse-access video input plugdev )
+ use server && \
+ ACCT_USER_GROUPS+=( build )
+ use docker && \
+ ACCT_USER_GROUPS+=( docker )
+ use lxd && \
+ ACCT_USER_GROUPS+=( lxd )
+ use wireshark && \
+ ACCT_USER_GROUPS+=( pcap )
+ use roccat && \
+ ACCT_USER_GROUPS+=( roccat )
+ use qemu && \
+ ACCT_USER_GROUPS+=( qemu kvm )
+ true
+}
+
+src_install() {
+ acct-user_src_install
+ insinto "${ACCT_USER_HOME}/.ssh"
+ insopts -m644
+ doins "${FILESDIR}/authorized_keys"
+}