]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/bwm-ng
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / bwm-ng
CommitLineData
06da1292 1###############################################################################
06da1292 2# #
70df8302 3# IPFire.org - A linux based firewall #
60612b5a 4# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
70df8302
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
06da1292 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
06da1292
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
06da1292
MT
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
06da1292
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
f15707c7
RR
27SUMMARY = Realtime Bandwidth Monitor
28
60612b5a 29VER = 0.6.1-f54b3fa
06da1292
MT
30
31THISAPP = bwm-ng-$(VER)
60612b5a 32DL_FILE = $(THISAPP).tar.xz
06da1292
MT
33DL_FROM = $(URL_IPFIRE)
34DIR_APP = $(DIR_SRC)/$(THISAPP)
35TARGET = $(DIR_INFO)/$(THISAPP)
fe7fe395 36PROG = bwm-ng
60612b5a 37PAK_VER = 2
fe7fe395 38
2dc2a278 39DEPS =
06da1292 40
f15707c7
RR
41SERVICES =
42
06da1292
MT
43###############################################################################
44# Top-level Rules
45###############################################################################
46
47objects = $(DL_FILE)
48
49$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
50
9a7e4d85 51$(DL_FILE)_BLAKE2 = 1f060351487c234864dace572e4378ac128b5ac1ce1544056c13583922c2249ccb9dbf36e180781122397c282348a0624d31c142265c27fd16a8cf107fa62731
60612b5a 52
06da1292
MT
53
54install : $(TARGET)
55
56check : $(patsubst %,$(DIR_CHK)/%,$(objects))
57
58download :$(patsubst %,$(DIR_DL)/%,$(objects))
59
9a7e4d85 60b2 : $(subst %,%_BLAKE2,$(objects))
06da1292 61
66c36198 62dist:
fe7fe395
MT
63 @$(PAK)
64
06da1292 65###############################################################################
9a7e4d85 66# Downloading, checking, b2sum
06da1292
MT
67###############################################################################
68
69$(patsubst %,$(DIR_CHK)/%,$(objects)) :
70 @$(CHECK)
71
72$(patsubst %,$(DIR_DL)/%,$(objects)) :
73 @$(LOAD)
74
9a7e4d85
PM
75$(subst %,%_BLAKE2,$(objects)) :
76 @$(B2SUM)
06da1292
MT
77
78###############################################################################
79# Installation Details
80###############################################################################
81
82$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
83 @$(PREBUILD)
60612b5a
AF
84 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
85 cd $(DIR_APP) && ./autogen.sh
06da1292
MT
86 cd $(DIR_APP) && ./configure --prefix=/usr
87 cd $(DIR_APP) && make $(MAKETUNING)
88 cd $(DIR_APP) && make install
89 @rm -rf $(DIR_APP)
90 @$(POSTBUILD)