1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
4 ###############################################################################
6 ###############################################################################
8 ###############################################################################
12 SUMMARY = A MySQL benchmarking tool
16 THISAPP = sysbench-$(VER)
17 DL_FILE = $(THISAPP).tar.gz
18 DL_FROM = $(URL_IPFIRE)
19 DIR_APP = $(DIR_SRC)/$(THISAPP)
20 TARGET = $(DIR_INFO)/$(THISAPP)
21 SUP_ARCH = x86_64 aarch64
29 ###############################################################################
31 ###############################################################################
35 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
37 $(DL_FILE)_MD5 = 756381c6fc4e16af1e0831b5e6a3dcb3
41 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
43 download :$(patsubst %,$(DIR_DL)/%,$(objects))
45 md5 : $(subst %,%_MD5,$(objects))
50 ###############################################################################
51 # Downloading, checking, md5sum
52 ###############################################################################
54 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
57 $(patsubst %,$(DIR_DL)/%,$(objects)) :
60 $(subst %,%_MD5,$(objects)) :
63 ###############################################################################
64 # Installation Details
65 ###############################################################################
67 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
69 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
70 cd $(DIR_APP) && touch AUTHORS NEWS
71 cd $(DIR_APP) && autoreconf -vfi
72 cd $(DIR_APP) && ./configure --prefix=/usr --without-mysql
73 cd $(DIR_APP) && make $(MAKETUNING)
74 cd $(DIR_APP) && make install
75 rm -rvf /usr/share/doc/sysbench