[ulogd PATCH] Makefile: Create LZMA-compressed dist-files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use a more modern alternative to bzip2.

Suggested-by: Jan Engelhardt <jengelh@xxxxxxx>
Suggested-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
Signed-off-by: Phil Sutter <phil@xxxxxx>
---
 Makefile.in | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 0f1845c23842b..48098e96035be 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -43,20 +43,20 @@ distclean: clean
 	make -C doc distrib
 
 .PHONY: distrib
-distrib: docbuild distclean delrelease $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.bz2 diff
+distrib: docbuild distclean delrelease $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.xz diff
 
 .PHONY: delrelease
 delrelease:
-	rm -f $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.bz2
+	rm -f $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.xz
 
-$(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.bz2:
-	cd .. && ln -sf ulogd ulogd-$(ULOGD_VERSION) && tar cvf - --exclude CVS --exclude .svn ulogd-$(ULOGD_VERSION)/. | bzip2 -9 > $@ && rm ulogd-$(ULOGD_VERSION)
+$(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.xz:
+	cd .. && ln -sf ulogd ulogd-$(ULOGD_VERSION) && tar cvf - --exclude CVS --exclude .svn ulogd-$(ULOGD_VERSION)/. | xz -9 > $@ && rm ulogd-$(ULOGD_VERSION)
 
 .PHONY: diff
-diff: $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.bz2
+diff: $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.xz
 	@mkdir /tmp/diffdir
-	@cd /tmp/diffdir && tar -x --bzip2 -f $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.bz2
-	@set -e; cd /tmp/diffdir; tar -x --bzip2 -f $(RELEASE_DIR)/ulogd-$(OLD_ULOGD_VERSION).tar.bz2; echo Creating patch-ulogd-$(OLD_ULOGD_VERSION)-$(ULOGD_VERSION).bz2; diff -urN ulogd-$(OLD_ULOGD_VERSION) ulogd-$(ULOGD_VERSION) | bzip2 -9 > $(RELEASE_DIR)/patch-ulogd-$(OLD_ULOGD_VERSION)-$(ULOGD_VERSION).bz2
+	@cd /tmp/diffdir && tar -x --xz -f $(RELEASE_DIR)/ulogd-$(ULOGD_VERSION).tar.xz
+	@set -e; cd /tmp/diffdir; tar -x --xz -f $(RELEASE_DIR)/ulogd-$(OLD_ULOGD_VERSION).tar.xz; echo Creating patch-ulogd-$(OLD_ULOGD_VERSION)-$(ULOGD_VERSION).xz; diff -urN ulogd-$(OLD_ULOGD_VERSION) ulogd-$(ULOGD_VERSION) | xz -9 > $(RELEASE_DIR)/patch-ulogd-$(OLD_ULOGD_VERSION)-$(ULOGD_VERSION).xz
 
 recurse: 
 	@for d in $(SUBDIRS); do if ! make -C $$d; then exit 1; fi; done
-- 
2.38.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux