From 62c0bc4eab9a2de6ef6fbe2cdbb320579c9436eb Mon Sep 17 00:00:00 2001 From: Mid Favila Date: Wed, 24 Nov 2021 16:38:58 -0300 Subject: [PATCH] Add some system configuration files. --- .../etc/fonts/conf.d/10-hinting-slight.conf | 1 + system/etc/fonts/conf.d/10-lcdfilter.conf | 7 + .../fonts/conf.d/10-scale-bitmap-fonts.conf | 1 + .../etc/fonts/conf.d/10-sub-pixel-vrgb.conf | 7 + .../fonts/conf.d/20-unhint-small-vera.conf | 1 + .../etc/fonts/conf.d/30-metric-aliases.conf | 1 + system/etc/fonts/conf.d/40-nonlatin.conf | 1 + system/etc/fonts/conf.d/45-generic.conf | 1 + system/etc/fonts/conf.d/45-latin.conf | 1 + system/etc/fonts/conf.d/49-sansserif.conf | 1 + system/etc/fonts/conf.d/50-user.conf | 1 + system/etc/fonts/conf.d/51-local.conf | 1 + system/etc/fonts/conf.d/60-generic.conf | 1 + system/etc/fonts/conf.d/60-latin.conf | 1 + system/etc/fonts/conf.d/65-fonts-persian.conf | 1 + system/etc/fonts/conf.d/65-nonlatin.conf | 1 + system/etc/fonts/conf.d/69-unifont.conf | 1 + system/etc/fonts/conf.d/80-delicious.conf | 1 + system/etc/fonts/conf.d/90-synthetic.conf | 1 + system/etc/fonts/conf.d/README | 23 ++ system/etc/fonts/fonts.conf | 102 +++++++ system/etc/fonts/fonts.dtd | 265 ++++++++++++++++++ system/etc/profile.d/kiss_opts.sh | 27 ++ 23 files changed, 448 insertions(+) create mode 120000 system/etc/fonts/conf.d/10-hinting-slight.conf create mode 100644 system/etc/fonts/conf.d/10-lcdfilter.conf create mode 120000 system/etc/fonts/conf.d/10-scale-bitmap-fonts.conf create mode 100644 system/etc/fonts/conf.d/10-sub-pixel-vrgb.conf create mode 120000 system/etc/fonts/conf.d/20-unhint-small-vera.conf create mode 120000 system/etc/fonts/conf.d/30-metric-aliases.conf create mode 120000 system/etc/fonts/conf.d/40-nonlatin.conf create mode 120000 system/etc/fonts/conf.d/45-generic.conf create mode 120000 system/etc/fonts/conf.d/45-latin.conf create mode 120000 system/etc/fonts/conf.d/49-sansserif.conf create mode 120000 system/etc/fonts/conf.d/50-user.conf create mode 120000 system/etc/fonts/conf.d/51-local.conf create mode 120000 system/etc/fonts/conf.d/60-generic.conf create mode 120000 system/etc/fonts/conf.d/60-latin.conf create mode 120000 system/etc/fonts/conf.d/65-fonts-persian.conf create mode 120000 system/etc/fonts/conf.d/65-nonlatin.conf create mode 120000 system/etc/fonts/conf.d/69-unifont.conf create mode 120000 system/etc/fonts/conf.d/80-delicious.conf create mode 120000 system/etc/fonts/conf.d/90-synthetic.conf create mode 100644 system/etc/fonts/conf.d/README create mode 100644 system/etc/fonts/fonts.conf create mode 100644 system/etc/fonts/fonts.dtd create mode 100644 system/etc/profile.d/kiss_opts.sh diff --git a/system/etc/fonts/conf.d/10-hinting-slight.conf b/system/etc/fonts/conf.d/10-hinting-slight.conf new file mode 120000 index 0000000..99241c8 --- /dev/null +++ b/system/etc/fonts/conf.d/10-hinting-slight.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/10-hinting-slight.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/10-lcdfilter.conf b/system/etc/fonts/conf.d/10-lcdfilter.conf new file mode 100644 index 0000000..04d0731 --- /dev/null +++ b/system/etc/fonts/conf.d/10-lcdfilter.conf @@ -0,0 +1,7 @@ + + + + + lcddefault + + diff --git a/system/etc/fonts/conf.d/10-scale-bitmap-fonts.conf b/system/etc/fonts/conf.d/10-scale-bitmap-fonts.conf new file mode 120000 index 0000000..7e50611 --- /dev/null +++ b/system/etc/fonts/conf.d/10-scale-bitmap-fonts.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/10-sub-pixel-vrgb.conf b/system/etc/fonts/conf.d/10-sub-pixel-vrgb.conf new file mode 100644 index 0000000..f11ebab --- /dev/null +++ b/system/etc/fonts/conf.d/10-sub-pixel-vrgb.conf @@ -0,0 +1,7 @@ + + + + + vrgb + + diff --git a/system/etc/fonts/conf.d/20-unhint-small-vera.conf b/system/etc/fonts/conf.d/20-unhint-small-vera.conf new file mode 120000 index 0000000..cde2cce --- /dev/null +++ b/system/etc/fonts/conf.d/20-unhint-small-vera.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/20-unhint-small-vera.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/30-metric-aliases.conf b/system/etc/fonts/conf.d/30-metric-aliases.conf new file mode 120000 index 0000000..1880d96 --- /dev/null +++ b/system/etc/fonts/conf.d/30-metric-aliases.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/30-metric-aliases.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/40-nonlatin.conf b/system/etc/fonts/conf.d/40-nonlatin.conf new file mode 120000 index 0000000..c46eb4e --- /dev/null +++ b/system/etc/fonts/conf.d/40-nonlatin.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/40-nonlatin.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/45-generic.conf b/system/etc/fonts/conf.d/45-generic.conf new file mode 120000 index 0000000..da483b3 --- /dev/null +++ b/system/etc/fonts/conf.d/45-generic.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/45-generic.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/45-latin.conf b/system/etc/fonts/conf.d/45-latin.conf new file mode 120000 index 0000000..cb1c08f --- /dev/null +++ b/system/etc/fonts/conf.d/45-latin.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/45-latin.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/49-sansserif.conf b/system/etc/fonts/conf.d/49-sansserif.conf new file mode 120000 index 0000000..2625516 --- /dev/null +++ b/system/etc/fonts/conf.d/49-sansserif.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/49-sansserif.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/50-user.conf b/system/etc/fonts/conf.d/50-user.conf new file mode 120000 index 0000000..62f8b14 --- /dev/null +++ b/system/etc/fonts/conf.d/50-user.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/50-user.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/51-local.conf b/system/etc/fonts/conf.d/51-local.conf new file mode 120000 index 0000000..39557bd --- /dev/null +++ b/system/etc/fonts/conf.d/51-local.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/51-local.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/60-generic.conf b/system/etc/fonts/conf.d/60-generic.conf new file mode 120000 index 0000000..ff9243f --- /dev/null +++ b/system/etc/fonts/conf.d/60-generic.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/60-generic.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/60-latin.conf b/system/etc/fonts/conf.d/60-latin.conf new file mode 120000 index 0000000..020a763 --- /dev/null +++ b/system/etc/fonts/conf.d/60-latin.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/60-latin.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/65-fonts-persian.conf b/system/etc/fonts/conf.d/65-fonts-persian.conf new file mode 120000 index 0000000..c5ceafc --- /dev/null +++ b/system/etc/fonts/conf.d/65-fonts-persian.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/65-fonts-persian.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/65-nonlatin.conf b/system/etc/fonts/conf.d/65-nonlatin.conf new file mode 120000 index 0000000..eee5d46 --- /dev/null +++ b/system/etc/fonts/conf.d/65-nonlatin.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/65-nonlatin.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/69-unifont.conf b/system/etc/fonts/conf.d/69-unifont.conf new file mode 120000 index 0000000..313ab54 --- /dev/null +++ b/system/etc/fonts/conf.d/69-unifont.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/69-unifont.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/80-delicious.conf b/system/etc/fonts/conf.d/80-delicious.conf new file mode 120000 index 0000000..e2d1d22 --- /dev/null +++ b/system/etc/fonts/conf.d/80-delicious.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/80-delicious.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/90-synthetic.conf b/system/etc/fonts/conf.d/90-synthetic.conf new file mode 120000 index 0000000..20e176b --- /dev/null +++ b/system/etc/fonts/conf.d/90-synthetic.conf @@ -0,0 +1 @@ +/usr/share/fontconfig/conf.avail/90-synthetic.conf \ No newline at end of file diff --git a/system/etc/fonts/conf.d/README b/system/etc/fonts/conf.d/README new file mode 100644 index 0000000..0d20ef4 --- /dev/null +++ b/system/etc/fonts/conf.d/README @@ -0,0 +1,23 @@ +conf.d/README + +Each file in this directory is a fontconfig configuration file. Fontconfig +scans this directory, loading all files of the form [0-9][0-9]*.conf. +These files are normally installed in /usr/share/fontconfig/conf.avail +and then symlinked here, allowing them to be easily installed and then +enabled/disabled by adjusting the symlinks. + +The files are loaded in numeric order, the structure of the configuration +has led to the following conventions in usage: + + Files beginning with: Contain: + + 00 through 09 Font directories + 10 through 19 system rendering defaults (AA, etc) + 20 through 29 font rendering options + 30 through 39 family substitution + 40 through 49 generic identification, map family->generic + 50 through 59 alternate config file loading + 60 through 69 generic aliases, map generic->family + 70 through 79 select font (adjust which fonts are available) + 80 through 89 match target="scan" (modify scanned patterns) + 90 through 99 font synthesis diff --git a/system/etc/fonts/fonts.conf b/system/etc/fonts/fonts.conf new file mode 100644 index 0000000..fe09d8f --- /dev/null +++ b/system/etc/fonts/fonts.conf @@ -0,0 +1,102 @@ + + + + + Default configuration file + + + + + + /usr/share/fonts + + + fonts + + ~/.fonts + + + + + mono + + + monospace + + + + + + + sans serif + + + sans-serif + + + + + + + sans + + + sans-serif + + + + + + system ui + + + system-ui + + + + + conf.d + + + + /var/cache/fontconfig + fontconfig + + ~/.fontconfig + + + + + 30 + + + + diff --git a/system/etc/fonts/fonts.dtd b/system/etc/fonts/fonts.dtd new file mode 100644 index 0000000..3b37974 --- /dev/null +++ b/system/etc/fonts/fonts.dtd @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/system/etc/profile.d/kiss_opts.sh b/system/etc/profile.d/kiss_opts.sh new file mode 100644 index 0000000..146a5e4 --- /dev/null +++ b/system/etc/profile.d/kiss_opts.sh @@ -0,0 +1,27 @@ +#!/bin/sh -e + +# Calculate our path. +export KISS_PATH="/var/db/kiss/repos/kiss-mfavila/ports:$(du -d5 /var/db/kiss/repos|cut -f 2|grep -v \\.|sort|tr '\n' ':')" + +# Set privilege escalation tool. +export KISS_SU="sup" + +# Set download utility. +# snarf - tiny single-theaded +# axel - tiny multi-threaded +# wget - large single-threaded +# aria2 - large multi-threaded +# curl - default, HTTP toolkit, very large +export KISS_DL="axel" + +# Compile-time flags. +export CFLAGS="-pipe -w -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=1 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu" +export CXXFLAGS="$CFLAGS" +export FFLAGS="$CFLAGS" +export LDFLAGS="" + +# Set makejobs to the number of threads minus two. +export MAKEFLAGS="-j$(($(cat /proc/cpuinfo|grep cores|wc -l)-2))" + +# Build in memory. +export XDG_CACHE_HOME=/tmp