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