dh9 for stretch deb pkg

Former-commit-id: c5e7a8517b5423ccb2bc16700199f3fc7d285801
This commit is contained in:
Ben Schermel 2020-06-06 14:17:29 -04:00 committed by John Sully
parent 0cd8d8abb7
commit 5213d7e873
2 changed files with 6 additions and 4 deletions

View File

@ -1,17 +1,19 @@
### KeyDB DEB Package Source Builds ### 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: Generate deb packages with the following script command run from this directory:
``` ```
$ ./deb-buildsource.sh $ ./deb-buildsource.sh
``` ```
This generates a directory structure, .dsc file, original.tar.gz, .changes files and new changelog for the distribution and architecture installed. 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. 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. 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

View File

@ -26,7 +26,7 @@ cd ../../../
tar -czvf keydb_$version.orig.tar.gz --force-local KeyDB tar -czvf keydb_$version.orig.tar.gz --force-local KeyDB
cd KeyDB/pkg/deb/ cd KeyDB/pkg/deb/
mkdir -p $pkg_name/tmp mkdir -p $pkg_name/tmp
if [ "$codename" == "xenial" ]; then if [[ "$codename" == "xenial" ]] || [[ "$codename" == "stretch" ]]; then
cp -r debian_dh9 $pkg_name/tmp/debian cp -r debian_dh9 $pkg_name/tmp/debian
else else
cp -r debian $pkg_name/tmp cp -r debian $pkg_name/tmp