diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | add_package.sh | 24 | ||||
-rwxr-xr-x | find_package.sh | 8 | ||||
-rwxr-xr-x | sign_package.sh | 8 |
4 files changed, 41 insertions, 1 deletions
@@ -3,5 +3,5 @@ repos *.pkg.tar.zst.sig pkg src -add_package.sh deploy.sh +old diff --git a/add_package.sh b/add_package.sh new file mode 100755 index 0000000..98150cb --- /dev/null +++ b/add_package.sh @@ -0,0 +1,24 @@ +#!/bin/bash + + +REPO=$1 +ARCH=$2 +PKG=$3 + +PREFIX="repos/$REPO/os/$ARCH" +DATABASE="$PREFIX/$REPO.db" +FILESTORAGE="$PREFIX/$REPO.files" + + +# make sure folders exist +mkdir -p $PREFIX + +# add to database and re-sign database +repo-add $DATABASE.tar.zst $PKG +gpg -u xengineering --detach-sign -o $DATABASE.sig $DATABASE +gpg -u xengineering --detach-sign -o $FILESTORAGE.sig $FILESTORAGE + +# copy package and signature to repository +cp $PKG $PREFIX/ +cp $PKG.sig $PREFIX/ + diff --git a/find_package.sh b/find_package.sh new file mode 100755 index 0000000..0fe7410 --- /dev/null +++ b/find_package.sh @@ -0,0 +1,8 @@ +#!/bin/bash + + +PKG_NAME=$1 + + +find . -type f -iname "$PKG_NAME*.pkg.tar.zst" | grep -v "./repos*." + diff --git a/sign_package.sh b/sign_package.sh new file mode 100755 index 0000000..7406f9b --- /dev/null +++ b/sign_package.sh @@ -0,0 +1,8 @@ +#!/bin/bash + + +PKG=$1 + + +gpg -u xengineering --detach-sign -o $PKG.sig $PKG + |