diff options
author | Steve McIntyre <steve@einval.com> | 2021-05-03 20:52:35 +0100 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2021-05-03 20:24:52 +0000 |
commit | 29f231fd049f023bcf57810544b757b325fac2ce (patch) | |
tree | a79a133ef50834a6d91c3ad0b3eb1005f4a119f3 /debian/signing-template.generate | |
parent | 11e0f1dafde51f35d216e6405804a1462e2db983 (diff) | |
download | efi-boot-shim-debian/15.4-3.tar.gz efi-boot-shim-debian/15.4-3.zip |
Add maintainer scripts to the template packagesdebian/15.4-3
Manage installing and removing fbXXX.efi and mmXXX.efi when we
install/remove the shim-helpers-$arch-signed packages. Closes: #966845
Diffstat (limited to 'debian/signing-template.generate')
-rwxr-xr-x | debian/signing-template.generate | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/signing-template.generate b/debian/signing-template.generate index 63ba0f24..19a4fbcd 100755 --- a/debian/signing-template.generate +++ b/debian/signing-template.generate @@ -6,6 +6,8 @@ urgency="$(dpkg-parsechangelog -S Urgency)" date="$(dpkg-parsechangelog -S Date)" version_binary="$(dpkg-parsechangelog -S Version)" version_mangled="$(dpkg-parsechangelog -S Version | tr '-' '+')" +pkg_name="shim-helpers-${DEB_HOST_ARCH}-signed-template" +final_pkg_name="${pkg_name%-template}" subst () { sed \ @@ -16,11 +18,11 @@ subst () { -e "s/@distribution@/${distribution}/g" \ -e "s/@urgency@/${urgency}/g" \ -e "s/@date@/${date}/g" \ + -e "s/@final_pkg_name@/${final_pkg_name}/g" \ "$@" } template='./debian/signing-template' -pkg_name="shim-helpers-${DEB_HOST_ARCH}-signed-template" pkg_dir="debian/${pkg_name}/usr/share/code-signing/${pkg_name}" pkg_deb="${pkg_dir}/source-template/debian" @@ -31,7 +33,7 @@ find "${template}" -type f -printf '%P\n' | while read path do src="${template}/${path}" - dst="${pkg_deb}/${path}" + dst=$(echo "${pkg_deb}/${path}" | subst) install -o 0 -g 0 -m 0755 -d "${dst%/*}" subst < "${src}" > "${dst%.in}" |