]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/sysbench
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / sysbench
CommitLineData
ada69e12
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
eee037b8 3# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
ada69e12
MT
4###############################################################################
5
6###############################################################################
7# Definitions
8###############################################################################
9
10include Config
11
f15707c7
RR
12SUMMARY = A MySQL benchmarking tool
13
adcc5193 14VER = 1.0.20
ada69e12
MT
15
16THISAPP = sysbench-$(VER)
17DL_FILE = $(THISAPP).tar.gz
18DL_FROM = $(URL_IPFIRE)
19DIR_APP = $(DIR_SRC)/$(THISAPP)
20TARGET = $(DIR_INFO)/$(THISAPP)
6cf219c4 21SUP_ARCH = x86_64 aarch64
ada69e12 22PROG = sysbench
adcc5193 23PAK_VER = 2
ada69e12 24
2dc2a278 25DEPS =
ada69e12 26
f15707c7
RR
27SERVICES =
28
ada69e12
MT
29###############################################################################
30# Top-level Rules
31###############################################################################
32
33objects = $(DL_FILE)
34
35$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
36
9a7e4d85 37$(DL_FILE)_BLAKE2 = 9b63c1c2703fc2311e03561c8dde2c39b249b6aadffebddfd99cdcfb5319606a484132e9dcb23a4365aecfc1148c5c5c56c918ac8c363ffcb1beece26aaf15c7
ada69e12
MT
38
39install : $(TARGET)
40
41check : $(patsubst %,$(DIR_CHK)/%,$(objects))
42
43download :$(patsubst %,$(DIR_DL)/%,$(objects))
44
9a7e4d85 45b2 : $(subst %,%_BLAKE2,$(objects))
ada69e12 46
66c36198 47dist:
ada69e12
MT
48 @$(PAK)
49
50###############################################################################
9a7e4d85 51# Downloading, checking, b2sum
ada69e12
MT
52###############################################################################
53
54$(patsubst %,$(DIR_CHK)/%,$(objects)) :
55 @$(CHECK)
56
57$(patsubst %,$(DIR_DL)/%,$(objects)) :
58 @$(LOAD)
59
9a7e4d85
PM
60$(subst %,%_BLAKE2,$(objects)) :
61 @$(B2SUM)
ada69e12
MT
62
63###############################################################################
64# Installation Details
65###############################################################################
66
67$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
68 @$(PREBUILD)
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
76 @rm -rf $(DIR_APP)
77 @$(POSTBUILD)