]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/sysbench
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / sysbench
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
4 ###############################################################################
5
6 ###############################################################################
7 # Definitions
8 ###############################################################################
9
10 include Config
11
12 VER = 1.0.20
13
14 THISAPP = sysbench-$(VER)
15 DL_FILE = $(THISAPP).tar.gz
16 DL_FROM = $(URL_IPFIRE)
17 DIR_APP = $(DIR_SRC)/$(THISAPP)
18 TARGET = $(DIR_INFO)/$(THISAPP)
19 SUP_ARCH = x86_64 aarch64
20 PROG = sysbench
21 PAK_VER = 2
22
23 DEPS =
24
25 ###############################################################################
26 # Top-level Rules
27 ###############################################################################
28
29 objects = $(DL_FILE)
30
31 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
32
33 $(DL_FILE)_MD5 = 756381c6fc4e16af1e0831b5e6a3dcb3
34
35 install : $(TARGET)
36
37 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
38
39 download :$(patsubst %,$(DIR_DL)/%,$(objects))
40
41 md5 : $(subst %,%_MD5,$(objects))
42
43 dist:
44 @$(PAK)
45
46 ###############################################################################
47 # Downloading, checking, md5sum
48 ###############################################################################
49
50 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
51 @$(CHECK)
52
53 $(patsubst %,$(DIR_DL)/%,$(objects)) :
54 @$(LOAD)
55
56 $(subst %,%_MD5,$(objects)) :
57 @$(MD5)
58
59 ###############################################################################
60 # Installation Details
61 ###############################################################################
62
63 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
64 @$(PREBUILD)
65 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
66 cd $(DIR_APP) && touch AUTHORS NEWS
67 cd $(DIR_APP) && autoreconf -vfi
68 cd $(DIR_APP) && ./configure --prefix=/usr --without-mysql
69 cd $(DIR_APP) && make $(MAKETUNING)
70 cd $(DIR_APP) && make install
71 rm -rvf /usr/share/doc/sysbench
72 @rm -rf $(DIR_APP)
73 @$(POSTBUILD)