2017-07-30 00:21:44 +02:00
|
|
|
--- a/src/libkeymap/analyze.l
|
|
|
|
+++ b/src/libkeymap/analyze.l
|
|
|
|
@@ -101,6 +101,9 @@ stack_pop(struct lk_ctx *ctx, void *scan
|
2016-07-01 02:51:01 +02:00
|
|
|
static const char *const include_dirpath0[] = { "", 0 };
|
|
|
|
static const char *const include_dirpath1[] = { "", "../include/", "../../include/", 0 };
|
|
|
|
static const char *const include_dirpath3[] = {
|
2017-07-30 00:21:44 +02:00
|
|
|
+ "/etc/kbd/" KEYMAPDIR "/include/",
|
|
|
|
+ "/etc/kbd/" KEYMAPDIR "/i386/include/",
|
|
|
|
+ "/etc/kbd/" KEYMAPDIR "/mac/include/",
|
2016-07-01 02:51:01 +02:00
|
|
|
DATADIR "/" KEYMAPDIR "/include/",
|
|
|
|
DATADIR "/" KEYMAPDIR "/i386/include/",
|
|
|
|
DATADIR "/" KEYMAPDIR "/mac/include/", 0
|
2017-07-30 00:21:44 +02:00
|
|
|
--- a/src/loadkeys.c
|
|
|
|
+++ b/src/loadkeys.c
|
|
|
|
@@ -27,7 +27,7 @@
|
2016-07-01 02:51:01 +02:00
|
|
|
#include "keymap.h"
|
|
|
|
|
2017-07-30 00:21:44 +02:00
|
|
|
static const char *progname = NULL;
|
2016-07-01 02:51:01 +02:00
|
|
|
-static const char *const dirpath1[] = { "", DATADIR "/" KEYMAPDIR "/**", KERNDIR "/", 0 };
|
|
|
|
+static const char *const dirpath1[] = { "", "/etc/kbd/" KEYMAPDIR "/**", DATADIR "/" KEYMAPDIR "/**", 0 };
|
|
|
|
static const char *const suffixes[] = { "", ".kmap", ".map", 0 };
|
|
|
|
|
2017-07-30 00:21:44 +02:00
|
|
|
static void __attribute__((noreturn))
|
|
|
|
--- a/src/loadunimap.c
|
|
|
|
+++ b/src/loadunimap.c
|
|
|
|
@@ -30,7 +30,7 @@
|
2016-07-01 02:51:01 +02:00
|
|
|
extern char *progname;
|
|
|
|
extern int force;
|
|
|
|
|
2017-07-30 00:21:44 +02:00
|
|
|
-static const char *const unidirpath[] = { "", DATADIR "/" UNIMAPDIR "/", 0 };
|
|
|
|
+static const char *const unidirpath[] = { "", "/etc/kbd/" UNIMAPDIR "/", DATADIR "/" UNIMAPDIR "/", 0 };
|
2016-07-01 02:51:01 +02:00
|
|
|
static const char *const unisuffixes[] = { "", ".uni", ".sfm", 0 };
|
|
|
|
|
|
|
|
#ifdef MAIN
|
2017-07-30 00:21:44 +02:00
|
|
|
--- a/src/mapscrn.c
|
|
|
|
+++ b/src/mapscrn.c
|
|
|
|
@@ -27,7 +27,7 @@ void loadnewmap(int fd, char *mfil);
|
|
|
|
static int ctoi(char *);
|
2016-07-01 02:51:01 +02:00
|
|
|
|
|
|
|
/* search for the map file in these directories (with trailing /) */
|
2017-07-30 00:21:44 +02:00
|
|
|
-static const char *const mapdirpath[] = { "", DATADIR "/" TRANSDIR "/", 0 };
|
|
|
|
+static const char *const mapdirpath[] = { "", "/etc/kbd/" TRANSDIR "/", DATADIR "/" TRANSDIR "/", 0 };
|
2016-07-01 02:51:01 +02:00
|
|
|
static const char *const mapsuffixes[] = { "", ".trans", "_to_uni.trans", ".acm", 0 };
|
|
|
|
|
|
|
|
#ifdef MAIN
|
2017-07-30 00:21:44 +02:00
|
|
|
--- a/src/resizecons.c
|
|
|
|
+++ b/src/resizecons.c
|
|
|
|
@@ -101,7 +101,7 @@ static int vga_get_fontheight(void);
|
2016-07-01 02:51:01 +02:00
|
|
|
static void vga_set_cursor(int, int);
|
|
|
|
static void vga_set_verticaldisplayend_lowbyte(int);
|
|
|
|
|
2017-07-30 00:21:44 +02:00
|
|
|
-const char *const dirpath[] = { "", DATADIR "/" VIDEOMODEDIR "/", 0 };
|
|
|
|
+const char *const dirpath[] = { "", "/etc/kbd/" VIDEOMODEDIR "/", DATADIR "/" VIDEOMODEDIR "/", 0};
|
2016-07-01 02:51:01 +02:00
|
|
|
const char *const suffixes[] = { "", 0 };
|
|
|
|
|
2017-07-30 00:21:44 +02:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
--- a/src/setfont.c
|
|
|
|
+++ b/src/setfont.c
|
|
|
|
@@ -53,10 +53,10 @@ int force = 0;
|
|
|
|
int debug = 0;
|
2016-07-01 02:51:01 +02:00
|
|
|
|
|
|
|
/* search for the font in these directories (with trailing /) */
|
2017-07-30 00:21:44 +02:00
|
|
|
-const char *const fontdirpath[] = { "", DATADIR "/" FONTDIR "/", 0 };
|
|
|
|
+const char *const fontdirpath[] = { "", "/etc/kbd/" FONTDIR "/", DATADIR "/" FONTDIR "/", 0 };
|
2016-07-01 02:51:01 +02:00
|
|
|
const char *const fontsuffixes[] = { "", ".psfu", ".psf", ".cp", ".fnt", 0 };
|
|
|
|
/* hide partial fonts a bit - loading a single one is a bad idea */
|
2017-07-30 00:21:44 +02:00
|
|
|
-const char *const partfontdirpath[] = { "", DATADIR "/" FONTDIR "/" PARTIALDIR "/", 0 };
|
|
|
|
+const char *const partfontdirpath[] = { "", "/etc/kbd/" FONTDIR "/" PARTIALDIR "/", DATADIR "/" FONTDIR "/" PARTIALDIR "/", 0 };
|
2016-07-01 02:51:01 +02:00
|
|
|
const char *const partfontsuffixes[] = { "", 0 };
|
|
|
|
|
|
|
|
static inline int
|