linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit e21ec8816aef8805a88756d2a7414b054d45963d parent 7a14bad6e5bae279765dccc0eee175d27f9bb712 Author: Jul <jul@9o.is> Date: Wed, 19 Nov 2025 09:07:48 -0500 define qubes_prefs Diffstat:
| M | qubes/gen.sh | | | 4 | +++- |
| M | qubes/genfn.sh | | | 15 | +++++++++++++-- |
| M | qubes/rules.sh | | | 3 | +++ |
3 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/qubes/gen.sh b/qubes/gen.sh @@ -14,7 +14,9 @@ var pkgexclude import rules.sh import genfn.sh -policy 30-build.policy +qubes_policy 30-build.policy +qubes_prefs clockvm sys-net + qvm example phony build $BUILDS diff --git a/qubes/genfn.sh b/qubes/genfn.sh @@ -1,5 +1,6 @@ BUILDS= INSTALL= +POLICIES= qvm() { BUILDS="$BUILDS $dir/$1/build" @@ -10,6 +11,7 @@ qvm() { init_qvm() { FSPECS= INSTALL= + POLICIES= PKGEXCLUDE= var qvm $1 @@ -68,13 +70,22 @@ pkgexclude() { var pkgexclude \"$PKGEXCLUDE\" } -policy() { +qubes_policy() { _file=${1##*/} _out=$outdir/policy/$_file _name=${_file%.*} - qubes_policy $_out $1 + build qubes_policy $_out $1 bind policy $_name + POLICIES="$POLICIES $_out" + INSTALL="$INSTALL $_out" +} + +qubes_prefs() { + _out=$outdir/qubes-pref-$1 + build qubes_prefs $_out '||' $POLICIES + bind args $* + INSTALL="$INSTALL $_out" } diff --git a/qubes/rules.sh b/qubes/rules.sh @@ -24,3 +24,6 @@ bind fspecvars " rule qubes_policy 'qubes-policy --replace $policy <$in && touch $out' bind description 'QUBES POLICY $policy' + +rule qubes_prefs 'qubes-prefs $args && touch $out' +bind description 'QUBES PREFS $args'