fix: add Debian changelog to both packages (#273)

Adds packaging/changelog.Debian and packaging/DEBIAN-transitional/changelog.Debian
and wires them into the build staging steps. The gzipped changelog lands at
/usr/share/doc/truenas-proxmox/changelog.Debian.gz and
/usr/share/doc/freenas-proxmox/changelog.Debian.gz respectively, satisfying
Debian policy §12.7 and silencing the 'apt changelog' failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kevin Adams
2026-06-07 09:02:24 -04:00
co-authored by Claude Sonnet 4.6
parent 19a3ec2edd
commit 1c98591ed4
3 changed files with 56 additions and 0 deletions
+10
View File
@@ -169,6 +169,11 @@ jobs:
cp ui/truenas-storage.js "${STAGING}/usr/share/truenas-proxmox/truenas-storage.js"
cp ui/truenas-storage-help.html "${STAGING}/usr/share/truenas-proxmox/truenas-storage-help.html"
# Debian changelog (required by Debian policy §12.7)
mkdir -p "${STAGING}/usr/share/doc/truenas-proxmox"
gzip -9c packaging/changelog.Debian \
> "${STAGING}/usr/share/doc/truenas-proxmox/changelog.Debian.gz"
echo "==> Package contents:"
find "${STAGING}" | sort
@@ -185,6 +190,11 @@ jobs:
cp packaging/DEBIAN-transitional/postinst "${STAGING}/DEBIAN/postinst"
chmod 0755 "${STAGING}/DEBIAN/postinst"
# Debian changelog
mkdir -p "${STAGING}/usr/share/doc/freenas-proxmox"
gzip -9c packaging/DEBIAN-transitional/changelog.Debian \
> "${STAGING}/usr/share/doc/freenas-proxmox/changelog.Debian.gz"
echo "==> Transitional package contents:"
find "${STAGING}" | sort