From 06858bc6fbced8ab88aa999d37af4a96afa96326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 20 Jul 2021 21:01:46 +0200 Subject: acct-user/cynerd: specify permisions explicitly --- acct-user/cynerd/cynerd-0.1.2.ebuild | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 acct-user/cynerd/cynerd-0.1.2.ebuild (limited to 'acct-user/cynerd/cynerd-0.1.2.ebuild') diff --git a/acct-user/cynerd/cynerd-0.1.2.ebuild b/acct-user/cynerd/cynerd-0.1.2.ebuild new file mode 100644 index 0000000..c3f746c --- /dev/null +++ b/acct-user/cynerd/cynerd-0.1.2.ebuild @@ -0,0 +1,69 @@ +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] + + 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? ( net-analyzer/wireshark ) + roccat? ( sys-apps/roccat-tools ) + qemu? ( + acct-group/qemu + acct-group/kvm + ) +" + +acct-user_add_deps + +pkg_setup() { + ACCT_USER_GROUPS+=( users portage uucp ) + 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+=( wireshark ) + use roccat && \ + ACCT_USER_GROUPS+=( roccat ) + use qemu && \ + ACCT_USER_GROUPS+=( qemu kvm ) + true +} + +src_install() { + insinto "${ACCT_USER_HOME}/.ssh" + insopts -m644 + doins "${FILESDIR}/authorized_keys" +} -- cgit v1.2.3