mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-10 17:28:26 +02:00
Source can only be downloaded by IPFireSourceGrabber/*.
This commit is contained in:
@@ -156,13 +156,13 @@ endif
|
|||||||
|
|
||||||
define CHECK
|
define CHECK
|
||||||
@echo -e "$(MESSAGE)Check: $($(notdir $@))"
|
@echo -e "$(MESSAGE)Check: $($(notdir $@))"
|
||||||
wget -T 120 -t 1 --spider -nv $($(notdir $@)) -O /dev/null
|
wget -T 120 -t 1 --spider -nv -U "IPFireSourceGrabber/2.x" $($(notdir $@)) -O /dev/null
|
||||||
@touch $(DIR_CHK)/$(notdir $@)
|
@touch $(DIR_CHK)/$(notdir $@)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define LOAD
|
define LOAD
|
||||||
@echo -e "$(MESSAGE)Download: $($(notdir $@))"
|
@echo -e "$(MESSAGE)Download: $($(notdir $@))"
|
||||||
wget -T 60 -t 1 -c -nv $($(notdir $@)) -O $(DIR_TMP)/$(notdir $@)
|
wget -T 60 -t 1 -c -nv -U "IPFireSourceGrabber/2.x" $($(notdir $@)) -O $(DIR_TMP)/$(notdir $@)
|
||||||
[ "$($(notdir $@)_MD5)" = `md5sum $(DIR_TMP)/$(notdir $@) | awk '{ print $$1 }'` ] # detect page not found answer
|
[ "$($(notdir $@)_MD5)" = `md5sum $(DIR_TMP)/$(notdir $@) | awk '{ print $$1 }'` ] # detect page not found answer
|
||||||
mv $(DIR_TMP)/$(notdir $@) $(DIR_DL)
|
mv $(DIR_TMP)/$(notdir $@) $(DIR_DL)
|
||||||
endef
|
endef
|
||||||
|
|||||||
Reference in New Issue
Block a user