summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-01-28 18:49:26 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-01-28 18:49:26 +0100
commit3861362638493adf9329ad296b8547c414188426 (patch)
treeb35a3b1d53c961d4d4ed3810c7fcfb41fa12d903 /etc
parentunattended upgrade (diff)
parentportage (diff)
downloadn-3861362638493adf9329ad296b8547c414188426.tar
n-3861362638493adf9329ad296b8547c414188426.tar.gz
n-3861362638493adf9329ad296b8547c414188426.tar.bz2
n-3861362638493adf9329ad296b8547c414188426.tar.lz
n-3861362638493adf9329ad296b8547c414188426.tar.xz
n-3861362638493adf9329ad296b8547c414188426.tar.zst
n-3861362638493adf9329ad296b8547c414188426.zip
Diffstat (limited to 'etc')
-rw-r--r--etc/portage/make.conf70
-rw-r--r--etc/portage/package.mask/conf1
-rw-r--r--etc/portage/patches/games-action/polymc/crack.patch19
-rw-r--r--etc/portage/patches/sys-apps/portage/command-substitution.patch25
4 files changed, 115 insertions, 0 deletions
diff --git a/etc/portage/make.conf b/etc/portage/make.conf
new file mode 100644
index 0000000..d48ac23
--- /dev/null
+++ b/etc/portage/make.conf
@@ -0,0 +1,70 @@
+PORTAGE_SCHEDULING_POLICY="idle"
+
+# -march=native NE SME BITI NA distcc iz očitnih razlogov
+# uporabi resolve-march-native
+COMMON_FLAGS="-ggdb3 -O2 -pipe $(resolve-march-native)"
+# -pipe rabi RAM
+CFLAGS="${COMMON_FLAGS} -DALLOW_RUN_AS_ROOT" # VLC
+CXXFLAGS="${COMMON_FLAGS} -DOLAD_SKIP_ROOT_CHECK"
+FCFLAGS="${COMMON_FLAGS}"
+FFLAGS="${COMMON_FLAGS}"
+
+# NOTE: This stage was built with the bindist Use flag enabled
+PORTDIR="/var/db/repos/gentoo"
+DISTDIR="/var/cache/distfiles"
+PKGDIR="/var/cache/binpkgs"
+
+# This sets the language of build output to English.
+# Please keep this setting intact when reporting bugs.
+LC_MESSAGES=C
+MAKEOPTS="-j$(nproc) -l$(nproc)"
+
+GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://packages.hs-regensburg.de/gentoo-distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.tu-ilmenau.de/mirror/gentoo/ http://ftp.fau.de/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
+# mirrorselect -i -o >> /etc/portage/make.conf
+
+USE="vim-syntax ffmpeg pulseaudio native-headset dbus acpi mtp fuse system-bootstrap"
+USE="$USE adblock websockets" # qutebrowser
+USE="$USE vnc rdp ssh" # remmina
+USE="$USE extra graphics science publishers music" # texlive
+USE="$USE hid" # mixxx
+USE="$USE ipv6" # net-ftp/ftp
+USE="$USE calendar math latex -spell" # app-office/abiwold, spell ima conflict
+USE="$USE curl exif fpm ftp gd gmp imap inifile intl mysqli pdo sockets sodium sqlite threads tidy webp xmlreader xmlwriter zip" # dev-lang/php
+# USE="$USE system-libvpx system-openjpeg -proprietary-codecs -official" # ungoogled-chromium
+USE="$USE server" # libssh
+USE="$USE gtk2 -official-branding" # palemoon
+USE="$USE xface" # claws-mail
+USE="$USE gsl" # app-office/calligra
+USE="$USE omemo" # gajim
+USE="$USE idn" # whois
+USE="$USE amr opus" # sox
+USE="$USE mtp" # za slike iz telefonov
+USE="$USE graphite" # darktable ga rabi. to applya na gcc
+USE="$USE dos" # wine
+USE="$USE internal" # flashrom
+USE="$USE -bundled-qt" # zoom
+USE="$USE slattach" # net-tools
+USE="$USE ftdi http osc examples python" # ola
+USE="$USE xinerama" # za x11vnc -clip
+USE="$USE heif" # za imagemagick .heic
+USE="$USE webchannel" # za pyside za falkon
+USE="$USE tesseract" # za opencv
+USE="$USE fontconfig" # za gd za graphviz
+USE="$USE system-png" # za torbrowser
+USE="$USE bluetooth"
+
+CALLIGRA_FEATURES="stage words sheets"
+PALEMOON_ENABLE_UNSUPPORTED_COMPILERS=1 # uradno gcc 11 ni podprt
+
+ACCEPT_LICENSE="-* @BINARY-REDISTRIBUTABLE"
+# default je @FREE
+
+# L10N="sl"
+
+# repozitorij
+PORTAGE_GPG_KEY="F4C3E3A4DFB7254397A9F993E76135F49802CD14"
+SIGNED_OFF_BY="Anton Luka Šijanec <anton@sijanec.eu>"
+
+L10N="sl en de hr si"
+
+FEATURES="nostrip distcc"
diff --git a/etc/portage/package.mask/conf b/etc/portage/package.mask/conf
new file mode 100644
index 0000000..250eb00
--- /dev/null
+++ b/etc/portage/package.mask/conf
@@ -0,0 +1 @@
+*/*-bin
diff --git a/etc/portage/patches/games-action/polymc/crack.patch b/etc/portage/patches/games-action/polymc/crack.patch
new file mode 100644
index 0000000..798099f
--- /dev/null
+++ b/etc/portage/patches/games-action/polymc/crack.patch
@@ -0,0 +1,19 @@
+diff --git a/launcher/minecraft/auth/AccountList.cpp b/launcher/minecraft/auth/AccountList.cpp
+index 3422df7..acf5bc2 100644
+--- a/launcher/minecraft/auth/AccountList.cpp
++++ b/launcher/minecraft/auth/AccountList.cpp
+@@ -650,13 +650,7 @@ void AccountList::setListFilePath(QString path, bool autosave)
+
+ bool AccountList::anyAccountIsValid()
+ {
+- for(auto account: m_accounts)
+- {
+- if(account->ownsMinecraft()) {
+- return true;
+- }
+- }
+- return false;
++ return true;
+ }
+
+ void AccountList::fillQueue() {
diff --git a/etc/portage/patches/sys-apps/portage/command-substitution.patch b/etc/portage/patches/sys-apps/portage/command-substitution.patch
new file mode 100644
index 0000000..30edeae
--- /dev/null
+++ b/etc/portage/patches/sys-apps/portage/command-substitution.patch
@@ -0,0 +1,25 @@
+diff --git a/lib/portage/util/__init__.py b/lib/portage/util/__init__.py
+index 285bf66..74e3232 100644
+--- a/lib/portage/util/__init__.py
++++ b/lib/portage/util/__init__.py
+@@ -992,6 +992,20 @@ def varexpand(mystring, mydict=None, error_leader=None):
+ newstring.append(current)
+ continue
+
++ if mystring[pos] == "(":
++ # print(f"[šijanec.eu] debug0 {mystring}");
++ end = mystring[pos:].find(")")
++ if end == -1:
++ msg = error_leader() + "[šijanec.eu] missing closing ) in shell command substitution variable"
++ writemsg(msg + "\n", noiselevel=-1)
++ return ""
++ cmd = mystring[pos+1:pos+end]
++ out = subprocess.run(["sh", "-c", cmd], stdout=subprocess.PIPE).stdout.decode("utf-8")
++ newstring.append(out.strip())
++ pos += end+1
++ # print(f"[šijanec.eu] debug {cmd} {newstring}")
++ continue
++
+ if mystring[pos] == "{":
+ pos += 1
+ if pos == length: