* Enhance rules clean target to make repeated builds easier
* Stop installing duplicate/irrelevant docs (COPYING, changelog, INSTALL)
* add 'set -e' to postrm.
+ * Switch to xz for orig.tar compression and update get-orig-source rule.
-- Jonathan Dowland <jmtd@debian.org> Tue, 26 Jan 2016 17:04:15 +0000
PACKAGE = smartmontools
SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p'| cut -d':' -f2)
SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' )
-TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
+TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.xz
SVN_ROOT := 'https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools'
get-orig-source:
svn export -r $(SVN_REVISION) $(SVN_ROOT) \
get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
rm -rf get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/os_solaris_ata.s
- GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
+ tar cJf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
rm -rf get-orig-source
echo " "$(TARBALL)" created; move it to the right destination to build the package"