Browse Source

linux-gentoo: ++grub, xorg, firmware, etc

master
Maxim Likhachev 4 years ago
parent
commit
ff33a67149
  1. 5
      roles/linux-gentoo/handlers/main.yml
  2. 24
      roles/linux-gentoo/tasks/applications.yml
  3. 45
      roles/linux-gentoo/tasks/grub.yml
  4. 15
      roles/linux-gentoo/tasks/main.yml
  5. 2
      roles/linux-gentoo/tasks/portage.yml
  6. 9
      roles/linux-gentoo/tasks/xorg.yml
  7. 2
      roles/linux-gentoo/templates/consolefont.j2
  8. 20
      roles/linux-gentoo/templates/grub.d/07_passwd.j2
  9. 15
      roles/linux-gentoo/templates/grub.d/40_custom.j2
  10. 14886
      roles/linux-gentoo/templates/hosts.j2
  11. 0
      roles/linux-gentoo/templates/modprobe.d/.keep
  12. 6
      roles/linux-gentoo/templates/modprobe.d/xorg-blacklist.conf.j2
  13. 3
      roles/linux-gentoo/templates/portage/env/no-lto-bfd.conf
  14. 3
      roles/linux-gentoo/templates/portage/env/no-lto.conf
  15. 6
      roles/linux-gentoo/templates/portage/env/no-tmpfs.conf
  16. 23
      roles/linux-gentoo/templates/portage/make.conf.j2
  17. 3
      roles/linux-gentoo/templates/portage/package.env/package-list.j2
  18. 317
      roles/linux-gentoo/templates/rc.conf.j2
  19. 10
      roles/linux-gentoo/templates/savedconfig/sys-kernel/linux-firmware
  20. 104
      roles/linux-gentoo/templates/xorg/xorg.conf.default.j2
  21. 161
      roles/linux-gentoo/templates/xorg/xorg.conf.j2
  22. 60
      roles/linux-gentoo/vars/applications.yml
  23. 375
      roles/linux-gentoo/vars/disabled-use-flags.yml
  24. 5
      roles/linux-gentoo/vars/grub.yml
  25. 504
      roles/linux-gentoo/vars/portage.yml
  26. 3
      roles/linux-gentoo/vars/services.yml
  27. 16
      roles/linux-gentoo/vars/sysctl.yml
  28. 3
      roles/linux-gentoo/vars/system.yml
  29. 4
      roles/linux-gentoo/vars/xorg.yml

5
roles/linux-gentoo/handlers/main.yml

@ -11,3 +11,8 @@ @@ -11,3 +11,8 @@
- name: emerge custom set
debug: msg="Custom set has been updated. Please run 'emerge @{{ apps.set_name }}'"
- name: Update GRUB
become: true
shell: >
grub-mkconfig -o /boot/grub/grub.cfg

24
roles/linux-gentoo/tasks/applications.yml

@ -5,6 +5,27 @@ @@ -5,6 +5,27 @@
vars:
packages: "{{ gentoo.use.custom }}"
- name: Make directories for packages with custom ENVs
file:
path: "/etc/portage/{{ item }}"
state: directory
loop:
- env
- package.env
- name: Make configure files with custom ENV's settings
template:
src: "portage/env/{{ item.template }}"
dest: "/etc/portage/env/{{ item.template }}"
loop: "{{ gentoo.use.env }}"
when: gentoo.use.env is iterable
- name: Configure packages with custom ENVs
template:
src: "portage/package.env/package-list.j2"
dest: "/etc/portage/package.env/{{ item.template }}"
loop: "{{ gentoo.use.env }}"
- name: Freeze packages
template:
src: packages.j2
@ -27,8 +48,9 @@ @@ -27,8 +48,9 @@
packages: "{{ apps.unmask }}"
- name: Remove default config files
become: yes
file:
path: "/etc/portage/savedconfig/{{ item | dirname }}/"
path: "/etc/portage/savedconfig/{{ item }}"
state: absent
with_items: "{{ gentoo.use.config }}"
tags:

45
roles/linux-gentoo/tasks/grub.yml

@ -0,0 +1,45 @@ @@ -0,0 +1,45 @@
- name: Create {{ iso.directory }} directory
become: yes
file:
path: "{{ iso.directory }}"
state: directory
# - name: Download ISO images
# become: yes
# get_url:
# url: "{{ item.url }}"
# dest: "{{ item.filename }}"
# mode: 0644
# timeout: 600
# loop: "{{ iso.images }}"
# notify: Update GRUB
- name: Download ISO images
become: yes
shell: >
wget -c "{{ item.url }}" -O "{{ item.filename }}"
loop: "{{ iso.images }}"
- name: Set GRUB password
become: yes
template:
src: grub.d/07_passwd.j2
dest: /etc/grub.d/07_passwd
mode: 0755
notify: Update GRUB
# - name: Get root partition UUID
# become: yes
# shell: findmnt -n -o UUID /
# register: root_partition_uuid
- name: Configure custom GRUB records
become: yes
# vars:
# uuid: root_partition_uuid.stdout
template:
src: grub.d/40_custom.j2
dest: /etc/grub.d/40_custom
mode: 0755
notify: Update GRUB

15
roles/linux-gentoo/tasks/main.yml

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
- include_vars: system.yml
- include_vars: services.yml
- include_vars: sysctl.yml
- include_vars: grub.yml
- include_vars: mount.yml
- include_vars: portage.yml
- include_vars: applications.yml
@ -30,6 +31,8 @@ @@ -30,6 +31,8 @@
opts: "{{ item.options | default('defaults') }}"
with_items: "{{ mount.tmpfs }}"
- include: grub.yml
- include: portage.yml
- include: applications.yml
@ -52,6 +55,18 @@ @@ -52,6 +55,18 @@
sysctl_set: yes
with_items: "{{ sysctl }}"
- name: Configure /etc/hosts
vars:
hostname: "{{ system.hostname }}"
template:
src: hosts.j2
dest: /etc/hosts.clt
- name: Configure /etc/rc.conf
template:
src: rc.conf.j2
dest: /etc/rc.conf.clt
- name: Update imagemagick policies
lineinfile:
path: /etc/ImageMagick-7/policy.xml

2
roles/linux-gentoo/tasks/portage.yml

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
- name: Create make.conf
template:
src: make.conf.j2
src: portage/make.conf.j2
dest: /etc/portage/make.conf/custom.clt
notify: emerge world

9
roles/linux-gentoo/tasks/xorg.yml

@ -1,4 +1,6 @@ @@ -1,4 +1,6 @@
- name: Make xorg.conf
vars:
driver: "{{ x.driver }}"
template:
src: xorg/xorg.conf.j2
dest: "/etc/X11/xorg.conf.clt"
@ -14,3 +16,10 @@ @@ -14,3 +16,10 @@
dest: "{{ x.xkb.directory }}/{{ item }}"
loop: "{{ x.xkb.layouts }}"
- name: Disable kernel modules
vars:
modules: "{{ x.modules.blacklist }}"
template:
src: modprobe.d/xorg-blacklist.conf.j2
dest: /etc/modprobe.d/xorg-blacklist.conf

2
roles/linux-gentoo/templates/consolefont.j2

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
# {{ ansible_managed }}
consolefont="{{ system.console_font }}"
consolefont={{ system.console_font }}

20
roles/linux-gentoo/templates/grub.d/07_passwd.j2

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
#!/bin/sh
#------------------------------------------------------------------------------
# Modified Calculate Utilities 3.6.8.11
# Processed template files:
# /var/db/repos/calculate/profiles/templates/3.6/2_ac_install_merge/sys-boot/grub/grub.d/07_passwd
# For modify this file, create /etc/grub.d/07_passwd.clt template.
#------------------------------------------------------------------------------
# grub-mkconfig helper script.
# Copyright 2016 Calculate Ltd. http://www.calculate-linux.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#cat <<EOF
#set superusers="root"
#password_pbkdf2 root grub.pbkdf2.sha512.25000.BFD71A43E85D2BA574CE79CF39E7BCB7F65E8B31E61C630C41688D512A85F07E8F518AD1DAFB5F2B05C098730E616CAD554A092104A09492B2F6DE3BC798D35A.C83E070EB40CA76A9C72CEEF02103DA3B58FF444AFB01E9EED3C89C4A61D8C74EE8EA15940A75A4AA4F04C19B9B1FB4400B601D99AC1FFC1F9D4AB08C1255778
#export superusers
#EOF

15
roles/linux-gentoo/templates/grub.d/40_custom.j2

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
#!/usr/bin/env bash
exec tail -n +4 $0
menuentry 'System Rescue Live CD' {
set isofile='{{ iso.directory }}/systemrescuecd.iso'
probe -s UUID -u $root
set imgdevpath="/dev/disk/by-uuid/$UUID"
loopback loop $isofile
linux (loop)/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
initrd (loop)/sysresccd/boot/intel_ucode.img (loop)/sysresccd/boot/amd_ucode.img (loop)/sysresccd/boot/x86_64/sysresccd.img
}

14886
roles/linux-gentoo/templates/hosts.j2

File diff suppressed because it is too large Load Diff

0
roles/linux-gentoo/templates/modprobe.d/.keep

6
roles/linux-gentoo/templates/modprobe.d/xorg-blacklist.conf.j2

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
# {{ ansible_managed }}
{% for module in modules %}
blacklist {{ module }}
{% endfor %}

3
roles/linux-gentoo/templates/portage/env/no-lto-bfd.conf vendored

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
LDLAGS="-fno-lto -fno-use-linker-plugin -fuse-ld=bfd"
CFLAGS="-march=native -O2 -pipe -Wno-all -fno-lto -fno-use-linker-plugin -fuse-ld=bfd"
CXXFLAGS="${CFLAGS} -fno-lto -fno-use-linker-plugin -fuse-ld=bfd"

3
roles/linux-gentoo/templates/portage/env/no-lto.conf vendored

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
LDLAGS="${CFLAGS} -fno-lto -fno-use-linker-plugin"
CFLAGS="${CFLAGS} -fno-lto -fno-use-linker-plugin"
CXXFLAGS="${CFLAGS} -fno-lto -fno-use-linker-plugin"

6
roles/linux-gentoo/templates/portage/env/no-tmpfs.conf vendored

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
PORTAGE_TMPDIR="/var/tmp/notmpfs"
LDLAGS="-fno-lto -fno-use-linker-plugin -fuse-ld=bfd"
LD=ld.bfd
CFLAGS="-march=native -O2 -pipe -Wno-all -fno-lto -fno-use-linker-plugin -fuse-ld=bfd"
CXXFLAGS="${CFLAGS} -fno-lto -fno-use-linker-plugin -fuse-ld=bfd"

23
roles/linux-gentoo/templates/make.conf.j2 → roles/linux-gentoo/templates/portage/make.conf.j2

@ -8,14 +8,16 @@ FEATURES="{{ gentoo.portage.features | join(' ') }}" @@ -8,14 +8,16 @@ FEATURES="{{ gentoo.portage.features | join(' ') }}"
#------------------------------------
# Настройки компилятора
#------------------------------------
#AR="gcc-ar"
#NM="gcc-nm"
#RANLIB="gcc-ranlib"
# Дополнительные параметры, передаваемые компилятору. Флаг '-march=native'
# оптимизирует программы под ваше оборудование.
LDFLAGS="${LDFLAGS} {{ gentoo.portage.ldflags | join(' ') }}"
CFLAGS="{{ gentoo.portage.cflags | join(' ') }}"
CXXFLAGS="${CFLAGS}"
#----------------------------------
# Ускорение компиляции
#----------------------------------
MAKEOPTS="{{ gentoo.portage.buildopts.common | join(' ') }} {{ gentoo.portage.buildopts.make | join(' ') }}"
# Количество пакетов для одновременной сборки.
@ -28,7 +30,9 @@ EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} {{ gentoo.portage.buildopts.common | @@ -28,7 +30,9 @@ EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} {{ gentoo.portage.buildopts.common |
#----------------------------------
ABI_X86="{{ gentoo.architectures | join(' ') }}"
QEMU_SOFTMMU_TARGETS="i386 x86_64"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
QEMU_SOFTMMU_TARGETS="i386 x86_64"
QEMU_USER_TARGETS="i386 x86_64"
RUBY_TARGETS="{{ gentoo.interpretators.ruby | join(' ') }}"
@ -37,6 +41,8 @@ RUBY_SINGLE_TARGETS="ruby27" @@ -37,6 +41,8 @@ RUBY_SINGLE_TARGETS="ruby27"
PYTHON_TARGETS="{{ gentoo.interpretators.python | join(' ') }}"
PYTHON_SINGLE_TARGET="{{ gentoo.interpretators.python_single }}"
LUA_SINGLE_TARGET="{{ gentoo.interpretators.lua_single }}"
#----------------------------------
# Локализация
#----------------------------------
@ -50,6 +56,15 @@ INPUT_DEVICES="{{ gentoo.devices.input | join(' ') }}" @@ -50,6 +56,15 @@ INPUT_DEVICES="{{ gentoo.devices.input | join(' ') }}"
VIDEO_CARDS="{{ gentoo.devices.video | join(' ') }}"
#----------------------------------
# Прочее
#----------------------------------
CURL_SSL="openssl"
GRUB_PLATFORMS="efi-64 pc"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save"
#----------------------------------
# USE-Флаги
#----------------------------------
USE_ENABLED="{{ gentoo.use.enabled | join(' ') }}"

3
roles/linux-gentoo/templates/portage/package.env/package-list.j2 vendored

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
{% for package in item.packages %}
{{ package }} {{ item.template }}
{% endfor %}

317
roles/linux-gentoo/templates/rc.conf.j2

@ -0,0 +1,317 @@ @@ -0,0 +1,317 @@
# Global OpenRC configuration settings
#
# {{ ansible_managed }}
#
# Set to "YES" if you want the rc system to try and start services
# in parallel for a slight speed improvement. When running in parallel we
# prefix the service output with its name as the output will get
# jumbled up.
# WARNING: whilst we have improved parallel, it can still potentially lock
# the boot process. Don't file bugs about this unless you can supply
# patches that fix it without breaking other things!
rc_parallel="YES"
# Set rc_interactive to "YES" and you'll be able to press the I key during
# boot so you can choose to start specific services. Set to "NO" to disable
# this feature. This feature is automatically disabled if rc_parallel is
# set to YES.
#rc_interactive="YES"
# If we need to drop to a shell, you can specify it here.
# If not specified we use $SHELL, otherwise the one specified in /etc/passwd,
# otherwise /bin/sh
# Linux users could specify /sbin/sulogin
#rc_shell=/bin/sh
# Do we allow any started service in the runlevel to satisfy the dependency
# or do we want all of them regardless of state? For example, if net.eth0
# and net.eth1 are in the default runlevel then with rc_depend_strict="NO"
# both will be started, but services that depend on 'net' will work if either
# one comes up. With rc_depend_strict="YES" we would require them both to
# come up.
#rc_depend_strict="YES"
# rc_hotplug controls which services we allow to be hotplugged.
# A hotplugged service is one started by a dynamic dev manager when a matching
# hardware device is found.
# Hotplugged services appear in the "hotplugged" runlevel.
# If rc_hotplug is set to any value, we compare the name of this service
# to every pattern in the value, from left to right, and we allow the
# service to be hotplugged if it matches a pattern, or if it matches no
# patterns. Patterns can include shell wildcards.
# To disable services from being hotplugged, prefix patterns with "!".
#If rc_hotplug is not set or is empty, all hotplugging is disabled.
# Example - rc_hotplug="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be hotplugged.
# Example - rc_hotplug="!net.*"
# This allows services that do not match "net.*" to be hotplugged.
# rc_logger launches a logging daemon to log the entire rc process to
# /var/log/rc.log
# NOTE: Linux systems require the devfs service to be started before
# logging can take place and as such cannot log the sysinit runlevel.
#rc_logger="NO"
# Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log
#rc_log_path="/var/log/rc.log"
# If you want verbose output for OpenRC, set this to yes. If you want
# verbose output for service foo only, set it to yes in /etc/conf.d/foo.
#rc_verbose=no
# By default we filter the environment for our running scripts. To allow other
# variables through, add them here. Use a * to allow all variables through.
#rc_env_allow="VAR1 VAR2"
# By default we assume that all daemons will start correctly.
# However, some do not - a classic example is that they fork and return 0 AND
# then child barfs on a configuration error. Or the daemon has a bug and the
# child crashes. You can set the number of milliseconds start-stop-daemon
# waits to check that the daemon is still running after starting here.
# The default is 0 - no checking.
#rc_start_wait=100
# rc_nostop is a list of services which will not stop when changing runlevels.
# This still allows the service itself to be stopped when called directly.
#rc_nostop=""
# rc will attempt to start crashed services by default.
# However, it will not stop them by default as that could bring down other
# critical services.
#rc_crashed_stop=NO
#rc_crashed_start=YES
# Set rc_nocolor to yes if you do not want colors displayed in OpenRC
# output.
#rc_nocolor=NO
##############################################################################
# MISC CONFIGURATION VARIABLES
# There variables are shared between many init scripts
# Set unicode to YES to turn on unicode support for keyboards and screens.
unicode="YES"
# This is how long fuser should wait for a remote server to respond. The
# default is 60 seconds, but it can be adjusted here.
#rc_fuser_timeout=60
# Below is the default list of network fstypes.
#
# afs ceph cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre ncpfs
# nfs nfs4 ocfs2 shfs smbfs
#
# If you would like to add to this list, you can do so by adding your
# own fstypes to the following variable.
#extra_net_fs_list=""
##############################################################################
# SERVICE CONFIGURATION VARIABLES
# These variables are documented here, but should be configured in
# /etc/conf.d/foo for service foo and NOT enabled here unless you
# really want them to work on a global basis.
# If your service has characters in its name which are not legal in
# shell variable names and you configure the variables for it in this
# file, those characters should be replaced with underscores in the
# variable names as shown below.
# Some daemons are started and stopped via start-stop-daemon.
# We can set some things on a per service basis, like the nicelevel.
#SSD_NICELEVEL="-19"
# Or the ionice level. The format is class[:data] , just like the
# --ionice start-stop-daemon parameter.
#SSD_IONICELEVEL="2:2"
# Pass ulimit parameters
# If you are using bash in POSIX mode for your shell, note that the
# ulimit command uses a block size of 512 bytes for the -c and -f
# options
#rc_ulimit="-u 30"
# It's possible to define extra dependencies for services like so
#rc_config="/etc/foo"
#rc_need="openvpn"
#rc_use="net.eth0"
#rc_after="clock"
#rc_before="local"
#rc_provide="!net"
# You can also enable the above commands here for each service. Below is an
# example for service foo.
#rc_foo_config="/etc/foo"
#rc_foo_need="openvpn"
#rc_foo_after="clock"
# Below is an example for service foo-bar. Note that the '-' is illegal
# in a shell variable name, so we convert it to an underscore.
# example for service foo-bar.
#rc_foo_bar_config="/etc/foo-bar"
#rc_foo_bar_need="openvpn"
#rc_foo_bar_after="clock"
# You can also remove dependencies.
# This is mainly used for saying which services do NOT provide net.
#rc_net_tap0_provide="!net"
# This is the subsystem type.
# It is used to match against keywords set by the keyword call in the
# depend function of service scripts.
#
# It should be set to the value representing the environment this file is
# PRESENTLY in, not the virtualization the environment is capable of.
# If it is commented out, automatic detection will be used.
#
# The list below shows all possible settings as well as the host
# operating systems where they can be used and autodetected.
#
# "" - nothing special
# "docker" - Docker container manager (Linux)
# "jail" - Jail (DragonflyBSD or FreeBSD)
# "lxc" - Linux Containers
# "openvz" - Linux OpenVZ
# "prefix" - Prefix
# "rkt" - CoreOS container management system (Linux)
# "subhurd" - Hurd subhurds (to be checked)
# "systemd-nspawn" - Container created by systemd-nspawn (Linux)
# "uml" - Usermode Linux
# "vserver" - Linux vserver
# "xen0" - Xen0 Domain (Linux and NetBSD)
# "xenU" - XenU Domain (Linux and NetBSD)
#rc_sys=""
# if you use openrc-init, which is currently only available on Linux,
# this is the default runlevel to activate after "sysinit" and "boot"
# when booting.
#rc_default_runlevel="default"
# on Linux and Hurd, this is the number of ttys allocated for logins
# It is used in the consolefont, keymaps, numlock and termencoding
# service scripts.
rc_tty_number=12
##############################################################################
# LINUX CGROUPS RESOURCE MANAGEMENT
# This sets the mode used to mount cgroups.
# "hybrid" mounts cgroups version 2 on /sys/fs/cgroup/unified and
# cgroups version 1 on /sys/fs/cgroup.
# "legacy" mounts cgroups version 1 on /sys/fs/cgroup
# "unified" mounts cgroups version 2 on /sys/fs/cgroup
#rc_cgroup_mode="hybrid"
# This is a list of controllers which should be enabled for cgroups version 2.
# If hybrid mode is being used, controllers listed here will not be
# available for cgroups version 1.
# This is a global setting.
#rc_cgroup_controllers=""
# This variable contains the cgroups version 2 settings for your services.
# If this is set in this file, the settings will apply to all services.
# If you want different settings for each service, place the settings in
# /etc/conf.d/foo for service foo.
# The format is to specify the setting and value followed by a newline.
# Multiple settings and values can be specified.
# For example, you would use this to set the maximum memory and maximum
# number of pids for a service.
#rc_cgroup_settings="
#memory.max 10485760
#pids.max max
#"
#
# For more information about the adjustments that can be made with
# cgroups version 2, see Documentation/cgroups-v2.txt in the linux kernel
# source tree.
#rc_cgroup_settings=""
# This switch controls whether or not cgroups version 1 controllers are
# individually mounted under
# /sys/fs/cgroup in hybrid or legacy mode.
#rc_controller_cgroups="YES"
# The following setting turns on the memory.use_hierarchy setting in the
# root memory cgroup for cgroups v1.
# It must be set to yes in this file if you want this functionality.
#rc_cgroup_memory_use_hierarchy="NO"
# The following settings allow you to set up values for the cgroups version 1
# controllers for your services.
# They can be set in this file;, however, if you do this, the settings
# will apply to all of your services.
# If you want different settings for each service, place the settings in
# /etc/conf.d/foo for service foo.
# The format is to specify the names of the settings followed by their
# values. Each variable can hold multiple settings.
# For example, you would use this to set the cpu.shares setting in the
# cpu controller to 512 for your service.
# rc_cgroup_cpu="
# cpu.shares 512
# "
#
# For more information about the adjustments that can be made with
# cgroups version 1, see Documentation/cgroups-v1/* in the linux kernel
# source tree.
# Set the blkio controller settings for this service.
#rc_cgroup_blkio=""
# Set the cpu controller settings for this service.
#rc_cgroup_cpu=""
# Add this service to the cpuacct controller (any value means yes).
#rc_cgroup_cpuacct=""
# Set the cpuset controller settings for this service.
#rc_cgroup_cpuset=""
# Set the devices controller settings for this service.
#rc_cgroup_devices=""
# Set the hugetlb controller settings for this service.
#rc_cgroup_hugetlb=""
# Set the memory controller settings for this service.
#rc_cgroup_memory=""
# Set the net_cls controller settings for this service.
#rc_cgroup_net_cls=""
# Set the net_prio controller settings for this service.
#rc_cgroup_net_prio=""
# Set the pids controller settings for this service.
#rc_cgroup_pids=""
# Set this to YES if you want all of the processes in a service's cgroup
# killed when the service is stopped or restarted.
# Be aware that setting this to yes means all of a service's
# child processes will be killed. Keep this in mind if you set this to
# yes here instead of for the individual services in
# /etc/conf.d/<service>.
# To perform this cleanup manually for a stopped service, you can
# execute cgroup_cleanup with /etc/init.d/<service> cgroup_cleanup or
# rc-service <service> cgroup_cleanup.
# The process followed in this cleanup is the following:
# 1. send stopsig (sigterm if it isn't set) to all processes left in the
# cgroup immediately followed by sigcont.
# 2. Send sighup to all processes in the cgroup if rc_send_sighup is
# yes.
# 3. delay for rc_timeout_stopsec seconds.
# 4. send sigkill to all processes in the cgroup unless disabled by
# setting rc_send_sigkill to no.
# rc_cgroup_cleanup="NO"
# If this is yes, we will send sighup to the processes in the cgroup
# immediately after stopsig and sigcont.
#rc_send_sighup="NO"
# This is the amount of time in seconds that we delay after sending sigcont
# and optionally sighup, before we optionally send sigkill to all
# processes in the # cgroup.
# The default is 90 seconds.
#rc_timeout_stopsec="90"
# If this is set to no, we do not send sigkill to all processes in the
# cgroup.
#rc_send_sigkill="YES"

10
roles/linux-gentoo/templates/savedconfig/sys-kernel/linux-firmware

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
#
# $ lspci -k
#
# https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
#
iwlwifi-Qu-b0-hr-b0-48.ucode
iwlwifi-Qu-b0-jf-b0-48.ucode
iwlwifi-Qu-c0-hr-b0-48.ucode
iwlwifi-Qu-c0-jf-b0-48.ucode

104
roles/linux-gentoo/templates/xorg/xorg.conf.default.j2

@ -0,0 +1,104 @@ @@ -0,0 +1,104 @@
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Module"
Load "dri"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "int10"
Load "vbe"
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extension
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "eDP1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "Primary" "true"
Option "PreferredMode" "1920x1080"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "DP1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "Below" "eDP1"
Option "PreferredMode" "1920x515"
Option "DPMS"
EndSection
Section "Device"
Identifier "Card0"
Driver "intel"
# Option "DRI" "2"
Option "DRI" "False"
BusID "PCI:0:2:0"
#Screen 0
EndSection
Section "Device"
Identifier "Card1"
Driver "intel"
#Driver "nouveau"
BusID "PCI:2:0:0"
#BusID "PCI:0:2:0"
#Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "eDP1"
DefaultDepth 24
#Option "AutoServerLayout" "on"
#Option "AccelMethod" "sna"
Option "TearFree" "on"
Option "eDP1" "eDP1"
Option "ZaphodHeads" "eDP1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "DP1"
DefaultDepth 24
#Option "AutoServerLayout" "on"
#Option "AccelMethod" "sna"
Option "TearFree" "on"
Option "DP1" "DP1"
Option "ZaphodHeads" "DP1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x515"
EndSubSection
EndSection

161
roles/linux-gentoo/templates/xorg/xorg.conf.j2

@ -1,104 +1,117 @@ @@ -1,104 +1,117 @@
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "0"
EndSection
Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "dri"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "int10"
Load "vbe"
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extension
{% if driver is defined and driver == "nvidia" %}
Load "glxserver_nvidia"
{% endif %}
Load "dri"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "int10"
Load "vbe"
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extension
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "eDP1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "Primary" "true"
Option "PreferredMode" "1920x1080"
Option "DPMS"
Identifier "eDP1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "Primary" "true"
Option "PreferredMode" "1920x1080"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "DP1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "Below" "eDP1"
Option "PreferredMode" "1920x515"
Option "DPMS"
Identifier "DP1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "Below" "eDP1"
Option "PreferredMode" "1920x515"
Option "DPMS"
EndSection
Section "Device"
Identifier "Card0"
Driver "intel"
# Option "DRI" "2"
Option "DRI" "False"
BusID "PCI:0:2:0"
#Screen 0
Identifier "Card0"
Driver "intel"
# Option "DRI" "2"
Option "DRI" "False"
BusID "PCI:0:2:0"
#Screen 0
EndSection
Section "Device"
Identifier "Card1"
Driver "intel"
#Driver "nouveau"
BusID "PCI:2:0:0"
#BusID "PCI:0:2:0"
#Screen 1
Identifier "Card1"
Driver "intel"
#Driver "nouveau"
BusID "PCI:2:0:0"
#BusID "PCI:0:2:0"
#Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "eDP1"
DefaultDepth 24
#Option "AutoServerLayout" "on"
#Option "AccelMethod" "sna"
Option "TearFree" "on"
Option "eDP1" "eDP1"
Option "ZaphodHeads" "eDP1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1080"
EndSubSection
Identifier "Screen0"
Device "Card0"
Monitor "eDP1"
DefaultDepth 24
#Option "AutoServerLayout" "on"
#Option "AccelMethod" "sna"
Option "TearFree" "on"
Option "eDP1" "eDP1"
Option "ZaphodHeads" "eDP1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "DP1"
DefaultDepth 24
#Option "AutoServerLayout" "on"
#Option "AccelMethod" "sna"
Option "TearFree" "on"
Option "DP1" "DP1"
Option "ZaphodHeads" "DP1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x515"
EndSubSection
Identifier "Screen1"
Device "Card1"
Monitor "DP1"
DefaultDepth 24
#Option "AutoServerLayout" "on"
#Option "AccelMethod" "sna"
Option "TearFree" "on"
Option "DP1" "DP1"
Option "ZaphodHeads" "DP1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x515"
EndSubSection
EndSection

60
roles/linux-gentoo/vars/applications.yml

@ -2,30 +2,50 @@ @@ -2,30 +2,50 @@
apps:
set_name: apps
remove:
- acct-group/dhcp
- acct-user/dhcp
- app-editors/nano
- app-emulation/docker
- app-i18n/uim
- app-misc/tmux
- media-fonts/terminus-font
- media-gfx/gfxboot
- media-gfx/gfxboot-themes-calculate
- net-fs/nfs-utils
- net-misc/dhcp
- net-misc/dhcp
- net-wireless/broadcom-sta
- net-wireless/rtl8814au
- net-wireless/rtl8821ce
- net-wireless/rtl8821cu
- sys-auth/pam_update
- sys-firmware/b43-firmware
- sys-firmware/ipw2100-firmware
- sys-firmware/ipw2200-firmware
- sys-firmware/nvidia-firmware
- sys-fs/btrfs-progs
- sys-fs/cryptsetup
- sys-fs/ecryptfs-utils
- sys-fs/f2fs-tools
- sys-fs/reiserfsprogs
- sys-fs/xfsprogs
- virtual/awk
freeze:
mask:
unmask:
- media-libs/libepoxy
- app-admin/ansible-lint
- app-benchmarks/hyperfine
- sys-power/acpi_call
# - dev-python/resolvelib
# OpenMW
# - games-engines/openmw
# - dev-games/openscenegraph-openmw
# - "dev-games/recastnavigation ~amd64"
# Containers
- app-emulation/buildah
- app-emulation/libpod
- app-emulation/podman
- app-emulation/skopeo
- net-misc/cni-plugins
#- sys-fs/lvm2
@ -35,35 +55,44 @@ apps: @@ -35,35 +55,44 @@ apps:
- app-emulation/conmon
#- dev-libs/libaio
- sys-fs/fuse-overlayfs
- "sys-devel/prelink **"
- app-misc/nnn
- app-text/docx2txt
- app-text/zathura
- app-text/zathura-pdf-poppler
- dev-tcltk/tklib
- dev-haskell/stack-bin ~amd64
# - sys-apps/bat
# - dev-haskell/hlint
install:
- app-admin/ansible # https://www.ansible.com/ Automate deployment, configuration, and upgrading.
# - app-admin/ansible # https://www.ansible.com/ Automate deployment, configuration, and upgrading.
- app-admin/perl-cleaner # https://www.gentoo.org/proj/en/perl/ User land tool for cleaning up old perl installs.
- app-arch/unrar # https://www.rarlab.com/ Extract, view, and test RAR archives.
# - app-benchmarks/hyperfine # https://github.com/sharkdp/hyperfine A command-line benchmarking tool (runs other benchmarks).
- app-editors/neovim # https://neovim.io/ Ambitious Vim-fork focused on extensibility and agility.
# - app-emulation/docker # https://www.docker.com/ Pack, ship and run any application as a lightweight container.
- app-emulation/buildah # https://github.com/containers/buildah A tool that facilitates building OCI images.
- app-emulation/skopeo # https://github.com/containers/skopeo Command line utility foroperations on container images and image repositories.
- app-emulation/libpod # https://github.com/containers/libpod/ Library and podman tool for running OCI-based containers in Pods.
- app-emulation/virtualbox-bin # https://www.virtualbox.org/ Family of powerful x86 virtualization products for enterprise and home use.
- app-emulation/podman # https://github.com/containers/libpod/ Library and podman tool for running OCI-based containers in Pods.
# - app-emulation/virtualbox-bin # https://www.virtualbox.org/ Family of powerful x86 virtualization products for enterprise and home use.
- app-misc/jq # https://stedolan.github.io/jq/ Lightweight and flexible command-line JSON processor.
- app-misc/nnn # https://github.com/jarun/nnn Tiny, lightning fast, feature-packed file manager.
- app-misc/vifm # https://vifm.info/ Ncurses based file manager with vi like keybindings.
- app-misc/recoll # https://www.lesbonscomptes.com/recoll/ A personal full text search package.
- app-portage/elogv # https://github.com/gentoo/elogv Curses based utility to parse the contents of elogs created by Portage.
- app-portage/gentoolkit # https://wiki.gentoo.org/wiki/Project:Portage-Tools Collection of administration scripts for Gentoo.
- app-portage/portage-utils # https://wiki.gentoo.org/wiki/Portage-utils Small and fast Portage helper tools written in C.
- app-shells/hstr # https://github.com/dvorka/hstr Bash and zsh history suggest box.
- app-text/antiword # http://www.winfield.demon.nl/ Utility to read Word (.doc) files.
- app-text/docx2txt # https://docx2txt.sourceforge.io/ Converts Microsoft Office docx documents to equivalent text documents.
# - app-text/antiword # http://www.winfield.demon.nl/ Utility to read Word (.doc) files.
# - app-text/docx2txt # https://docx2txt.sourceforge.io/ Converts Microsoft Office docx documents to equivalent text documents.
- app-text/ghostscript-gpl # https://www.ghostscript.com/ Interpreter for PostScript and PDF.
- app-text/sdcv # https://dushistov.github.io/sdcv/ Console version of StarDict.
- app-text/tesseract # https://github.com/tesseract-ocr An OCR Engine, originally developed at HP, now open source.
- app-text/tree # http://mama.indstate.edu/users/ice/tree/ Display directories as trees (with optional color/HTML output).
- app-text/zathura # https://pwmt.org/projects/zathura/ A document viewer.
# - games-engines/openmw # https://openmw.org/ https://gitlab.com/OpenMW/openmw Open source reimplementation of TES III. Morrowind.
- dev-haskell/stack-bin # https://haskellstack.org/ The Haskell Tool Stack.
- dev-lang/tcl # https://tcl.tk TCL Programming language.
- dev-lang/tk # https://tcl.tk GUI ToolKit for TCL Programming language.
@ -77,6 +106,7 @@ apps: @@ -77,6 +106,7 @@ apps:
- media-gfx/imagemagick # https://www.imagemagick.org/ Tools and libraries to manipulate images in many formats.
- media-gfx/sxiv # https://github.com/muennich/sxiv Simple X Image Viewer.
- media-libs/exiftool # https://www.sno.phy.queensu.ca/~phil/exiftool/index.html Perl lib for reading and writing EXIF metadata.
- media-libs/libwebp # https://developers.google.com/speed/webp/download A lossy image compression format.
- media-libs/mutagen # https://github.com/quodlibet/mutagen Audio metadata tag reader and writer implemented in pure Python.
- media-sound/mpc # https://musicpd.org/clients/mpc/ A minimalist command line interface to MPD.
- media-sound/mpd # https://www.musicpd.org/ Flexible, powerful, server-side application for playing music.
@ -87,12 +117,11 @@ apps: @@ -87,12 +117,11 @@ apps:
- net-mail/fetchmail # https://www.fetchmail.info Full-featured, robust, well-documented remote-mail retrieval and forwarding utility.
- net-misc/aria2 # https://aria2.github.io Lightweight multi-protocol & multi-source command-line download utility.
- net-misc/connman # https://01.org/connman Internet connection daemon.
- sys-fs/android-file-transfer-linux # https://github.com/whoozle/android-file-transfer-linux Android File Transfer for Linux.
#- sys-fs/android-file-transfer-linux # https://github.com/whoozle/android-file-transfer-linux Android File Transfer for Linux.
- sys-fs/dfc # https://projects.gw-computing.net/projects/dfc Display graphs and colors of file system space/usage.
- sys-fs/ntfs3g # https://www.tuxera.com/community/open-source-ntfs-3g/ Read-write NTFS driver for FUSE.
- sys-power/acpi_call # https://github.com/teleshoes/acpi_call A kernel module that enables you to call ACPI methods.
# - sys-process/htop # https://hisham.hm/htop/ Improved top (interactive process viewer).
- www-client/firefox-bin # https://www.mozilla.org/ru/firefox/ Mozilla Firefox.
- x11-misc/dmenu # https://tools.suckless.org/dmenu/ Fast and lightweight dynamic menu for X.
- x11-misc/polybar # https://polybar.github.io/ A fast and easy-to-use status bar.
- x11-misc/rofi # https://github.com/davatorium/rofi A window switcher, application launcher and dmenu replacement.
@ -102,12 +131,18 @@ apps: @@ -102,12 +131,18 @@ apps:
- x11-misc/wmctrl # https://sites.google.com/site/tstyblo/wmctrl Command line tool to interact with an EWMH/NetWM compatible X Window Manager.
- x11-misc/xclip # https://github.com/astrand/xclip Command line interface to the X11 clipboard.
# - x11-misc/xdotool # https://www.semicomplete.com/projects/xdotool/ Simulate keyboard input and mouse activity, move and resize windows.
- x11-misc/xkblayout-state # https://github.com/nonpop/xkblayout-state A small program to get/set the current XKB layout.
# - x11-misc/xkblayout-stat # https://github.com/nonpop/xkblayout-state A small program to get/set the current XKB layout.
- x11-terms/st # https://st.suckless.org Simple terminal implementation for X.
- x11-wm/bspwm # https://github.com/baskerville/bspwm A tiling window manager based on binary space partitioning.
# - www-client/firefox-bin # https://www.mozilla.org/ru/firefox/ Mozilla Firefox.
- www-client/vivaldi # https://vivaldi.com A web browser which works without pulse-audio.
- www-client/w3m # https://github.com/tats/w3m Text based WWW browser, supports tables and frames.
- sys-kernel/linux-firmware # https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git Linux firmware files.
- sys-apps/ripgrep # https://github.com/BurntSushi/ripgrep Search tool like grep and The Silver Searcher.
- sys-apps/fd # https://github.com/sharkdp/fd Simple, fast and user-friendly alternative to find.
- sys-apps/preload
- sys-devel/prelink
# - sys-devel/prelink
- sys-power/acpi
# Libraries and dependencies
@ -122,6 +157,7 @@ apps: @@ -122,6 +157,7 @@ apps:
- dev-tcltk/tcllib
- dev-tcltk/tclreadline
- dev-tcltk/tkimg
- dev-tcltk/tklib
- media-fonts/sophia-nubian
- media-fonts/noto-emoji # This package is used by Joplin.app only
- net-print/cups # Required by Joplin.app
@ -132,8 +168,6 @@ apps: @@ -132,8 +168,6 @@ apps:
type: AppImage
repository: laurent22/joplin
# - sys-apps/fd # https://github.com/sharkdp/fd Simple, fast and user-friendly alternative to find. **[BIN]**
# - sys-apps/ripgrep # https://github.com/BurntSushi/ripgrep Search tool like grep and The Silver Searcher. **[BIN]**
# - app-text/odt2txt # https://github.com/dstosberg/odt2txt/ Convert OpenDocument files to plain text.
# - dev-haskell/hlint # https://github.com/ndmitchell/hlint Haskell source code suggestions. **[BIN]**
# - sys-apps/bat # https://github.com/sharkdp/bat Clone of cat(1) with syntax highlighting and Git integration. **[BIN]**

375
roles/linux-gentoo/vars/disabled-use-flags.yml

@ -0,0 +1,375 @@ @@ -0,0 +1,375 @@
use:
disabled:
# - ppp
# - gif
# - tiff
# - gphoto2 # Add digital camera support
# - libnotify
# - mplayer
# - mp3
# - gtk # Add support for x11-libs/gtk
# - v4l2 # Include Video4Linux v2 support in the build
# - webp # Add support for the WebP image format
# - aes
# - amd64
# - avi
# - dftk
# - fma3
# - fma4
# - libwww
# - lm-sensors
# - upower
# - libglvnd #Use media-libs/libglvnd for dispatch
# - id3tag #Enables ID3 tagging with id3tag library
# - openexr #Support for the OpenEXR graphics file format
# - logrotate #Use app-admin/logrotate for rotating logs rather than custom cron scripts
# - gadu #Enable the Gadu protocol handler.
# - xvid #Add support for xvid.org
# - dv #Enable support for a codec used by many camcorders
# - wimax #Add support for Wimax EAP-PEER authentication algorithm
# - xinerama #Add support for querying multi-monitor screen geometry through the Xinerama API
# - foomaticdb
# - x264 #Enable h264 encoding using x264
# - x265 #Enable h265 encoding using x265
# - imagemagick #Enable optional support for the ImageMagick or GraphicsMagick image converter
# - iconv #Enable support for the iconv character set conversion library
# - mpeg #Add libmpeg3 support to various packages
# - xv #Add in optional support for the Xvideo extension (an X API for video playback)
# - mimap
# - opencore-amr
# - padlock
# - real
# - userlocales
# - win32codecs
# - cli # Enable sample cli based on readline
# - xanim
# - smtp
# - usb
# - spell
# - dvdr
# - dvdread
# - vhosts
# - vcd
# - taglib
# - xop
# - semantic-desktop
# - css
# - ebook
# - ftp
# - hunspell
# - ipod
# - flash
# - ncurses
# - oggvorbis
# - oscar
# - faac
# - exif
# - djvu
# - fexif
# - imap # Add support for IMAP (Internet Mail Application Protocol).
# - xattr # Add support for extended attributes (filesystem-stored metadata)
# - 32bit
# - nouveau
# - a52 # Enable support for decoding ATSC A/52 streams used in DVD.
# - aac # Enable support for MPEG-4 AAC Audio.
# - acl # Add support for Access Control Lists.
# - ada
# - apparmor
# - arts
# - audacious
# - bash-completion
# - bcrypt
# - berkdb # Add support for sys-libs/db (Berkeley DB for MySQL).
# - bidi # Enable bidirectional language support.
# - blink
# - bluetooth # Enable Bluetooth Support.
# - bluray
# - boost
# - btrfs # containerd, docker: Support for BTRFS snapshot driver.
# - caps # Use Linux capabilities library to control privilege.
# - cdda # Add Compact Disk Digital Audio (Standard Audio CD) support.
# - cddb # Access cddb servers to retrieve and submit information about compact disks.
# - cdio
# - cdparanoia
# - cdrkit
# - cgi # Add CGI script support.
# - cgroups
# - chm
# - chromecast
# - chromium
# - client
# - cmus
# - consolekit
# - container-init
# - cue
# - cups # Add support for CUPS (Common Unix Printing System).
# - cvs # Enable CVS (Concurrent Versions System) integration.
# - darcs
# - dbm # Add support for generic DBM databases.
# - dbmmaker
# - dbus # Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc).
# - debug # Enable extra debug codepaths, like asserts and extra output.
# - desktop
# - device-mapper # Enable support for device-mapper from sys-fs/lvm2
# - dga # Add DGA (Direct Graphic Access) support for X.
# - directx
# - doc # Add extra documentation (API, Javadoc, etc).
# - doctool
# - dvbpsi
# - dvd # Add support for DVDs.
# - dvdnav
# - eds # Enable support for Evolution-Data-Server (EDS).
# - emacs # Add support for GNU Emacs.
# - emoji
# - epydoc
# - equalizer
# - esd
# - ethernet
# - eve
# - examples # Install examples, usually source code.
# - fax
# - ffmpeg # Enable ffmpeg/libav-based audio/video codec support.
# - flac # Add support for FLAC: Free Lossless Audio Codec.
# - foomatic
# - fortran # Add support for fortran.
# - gdbm # Add support for sys-libs/gdbm (GNU database libraries).
# - geoip # Add geoip support for country and city lookup based on IPs.
# - geoloc
# - ghostscript
# - glamor
# - gnome # Add GNOME support.
# - gnome-keyring # Add GNOME support.
# - gpg
# - gpgme
# - gpm # Add support for sys-libs/gpm (Console-based mouse driver).
# - gstreamer # Add support for media-libs/gstreamer (Streaming media).
# - gtk-doc # Add support for x11-libs/gtk+ (The GIMP Toolkit).
# - guile # Add support for the guile Scheme interpreter.
# - handbook # Enable handbooks generation for packages by KDE.
# - hangouts
# - hcache
# - ieee1394 # Enable FireWire/iLink IEEE1394 support (dv, camera, ...).
# - inifile
# - install
# - introspection # Add support for GObject based introspection.
# - ios # Enable support for Apple's iDevice with iOS operating system (iPad, iPhone, iPod, etc).
# - ipv6 # Add support for IP version 6.
# - irc
# - jabber
# - jack # Add support for the JACK Audio Connection Kit.
# - java # Add support for Java.
# - joystick # Add support for joysticks in all packages.
# - kde # Add support for software made by KDE, a free software community.
# - kerberos # Add kerberos support.
# - l2tp
# - lame # Prefer using LAME libraries for MP3 encoding support.
# - lastfm
# - latex # Add support for LaTeX (typesetting package).
# - ldap # Add LDAP support (Lightweight Directory Access Protocol).
# - libass # SRT/SSA/ASS (SubRip / SubStation Alpha) subtitle support.
# - libcaca # Add support for colored ASCII-art graphics.
# - libproxy
# - lirc # Add support for lirc (Linuxs Infra-Red Remote Control).
# - live
# - lua # Enable Lua scripting support.
# - matroska # Add support for the matroska container format (extensions .mkv, .mka and .mks).
# - mikmod # Трекерная музыка. Add libmikmod support to allow playing of SoundTracker-style music files.
# - modemmanager
# - mono # Build Mono bindings to support dotnet type stuff.
# - mp4 # Support for MP4 container format.
# - multilib # On 64bit systems, if you want to be able to compile 32bit and 64bit binaries.
# - musepack # Enable support for the musepack audio codec.
# - native-headset
# - networkmanager # Enable net-misc/networkmanager support.
# - nfs
# - ntfsdecrypt
# - ntp
# - nvidia
# - ofono
# - ofono-headset
# - ogg # Add support for the Ogg container format (commonly used by Vorbis, Theora and flac).
# - opencl # Требует драйвер nvidia.
# - openconnect
# - openvpn
# - opus # Enable Opus audio codec support.
# - orc # Use dev-lang/orc for just-in-time optimization of array operations.
# - osdmenu
# - oss # Add support for OSS (Open Sound System).
# - pam # Add support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip.
# - elogind # Enable session tracking via sys-auth/elogind.
# - pdf # Add general support for PDF (Portable Document Format), this replaces the pdflib and cpdflib flags.
# - perl # Add optional support/bindings for the Perl language.
# - pinentry
# - policykit # Enable PolicyKit authentication support.
# - portmon
# - postgres # Add support for the postgresql database.
# - postscript # Enable support for the PostScript language (often with ghostscript-gpl or libspectre).
# - pptp
# - pulseaudio # Add support for PulseAudio sound server.
# - pxe # Enables support for PXE installation.
# - python # Add optional support/bindings for the Python language.
# - qt
# - qt3support
# - qt4
# - qt4
# - qt5 # Add support for the Qt 5 application and UI framework.
# - raw # Add support for raw image formats.
# - readline # Enable support for libreadline, a GNU line-editing library that almost everyone wants.
# - reiserfs
# - rsync-verify
# - ruby # Add support/bindings for the Ruby language.
# - samba # Add support for SAMBA (Windows File and Printer sharing).
# - scanner # Add support for scanner hardware (e.g. build the sane frontend in kdegraphics).
# - screensaver
# - scrypt
# - sec
# - server
# - skins
# - smartcard # Enable smartcard support.
# - snappy # Enable support for Snappy compression (as implemented in app-arch/snappy).
# - speex # Add support for the speex audio codec (used for speech).
# - srt
# - svg # Add support for SVG (Scalable Vector Graphics).
# - systemd # Enable use of systemd-specific libraries and features like socket activation or session tracking.
# - tcl # Add support the Tcl language.
# - test # Enable dependencies and/or preparations necessary to run tests.
# - tga
# - themes
# - theora # Add support for the Theora Video Compression Codec.
# - timidity # Build with Timidity++ (MIDI sequencer) support.
# - tinfo
# - tk # Add support for Tk GUI toolkit.
# - totp
# - uchardet
# - udisks # Enable storage management support (automounting, volume monitoring, etc).
# - update_drivedb
# - upnp # Enable UPnP port mapping support.
# - v4l # Enable support for video4linux (using linux-headers or userspace libv4l libraries).
# - vaapi # Enable Video Acceleration API for hardware decoding.
# - vala # Enable bindings for dev-lang/vala.
# - vdpau # Enable the Video Decode and Presentation API for Unix acceleration interface.
# - vim
# - vmware
# - vnc # Enable VNC (remote desktop viewer) support.
# - vorbis # Add support for the OggVorbis audio codec.
# - vpnc
# - vpx
# - vulkan
# - wavpack # Add support for wavpack audio compression tools.
# - wayland # Enable dev-libs/wayland backend.
# - webkit # Add support for the WebKit HTML rendering/layout engine.
# - wispr
# - wmf # Add support for the Windows Metafile vector image format.
# - wxwidgets # Add support for wxWidgets/wxGTK GUI toolkit.
# - wxwindows
# - xa
# - xcomposite # Enable support for the Xorg composite extension.
# - xmp # Enable support for Extensible Metadata Platform (Adobe XMP).
# - xscreensaver # Add support for XScreenSaver extension.
# - zsh-completion
# - cramfs
# LANGUAGES
- l10n_am
- l10n_ar
- l10n_bg
- l10n_bn
- l10n_ca
- l10n_cs
- l10n_da
- l10n_de
- l10n_el
- l10n_en-GB
- l10n_es
- l10n_es-419
- l10n_et
- l10n_fa
- l10n_fi
- l10n_fil
- l10n_fr
- l10n_gu
- l10n_he
- l10n_hi
- l10n_hr
- l10n_hu
- l10n_id
- l10n_it
- l10n_ja
- l10n_kn
- l10n_ko
- l10n_lt
- l10n_lv
- l10n_ml
- l10n_mr
- l10n_ms
- l10n_nb
- l10n_nl
- l10n_pl
- l10n_pt-BR
- l10n_pt-PT
- l10n_ro
- l10n_sk
- l10n_sl
- l10n_sr
- l10n_sv
- l10n_sw
- l10n_ta
- l10n_te
- l10n_th
- l10n_tr
- l10n_uk
- l10n_vi
- l10n_zh-CN
- l10n_zh-TW
- linguas_am
- linguas_ar
- linguas_bg
- linguas_bn
- linguas_ca
- linguas_cs
- linguas_da
- linguas_de
- linguas_el
- linguas_en_GB
- linguas_es
- linguas_es_LA
- linguas_et
- linguas_fa
- linguas_fi
- linguas_fil
- linguas_fr
- linguas_gu
- linguas_he
- linguas_hi
- linguas_hr
- linguas_hu
- linguas_id
- linguas_it
- linguas_ja
- linguas_kn
- linguas_ko
- linguas_lt
- linguas_lv
- linguas_ml
- linguas_mr
- linguas_ms
- linguas_nb
- linguas_nl
- linguas_pl
- linguas_pt_BR
- linguas_pt_PT
- linguas_ro
- linguas_sk
- linguas_sl
- linguas_sr
- linguas_sv
- linguas_sw
- linguas_ta
- linguas_te
- linguas_th
- linguas_tr
- linguas_uk
- linguas_vi
- linguas_zh_CN
- linguas_zh_TW

5
roles/linux-gentoo/vars/grub.yml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
iso:
directory: /boot/iso
images:
- url: https://ftp.halifax.rwth-aachen.de/osdn/storage/g/s/sy/systemrescuecd/releases/7.00/systemrescue-7.00-amd64.iso
filename: /boot/iso/systemrescuecd.iso

504
roles/linux-gentoo/vars/portage.yml

@ -7,11 +7,12 @@ gentoo: @@ -7,11 +7,12 @@ gentoo:
- en
interpretators:
python:
- python3_7
python_single: python3_7
- python3_9
python_single: python3_9
ruby:
- ruby25
- ruby27
lua_single: lua5-3
devices:
input:
- libinput
@ -22,11 +23,18 @@ gentoo: @@ -22,11 +23,18 @@ gentoo:
- -getbinpkg
- parallel-fetch
- metadata-transfer
ldflags:
- -O2
# - -flto={{ ansible_processor_vcpus }}
cflags:
- -O2 # Оптимизация
- -march=native # Сборка под текущую архитектуру
- -pipe # Передача промежуточных данных по конвееру
- -g0 # Отключение отладочной информации
# - -flto={{ ansible_processor_vcpus }}
# - -fuse-linker-plugin
# - -fno-fat-lto-objects
# - -fno-plt
#- --param l2-cache-size=256 # L2 Cache в килобайтах (lscpu | grep 'L2 cache' | cut -d : -f 2- | grep -o -E '[0-9]+'
#- -fomit-frame-pointer # Доступ к переменным через стек
#- -fgraphite
@ -58,380 +66,192 @@ gentoo: @@ -58,380 +66,192 @@ gentoo:
cache_method: sqlite
use:
env: []
# - template: no-lto.conf
# packages:
# - app-text/poppler
config:
- x11-misc/dmenu
- x11-misc/tabbed
- x11-terms/st
- sys-kernel/linux-firmware
custom:
######## python 2.7 only ########
- sys-apps/calculate-utils minimal gpg -backup -install -console python_targets_python2_7
- sys-apps/file python python_targets_python2_7
- "app-emulation/virtualbox-bin PYTHON_TARGETS: python2_7"
# - "app-emulation/virtualbox-bin PYTHON_TARGETS: python2_7"
# - "app-emulation/virtualbox-modules PYTHON_TARGETS: python2_7"
- "dev-python/setuptools PYTHON_TARGETS: python2_7"
- dev-python/setuptools python_targets_python3_9
- dev-python/setuptools-python2 python_targets_python2_7
- dev-python/certifi-python2 python_targets_python2_7
- dev-python/cython-python2 python_targets_python2_7
- "dev-python/soaplib PYTHON_TARGETS: python2_7"
- "dev-python/pytz PYTHON_TARGETS: python2_7"
- "dev-python/pyxml PYTHON_TARGETS: python2_7"
- "dev-python/pexpect-python2 PYTHON_TARGETS: python2_7"
- "dev-python/passlib PYTHON_TARGETS: python2_7"
######## python 2.7 and 3.7 ########
- dev-python/lxml-python2 python_targets_python2_7 python_targets_python3_7
# - dev-python/lxml python_targets_python2_7 python_targets_python3_7
- dev-python/certifi python_targets_python2_7 python_targets_python3_7
- dev-python/cython python_targets_python2_7 python_targets_python3_7
- dev-python/pexpect python_targets_python2_7 python_targets_python3_7
- dev-lua/lpeg lua_targets_luajit
- dev-lua/mpack lua_targets_luajit
- "dev-lua/luv -lua_single_target_lua5-3 lua_single_target_luajit LUA_SINGLE_TARGET: luajit"
- media-libs/libepoxy X
######## python 2.7 and 3.10 ########
- dev-python/lxml-python2 python_targets_python2_7 python_targets_python3_9
# - dev-python/lxml python_targets_python2_7 python_targets_python3_9
- dev-python/certifi python_targets_python3_9
- dev-python/cython python_targets_python3_9
- dev-python/pexpect python_targets_python2_7 python_targets_python3_9
- dev-python/ptyprocess-python2 python_targets_python2_7
- dev-python/pytz-python2 python_targets_python2_7
- app-shells/bash readline
- app-editors/neovim -nvimpager
- dev-lang/ghc binary
- sys-apps/iproute2 -minimal
- x11-base/xorg-server -minimal
# - app-i18n/uim X
# - dev-libs/glib dbus
# - x11-misc/polybar mpd
- app-admin/logrotate cron
- app-arch/lbzip2 symlink
- app-arch/pigz symlink
- app-editors/neovim -nvimpager luajit tui lua_single_target_luajit
- app-emulation/podman fuse rootless
- app-misc/recoll -spell -inotify
- app-misc/vifm X extended-keys magic
- app-portage/eix sqlite
- app-shells/bash readline
- app-text/ghostscript-gpl -gtk
- app-text/poppler jpeg2k utils # `pdftotext' is required by recoll.
- app-text/tessdata_fast osd
- app-text/tesseract tiff
- app-text/zathura magic
- dev-db/sqlite readline
- dev-lang/python sqlite
- dev-lang/ghc binary
- dev-lang/python sqlite xml ncurses # Required by calculate-utils.
- dev-libs/boost icu
- dev-libs/glib mime
- dev-libs/gmp asm
- dev-libs/libpcre jit
- dev-libs/libpcre2 jit
- dev-libs/libsodium asm urandom
- dev-libs/libxml2 icu python
- dev-libs/nettle gmp
- dev-libs/openssl asm
- dev-libs/tinyxml stl # openmw
- dev-libs/xapian chert
- dev-python/ipython -smp
- dev-python/netaddr -cli
- dev-libs/libxml2 python
- dev-python/pyyaml libyaml
- dev-vcs/git blksha1 curl pcre-jit webdav
- dev-games/openscenegraph-openmw ffmpeg svg
- games-engines/openmw osg-fork
- mail-client/mutt -sasl -ssl -smpt
- media-fonts/corefonts X
- media-gfx/geeqie exif
- media-gfx/graphviz -gtk tcl # Tcl/Tk Img package
- media-libs/mesa -lm-sensors -d3d9
- media-libs/libsdl2 -haptic # TODO: Compilation fails on v2.0.12-r1
- media-sound/mpd -curl -fifo -expat -lame -mikmod -network -upnp -icu -inotify
- media-video/mpv cli -egl -iconv -jpeg -libmpv -sdl -xv
- media-video/ffmpeg -amr -jpeg2k -libaom -network -openssl -postproc -sdl -webp
- sys-kernel/calculate-sources desktop #-minimal
- media-gfx/imagemagick X
- media-gfx/sxiv exif gif
- media-libs/freetype X cleartype_hinting adobe-cff harfbuzz
- media-libs/harfbuzz glib
- media-libs/imlib2 X gif
- media-libs/leptonica tiff
- media-libs/libass fontconfig
- media-libs/libepoxy egl
- media-libs/libglvnd X
- media-libs/libsdl alsa sound opengl video # alsa => sound, opengl => video
- media-libs/libsdl2 -haptic X alsa sound opengl video joystick # alsa => sound, opengl => video, joystick => openmw
- media-libs/mesa -lm-sensors -d3d9 classic gbm
- media-sound/alsa-utils ncurses
- media-sound/mpd -curl -fifo -expat -lame -mikmod -network -upnp -icu -inotify id3tag mad audiofile
- media-sound/ncmpcpp taglib
- media-video/ffmpeg -amr -jpeg2k -libaom -network -openssl -postproc -sdl -webp gpl gnutls encode cpudetection chromium # chromium for vivaldi
- media-video/mpv X cli -egl -iconv -jpeg -libmpv -sdl -xv
- net-firewall/iptables ipv6 # Required by libpod/podman
- net-misc/aria2 bittorrent gnutls libxml2 nettle
- net-misc/connman iptables wifi
- net-misc/curl http2 openssl progress-meter
- net-misc/iputils filecaps
- net-print/cups -X
- net-wireless/wpa_supplicant fils hs2-0 mbo mesh dbus # Required by connman
- sys-apps/busybox static
- sys-apps/coreutils xattr # Required by calculate-utils
- sys-apps/debianutils installkernel
- sys-apps/ethtool netlink
- sys-apps/help2man -nls # Required by calculate-utils
- sys-apps/hwids usb net pci udev
- sys-apps/iproute2 -minimal iptables
- sys-apps/kmod lzma
- sys-apps/man-db manpager -nls
- sys-apps/net-tools hostname
- sys-apps/openrc netifrc
- sys-apps/pciutils kmod
- sys-apps/portage native-extensions -python_targets_python3_8
- sys-apps/shadow su -cracklib
- sys-apps/texinfo standalone
- sys-apps/util-linux logger
- sys-boot/grub fonts mount
- sys-devel/binutils gold
- sys-devel/gcc graphite pch ssp pgo -multilib
- sys-fs/cryptsetup openssl
- sys-fs/eudev hwdb kmod
- sys-kernel/calculate-sources grub desktop symlink vmlinuz -minimal
- sys-kernel/linux-firmware redistributable
- sys-libs/glibc multiarch nscd ssp -multilib
- sys-process/procps kill modern-top ncurses # Build programs that use ncurses: top, slabtop, watch.
- www-client/vivaldi proprietary-codecs
- www-client/w3m imlib # Add support for imlib, an image loading and rendering library.
- x11-base/xorg-server -minimal xorg suid
- x11-drivers/xf86-video-intel dri sna uddev uxa xvmc # Default USE flags.
- x11-drivers/nvidia-drivers X driver tools
- x11-libs/cairo svg # Required by gtk+
- x11-libs/gtk+ X
- x11-libs/libxcb X xkb
- x11-libs/pango X
- x11-misc/dmenu savedconfig
- x11-misc/tabbed savedconfig
- x11-misc/xmobar -alsa -dbus #mpd
- x11-misc/dmenu savedconfig
# - x11-misc/polybar mpd
- x11-terms/st savedconfig
- x11-wm/xmonad -default-term
- net-wireless/wpa_supplicant dbus # Required by connman
# - dev-libs/glib dbus
- www-client/w3m imlib # Add support for imlib, an image loading and rendering library.
- sys-apps/coreutils xattr # Required by calculate-utils
# - sys-apps/help2man -nls # Required by calculate-utils
- net-firewall/iptables ipv6 # Required by libpod/podman
enabled:
# - lto # Build with link time optimization (LTO).
# - pgo # Build GCC using Profile Guided Optimization (PGO).
- acpi # Add support for Advanced Configuration and Power Interface.
- alsa # Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture).
- bzip2 # Use the bzlib compression library.
- cairo # Enable support for the cairo graphics library.
- cracklib # Support for cracklib strong password checking.
- crypt # Add support for encryption -- using mcrypt or gpg where applicable.
- cxx # Build support for C++ (bindings, extra libraries, code generation, ...).
- dri # Enable direct rendering: used for accelerated 3D and some 2D, like DMA.
- gd # Add support for media-libs/gd (to generate graphics on the fly).
- idn # Enable support for Internationalized Domain Names.
- jpeg # Add JPEG image support.
- libglvnd # Use media-libs/libglvnd for dispatch.
- lz4 # Enable support for lz4 compression (as implemented in app-arch/lz4).
- lzo # Enable support for lzo compression.
- minimal # Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features).
- nls # Add Native Language Support (using gettext - GNU locale utilities).
- nptl # Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually).
- opengl # Add support for OpenGL (3D graphics).
- openmp # Build support for the OpenMP (support parallel computing).
- pcre # Add support for Perl Compatible Regular Expressions.
- png # Add support for libpng (PNG images).
- sdl # Add support for Simple Direct Layer (media library).
- seccomp # Enable seccomp (secure computing mode) to perform system call filtering at runtime to increase security of programs.
- smp # Enable support for multiprocessors or multicore systems.
- split-usr # Enable behavior to support maintaining /bin, /lib*, /sbin and /usr/sbin separately from /usr/bin and /usr/lib*.
- ssl # Add support for SSL/TLS connections (Secure Socket Layer / Transport Layer Security).
- tcpd # Add support for TCP wrappers.
- threads # Add threads support for various packages. Usually pthreads.
- truetype # Add support for FreeType and/or FreeType2 fonts.
- udev # Enable virtual/udev integration (device discovery, power and storage device support, etc).
- unicode # Add support for Unicode.
- xft # Build with support for XFT font renderer (x11-libs/libXft).
# - nls # Add Native Language Support (using gettext - GNU locale utilities).
#- glibc-omitfp # Нужен для CFLAGS="-fomit-frame-pointer"
#- graphite
#- xinerama
- xvmc # Enables X-Video Motion Compensation support.
- zlib # Add support for zlib (de)compression.
- zstd # Enable support for ZSTD compression.
disabled:
- imap # Add support for IMAP (Internet Mail Application Protocol).
- xattr # Add support for extended attributes (filesystem-stored metadata)
- 32bit
- nouveau
- a52 # Enable support for decoding ATSC A/52 streams used in DVD.
- aac # Enable support for MPEG-4 AAC Audio.
- acl # Add support for Access Control Lists.
- ada
- apparmor
- arts
- audacious
- bash-completion
- bcrypt
- berkdb # Add support for sys-libs/db (Berkeley DB for MySQL).
- bidi # Enable bidirectional language support.
- blink
- bluetooth # Enable Bluetooth Support.
- bluray
- boost
- btrfs # containerd, docker: Support for BTRFS snapshot driver.
- caps # Use Linux capabilities library to control privilege.
- cdda # Add Compact Disk Digital Audio (Standard Audio CD) support.
- cddb # Access cddb servers to retrieve and submit information about compact disks.
- cdio
- cdparanoia
- cdrkit
- cgi # Add CGI script support.
- cgroups
- chm
- chromecast
- chromium
- client
- cmus
- consolekit
- container-init
- cue
- cups # Add support for CUPS (Common Unix Printing System).
- cvs # Enable CVS (Concurrent Versions System) integration.
- darcs
- dbm # Add support for generic DBM databases.
- dbmmaker
- dbus # Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc).
- debug # Enable extra debug codepaths, like asserts and extra output.
- desktop
- device-mapper # Enable support for device-mapper from sys-fs/lvm2
- dga # Add DGA (Direct Graphic Access) support for X.
- directx
- doc # Add extra documentation (API, Javadoc, etc).
- doctool
- dvbpsi
- dvd # Add support for DVDs.
- dvdnav
- eds # Enable support for Evolution-Data-Server (EDS).
- emacs # Add support for GNU Emacs.
- emoji
- epydoc
- equalizer
- esd
- ethernet
- eve
- examples # Install examples, usually source code.
- fax
- ffmpeg # Enable ffmpeg/libav-based audio/video codec support.
- flac # Add support for FLAC: Free Lossless Audio Codec.
- foomatic
- fortran # Add support for fortran.
- gdbm # Add support for sys-libs/gdbm (GNU database libraries).
- geoip # Add geoip support for country and city lookup based on IPs.
- geoloc
- ghostscript
- glamor
- gnome # Add GNOME support.
- gnome-keyring # Add GNOME support.
- gpg
- gpgme
- gpm # Add support for sys-libs/gpm (Console-based mouse driver).
- gstreamer # Add support for media-libs/gstreamer (Streaming media).
- gtk-doc # Add support for x11-libs/gtk+ (The GIMP Toolkit).
- guile # Add support for the guile Scheme interpreter.
- handbook # Enable handbooks generation for packages by KDE.
- hangouts
- hcache
- ieee1394 # Enable FireWire/iLink IEEE1394 support (dv, camera, ...).
- inifile
- install
- introspection # Add support for GObject based introspection.
- ios # Enable support for Apple's iDevice with iOS operating system (iPad, iPhone, iPod, etc).
- ipv6 # Add support for IP version 6.
- irc
- jabber
- jack # Add support for the JACK Audio Connection Kit.
- java # Add support for Java.
- joystick # Add support for joysticks in all packages.
- kde # Add support for software made by KDE, a free software community.
- kerberos # Add kerberos support.
- l2tp
- lame # Prefer using LAME libraries for MP3 encoding support.
- lastfm
- latex # Add support for LaTeX (typesetting package).
- ldap # Add LDAP support (Lightweight Directory Access Protocol).
- libass # SRT/SSA/ASS (SubRip / SubStation Alpha) subtitle support.
- libcaca # Add support for colored ASCII-art graphics.
- libproxy
- lirc # Add support for lirc (Linuxs Infra-Red Remote Control).
- live
- lua # Enable Lua scripting support.
- matroska # Add support for the matroska container format (extensions .mkv, .mka and .mks).
- mikmod # Трекерная музыка. Add libmikmod support to allow playing of SoundTracker-style music files.
- modemmanager
- mono # Build Mono bindings to support dotnet type stuff.
- mp4 # Support for MP4 container format.
- multilib # On 64bit systems, if you want to be able to compile 32bit and 64bit binaries.
- musepack # Enable support for the musepack audio codec.
- native-headset
- networkmanager # Enable net-misc/networkmanager support.
- nfs
- ntfsdecrypt
- ntp
- nvidia
- ofono
- ofono-headset
- ogg # Add support for the Ogg container format (commonly used by Vorbis, Theora and flac).
- opencl # Требует драйвер nvidia.
- openconnect
- openvpn
- opus # Enable Opus audio codec support.
- orc # Use dev-lang/orc for just-in-time optimization of array operations.
- osdmenu
- oss # Add support for OSS (Open Sound System).
- pam # Add support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip.
- elogind # Enable session tracking via sys-auth/elogind.
- pdf # Add general support for PDF (Portable Document Format), this replaces the pdflib and cpdflib flags.
- perl # Add optional support/bindings for the Perl language.
- pinentry
- policykit # Enable PolicyKit authentication support.
- portmon
- postgres # Add support for the postgresql database.
- postscript # Enable support for the PostScript language (often with ghostscript-gpl or libspectre).
- pptp
- pulseaudio # Add support for PulseAudio sound server.
- pxe # Enables support for PXE installation.
- python # Add optional support/bindings for the Python language.
- qt
- qt3support
- qt4
- qt4
- qt5 # Add support for the Qt 5 application and UI framework.
- raw # Add support for raw image formats.
- readline # Enable support for libreadline, a GNU line-editing library that almost everyone wants.
- reiserfs
- rsync-verify
- ruby # Add support/bindings for the Ruby language.
- samba # Add support for SAMBA (Windows File and Printer sharing).
- scanner # Add support for scanner hardware (e.g. build the sane frontend in kdegraphics).
- screensaver
- scrypt
- sec
- server
- skins
- smartcard # Enable smartcard support.
- snappy # Enable support for Snappy compression (as implemented in app-arch/snappy).
- speex # Add support for the speex audio codec (used for speech).
- srt
- svg # Add support for SVG (Scalable Vector Graphics).
- systemd # Enable use of systemd-specific libraries and features like socket activation or session tracking.
- tcl # Add support the Tcl language.
- test # Enable dependencies and/or preparations necessary to run tests.
- tga
- themes
- theora # Add support for the Theora Video Compression Codec.
- timidity # Build with Timidity++ (MIDI sequencer) support.
- tinfo
- tk # Add support for Tk GUI toolkit.
- totp
- uchardet
- udisks # Enable storage management support (automounting, volume monitoring, etc).
- update_drivedb
- upnp # Enable UPnP port mapping support.
- v4l # Enable support for video4linux (using linux-headers or userspace libv4l libraries).
- vaapi # Enable Video Acceleration API for hardware decoding.
- vala # Enable bindings for dev-lang/vala.
- vdpau # Enable the Video Decode and Presentation API for Unix acceleration interface.
- vim
- vmware
- vnc # Enable VNC (remote desktop viewer) support.
- vorbis # Add support for the OggVorbis audio codec.
- vpnc
- vpx
- vulkan
- wavpack # Add support for wavpack audio compression tools.
- wayland # Enable dev-libs/wayland backend.
- webkit # Add support for the WebKit HTML rendering/layout engine.
- wispr
- wmf # Add support for the Windows Metafile vector image format.
- wxwidgets # Add support for wxWidgets/wxGTK GUI toolkit.
- wxwindows
- xa
- xcomposite # Enable support for the Xorg composite extension.
- xmp # Enable support for Extensible Metadata Platform (Adobe XMP).
- xscreensaver # Add support for XScreenSaver extension.
- zsh-completion
- cramfs
# LANGUAGES
- l10n_am
- l10n_ar
- l10n_bg
- l10n_bn
- l10n_ca
- l10n_cs
- l10n_da
- l10n_de
- l10n_el
- l10n_en-GB
- l10n_es
- l10n_es-419
- l10n_et
- l10n_fa
- l10n_fi
- l10n_fil
- l10n_fr
- l10n_gu
- l10n_he
- l10n_hi
- l10n_hr
- l10n_hu
- l10n_id
- l10n_it
- l10n_ja
- l10n_kn
- l10n_ko
- l10n_lt
- l10n_lv
- l10n_ml
- l10n_mr
- l10n_ms
- l10n_nb
- l10n_nl
- l10n_pl
- l10n_pt-BR
- l10n_pt-PT
- l10n_ro
- l10n_sk
- l10n_sl
- l10n_sr
- l10n_sv
- l10n_sw
- l10n_ta
- l10n_te
- l10n_th
- l10n_tr
- l10n_uk
- l10n_vi
- l10n_zh-CN
- l10n_zh-TW
- linguas_am
- linguas_ar
- linguas_bg
- linguas_bn
- linguas_ca
- linguas_cs
- linguas_da
- linguas_de
- linguas_el
- linguas_en_GB
- linguas_es
- linguas_es_LA
- linguas_et
- linguas_fa
- linguas_fi
- linguas_fil
- linguas_fr
- linguas_gu
- linguas_he
- linguas_hi
- linguas_hr
- linguas_hu
- linguas_id
- linguas_it
- linguas_ja
- linguas_kn
- linguas_ko
- linguas_lt
- linguas_lv
- linguas_ml
- linguas_mr
- linguas_ms
- linguas_nb
- linguas_nl
- linguas_pl
- linguas_pt_BR
- linguas_pt_PT
- linguas_ro
- linguas_sk
- linguas_sl
- linguas_sr
- linguas_sv
- linguas_sw
- linguas_ta
- linguas_te
- linguas_th
- linguas_tr
- linguas_uk
- linguas_vi
- linguas_zh_CN
- linguas_zh_TW
- "*"
- multilib

3
roles/linux-gentoo/vars/services.yml

@ -5,9 +5,12 @@ services: @@ -5,9 +5,12 @@ services:
- name: cupsd
- name: bluetooth
- name: sshd
- name: netmount
- name: swap
runlevel: boot
enabled:
- name: connman
runlevel: boot
- name: syslog-ng
runlevel: boot

16
roles/linux-gentoo/vars/sysctl.yml

@ -18,3 +18,19 @@ sysctl: @@ -18,3 +18,19 @@ sysctl:
- name: net.core.bpf_jit_harden
value: 2
# Запрет на переадресацию пакетов
- name: net.ipv4.ip_forward
value: 0
# Запрет на отправку и принятие ICMP-пакетов
- name: net.ipv4.conf.all.accept_redirects
value: 0
- name: net.ipv4.conf.all.secure_redirects
value: 0
- name: net.ipv4.conf.all.send_redirects
value: 0
# Запрет на ICMP-пакеты
- name: net.ipv4.icmp_echo_ignore_all
value: 1

3
roles/linux-gentoo/vars/system.yml

@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
system:
hostname: calculate
tty_consoles: 4
console_font: cyr-sun16
display_brightness: 30
optimisation:
prelink: yes
prelink: no
preload: yes

4
roles/linux-gentoo/vars/xorg.yml

@ -1,4 +1,8 @@ @@ -1,4 +1,8 @@
x:
driver: nvidia
modules:
blacklist:
- nouveau
font_name: NotoMono Nerd Font
xkb:
directory: /usr/share/X11/xkb/symbols

Loading…
Cancel
Save