Skip to content

Commit

Permalink
Fix keyring package
Browse files Browse the repository at this point in the history
  • Loading branch information
zstg authored Aug 19, 2024
1 parent 421906f commit cd9c057
Show file tree
Hide file tree
Showing 9 changed files with 120 additions and 76 deletions.
18 changes: 18 additions & 0 deletions PKGBUILDS/stratos-keyring/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pkgbase = stratos-keyring
pkgdesc = StratOS keyring
pkgver = 20240819
pkgrel = 1
url = https://stratos-linux.github.io
install = stratos-keyring.install
arch = any
license = GPL-3.0-or-later
source = stratos.gpg
source = stratos-revoked
source = stratos-trusted
source = stratos-keyring.install
# sha512sums = 1933bb08294113c95ce05e608b5f1c8643e8f9afffc97e8bf479626440e31d451f54a5e92bbac6a20a991fa874eec47b36b2722b6529d87afb384bd2c32a5f30
# sha512sums = cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
# sha512sums = 4c2677da43b2032453346605cdf869f8c584c6f7d22009cd47f1585fc01c81e91917db237c383dc64ef90baa901a40e887a8a8e693fb97d1851040a16d6b8b62
# sha512sums = 8be463fc3c516dcd761ac6d0658605bb688e178339b96d4499d440a9fca8f6b04b2eba6772b8c8b995700d26c734314f12bc386bf824e151e701e583a360c453

pkgname = stratos-keyring
38 changes: 18 additions & 20 deletions PKGBUILDS/stratos-keyring/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
# Maintainer: ZeStig <o0vckutt@duck.com>

pkgname=stratos-keyring
pkgver=20240804
pkgver=20240819
pkgrel=1
pkgdesc='StratOS keyring'
arch=('x86_64')
url='https://stratos-linux.github.io'
license=('GPL')
install="${pkgname}.install"
source=('https://raw.githubusercontent.com/stratos-linux/keyring/main/Makefile'
'https://raw.githubusercontent.com/stratos-linux/keyring/main/stratos.gpg'
'https://raw.githubusercontent.com/stratos-linux/keyring/main/stratos-revoked'
'https://raw.githubusercontent.com/stratos-linux/keyring/main/stratos-trusted')
validpgpkeys=(
'A046BE254138E0AC1BF5F66690D63B3FE2F217ED' # zstg
)
sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgdesc="StratOS keyring"
arch=(any)
url="https://stratos-linux.github.io"
license=('GPL-3.0-or-later')
install=$pkgname.install
source=("stratos.gpg"
"stratos-revoked"
"stratos-trusted"
"$install")

sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
package() {
cd "${srcdir}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
}
install -D -m0644 -t "${pkgdir}"/usr/share/pacman/keyrings/ 'stratos'{.gpg,-trusted,-revoked}
}
Empty file.
1 change: 1 addition & 0 deletions PKGBUILDS/stratos-keyring/stratos-trusted
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A046BE254138E0AC1BF5F66690D63B3FE2F217ED:4:
81 changes: 81 additions & 0 deletions PKGBUILDS/stratos-keyring/stratos.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
-----zstg-----

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGVeNfABEAC7CNlexcDC/LJd/m/7hMgBn7/MenNzDe2dMD7hBehJVfYy8suJ
Fvn8nufgI9WgP0XmIN6lM7xUgwfUUw20Uygq/UkPAg+fjKk/bRVF0NXptsOAEK7x
X7lQ7H4IWJJg4zXnr7f7YCSMzw224QFKgUFTqx4muAeTlAkktctXOa70DEN3MMbZ
QDrQF4yzCj5SpQDhgCtn4KgfutPVTs+lonrzD5qCa9M1AFdg1DtvI4WKi4ImR9B8
c7MlkLMAy9SBiNlNDUPpd/APCyCEkfOJiNJs+F1Xh9LoTKSsOdmt/Y4FpszmSuGw
pG8KYKkBdltv7jWJW6/TiWg8vJsrIpmYlB7tQwG3TwxA9kFhprXcfShJ30dflibH
2vmzQoEzpQxhp34Wbi2tLki2NXD7M39sjxJS55StGaUFUgMOc6lT6QrgGzraagYQ
D088hAZN4qUA8E0bfNd5Ns8aTnmK7/okmc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ubcVABbrnc
T0Jv+CQVobodVEOEHt9WxUEDBa/EINMQaBaVgRPSgIt3cKLrUt5sB1yEgl0YnPF+
uLpo+JueGuQoDU0pCSGTTjA=
=3kvR
-----END PGP PUBLIC KEY BLOCK-----
16 changes: 2 additions & 14 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,15 @@ trap 'handle_error $LINENO' ERR
setup_environment() {
dir=$(pwd)
pacman-key --init
rm -rf /tmp/stratos-keyring 2>/dev/null
sudo rm -rf /tmp/stratos-keyring 2>/dev/null
cp -r $dir/PKGBUILDS/stratos-keyring /tmp
sudo chown -R builder:builder /tmp/stratos-keyring
cd /tmp/stratos-keyring
rm -f *.pkg.tar.zst 2>/dev/null
sudo -u builder makepkg -si --noconfirm
# sudo pacman-key --recv-keys A046BE254138E0AC1BF5F66690D63B3FE2F217ED
# sudo pacman-key --finger A046BE254138E0AC1BF5F66690D63B3FE2F217ED
sudo pacman-key --lsign A046BE254138E0AC1BF5F66690D63B3FE2F217ED
## echo "A046BE254138E0AC1BF5F66690D63B3FE2F217ED:6:" | gpg --import-ownertrust -
## echo "A046BE254138E0AC1BF5F66690D63B3FE2F217ED:6:" | sudo -u builder gpg --import-ownertrust -
## echo -e "trust\n6\ny\nsave\n" | sudo pacman-key --edit-key A046BE254138E0AC1BF5F66690D63B3FE2F217ED
# Do this if you want the packages to show up with "Ultimate" trust - else they'll be "full"y trusted bcos of pacman-key
# sudo gpg --homedir /etc/pacman.d/gnupg --export-ownertrust > /etc/pacman.d/gnupg/ownertrust.txt
# echo "A046BE254138E0AC1BF5F66690D63B3FE2F217ED:6:" >> /etc/pacman.d/gnupg/ownertrust.txt
# sudo gpg --homedir /etc/pacman.d/gnupg --import-ownertrust < /etc/pacman.d/gnupg/ownertrust.txt
# pacman-key --list-keys | tail -n 20
cd $dir
echo -e "\n[StratOS-repo]\nSigLevel = Optional TrustAll\nServer = https://${git config --get remote.origin.url | sed -E 's|.+[:/]([^:/]+)/([^/.]+)(\.git)?|\1|'}.github.io/StratOS-repo/x86_64" | sudo tee -a /etc/pacman.conf
sudo sed -i 's/purge debug/purge !debug/g' /etc/makepkg.conf
# sudo sed -i 's/^#* *GPGKEY *=.*/GPGKEY="A046BE254138E0AC1BF5F66690D63B3FE2F217ED"/' /etc/makepkg.conf # add zstg's public key
sudo sed -i 's/^#* *GPGKEY *=.*/GPGKEY="A046BE254138E0AC1BF5F66690D63B3FE2F217ED"/' /etc/makepkg.conf # add zstg's public key
sed -i 's/^#*\(PACKAGER=\).*/\1"StratOS team <stratos-linux@gmail.com>"/' /etc/makepkg.conf
}

Expand Down
Binary file removed elkowar.gpg
Binary file not shown.
42 changes: 0 additions & 42 deletions stratos-public-key.gpg

This file was deleted.

Binary file removed web-flow.gpg
Binary file not shown.

0 comments on commit cd9c057

Please sign in to comment.