void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit 803429330b6e3f2be5b6eabe0904896c79958a67
parent 9489b50c57fd4efb4887e1731bc3a6548e6d1c8a
Author: Dash Eclipse <dash@ezup.dev>
Date:   Thu, 16 Jul 2020 16:17:53 +0000

Add ezup/ build and sign script

Diffstat:
Aezup/build-pkg.sh | 14++++++++++++++
Aezup/sign-repos.sh | 23+++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/ezup/build-pkg.sh b/ezup/build-pkg.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +#openssl genrsa -des3 -out privkey.pem 4096 +#./xbps-src binary-bootstrap + +./xbps-src -r musl pkg $1 +./xbps-src -a armv7l-musl -r musl pkg $1 +./xbps-src -a aarch64-musl -r aarch64 pkg $1 + +#rm hostdir/binpkgs/{musl,aarch64}/{*-repodata,*.xbps.sig} +#XBPS_TARGET_ARCH=x86_64-musl xbps-rindex -a hostdir/binpkgs/musl/*.x86_64-musl.xbps +#XBPS_TARGET_ARCH=armv7l-musl xbps-rindex -a hostdir/binpkgs/musl/*.armv7l-musl.xbps +#XBPS_TARGET_ARCH=aarch64-musl xbps-rindex -a hostdir/binpkgs/aarch64/*.aarch64-musl.xbps + diff --git a/ezup/sign-repos.sh b/ezup/sign-repos.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +## https://github.com/void-linux/void-infrastructure/blob/master/ansible/roles/buildmaster/templates/xbps-sign-repos.sh.j2 + +MAINREPO="$PWD/hostdir/binpkgs" +REPOS="$MAINREPO/musl $MAINREPO/aarch64" +ARCHS="x86_64-musl armv7l-musl aarch64-musl" + +for f in ${REPOS}; do + export XBPS_PASSPHRASE="password" # password + for x in ${ARCHS}; do + export XBPS_TARGET_ARCH=$x + xbps-rindex -v -s \ + --signedby "Dash Eclipse" --privkey $HOME/.ssh/void-rsa ${f} + find ${f} -maxdepth 1 -name '*.xbps' -print0 | \ + xargs -L 1000 -r0 xbps-rindex -v -S \ + --signedby "Dash Eclipse" --privkey $HOME/.ssh/void-rsa + done + xbps-rindex -v -S \ + --signedby "Dash Eclipse" --privkey $HOME/.ssh/void-rsa ${f}/*.noarch.xbps +done + +exit 0