linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 516bcafac748012a475bb344c3e7b42d35636108 parent 9d849a3df2f097e320de0dded2f685663c3b6917 Author: Jul <jul@9o.is> Date: Thu, 7 Aug 2025 07:56:24 -0400 add fe Diffstat:
| M | .gitmodules | | | 3 | +++ |
| A | pkg/fe/build | | | 14 | ++++++++++++++ |
| A | pkg/fe/config.h | | | 26 | ++++++++++++++++++++++++++ |
| A | pkg/fe/repo | | | 1 | + |
4 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/.gitmodules b/.gitmodules @@ -31,3 +31,6 @@ path = pkg/vis/repo url = https://github.com/martanne/vis ignore = all +[submodule "fe"] + path = pkg/fe/repo + url = /home/user/code/fe diff --git a/pkg/fe/build b/pkg/fe/build @@ -0,0 +1,14 @@ +#!/bin/sh +set -euo pipefail + +repodir="$srcdir/repo" + +rm -rf "$outdir" +cp "$srcdir/config.h" "$repodir" + +make -C "$repodir" +make DESTDIR="$outdir" PREFIX=/usr -C "$repodir" install + +if [ "$local_install" == "true" ]; then + sudo make -C "$repodir" PREFIX=/usr install +fi diff --git a/pkg/fe/config.h b/pkg/fe/config.h @@ -0,0 +1,26 @@ +#ifdef __cplusplus +extern "C" { +#endif + +#include "tty.h" + +#define COLOR_DIRECTORY TTY_COLOR_BLUE +#define COLOR_LINK TTY_COLOR_CYAN +#define COLOR_SOCK TTY_COLOR_YELLOW +#define COLOR_FIFO TTY_COLOR_MAGENTA +#define COLOR_EXEC TTY_COLOR_GREEN +#define COLOR_REGULAR TTY_COLOR_NORMAL + +#define DEFAULT_TTY "/dev/tty" +#define DEFAULT_NUM_FILES 999 +#define KEYTIMEOUT 25 + +#define SORT_DIR 1; +#define SORT_ICASE 1; +#define SORT_MTIME 0; +#define SHOW_HIDDEN 1; + +#ifdef __cplusplus +} +#endif + diff --git a/pkg/fe/repo b/pkg/fe/repo @@ -0,0 +1 @@ +Subproject commit 6c5f45dbfa2386eebb406af018b900ddf954c0d5