Commit 4e68568f authored by Axel Auweter's avatar Axel Auweter
Browse files

Merge branch 'ticket-1'

Adds IPMIPusher to the master branch.
parents 6a399a0a 963b819f
include config.mk
PROJECTS = FilePusher SysFsPusher CollectAgent ParastationProvider
PROJECTS = FilePusher SysFsPusher CollectAgent ParastationProvider IPMIPusher
DISTFILES = thrift-0.9.0.tar.gz;https://dist.apache.org/repos/dist/release/thrift/0.9.0/thrift-0.9.0.tar.gz \
apache-cassandra-1.2.9.tar.gz;http://mirror.netcologne.de/apache.org/cassandra/1.2.9/apache-cassandra-1.2.9-bin.tar.gz \
mosquitto-1.1.3.tar.gz;http://mosquitto.org/files/source/mosquitto-1.1.3.tar.gz \
rudeconfig-5.0.5.tar.gz;http://rudeserver.com/config/download/rudeconfig-5.0.5.tar.gz \
popt-1.16.tar.gz;http://rpm5.org/files/popt/popt-1.16.tar.gz \
ncurses-5.9.tar.gz;http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz \
OpenIPMI-2.0.18.tar.gz;http://surfnet.dl.sourceforge.net/project/openipmi/OpenIPMI%202.0%20Library/2.0.18/OpenIPMI-2.0.18.tar.gz \
boost_1_54_0.tar.gz;http://netcologne.dl.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.gz
FETCH = wget -c --no-check-certificate -O -
MAKETHREADS ?= 4
......@@ -20,6 +23,9 @@ CASSANDRA_COMMITLOG_SEGMENT_SIZE_IN_MB = 16
DISTFILESNAMES = $(foreach f,$(DISTFILES),$(shell echo "$(f)" | sed 's/;.*//'))
DISTFILESPATHS = $(foreach f,$(DISTFILES),$(shell echo "$(f)" | sed 's/.tar.gz;.*//'))
CFLAGS += -I$(DCDBDEPLOYPATH)/include -I$(DCDBDEPLOYPATH)/include/ncurses
LDFLAGS += -L$(DCDBDEPLOYPATH)/lib
.PHONY : info all clean cleanall distclean $(PROJECTS)
info:
......@@ -76,6 +82,24 @@ $(DCDBDEPSPATH)/.prerequesites: $(DCDBDEPSPATH)/.extract-distfiles
$(eval R := $(shell echo "$(DISTFILESPATHS)" | sed 's/.*rudeconfig/rudeconfig/' | sed 's/\ .*//'))
@cd $(DCDBDEPSPATH)/$(R) && ./configure --prefix=$(DCDBDEPLOYPATH) && make -j $(MAKETHREADS) && chmod +x install-sh && make install
@echo ""
@echo "Buidling Popt library..."
$(eval P := $(shell echo "$(DISTFILESPATHS)" | sed 's/.*popt/popt/' | sed 's/\ .*//'))
@cd $(DCDBDEPSPATH)/$(P) && ./configure --prefix=$(DCDBDEPLOYPATH) && make -j $(MAKETHREADS) && make install
@echo ""
@echo "Buidling Ncurses library..."
$(eval N := $(shell echo "$(DISTFILESPATHS)" | sed 's/.*ncurses/ncurses/' | sed 's/\ .*//'))
@cd $(DCDBDEPSPATH)/$(N) && ./configure --prefix=$(DCDBDEPLOYPATH) --with-shared --without-ada --without-manpages \
--without-progs --without-tests && make -j $(MAKETHREADS) && make install
@echo ""
@echo "Buidling OpenIPMI library..."
$(eval O := $(shell echo "$(DISTFILESPATHS)" | sed 's/.*OpenIPMI/OpenIPMI/' | sed 's/\ .*//'))
@cd $(DCDBDEPSPATH)/$(O) && env CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=$(DCDBDEPLOYPATH) --with-swig=no --with-perl=no --with-python-no
@if [ `uname` == "Darwin" ]; then echo "Fixing OpenIPMI for Mac OS..."; cd $(DCDBDEPSPATH)/$(O) && find . -name 'Makefile*' | xargs sed -i '' -e 's/Map/map/g'; fi
@cd $(DCDBDEPSPATH)/$(O) && env CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" make -j $(MAKETHREADS) && make install
@echo ""
@echo "Building Boost..."
$(eval B := $(shell echo "$(DISTFILESPATHS)" | sed 's/.*boost/boost/' | sed 's/\ .*//'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment