From 066f5207b769820e17ee5350b707aa5360807738 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Thu, 16 Nov 2023 12:37:23 +0300 Subject: [PATCH] fix for geoip.dat build --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4753395..1f3483f 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ az: builddir patch --forward < $(DATA_DIR)/az-cyrillic-idn-fix.patch || true && \ ./update.sh && \ ./parse.sh' + @echo Antizapret data has been processed. geoip: builddir @cat $(DATA_DIR)/geoip-generator-config.json > $(GEOIP_DIR)/config.json @@ -34,15 +35,17 @@ geoip: builddir @cp $(AZ_DIR)/result/iplist_blockedbyip.txt $(GEOIP_DIR)/data/ru-blocked-ips-directblock @cp $(AZ_DIR)/result/iplist_blockedbyip_noid2971.txt $(GEOIP_DIR)/data/ru-blocked-ips-noid2971 ifeq (,$(wildcard $(GEOIP_DIR)/geoip-src.dat)) - @curl -fsSL https://github.com/v2fly/geoip/releases/latest/download/geoip.dat -o $(GEOIP_DIR)/geoip-src.dat + @curl -fsSL https://github.com/v2fly/geoip/releases/latest/download/geoip.dat -o $(GEOIP_DIR)/geoip-src.dat endif @cd $(GEOIP_DIR) && go run ./ @mv $(GEOIP_DIR)/output/dat/geoip.dat $(BUILD_DIR)/geoip.dat + @echo Built fresh geoip.dat geosite: builddir @cp $(AZ_DIR)/result/hostlist_zones.txt $(GEOSITE_DIR)/data/category-ru-blocked-zones @cp $(AZ_DIR)/result/hostlist_original.txt $(GEOSITE_DIR)/data/category-ru-blocked-domains @cd $(GEOSITE_DIR) && go run ./ --outputdir=$(BUILD_DIR) --outputname=geosite.dat + @echo Built fresh geosite.dat VERSION := $(shell date +%Y%m%d%H%M%S) release: