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