From 5213d7e8732a7d672e02d377fceebba1727c6535 Mon Sep 17 00:00:00 2001 From: Ben Schermel Date: Sat, 6 Jun 2020 14:17:29 -0400 Subject: [PATCH] dh9 for stretch deb pkg Former-commit-id: c5e7a8517b5423ccb2bc16700199f3fc7d285801 --- pkg/deb/README.md | 8 +++++--- pkg/deb/deb-buildsource.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/deb/README.md b/pkg/deb/README.md index dfbf9638c..fe8708498 100644 --- a/pkg/deb/README.md +++ b/pkg/deb/README.md @@ -1,17 +1,19 @@ ### KeyDB DEB Package Source Builds -This directory contains scripts and components needed to generate debian packages on different distributions/architectures using source +This directory contains scripts and components needed to generate debian packages on different distributions/architectures from source -You will need to install pbuilder `sudo apt install pbuilder` +You will need to install pbuilder `sudo apt install pbuilder` along with other distribution specific dependancies Generate deb packages with the following script command run from this directory: + ``` $ ./deb-buildsource.sh ``` + This generates a directory structure, .dsc file, original.tar.gz, .changes files and new changelog for the distribution and architecture installed. When complete the produced debian packages will be located in deb_files_generated directory. Arguments for the deb-buildsource.sh script that can be passed are either 'None' or '"your custom comments"'. 'None' assumes a permanent changelog entry has been made listing the correct build for the version. If you quote and enter your own comment string, it will be appended to the changelog for that deb package. If no argument is passed a default comment is generated saying that this deb package was generated by this script. -This script has been tested on xenial/bionic/disco/stretch/buster +This script has been tested on xenial/bionic/stretch/buster diff --git a/pkg/deb/deb-buildsource.sh b/pkg/deb/deb-buildsource.sh index 8ff522f0f..c2884ad43 100755 --- a/pkg/deb/deb-buildsource.sh +++ b/pkg/deb/deb-buildsource.sh @@ -26,7 +26,7 @@ cd ../../../ tar -czvf keydb_$version.orig.tar.gz --force-local KeyDB cd KeyDB/pkg/deb/ mkdir -p $pkg_name/tmp -if [ "$codename" == "xenial" ]; then +if [[ "$codename" == "xenial" ]] || [[ "$codename" == "stretch" ]]; then cp -r debian_dh9 $pkg_name/tmp/debian else cp -r debian $pkg_name/tmp