From 2bd2bd48b76c0b4aaf742e28bd89d2841ab6e18d Mon Sep 17 00:00:00 2001 From: inference Date: Sun, 12 Feb 2023 14:33:25 +0000 Subject: [PATCH] Move server and desktop configuration files to their respective directories. --- .../alacritty}/alacritty.yml | 0 {chromium => desktop/chromium}/default | 0 {chromium => desktop/chromium}/profile-jit | 0 .../chromium}/profile-jitless | 0 {git => desktop/git}/.gitconfig | 0 {git => desktop/git}/.gitconfig-inf | 0 {linux => desktop/linux}/.config | 0 {mc => desktop/mc}/ini | 0 {mc => desktop/mc}/mc.keymap | 0 {mc => desktop/mc}/panels.ini | 0 {mpv => desktop/mpv}/input.conf | 0 {mpv => desktop/mpv}/mpv.conf | 0 {mpv => desktop/mpv}/scripts/equalizer.lua | 0 {neofetch => desktop/neofetch}/config.conf | 0 {nvim => desktop/nvim}/init.vim | 0 {nvim => desktop/nvim}/syntax/bbcode.vim | 0 {portage => desktop/portage}/bashrc | 0 {portage => desktop/portage}/env/basic.conf | 0 desktop/portage/env/nolto.conf | 19 ++ {portage => desktop/portage}/env/notmpfs.conf | 0 {portage => desktop/portage}/make.conf | 13 +- desktop/portage/package.accept_keywords | 46 +++ {portage => desktop/portage}/package.env | 27 +- desktop/portage/package.license | 16 + {portage => desktop/portage}/package.mask | 0 {portage => desktop/portage}/package.unmask | 0 {portage => desktop/portage}/package.use | 0 .../patches/media-libs/gavl/patch-gavl.patch | 0 .../patches/media-libs/mlt/musl-locale.patch | 0 ...ck-for-backtrace-function-only-if-ex.patch | 0 .../patches/sys-boot/grub/gnulinux.patch | 0 .../patches/sys-libs/libcxx/6Tk5DmZ.patch | 0 .../portage}/profile/package.provided | 0 .../portage}/profile/package.use.force | 0 {portage => desktop/portage}/repos.conf | 0 {portage => desktop/portage}/sets/lang | 0 {portage => desktop/portage}/sets/rust | 0 {portage => desktop/portage}/sets/tc-llvm | 0 {ssh => desktop/ssh}/config | 0 {ssh => desktop/ssh}/inf-allowed_signers | 0 {ssh => desktop/ssh}/known_hosts | 1 + {sway => desktop/sway}/config | 0 {waybar => desktop/waybar}/config | 0 {waybar => desktop/waybar}/style.css | 0 {zsh => desktop/zsh}/.zsh-alias-global | 0 {zsh => desktop/zsh}/.zshenv | 0 {zsh => desktop/zsh}/.zshrc | 0 portage/env/nolto.conf | 16 - portage/package.accept_keywords | 46 --- portage/package.license | 16 - server/ejabberd/ejabberd.yml | 277 ++++++++++++++++++ 51 files changed, 392 insertions(+), 85 deletions(-) rename {alacritty => desktop/alacritty}/alacritty.yml (100%) rename {chromium => desktop/chromium}/default (100%) rename {chromium => desktop/chromium}/profile-jit (100%) rename {chromium => desktop/chromium}/profile-jitless (100%) rename {git => desktop/git}/.gitconfig (100%) rename {git => desktop/git}/.gitconfig-inf (100%) rename {linux => desktop/linux}/.config (100%) rename {mc => desktop/mc}/ini (100%) rename {mc => desktop/mc}/mc.keymap (100%) rename {mc => desktop/mc}/panels.ini (100%) rename {mpv => desktop/mpv}/input.conf (100%) rename {mpv => desktop/mpv}/mpv.conf (100%) rename {mpv => desktop/mpv}/scripts/equalizer.lua (100%) rename {neofetch => desktop/neofetch}/config.conf (100%) rename {nvim => desktop/nvim}/init.vim (100%) rename {nvim => desktop/nvim}/syntax/bbcode.vim (100%) rename {portage => desktop/portage}/bashrc (100%) rename {portage => desktop/portage}/env/basic.conf (100%) create mode 100644 desktop/portage/env/nolto.conf rename {portage => desktop/portage}/env/notmpfs.conf (100%) rename {portage => desktop/portage}/make.conf (71%) create mode 100644 desktop/portage/package.accept_keywords rename {portage => desktop/portage}/package.env (93%) create mode 100644 desktop/portage/package.license rename {portage => desktop/portage}/package.mask (100%) rename {portage => desktop/portage}/package.unmask (100%) rename {portage => desktop/portage}/package.use (100%) rename {portage => desktop/portage}/patches/media-libs/gavl/patch-gavl.patch (100%) rename {portage => desktop/portage}/patches/media-libs/mlt/musl-locale.patch (100%) rename {portage => desktop/portage}/patches/sys-apps/sandbox/0001-configure.ac-check-for-backtrace-function-only-if-ex.patch (100%) rename {portage => desktop/portage}/patches/sys-boot/grub/gnulinux.patch (100%) rename {portage => desktop/portage}/patches/sys-libs/libcxx/6Tk5DmZ.patch (100%) rename {portage => desktop/portage}/profile/package.provided (100%) rename {portage => desktop/portage}/profile/package.use.force (100%) rename {portage => desktop/portage}/repos.conf (100%) rename {portage => desktop/portage}/sets/lang (100%) rename {portage => desktop/portage}/sets/rust (100%) rename {portage => desktop/portage}/sets/tc-llvm (100%) rename {ssh => desktop/ssh}/config (100%) rename {ssh => desktop/ssh}/inf-allowed_signers (100%) rename {ssh => desktop/ssh}/known_hosts (92%) rename {sway => desktop/sway}/config (100%) rename {waybar => desktop/waybar}/config (100%) rename {waybar => desktop/waybar}/style.css (100%) rename {zsh => desktop/zsh}/.zsh-alias-global (100%) rename {zsh => desktop/zsh}/.zshenv (100%) rename {zsh => desktop/zsh}/.zshrc (100%) delete mode 100644 portage/env/nolto.conf delete mode 100644 portage/package.accept_keywords delete mode 100644 portage/package.license create mode 100644 server/ejabberd/ejabberd.yml diff --git a/alacritty/alacritty.yml b/desktop/alacritty/alacritty.yml similarity index 100% rename from alacritty/alacritty.yml rename to desktop/alacritty/alacritty.yml diff --git a/chromium/default b/desktop/chromium/default similarity index 100% rename from chromium/default rename to desktop/chromium/default diff --git a/chromium/profile-jit b/desktop/chromium/profile-jit similarity index 100% rename from chromium/profile-jit rename to desktop/chromium/profile-jit diff --git a/chromium/profile-jitless b/desktop/chromium/profile-jitless similarity index 100% rename from chromium/profile-jitless rename to desktop/chromium/profile-jitless diff --git a/git/.gitconfig b/desktop/git/.gitconfig similarity index 100% rename from git/.gitconfig rename to desktop/git/.gitconfig diff --git a/git/.gitconfig-inf b/desktop/git/.gitconfig-inf similarity index 100% rename from git/.gitconfig-inf rename to desktop/git/.gitconfig-inf diff --git a/linux/.config b/desktop/linux/.config similarity index 100% rename from linux/.config rename to desktop/linux/.config diff --git a/mc/ini b/desktop/mc/ini similarity index 100% rename from mc/ini rename to desktop/mc/ini diff --git a/mc/mc.keymap b/desktop/mc/mc.keymap similarity index 100% rename from mc/mc.keymap rename to desktop/mc/mc.keymap diff --git a/mc/panels.ini b/desktop/mc/panels.ini similarity index 100% rename from mc/panels.ini rename to desktop/mc/panels.ini diff --git a/mpv/input.conf b/desktop/mpv/input.conf similarity index 100% rename from mpv/input.conf rename to desktop/mpv/input.conf diff --git a/mpv/mpv.conf b/desktop/mpv/mpv.conf similarity index 100% rename from mpv/mpv.conf rename to desktop/mpv/mpv.conf diff --git a/mpv/scripts/equalizer.lua b/desktop/mpv/scripts/equalizer.lua similarity index 100% rename from mpv/scripts/equalizer.lua rename to desktop/mpv/scripts/equalizer.lua diff --git a/neofetch/config.conf b/desktop/neofetch/config.conf similarity index 100% rename from neofetch/config.conf rename to desktop/neofetch/config.conf diff --git a/nvim/init.vim b/desktop/nvim/init.vim similarity index 100% rename from nvim/init.vim rename to desktop/nvim/init.vim diff --git a/nvim/syntax/bbcode.vim b/desktop/nvim/syntax/bbcode.vim similarity index 100% rename from nvim/syntax/bbcode.vim rename to desktop/nvim/syntax/bbcode.vim diff --git a/portage/bashrc b/desktop/portage/bashrc similarity index 100% rename from portage/bashrc rename to desktop/portage/bashrc diff --git a/portage/env/basic.conf b/desktop/portage/env/basic.conf similarity index 100% rename from portage/env/basic.conf rename to desktop/portage/env/basic.conf diff --git a/desktop/portage/env/nolto.conf b/desktop/portage/env/nolto.conf new file mode 100644 index 0000000..e77a051 --- /dev/null +++ b/desktop/portage/env/nolto.conf @@ -0,0 +1,19 @@ +# Inferencium +# Portage - env - Clang - No LTO + +# Copyright 2023 Inference +# SPDX-License-Identifier: GPL-3.0-or-later + +# Version: 1.0.1.2 + + +# Flags +## Hardening flags +C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fwrapv" +LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro" +## Compiler flags +CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" +CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" +RUSTFLAGS="-C debuginfo=0 -C target-cpu=znver3" +## Linker flags +LDFLAGS="-Wl,-O2 -Wl,--strip-all ${LD_SEC}" diff --git a/portage/env/notmpfs.conf b/desktop/portage/env/notmpfs.conf similarity index 100% rename from portage/env/notmpfs.conf rename to desktop/portage/env/notmpfs.conf diff --git a/portage/make.conf b/desktop/portage/make.conf similarity index 71% rename from portage/make.conf rename to desktop/portage/make.conf index 90994f6..43603dc 100644 --- a/portage/make.conf +++ b/desktop/portage/make.conf @@ -4,7 +4,7 @@ # Copyright 2022-2023 Inference # SPDX-License-Identifier: GPL-3.0-or-later -# Version: 10.0.0.34 +# Version: 13.0.1.38 # System @@ -35,14 +35,17 @@ PORTAGE_CHECKSUM_FILTER="-* sha256 sha512" PORTAGE_RSYNC_EXTRA_OPTS="--progress --verbose" # Flags +## Hardening flags +C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fwrapv" +LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro" ## Compiler flags -CFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe" -CXXFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe" +CFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" +CXXFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" RUSTFLAGS="-C debuginfo=0 -C embed-bitcode=y -C lto -C opt-level=2 -C target-cpu=znver3" ## Linker flags -LDFLAGS="-Wl,-O2 -Wl,--strip-all" +LDFLAGS="-Wl,-O2 -Wl,--strip-all -Wl,--thinlto-jobs=4 ${LD_SEC}" ## USE flags -USE="dbus lto nftables pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libvpx system-png system-webp verify-sig wayland" +USE="clang dbus llvm-libunwind lto nftables pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libvpx system-llvm system-png system-webp verify-sig wayland" USE="${USE} -ipv6 -systemd -X" ## CPU flags CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" diff --git a/desktop/portage/package.accept_keywords b/desktop/portage/package.accept_keywords new file mode 100644 index 0000000..2ea9b39 --- /dev/null +++ b/desktop/portage/package.accept_keywords @@ -0,0 +1,46 @@ +# Inferencium +# Portage - package.accept_keywords + +# Copyright 2022-2023 Inference +# SPDX-License-Identifier: GPL-3.0-or-later + +# Version: 7.0.0.23 + + +app-arch/unrar ~amd64 +dev-lang/rust ~amd64 +dev-libs/date ~amd64 +dev-libs/icu ~amd64 +dev-libs/libfmt ~amd64 +dev-libs/libstrophe ~amd64 +dev-libs/nss ~amd64 +dev-libs/spdlog ~amd64 +dev-libs/wayland-protocols ~amd64 +fs-util/fsverity-utils ~amd64 +gui-apps/waybar ~amd64 +=gui-wm/sway-1.7 ~amd64 +