sign-repos.sh (674B)
1#!/bin/sh 2 3## https://github.com/void-linux/void-infrastructure/blob/master/ansible/roles/buildmaster/templates/xbps-sign-repos.sh.j2 4 5REPO="$PWD/hostdir/binpkgs" 6ARCHS="x86_64-musl armv7l-musl aarch64-musl" 7 8export XBPS_PASSPHRASE="$XBPS_PASSPHRASE" 9for x in ${ARCHS}; do 10 export XBPS_TARGET_ARCH=$x 11 xbps-rindex -v -s \ 12 --signedby "Dash Eclipse" \ 13 --privkey $HOME/.ssh/void-rsa \ 14 ${REPO} 15 find ${REPO} -maxdepth 1 -name '*.xbps' -print0 | \ 16 xargs -L 1000 -r0 \ 17 xbps-rindex -v -S \ 18 --signedby "Dash Eclipse" \ 19 --privkey $HOME/.ssh/void-rsa 20done 21 22xbps-rindex -v -S \ 23 --signedby "Dash Eclipse" \ 24 --privkey $HOME/.ssh/void-rsa \ 25 ${REPO}/*.noarch.xbps 26 27exit 0