mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 19:46:41 -04:00
Now uses sequoia-sq to generate the keyring. Also run-depend on archlinux-pacman to initialise/populate/update the keyring on the target such that the official Arch Linux pacman repositories verify PGP signatures properly. Event: SouthEast LinuxFest 2023
29 lines
617 B
Text
29 lines
617 B
Text
path_glob: %%LOCALBASE%%/share/pacman/keyrings
|
|
cleanup: {
|
|
type: lua
|
|
sandbox: false
|
|
script: <<EOS
|
|
function cleanup(directory)
|
|
for _,d in ipairs(pkg.readdir(directory)) do
|
|
local full_path = directory .. "/" .. d
|
|
local stat = pkg.stat(full_path)
|
|
if stat["type"] == "dir" then
|
|
cleanup(full_path)
|
|
end
|
|
os.remove(full_path)
|
|
end
|
|
os.remove(directory)
|
|
end
|
|
|
|
cleanup("%%LOCALBASE%%/etc/pacman.d/gnupg")
|
|
EOS
|
|
}
|
|
trigger: {
|
|
type: lua
|
|
sandbox: false
|
|
script: <<EOS
|
|
pkg.exec({"pacman-key", "--init"})
|
|
pkg.exec({"pacman-key", "--populate", "archlinux"})
|
|
pkg.exec({"pacman-key", "--updatedb"})
|
|
EOS
|
|
}
|