From 5366f438574cfe2e298566298cc47c9aabd9dda3 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 23 Jul 2019 19:52:26 +0200 Subject: [PATCH] improve packaging, add SOURCE Signed-off-by: Thomas Lamprecht --- Makefile | 10 ++++++---- debian/lintian-overrides | 2 ++ debian/proxmox-mailgateway-container.docs | 1 + debian/proxmox-mailgateway.docs | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 debian/lintian-overrides create mode 100644 debian/proxmox-mailgateway-container.docs create mode 100644 debian/proxmox-mailgateway.docs diff --git a/Makefile b/Makefile index cc9d3d3..0103ad3 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ -RELEASE=5.2 -PKGREL=1 +include /usr/share/dpkg/pkg-info.mk PACKAGE=proxmox-mailgateway -DEB=${PACKAGE}_${RELEASE}-${PKGREL}_all.deb -CT_DEB=${PACKAGE}-container_${RELEASE}-${PKGREL}_all.deb +GITVERSION:=$(shell git rev-parse HEAD) + +DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +CT_DEB=${PACKAGE}-container_${DEB_VERSION_UPSTREAM_REVISION}_all.deb DEBS=${DEB} ${CT_DEB} @@ -21,6 +22,7 @@ ${DEB}: debian rm -rf ${BUILD_DIR} mkdir -p ${BUILD_DIR}/debian cp -ar debian/* ${BUILD_DIR}/debian/ + echo "git clone git://git.proxmox.com/git/proxmox-mailgateway.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us lintian ${DEBS} diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..05e3f91 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,2 @@ +proxmox-mailgateway-container: package-installs-apt-keyring etc/apt/trusted.gpg.d/proxmox-ve-release-* +proxmox-mailgateway: package-installs-apt-keyring etc/apt/trusted.gpg.d/proxmox-ve-release-* diff --git a/debian/proxmox-mailgateway-container.docs b/debian/proxmox-mailgateway-container.docs new file mode 100644 index 0000000..8696672 --- /dev/null +++ b/debian/proxmox-mailgateway-container.docs @@ -0,0 +1 @@ +debian/SOURCE diff --git a/debian/proxmox-mailgateway.docs b/debian/proxmox-mailgateway.docs new file mode 100644 index 0000000..8696672 --- /dev/null +++ b/debian/proxmox-mailgateway.docs @@ -0,0 +1 @@ +debian/SOURCE -- 2.39.2