mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-24 13:19:33 -04:00
refactor: initial commit
This commit is contained in:
commit
f6ac229306
594 changed files with 18600 additions and 0 deletions
29
salt/utils/tools/builder/README.md
Normal file
29
salt/utils/tools/builder/README.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# builder
|
||||
|
||||
Build tools for packaging in Qubes OS.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
* [Description](#description)
|
||||
* [Installation](#installation)
|
||||
* [Usage](#usage)
|
||||
|
||||
## Description
|
||||
|
||||
This is not necessary for qubes-builder, it is just a set of useful tools for
|
||||
building packages in UNIX distributions.
|
||||
|
||||
## Installation
|
||||
|
||||
Install builder tools on templates:
|
||||
```sh
|
||||
qubesctl --skip-dom0 --targets=TEMPLATEVMS state.apply utils.tools.builder.core
|
||||
```
|
||||
Install documentation tools on templates:
|
||||
```sh
|
||||
qubesctl --skip-dom0 --targets=TEMPLATEVMS state.apply utils.tools.builder.doc
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Standard builder usage, no extra configuration required.
|
46
salt/utils/tools/builder/core.sls
Normal file
46
salt/utils/tools/builder/core.sls
Normal file
|
@ -0,0 +1,46 @@
|
|||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
{% if grains['nodename'] != 'dom0' -%}
|
||||
|
||||
"{{ slsdotpath }}-core-updated":
|
||||
pkg.uptodate:
|
||||
- refresh: True
|
||||
|
||||
"{{ slsdotpath }}-core-installed":
|
||||
pkg.installed:
|
||||
- refresh: True
|
||||
- install_recommends: False
|
||||
- skip_suggestions: True
|
||||
- pkgs:
|
||||
- qubes-core-agent-networking
|
||||
- qubes-core-agent-passwordless-root
|
||||
- bash-completion
|
||||
- make
|
||||
- rpmlint
|
||||
- rpm
|
||||
- licensecheck
|
||||
- devscripts
|
||||
|
||||
{% set pkg = {
|
||||
'Debian': {
|
||||
'pkg': ['equivs', 'dctrl-tools', 'build-essential' 'debhelper', 'quilt',
|
||||
'lintian', 'mmdebstrap'],
|
||||
},
|
||||
'RedHat': {
|
||||
'pkg': ['rpmdevtools', 'rpm-sign', 'rpm-build', 'fedora-packager',
|
||||
'fedora-review'],
|
||||
},
|
||||
}.get(grains.os_family) -%}
|
||||
|
||||
"{{ slsdotpath }}-core-installed-os-specific":
|
||||
pkg.installed:
|
||||
- refresh: True
|
||||
- install_recommends: False
|
||||
- skip_suggestions: True
|
||||
- pkgs: {{ pkg.pkg|sequence|yaml }}
|
||||
|
||||
{% endif -%}
|
25
salt/utils/tools/builder/doc.sls
Normal file
25
salt/utils/tools/builder/doc.sls
Normal file
|
@ -0,0 +1,25 @@
|
|||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
{% if grains['nodename'] != 'dom0' -%}
|
||||
|
||||
"{{ slsdotpath }}-doc-updated":
|
||||
pkg.uptodate:
|
||||
- refresh: True
|
||||
|
||||
"{{ slsdotpath }}-doc-installed":
|
||||
pkg.installed:
|
||||
- refresh: True
|
||||
- install_recommends: False
|
||||
- skip_suggestions: True
|
||||
- pkgs:
|
||||
- pandoc
|
||||
- ronn
|
||||
- groff
|
||||
- man-db
|
||||
- less
|
||||
|
||||
{% endif -%}
|
Loading…
Add table
Add a link
Reference in a new issue