Skip to content
Snippets Groups Projects
Commit 55591ca1 authored by Edileuton Henrique de Oliveira's avatar Edileuton Henrique de Oliveira
Browse files

agent: Add wget compile rules

parent af2c038e
No related branches found
No related tags found
No related merge requests found
......@@ -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 #
###########
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment