From f7801760705fd58a735427c6d068bfb86669fb77 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 22 May 2016 19:25:51 +0000 Subject: [PATCH] add in prep rule for make so we have a .tar.gz to trick dpkg-buildpackage with... git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1850 a1433add-5e2c-0410-b055-b7f2511e0802 --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 8c6dbabc..6f631941 100755 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,11 @@ export VERSION = $(shell grep -E "version = '.*';" functions.inc.php |sed -e " export DEBVERSION = $(shell grep -E "postfixadmin .([0-9]+|\.)+" debian/changelog |head -1 |sed -e "s/postfixadmin .//" |sed -e "s/-.*//") +# Create a needed tar.gz file to build a non-nativ .dpkg +prep: + rm -f ../postfixadmin_*orig.tar.gz + cd ..; tar --exclude-vcs --exclude=$(notdir ${CURDIR})/debian --exclude=$(notdir ${CURDIR})/.pc -cvzf postfixadmin_${DEBVERSION}.orig.tar.gz $(notdir ${CURDIR}) + build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp