diff --git a/agent/Makefile.in b/agent/Makefile.in index 696ce9a283e07eb16c5bc672eca5ae99447f9117..d8961c0320389cfa351587955e365c17bac6d55c 100644 --- a/agent/Makefile.in +++ b/agent/Makefile.in @@ -38,6 +38,11 @@ GSOAPREL = 15 GSOAPURL = http://ufpr.dl.sourceforge.net/project/gsoap2/gSOAP/gSOAP%202.7.15%20stable/gsoap_$(GSOAPVER).$(GSOAPREL).tar.gz GSOAP = gsoap-$(GSOAPVER) +WGETVER = 1.13 +WGETREL = 4 +WGETURL = http://gnu.c3sl.ufpr.br/ftp/wget/wget-$(WGETVER).$(WGETREL).tar.gz +WGET = wget-$(WGETVER).$(WGETREL) + WSNAME = DataSID WSURL = http://bisimmcdev.c3sl.ufpr.br:8080/axis2/services/$(WSNAME)?wsdl @@ -46,6 +51,7 @@ FILES = bin/datasid-agent.sh bin/datasid-client.sh \ bin/datasid-wget.sh bin/datasid-xml-generator \ bin/datasid-check.sh bin/datasid-netmon.sh \ bin/datasid-network-usage.sh \ + bin/datasid-builtin-wget \ conf/datasid.conf \ gen-scripts/collected-data/agent-version.tree \ gen-scripts/collected-data/telecentro-info.tree \ @@ -66,12 +72,12 @@ FILES = bin/datasid-agent.sh bin/datasid-client.sh \ network-scripts/net-collected-data/telecentro-id.tree .PHONY: all -all: bin/datasid-xml-generator bin/datasid-gsoap-client +all: bin/datasid-xml-generator bin/datasid-gsoap-client bin/datasid-builtin-wget .PHONY: clean clean: @rm -rf $(BUILD) - @rm -rf bin/datasid-xml-generator bin/datasid-gsoap-client + @rm -rf bin/datasid-xml-generator bin/datasid-gsoap-client bin/datasid-builtin-wget ########### @@ -161,7 +167,31 @@ bin/datasid-gsoap-client: $(BUILD)/client.o $(BUILD)/soapC.o $(BUILD)/soapClient @mkdir -p bin $(CC) -o $@ $(LDFLAGS) $^ +######## +# wget # +######## + +$(BUILD)/$(WGET).tar.gz: + @mkdir -p $(BUILD) + wget -O $@ $(WGETURL) + +$(BUILD)/$(WGET)/.extracted: $(BUILD)/$(WGET).tar.gz + cd $(BUILD); tar xzvf $(WGET).tar.gz + @touch $@ +$(BUILD)/$(WGET)/Makefile: $(BUILD)/$(WGET)/.extracted + cd $(BUILD)/$(WGET); \ + CFLAGS=-m32 ./configure --prefix=$(realpath $(BUILD)) \ + --without-ssl --disable-opie --disable-digest \ + --disable-ntlm --disable-debug --disable-nls --disable-largefile \ + --disable-ipv6 --disable-rpath --disable-iri; \ + make LDFLAGS=-static + +bin/datasid-builtin-wget: $(BUILD)/$(WGET)/Makefile + @mkdir -p "$(BUILD)/bin" + cp -a "$(BUILD)/$(WGET)/src/wget" "$(BUILD)/bin" + mv "$(BUILD)/bin/wget" $@ + ########### # install # ###########