Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:roschil:branches:Cloud:OTC:Tools
cloud-otc-keyring
prepare-cloud-otc-archive.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File prepare-cloud-otc-archive.sh of Package cloud-otc-keyring
#!/usr/bin/env bash KEYID=05A6C49C NAME=cloud-otc-keyring VERSION=$(cat version | tr -d '[:space:]') FILES="cloud-otc-archive.gpg cloud-otc-keyring.gpg" function fetch_gpg_key { TMPDIR=$(mktemp -d) [ -z ${TMPDIR} ] && exit 1 #wget https://build.opensuse.org/projects/Cloud:OTC/public_key -O - | gpg --homedir=${TMPDIR} --import wget https://build.opensuse.org/projects/Cloud:OTC/signing_keys/download?kind=gpg -O - | gpg --homedir=${TMPDIR} --import # gpg --homedir=${TMPDIR} --keyserver pool.sks-keyservers.net --recv-keys ${KEYID} gpg --homedir=${TMPDIR} --output cloud-otc-keyring.gpg --export ${KEYID} gpg --homedir=${TMPDIR} --armor --export ${KEYID} > cloud-otc-archive.gpg rm -rf ${TMPDIR} } function compress_files { tar -cvjf $NAME-$VERSION.tar.bz2 $FILES } function create_dsc { CMD="| grep -o '^\S*'| tr -d '[:space:]'" FILESIZE=$(ls -l $NAME-$VERSION.tar.bz2 | awk '{print $5}' | tr -d '[:space:]') FILESHA1=$(sha1sum $NAME-$VERSION.tar.bz2 | grep -o '^\S*' | tr -d '[:space:]') FILESHA256=$(sha256sum $NAME-$VERSION.tar.bz2 | grep -o '^\S*' | tr -d '[:space:]') FILEMD5=$(md5sum $NAME-$VERSION.tar.bz2 | grep -o '^\S*' | tr -d '[:space:]') cat >$PWD/$NAME-$VERSION.dsc <<EOT Format: 3.0 (native) Source: $NAME Binary: $NAME Architecture: all Version: $VERSION Maintainer: Roman Schiller <roman.schiller@t-systems.com> Standards-Version: 3.9.5 Build-Depends: debhelper (>= 9) Package-List: cloud-otc-keyring deb misc important arch=all Checksums-Sha1: $FILESHA1 $FILESIZE $NAME-$VERSION.tar.bz2 Checksums-Sha256: $FILESHA256 $FILESIZE $NAME-$VERSION.tar.bz2 Files: $FILEMD5 $FILESIZE $NAME-$VERSION.tar.bz2 EOT } fetch_gpg_key compress_files create_dsc
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor