From ffa2c39ebb66f3e76d6f598bf276f7fbdac49668 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 3 May 2022 04:55:50 +0200 Subject: [PATCH] make: Add gzipped files to install recipe OpenBSD 7.1 shipped with a new `gzip-static` setting for httpd(8) that allows serving up pre-compressed files. It also updated gzip(1) to have the -k flag to keep the originals (for clients that don't support it). This patch takes advantage of both to save on bandwidth :) --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index f70865e..c09d054 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ install: build > $(DESTDIR)/gopher/$$d/index.gph; \ done (cat gopher/blog/index.gph; gopher/bin/blogidx.sh) > $(DESTDIR)/gopher/blog/index.gph + gzip -k -f $(DESTDIR)/www/*.html $(DESTDIR)/www/*/*.html .PHONY: clean clean: -- libgit2 1.1.1