diff options
author | Karel Kočí <cynerd@email.cz> | 2020-02-28 23:11:35 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-02-28 23:11:35 +0100 |
commit | f5d35502129fdcb3545510c691cd1181230f09ac (patch) | |
tree | 90de6560aa9df176b23884285f87714db1fc5836 | |
parent | 41710d2dd4998cc1618ac43f116177fd04c2904b (diff) | |
download | gentoo-personal-overlay-f5d35502129fdcb3545510c691cd1181230f09ac.tar.gz gentoo-personal-overlay-f5d35502129fdcb3545510c691cd1181230f09ac.tar.bz2 gentoo-personal-overlay-f5d35502129fdcb3545510c691cd1181230f09ac.zip |
Add acount packages for cynerd
-rw-r--r-- | acct-group/cynerd/cynerd-0.ebuild | 5 | ||||
-rw-r--r-- | acct-user/cynerd/cynerd-0.ebuild | 61 | ||||
-rw-r--r-- | acct-user/cynerd/files/authorized_keys | 1 |
3 files changed, 67 insertions, 0 deletions
diff --git a/acct-group/cynerd/cynerd-0.ebuild b/acct-group/cynerd/cynerd-0.ebuild new file mode 100644 index 0000000..f306838 --- /dev/null +++ b/acct-group/cynerd/cynerd-0.ebuild @@ -0,0 +1,5 @@ +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=1000 diff --git a/acct-user/cynerd/cynerd-0.ebuild b/acct-user/cynerd/cynerd-0.ebuild new file mode 100644 index 0000000..85930cb --- /dev/null +++ b/acct-user/cynerd/cynerd-0.ebuild @@ -0,0 +1,61 @@ +EAPI=7 + +inherit acct-user + +DESCRIPTION="Personal user for Cynerd" +IUSE="desktop hw-access docker lxd cups wireshark roccat" + +ACCT_USER_ID=1000 +ACCT_USER_SHELL=/bin/zsh +ACCT_USER_HOME=/home/cynerd +ACCT_USER_GROUPS=( + cynerd + users + wheel + portage +) + +DEPEND=" + sys-apps/shellrc[zsh] + desktop? ( + acct-group/audio + acct-group/video + acct-group/input + acct-group/plugdev + media-sound/pulseaudio[system-wide] + ) + hw-access? ( acct-group/usb ) + docker? ( acct-group/docker ) + lxd? ( app-emulation/lxd ) + cups? ( net-print/cups ) + wireshark? ( net-analyzer/wireshark ) + roccat? ( sys-apps/roccat-tools ) +" + +acct-user_add_deps + +pkg_setup() { + use desktop && \ + ACCT_USER_GROUPS+=( audio video input plugdev pulse pulse-access ) + use hw-access && \ + ACCT_USER_GROUPS+=( uucp usb ) + use docker && \ + ACCT_USER_GROUPS+=( docker ) + use lxd && \ + ACCT_USER_GROUPS+=( lxd ) + use cups && \ + ACCT_USER_GROUPS+=( lp lpadmin ) + use wireshark && \ + ACCT_USER_GROUPS+=( wireshark ) + use roccat && \ + ACCT_USER_GROUPS+=( roccat ) + true +} + +src_install() { + acct-user_src_install + + insinto "${ACCT_USER_HOME}/.ssh" + insopts -m644 + doins "${FILESDIR}/authorized_keys" +} diff --git a/acct-user/cynerd/files/authorized_keys b/acct-user/cynerd/files/authorized_keys new file mode 100644 index 0000000..4b7ac00 --- /dev/null +++ b/acct-user/cynerd/files/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3cs5UOO/epaxSUaO6kDtQlfdS/K5GEJBGK9nH+KcRL4DNQlAGWZsJiJQPuIL3fGlzRLqnPr8YEMbT5sl/moe/gZe2VD5FoAr2dR2fEw5wXXDI90bxbmCWqbyjmRxlKxdKhc6v1BukmuxScsZO0VrUNks1veCGgi1G9w+tY5HevBlMqvDyDpU/H1LN7MVgkCser+ROjRPviDhLaXk6dLKut33SYgce02s5hlvTiWQa+CqeBfRkdiP5VBo/7PQOWsd8GSfCgO0mwhxFowG8cMFyEwMOi70HeNmURtKbd/h6cz0zsdA39fQ8huRWHRd/CQhgIUOsM+W0uPEwkv9HBErx Private key |