From b3833f738266e74c106df4c55a7f4f4cc89c390c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 23 Mar 2021 13:03:08 +0100 Subject: acct-user/cynerd: add qemu --- acct-user/cynerd/cynerd-0.1.1.ebuild | 68 ++++++++++++++++++++++++++++++++++++ acct-user/cynerd/cynerd-0.1.ebuild | 61 -------------------------------- profiles/qemu/make.defaults | 3 ++ profiles/qemu/package.use | 2 ++ 4 files changed, 73 insertions(+), 61 deletions(-) create mode 100644 acct-user/cynerd/cynerd-0.1.1.ebuild delete mode 100644 acct-user/cynerd/cynerd-0.1.ebuild diff --git a/acct-user/cynerd/cynerd-0.1.1.ebuild b/acct-user/cynerd/cynerd-0.1.1.ebuild new file mode 100644 index 0000000..df13e96 --- /dev/null +++ b/acct-user/cynerd/cynerd-0.1.1.ebuild @@ -0,0 +1,68 @@ +EAPI=7 + +inherit acct-user + +DESCRIPTION="Personal user for Cynerd" +IUSE="cups docker desktop server lxd wireshark roccat" + +ACCT_USER_ID=1000 +ACCT_USER_SHELL=/bin/zsh +ACCT_USER_HOME=/home/cynerd +ACCT_USER_GROUPS=( + cynerd + wheel + usb + qemu +) + +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" +} diff --git a/acct-user/cynerd/cynerd-0.1.ebuild b/acct-user/cynerd/cynerd-0.1.ebuild deleted file mode 100644 index 61010b3..0000000 --- a/acct-user/cynerd/cynerd-0.1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -EAPI=7 - -inherit acct-user - -DESCRIPTION="Personal user for Cynerd" -IUSE="cups docker desktop server 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] - - 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 ) -" - -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 ) - true -} - -src_install() { - insinto "${ACCT_USER_HOME}/.ssh" - insopts -m644 - doins "${FILESDIR}/authorized_keys" -} diff --git a/profiles/qemu/make.defaults b/profiles/qemu/make.defaults index 0df4f8d..3ebfd09 100644 --- a/profiles/qemu/make.defaults +++ b/profiles/qemu/make.defaults @@ -1,2 +1,5 @@ # vim:ft=gentoo-make-conf QEMU_SOFTMMU_TARGETS="x86_64" + + +USE_EXPAND="QEMU_SOFTMMU_TARGETS" diff --git a/profiles/qemu/package.use b/profiles/qemu/package.use index 70d4797..2a0fba4 100644 --- a/profiles/qemu/package.use +++ b/profiles/qemu/package.use @@ -1,3 +1,5 @@ +acct-user/cynerd qemu + app-emulation/qemu doc usb vhost-net virgl vte xattr fdt aio spice lzo usbredir vde net-misc/spice-gtk gtk3 gstvideo lz4 mjpeg usbredir webdav -- cgit v1.2.3