Commit 1b031d71 authored by Praetorius, Simon's avatar Praetorius, Simon

generation of debian packages improved

parent 88bf556a
Pipeline #1652 passed with stages
in 62 minutes and 40 seconds
2004-2007 Simon Vey
2007-2012 Thomas Witkowski
2008-2013 Peter Gottschling <peter.gottschling@simunova.com>
2008-2016 Rainer Backofen <rainer.backofen@tu-dresden.de>
2009-2016 Andreas Naumann <andreas.naumann@tu-dresden.de>
2010-2019 Simon Praetorius <simon.praetorius@tu-dresden.de>
2014-2016 Siqi Ling <lsq0473@gmail.com>
\ No newline at end of file
2004-2007 Simon Vey
2007-2012 Thomas Witkowski
2008-2013 Peter Gottschling <peter.gottschling@simunova.com>
2008-2016 Rainer Backofen <rainer.backofen@tu-dresden.de>
2009-2016 Andreas Naumann <andreas.naumann@tu-dresden.de>
2010-2019 Simon Praetorius <simon.praetorius@tu-dresden.de>
2014-2016 Siqi Ling <lsq0473@gmail.com>
\ No newline at end of file
# CMake script to create debian packages for AMDiS
# ================================================
#
# Usage:
# - If you want to create a new release, specify the ubuntu distribution, e.g. xenial, or bionic
# and call the cmake script with the -DDISTRIBUTION parameters:
# ```
# cmake -DDISTRIBUTION=xenial -P .../create_package.cmake
# ```
# - Otherwise, if you want to create a Release Candidate, omit the -DDISTRIBUTION parameter.
# - In case there are multiple uploads of the same version, i.e. you have corrected some bugs,
# you may need to append a sub-version to the version string, i.e. add ppa[1-9]
# PACKAGE_VERSION=${PACKAGE_VERSION}~ppa[1-9]~${PACKAGE_DISTRIBUTION}
#
set(PACKAGE_SOURCE_NAME "amdis")
set(PACKAGE_NAME "libamdis")
set(PACKAGE_SECTION "libdevel")
......@@ -41,6 +56,7 @@ set(PACKAGE_LICENSE_FILE "${CMAKE_SOURCE_DIR}/LICENSE")
set(PACKAGE_README_FILE "${CMAKE_SOURCE_DIR}/README.md")
file(READ ${CMAKE_SOURCE_DIR}/AUTHORS PACKAGE_AUTHORS)
string(STRIP "${PACKAGE_AUTHORS}" PACKAGE_AUTHORS)
execute_process(COMMAND date OUTPUT_VARIABLE PACKAGE_DATE)
set(IN_DIR ${CMAKE_SOURCE_DIR}/tools/packaging/debian)
......@@ -85,7 +101,7 @@ configure_file(${IN_DIR}/libamdis-debug.install ${DEBIAN_DIR}/libamdis-debug
configure_file(${IN_DIR}/libamdis-par-debug.install ${DEBIAN_DIR}/libamdis-par-debug.install @ONLY)
file(WRITE ${DEBIAN_DIR}/compat "9\n")
file(WRITE ${DEBIAN_DIR}/soure/format "3.0 (quilt)\n")
file(WRITE ${DEBIAN_DIR}/source/format "3.0 (quilt)\n")
# generate the debian package
execute_process(COMMAND ./generate_package.sh ${OUT_DIR}/${PACKAGE_PREFIX} ${PACKAGE_VERSION_FULL} ${IN_DIR}
......
......@@ -13,15 +13,11 @@ CHANGES_FILE="${ROOT}/../amdis_${VERSION}_source.changes"
cd $ROOT
debuild -uc -us -S -sa
# export GNUPGHOME=/srv/amdis-deploy/gnupg
# build debian source package and sign it using gpg with key
# AMDiS Continuous Deployment - Automatic Signing Key <amdisfem@gmail.com>
debsign -S -kE04CC7A3407B8B2F5F68AB03A9E5471F3B1E713A ${CHANGES_FILE}
# build debian source package and sign it using gpg
echo "${AMDIS_PGP_PASSPHRASE}" >> /tmp/amdis_passphrase
debsign -p"$BIN/gpg_pass.sh /tmp/amdis_passphrase" -S -k99F411D7 ${CHANGES_FILE} #3B1E713A
$BIN/ssh_add_pass.sh /amdis/id_rsa /tmp/amdis_passphrase
# upload the package
# upload the package (this works from ubuntu, but not from debian)
dput ppa:math-iwr/ppa ${CHANGES_FILE}
rm -f /tmp/amdis_passphrase
# NOTE: key amdisfem@gmail.com must be trusted. Otherwise the upload will fail.
\ No newline at end of file
......@@ -9,7 +9,7 @@ PWD_FILE="$1"
shift 1
eval $(gpg-agent --daemon --allow-preset-passphrase --max-cache-ttl 7200)
cat ${PWD_FILE} | /usr/lib/gnupg/gpg-preset-passphrase --preset key:99F411D7
cat ${PWD_FILE} | /usr/lib/gnupg/gpg-preset-passphrase --preset key:E04CC7A3407B8B2F5F68AB03A9E5471F3B1E713A
export GPG_TTY=`tty`
gpg --batch --use-agent $@
/usr/lib/gnupg/gpg-preset-passphrase --forget key:99F411D7
/usr/lib/gnupg/gpg-preset-passphrase --forget key:E04CC7A3407B8B2F5F68AB03A9E5471F3B1E713A
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment