]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Packaging] fix debian/util.sh to work properly with new cowbuilder/pbuilder requirem...
authorAndrey Volk <andywolk@gmail.com>
Wed, 12 Aug 2020 17:55:31 +0000 (21:55 +0400)
committerAndrey Volk <andywolk@gmail.com>
Thu, 3 Sep 2020 16:49:09 +0000 (20:49 +0400)
debian/bootstrap.sh
debian/util.sh

index 66adadd0252aad848a35d8eaf25b5771fd5973b6..c9b2d522f9333111669cc12f7f18aed00f4195b0 100755 (executable)
@@ -334,6 +334,8 @@ Build-Depends:
  libcurl4-openssl-dev | libcurl4-gnutls-dev | libcurl-dev,
  bison, zlib1g-dev, libsofia-sip-ua-dev (>= 1.12.12),
  libspandsp3-dev,
+# used to format the private freeswitch apt-repo key properly
+ gnupg,
 # module build-depends
  $(debian_wrap "${mod_build_depends}")
 Standards-Version: 3.9.3
index ccf38cdc2ae7270f6d803144ef9d575053c3b2a4..88cee7949b532f7ecaf81ed9a4d3ac2236a9bc5c 100755 (executable)
@@ -298,7 +298,9 @@ build_debs () {
         for X in /etc/apt/sources.list.d/*; do cat $X >> /tmp/fs.sources.list; done
       fi
       custom_sources_file="/tmp/fs.sources.list"
-      apt-key exportall > "/tmp/fs.gpg"
+      apt-key exportall > "/tmp/fs.tmp.gpg"
+      gpg --no-default-keyring --keyring /tmp/fs.tmp.keyring.gpg  --import /tmp/fs.tmp.gpg
+      gpg --no-default-keyring --keyring /tmp/fs.tmp.keyring.gpg  --export > "/tmp/fs.gpg"
       custom_keyring="/tmp/fs.gpg"
     fi
     if [ "$custom_sources_file" == "" ]; then
@@ -309,7 +311,7 @@ build_debs () {
       echo "deb [trusted=yes] http://files.freeswitch.org/repo/deb/freeswitch-1.8/ stretch main" >> "/tmp/fs.sources.list"
     fi
     if [[ "$custom_keyring" == "/tmp/fs.gpg" && ! -r "/tmp/fs.gpg" ]]; then
-      cat << EOF > "/tmp/fs.gpg"
+      cat << EOF > "/tmp/fs.tmp.gpg"
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 
 mQINBFlVeA4BEADg3MkzUvnbuqG7S6ppt0BJIYx2WIlDzsj2EBPBBo7VpppWPGa/
@@ -363,6 +365,8 @@ Y4o4oqgePeTYzkxVYj8=
 =XPvO
 -----END PGP PUBLIC KEY BLOCK-----
 EOF
+      gpg --no-default-keyring --keyring /tmp/fs.tmp.keyring.gpg  --import /tmp/fs.tmp.gpg
+      gpg --no-default-keyring --keyring /tmp/fs.tmp.keyring.gpg  --export > "/tmp/fs.gpg"
     fi
 
     local distro="$(find_distro $1)" dsc="$2" arch="$3"