fix for geoip.dat build
This commit is contained in:
parent
285b619f73
commit
066f5207b7
3
Makefile
3
Makefile
@ -26,6 +26,7 @@ az: builddir
|
|||||||
patch --forward < $(DATA_DIR)/az-cyrillic-idn-fix.patch || true && \
|
patch --forward < $(DATA_DIR)/az-cyrillic-idn-fix.patch || true && \
|
||||||
./update.sh && \
|
./update.sh && \
|
||||||
./parse.sh'
|
./parse.sh'
|
||||||
|
@echo Antizapret data has been processed.
|
||||||
|
|
||||||
geoip: builddir
|
geoip: builddir
|
||||||
@cat $(DATA_DIR)/geoip-generator-config.json > $(GEOIP_DIR)/config.json
|
@cat $(DATA_DIR)/geoip-generator-config.json > $(GEOIP_DIR)/config.json
|
||||||
@ -38,11 +39,13 @@ ifeq (,$(wildcard $(GEOIP_DIR)/geoip-src.dat))
|
|||||||
endif
|
endif
|
||||||
@cd $(GEOIP_DIR) && go run ./
|
@cd $(GEOIP_DIR) && go run ./
|
||||||
@mv $(GEOIP_DIR)/output/dat/geoip.dat $(BUILD_DIR)/geoip.dat
|
@mv $(GEOIP_DIR)/output/dat/geoip.dat $(BUILD_DIR)/geoip.dat
|
||||||
|
@echo Built fresh geoip.dat
|
||||||
|
|
||||||
geosite: builddir
|
geosite: builddir
|
||||||
@cp $(AZ_DIR)/result/hostlist_zones.txt $(GEOSITE_DIR)/data/category-ru-blocked-zones
|
@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
|
@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
|
@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)
|
VERSION := $(shell date +%Y%m%d%H%M%S)
|
||||||
release:
|
release:
|
||||||
|
Loading…
Reference in New Issue
Block a user