From 48addfe57310e77c34d7e43cd3eabb1b19dec329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 10 Mar 2020 19:32:22 +0100 Subject: acct-user/cynerd: add build --- acct-user/cynerd/cynerd-0.1.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ acct-user/cynerd/cynerd-0.ebuild | 67 ------------------------------------ 2 files changed, 70 insertions(+), 67 deletions(-) create mode 100644 acct-user/cynerd/cynerd-0.1.ebuild delete mode 100644 acct-user/cynerd/cynerd-0.ebuild (limited to 'acct-user') diff --git a/acct-user/cynerd/cynerd-0.1.ebuild b/acct-user/cynerd/cynerd-0.1.ebuild new file mode 100644 index 0000000..68c8c97 --- /dev/null +++ b/acct-user/cynerd/cynerd-0.1.ebuild @@ -0,0 +1,70 @@ +EAPI=7 + +inherit acct-user + +DESCRIPTION="Personal user for Cynerd" +IUSE="alsa pulseaudio cups X wayland docker lxd wireshark roccat build" + +ACCT_USER_ID=1000 +ACCT_USER_SHELL=/bin/zsh +ACCT_USER_HOME=/home/cynerd +ACCT_USER_GROUPS=( + cynerd + wheel + usb +) + +RDEPEND=" + sys-apps/shellrc[zsh] + + alsa? ( acct-group/audio ) + pulseaudio? ( media-sound/pulseaudio ) + cups? ( net-print/cups ) + X? ( + acct-group/video + acct-group/input + acct-group/plugdev + ) + wayland? ( + acct-group/video + acct-group/input + acct-group/plugdev + ) + + docker? ( acct-group/docker ) + lxd? ( app-emulation/lxd ) + wireshark? ( net-analyzer/wireshark ) + roccat? ( sys-apps/roccat-tools ) + build? ( acct-group/build ) +" + +acct-user_add_deps + +pkg_setup() { + ACCT_USER_GROUPS+=( users portage uucp ) + use alsa && \ + ACCT_USER_GROUPS+=( audio ) + use pulseaudio && \ + ACCT_USER_GROUPS+=( pulse pulse-access ) + { use X || use wayland; } && \ + ACCT_USER_GROUPS+=( video input plugdev ) + 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 ) + use build && \ + ACCT_USER_GROUPS+=( build ) + true +} + +src_install() { + insinto "${ACCT_USER_HOME}/.ssh" + insopts -m644 + doins "${FILESDIR}/authorized_keys" +} diff --git a/acct-user/cynerd/cynerd-0.ebuild b/acct-user/cynerd/cynerd-0.ebuild deleted file mode 100644 index 3b440bd..0000000 --- a/acct-user/cynerd/cynerd-0.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -EAPI=7 - -inherit acct-user - -DESCRIPTION="Personal user for Cynerd" -IUSE="alsa pulseaudio cups X wayland docker lxd wireshark roccat" - -ACCT_USER_ID=1000 -ACCT_USER_SHELL=/bin/zsh -ACCT_USER_HOME=/home/cynerd -ACCT_USER_GROUPS=( - cynerd - wheel - usb -) - -RDEPEND=" - sys-apps/shellrc[zsh] - - alsa? ( acct-group/audio ) - pulseaudio? ( media-sound/pulseaudio ) - cups? ( net-print/cups ) - X? ( - acct-group/video - acct-group/input - acct-group/plugdev - ) - wayland? ( - acct-group/video - acct-group/input - acct-group/plugdev - ) - - docker? ( acct-group/docker ) - lxd? ( app-emulation/lxd ) - wireshark? ( net-analyzer/wireshark ) - roccat? ( sys-apps/roccat-tools ) -" - -acct-user_add_deps - -pkg_setup() { - ACCT_USER_GROUPS+=( users portage uucp ) - use alsa && \ - ACCT_USER_GROUPS+=( audio ) - use pulseaudio && \ - ACCT_USER_GROUPS+=( pulse pulse-access ) - { use X || use wayland; } && \ - ACCT_USER_GROUPS+=( video input plugdev ) - 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() { - insinto "${ACCT_USER_HOME}/.ssh" - insopts -m644 - doins "${FILESDIR}/authorized_keys" -} -- cgit v1.2.3