Add some system configuration files.
This commit is contained in:
parent
c9392f0c07
commit
62c0bc4eab
1
system/etc/fonts/conf.d/10-hinting-slight.conf
Symbolic link
1
system/etc/fonts/conf.d/10-hinting-slight.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/10-hinting-slight.conf
|
7
system/etc/fonts/conf.d/10-lcdfilter.conf
Normal file
7
system/etc/fonts/conf.d/10-lcdfilter.conf
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="lcdfilter"> <const>lcddefault</const></edit>
|
||||
</match>
|
||||
</fontconfig>
|
1
system/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
Symbolic link
1
system/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf
|
7
system/etc/fonts/conf.d/10-sub-pixel-vrgb.conf
Normal file
7
system/etc/fonts/conf.d/10-sub-pixel-vrgb.conf
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="rgba"> <const>vrgb</const></edit>
|
||||
</match>
|
||||
</fontconfig>
|
1
system/etc/fonts/conf.d/20-unhint-small-vera.conf
Symbolic link
1
system/etc/fonts/conf.d/20-unhint-small-vera.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/20-unhint-small-vera.conf
|
1
system/etc/fonts/conf.d/30-metric-aliases.conf
Symbolic link
1
system/etc/fonts/conf.d/30-metric-aliases.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/30-metric-aliases.conf
|
1
system/etc/fonts/conf.d/40-nonlatin.conf
Symbolic link
1
system/etc/fonts/conf.d/40-nonlatin.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/40-nonlatin.conf
|
1
system/etc/fonts/conf.d/45-generic.conf
Symbolic link
1
system/etc/fonts/conf.d/45-generic.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/45-generic.conf
|
1
system/etc/fonts/conf.d/45-latin.conf
Symbolic link
1
system/etc/fonts/conf.d/45-latin.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/45-latin.conf
|
1
system/etc/fonts/conf.d/49-sansserif.conf
Symbolic link
1
system/etc/fonts/conf.d/49-sansserif.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/49-sansserif.conf
|
1
system/etc/fonts/conf.d/50-user.conf
Symbolic link
1
system/etc/fonts/conf.d/50-user.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/50-user.conf
|
1
system/etc/fonts/conf.d/51-local.conf
Symbolic link
1
system/etc/fonts/conf.d/51-local.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/51-local.conf
|
1
system/etc/fonts/conf.d/60-generic.conf
Symbolic link
1
system/etc/fonts/conf.d/60-generic.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/60-generic.conf
|
1
system/etc/fonts/conf.d/60-latin.conf
Symbolic link
1
system/etc/fonts/conf.d/60-latin.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/60-latin.conf
|
1
system/etc/fonts/conf.d/65-fonts-persian.conf
Symbolic link
1
system/etc/fonts/conf.d/65-fonts-persian.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/65-fonts-persian.conf
|
1
system/etc/fonts/conf.d/65-nonlatin.conf
Symbolic link
1
system/etc/fonts/conf.d/65-nonlatin.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/65-nonlatin.conf
|
1
system/etc/fonts/conf.d/69-unifont.conf
Symbolic link
1
system/etc/fonts/conf.d/69-unifont.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/69-unifont.conf
|
1
system/etc/fonts/conf.d/80-delicious.conf
Symbolic link
1
system/etc/fonts/conf.d/80-delicious.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/80-delicious.conf
|
1
system/etc/fonts/conf.d/90-synthetic.conf
Symbolic link
1
system/etc/fonts/conf.d/90-synthetic.conf
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/fontconfig/conf.avail/90-synthetic.conf
|
23
system/etc/fonts/conf.d/README
Normal file
23
system/etc/fonts/conf.d/README
Normal file
@ -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
|
102
system/etc/fonts/fonts.conf
Normal file
102
system/etc/fonts/fonts.conf
Normal file
@ -0,0 +1,102 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<!-- /etc/fonts/fonts.conf file to configure system font access -->
|
||||
<fontconfig>
|
||||
<description>Default configuration file</description>
|
||||
|
||||
<!--
|
||||
DO NOT EDIT THIS FILE.
|
||||
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
|
||||
LOCAL CHANGES BELONG IN 'local.conf'.
|
||||
|
||||
The intent of this standard configuration file is to be adequate for
|
||||
most environments. If you have a reasonably normal environment and
|
||||
have found problems with this configuration, they are probably
|
||||
things that others will also want fixed. Please submit any
|
||||
problems to the fontconfig bugzilla system located at fontconfig.org
|
||||
|
||||
Note that the normal 'make install' procedure for fontconfig is to
|
||||
replace any existing fonts.conf file with the new version. Place
|
||||
any local customizations in local.conf which this file references.
|
||||
|
||||
Keith Packard
|
||||
-->
|
||||
|
||||
<!-- Font directory list -->
|
||||
|
||||
<dir>/usr/share/fonts</dir>
|
||||
|
||||
|
||||
<dir prefix="xdg">fonts</dir>
|
||||
<!-- the following element will be removed in the future -->
|
||||
<dir>~/.fonts</dir>
|
||||
|
||||
<!--
|
||||
Accept deprecated 'mono' alias, replacing it with 'monospace'
|
||||
-->
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>mono</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>monospace</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<!--
|
||||
Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
|
||||
-->
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>sans serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>sans-serif</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<!--
|
||||
Accept deprecated 'sans' alias, replacing it with 'sans-serif'
|
||||
-->
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>sans</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>sans-serif</string>
|
||||
</edit>
|
||||
</match>
|
||||
<!--
|
||||
Accept alternate 'system ui' spelling, replacing it with 'system-ui'
|
||||
-->
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>system ui</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>system-ui</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<!--
|
||||
Load local system customization file
|
||||
-->
|
||||
<include ignore_missing="yes">conf.d</include>
|
||||
|
||||
<!-- Font cache directory list -->
|
||||
|
||||
<cachedir>/var/cache/fontconfig</cachedir>
|
||||
<cachedir prefix="xdg">fontconfig</cachedir>
|
||||
<!-- the following element will be removed in the future -->
|
||||
<cachedir>~/.fontconfig</cachedir>
|
||||
|
||||
<config>
|
||||
<!--
|
||||
Rescan configuration every 30 seconds when FcFontSetList is called
|
||||
-->
|
||||
<rescan>
|
||||
<int>30</int>
|
||||
</rescan>
|
||||
</config>
|
||||
|
||||
</fontconfig>
|
265
system/etc/fonts/fonts.dtd
Normal file
265
system/etc/fonts/fonts.dtd
Normal file
@ -0,0 +1,265 @@
|
||||
<!-- This is the Document Type Definition for font configuration files -->
|
||||
<!ELEMENT fontconfig (alias |
|
||||
cache |
|
||||
cachedir |
|
||||
config |
|
||||
description |
|
||||
dir |
|
||||
include |
|
||||
match |
|
||||
remap-dir |
|
||||
reset-dirs |
|
||||
selectfont)* >
|
||||
|
||||
<!--
|
||||
Add a directory that provides fonts
|
||||
-->
|
||||
<!ELEMENT dir (#PCDATA)>
|
||||
<!ATTLIST dir
|
||||
prefix (default|xdg|relative|cwd) "default"
|
||||
xml:space (default|preserve) 'preserve'>
|
||||
|
||||
<!--
|
||||
Define the per-user file that holds cache font information.
|
||||
|
||||
If the filename begins with '~', it is replaced with the users
|
||||
home directory path.
|
||||
|
||||
If 'prefix' is 'default' or 'cwd', then the current working directory will be added prior to the value.
|
||||
If 'prefix' is 'xdg', then the value in the $XDG_DATA_HOME will be added prior to the value.
|
||||
If 'prefix' is 'relative', then the path of current file will be added prior to the value.
|
||||
-->
|
||||
<!ELEMENT cache (#PCDATA)>
|
||||
<!ATTLIST cache xml:space (default|preserve) 'preserve'>
|
||||
|
||||
<!--
|
||||
Add a directory that is searched for font cache files.
|
||||
These hold per-directory cache data and are searched in
|
||||
order for each directory. When writing cache files, the first
|
||||
directory which allows the cache file to be created is used.
|
||||
|
||||
A leading '~' in a directory name is replaced with the users
|
||||
home directory path.
|
||||
-->
|
||||
<!ELEMENT cachedir (#PCDATA)>
|
||||
<!ATTLIST cachedir
|
||||
prefix CDATA "default"
|
||||
xml:space (default|preserve) 'preserve'>
|
||||
|
||||
<!--
|
||||
Set a string as a description for the targeted config file
|
||||
|
||||
Set 'domain' to change where to pull translations from.
|
||||
This will be done through gettext.
|
||||
-->
|
||||
<!ELEMENT description (#PCDATA)>
|
||||
<!ATTLIST description
|
||||
domain CDATA "fontconfig-conf">
|
||||
|
||||
<!--
|
||||
Reference another configuration file; note that this
|
||||
is another complete font configuration file and not
|
||||
just a file included by the XML parser.
|
||||
|
||||
Set 'ignore_missing' to 'yes' if errors are to be ignored.
|
||||
|
||||
If the filename begins with '~', it is replaced with the users
|
||||
home directory path.
|
||||
-->
|
||||
<!ELEMENT include (#PCDATA)>
|
||||
<!ATTLIST include
|
||||
ignore_missing (no|yes) "no"
|
||||
prefix CDATA "default"
|
||||
deprecated (yes|no) "no"
|
||||
xml:space (default|preserve) "preserve">
|
||||
|
||||
<!--
|
||||
Global library configuration data
|
||||
-->
|
||||
<!ELEMENT config (blank|rescan)*>
|
||||
|
||||
<!--
|
||||
Specify the set of Unicode encoding values which
|
||||
represent glyphs that are allowed to contain no
|
||||
data. With this list, fontconfig can examine
|
||||
fonts for broken glyphs and eliminate them from
|
||||
the set of valid Unicode chars. This idea
|
||||
was borrowed from Mozilla
|
||||
-->
|
||||
<!ELEMENT blank (int|range)*>
|
||||
|
||||
<!--
|
||||
Aliases are just a special case for multiple match elements
|
||||
|
||||
They are syntactically equivalent to:
|
||||
|
||||
<match>
|
||||
<test name="family">
|
||||
<string value=[family]/>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string value=[prefer]/>
|
||||
...
|
||||
</edit>
|
||||
<edit name="family" mode="append">
|
||||
<string value=[accept]/>
|
||||
...
|
||||
</edit>
|
||||
<edit name="family" mode="append_last">
|
||||
<string value=[default]/>
|
||||
...
|
||||
</edit>
|
||||
</match>
|
||||
-->
|
||||
|
||||
<!--
|
||||
Map a font path as the path "as-path"
|
||||
-->
|
||||
<!ELEMENT remap-dir (#PCDATA)>
|
||||
<!ATTLIST remap-dir
|
||||
as-path CDATA #REQUIRED
|
||||
prefix (default|xdg|relative|cwd) "default"
|
||||
xml:space (default|preserve) "preserve">
|
||||
|
||||
<!--
|
||||
Reset the list of fonts directories
|
||||
-->
|
||||
<!ELEMENT reset-dirs EMPTY>
|
||||
|
||||
<!--
|
||||
Periodically rescan the font configuration and
|
||||
directories to synch internal state with filesystem
|
||||
-->
|
||||
<!ELEMENT rescan (int)>
|
||||
|
||||
<!--
|
||||
Edit list of available fonts at startup/reload time
|
||||
-->
|
||||
<!ELEMENT selectfont (rejectfont | acceptfont)* >
|
||||
|
||||
<!ELEMENT rejectfont (glob | pattern)*>
|
||||
|
||||
<!ELEMENT acceptfont (glob | pattern)*>
|
||||
|
||||
<!ELEMENT glob (#PCDATA)>
|
||||
|
||||
<!ELEMENT pattern (patelt)*>
|
||||
|
||||
<!ENTITY % constant 'int|double|string|matrix|bool|charset|langset|const'>
|
||||
|
||||
<!ELEMENT patelt (%constant;)*>
|
||||
<!ATTLIST patelt
|
||||
name CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT alias (test?, family*, prefer?, accept?, default?)>
|
||||
<!ATTLIST alias
|
||||
binding (weak|strong|same) "weak">
|
||||
<!ELEMENT prefer (family)*>
|
||||
<!ELEMENT accept (family)*>
|
||||
<!ELEMENT default (family)*>
|
||||
<!ELEMENT family (#PCDATA)>
|
||||
<!ATTLIST family xml:space (default|preserve) 'preserve'>
|
||||
|
||||
<!ENTITY % expr 'int|double|string|matrix|bool|charset|langset
|
||||
|name|const
|
||||
|or|and|eq|not_eq|less|less_eq|more|more_eq|contains|not_contains
|
||||
|plus|minus|times|divide|not|if|floor|ceil|round|trunc'>
|
||||
|
||||
<!--
|
||||
Match and edit patterns.
|
||||
|
||||
If 'target' is 'pattern', execute the match before selecting a font.
|
||||
if 'target' is 'font', execute the match on the result of a font
|
||||
selection.
|
||||
-->
|
||||
<!ELEMENT match (test|edit)+>
|
||||
<!ATTLIST match
|
||||
target (pattern|font|scan) "pattern">
|
||||
|
||||
<!--
|
||||
Match a field in a pattern
|
||||
|
||||
if 'qual' is 'any', then the match succeeds if any value in the field matches.
|
||||
if 'qual' is 'all', then the match succeeds only if all values match.
|
||||
if 'qual' is 'first', then the match succeeds only if the first value matches.
|
||||
if 'qual' is 'not_first', then the match succeeds only if any value other than
|
||||
the first matches.
|
||||
For match elements with target=font, if test 'target' is 'pattern',
|
||||
then the test is applied to the pattern used in matching rather than
|
||||
to the resulting font.
|
||||
|
||||
Match elements with target=scan are applied as fonts are scanned.
|
||||
They edit the pattern generated from the scanned font and affect
|
||||
what the fontconfig database contains.
|
||||
-->
|
||||
<!ELEMENT test (%expr;)*>
|
||||
<!ATTLIST test
|
||||
qual (any|all|first|not_first) "any"
|
||||
name CDATA #REQUIRED
|
||||
target (pattern|font|default) "default"
|
||||
ignore-blanks (true|false) "false"
|
||||
compare (eq|not_eq|less|less_eq|more|more_eq|contains|not_contains) "eq">
|
||||
|
||||
<!--
|
||||
Edit a field in a pattern
|
||||
|
||||
The enclosed values are used together to edit the list of values
|
||||
associated with 'name'.
|
||||
|
||||
If 'name' matches one of those used in a test element for this match element:
|
||||
if 'mode' is 'assign', replace the matched value.
|
||||
if 'mode' is 'assign_replace', replace all of the values
|
||||
if 'mode' is 'prepend', insert before the matched value
|
||||
if 'mode' is 'append', insert after the matched value
|
||||
if 'mode' is 'prepend_first', insert before all of the values
|
||||
if 'mode' is 'append_last', insert after all of the values
|
||||
If 'name' doesn't match any of those used in a test element:
|
||||
if 'mode' is 'assign' or 'assign_replace, replace all of the values
|
||||
if 'mode' is 'prepend' or 'prepend_first', insert before all of the values
|
||||
if 'mode' is 'append' or 'append_last', insert after all of the values
|
||||
-->
|
||||
<!ELEMENT edit (%expr;)*>
|
||||
<!ATTLIST edit
|
||||
name CDATA #REQUIRED
|
||||
mode (assign|assign_replace|prepend|append|prepend_first|append_last|delete|delete_all) "assign"
|
||||
binding (weak|strong|same) "weak">
|
||||
|
||||
<!--
|
||||
Elements of expressions follow
|
||||
-->
|
||||
<!ELEMENT int (#PCDATA)>
|
||||
<!ATTLIST int xml:space (default|preserve) 'preserve'>
|
||||
<!ELEMENT double (#PCDATA)>
|
||||
<!ATTLIST double xml:space (default|preserve) 'preserve'>
|
||||
<!ELEMENT string (#PCDATA)>
|
||||
<!ATTLIST string xml:space (default|preserve) 'preserve'>
|
||||
<!ELEMENT matrix ((%expr;), (%expr;), (%expr;), (%expr;))>
|
||||
<!ELEMENT bool (#PCDATA)>
|
||||
<!ELEMENT charset (int|range)*>
|
||||
<!ELEMENT range (int,int)>
|
||||
<!ELEMENT langset (string)*>
|
||||
<!ELEMENT name (#PCDATA)>
|
||||
<!ATTLIST name xml:space (default|preserve) 'preserve'
|
||||
target (default|font|pattern) 'default'>
|
||||
<!ELEMENT const (#PCDATA)>
|
||||
<!ATTLIST const xml:space (default|preserve) 'preserve'>
|
||||
<!ELEMENT or (%expr;)*>
|
||||
<!ELEMENT and (%expr;)*>
|
||||
<!ELEMENT eq ((%expr;), (%expr;))>
|
||||
<!ELEMENT not_eq ((%expr;), (%expr;))>
|
||||
<!ELEMENT less ((%expr;), (%expr;))>
|
||||
<!ELEMENT less_eq ((%expr;), (%expr;))>
|
||||
<!ELEMENT more ((%expr;), (%expr;))>
|
||||
<!ELEMENT more_eq ((%expr;), (%expr;))>
|
||||
<!ELEMENT contains ((%expr;), (%expr;))>
|
||||
<!ELEMENT not_contains ((%expr;), (%expr;))>
|
||||
<!ELEMENT plus (%expr;)*>
|
||||
<!ELEMENT minus (%expr;)*>
|
||||
<!ELEMENT times (%expr;)*>
|
||||
<!ELEMENT divide (%expr;)*>
|
||||
<!ELEMENT not (%expr;)>
|
||||
<!ELEMENT if ((%expr;), (%expr;), (%expr;))>
|
||||
<!ELEMENT floor (%expr;)>
|
||||
<!ELEMENT ceil (%expr;)>
|
||||
<!ELEMENT round (%expr;)>
|
||||
<!ELEMENT trunc (%expr;)>
|
27
system/etc/profile.d/kiss_opts.sh
Normal file
27
system/etc/profile.d/kiss_opts.sh
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user