Add decode_jwt script, install kubeswitch on linux, unfreeze firefox version on linux, disable more bits of currentznver4 FreeBSD build, install terminfo-db, and remove build configs from old version of poudboot.

This commit is contained in:
Tom Alexander 2024-06-19 19:29:14 -04:00
parent 5823ca90f1
commit d3c397acf0
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
10 changed files with 55 additions and 31 deletions

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
#
# Decode the contents of a JWT
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
exec jq -R 'split(".") | .[0],.[1] | @base64d | fromjson'

View File

@ -47,6 +47,8 @@
dest: /usr/local/bin/cleanup_temporary_files
- src: git_fix_author.bash
dest: /usr/local/bin/git_fix_author
- src: decode_jwt.bash
dest: /usr/local/bin/decode_jwt
- import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"'

View File

@ -1,8 +1,24 @@
- name: Build aur packages
register: buildaur
become_user: "{{ build_user.name }}"
command: "aurutils-sync --no-view {{ item }}"
args:
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
loop:
- kubeswitch-bin
- name: Update cache
when: buildaur.changed
pacman:
name: []
state: present
update_cache: true
- name: Install packages
package:
name:
- yamllint
- stern
# - kubeswitch
- kubeswitch-bin
- fluxcd
state: present

View File

@ -1,2 +0,0 @@
[options]
IgnorePkg = firefox-developer-edition

View File

@ -51,7 +51,6 @@
owner: root
group: root
loop:
- freeze_firefox.conf
- freeze_kernel.conf
- name: Install packages

View File

@ -3,28 +3,35 @@ WITH_MALLOC_PRODUCTION=YES
WITHOUT_LLVM_ASSERTIONS=YES
WITH_REPRODUCIBLE_BUILD=YES
WITHOUT_DEBUG_FILES=YES
WITHOUT_ASSERT_DEBUG=YES
WITHOUT_LLVM_TARGET_ALL=YES
WITHOUT_LIB32=YES
WITHOUT_HTML=YES
WITHOUT_OFED=YES # OpenFabrics Enterprise Distributio
WITHOUT_FLOPPY=YES
WITHOUT_IPFW=YES
WITHOUT_IPFILTER=YES
WITHOUT_GAMES=YES
WITH_SORT_THREADS=YES
WITHOUT_TESTS=YES
WITHOUT_USB_GADGET_EXAMPLES=YES
WITHOUT_HYPERV=YES
WITHOUT_LEGACY_CONSOLE=YES
# Would be fun to experiment with:
# WITHOUT_SOURCELESS=YES
# WITHOUT_GAMES=YES
# WITHOUT_KERBEROS=YES
# WITHOUT_LEGACY_CONSOLE=YES
WITHOUT_LIB32=YES
# WITHOUT_LOADER_GELI=YES
# WITHOUT_MLX5TOOL=YES
# WITHOUT_NDIS=YES
# WITHOUT_OFED=YES
# WITHOUT_PPP=YES
# WITH_SORT_THREADS=YES
# WITHOUT_TALK=YES
# WITHOUT_TCSH=YES
# Questionable Optimizations
WITHOUT_FLOPPY=YES
WITHOUT_HTML=YES
WITHOUT_IPFW=YES
WITHOUT_IPFILTER=YES
WITHOUT_LLVM_TARGET_ALL=YES
# WITHOUT_KERNEL_SYMBOLS=YES
# Commented out because maybe I want email alerts for failing disks
# WITHOUT_MAIL=YES
# Some ports like curl depend on kerberos by default. I figure I'd rather just have kerberos built into the base system than depend on a port.
# WITHOUT_KERBEROS=YES

View File

@ -35,6 +35,7 @@ graphics/vulkan-validation-layers
lang/python
lang/rust-nightly
math/gnuplot
misc/terminfo-db
multimedia/ffmpeg
multimedia/libva-intel-driver
multimedia/libva-intel-media-driver

View File

@ -38,7 +38,6 @@
group: wheel
loop:
- /usr/ports/distfiles
- /opt/poudriere/build_configs
- /usr/local/poudriere/data/logs/bulk
- name: Install Configuration
@ -86,15 +85,6 @@
- src: poudriere_schedule_ports_tree_upgrade.bash
dest: /usr/local/bin/poudriere_schedule_ports_tree_upgrade
- name: Install Configuration
template:
src: "build_config.j2"
dest: "/opt/poudriere/build_configs/{{ item.jail }}-{{ item.ports }}-{{ item.set }}"
owner: root
group: wheel
mode: 0600
loop: "{{ poudriere_builds }}"
- name: Install src.conf
when: item.srcconf is defined
copy:

View File

@ -1,3 +0,0 @@
JAIL={{ item.jail }}
PORTS={{ item.ports }}
SET={{ item.set }}

View File

@ -24,6 +24,12 @@
# command: cap_mkdb /usr/share/misc/termcap
# when: wrote_alacritty_cap.changed
- name: Install packages
package:
name:
- terminfo-db
state: present
- name: Append alacritty terminfo
command: "tic -xe alacritty,alacritty-direct -"
args: