]>
| Commit | Line | Data |
|---|---|---|
| a3fe88a5 EK |
1 | ############################################################################### |
| 2 | # # | |
| 3 | # IPFire.org - A linux based firewall # | |
| eee037b8 | 4 | # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> # |
| a3fe88a5 EK |
5 | # # |
| 6 | # This program is free software: you can redistribute it and/or modify # | |
| 7 | # it under the terms of the GNU General Public License as published by # | |
| 8 | # the Free Software Foundation, either version 3 of the License, or # | |
| 9 | # (at your option) any later version. # | |
| 10 | # # | |
| 11 | # This program is distributed in the hope that it will be useful, # | |
| 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 # | |
| 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
| 18 | # # | |
| 19 | ############################################################################### | |
| 20 | ||
| 21 | ############################################################################### | |
| 22 | # Definitions | |
| 23 | ############################################################################### | |
| 24 | ||
| 25 | include Config | |
| 26 | ||
| f15707c7 RR |
27 | SUMMARY = Real-Time Interface Bandwidth Usage |
| 28 | ||
| a3fe88a5 EK |
29 | VER = 1.0pre4 |
| 30 | ||
| 31 | THISAPP = iftop-$(VER) | |
| 32 | DL_FILE = $(THISAPP).tar.gz | |
| 33 | DL_FROM = $(URL_IPFIRE) | |
| 34 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
| 35 | TARGET = $(DIR_INFO)/$(THISAPP) | |
| 36 | PROG = iftop | |
| 37 | PAK_VER = 2 | |
| 38 | ||
| 2dc2a278 | 39 | DEPS = |
| a3fe88a5 | 40 | |
| f15707c7 RR |
41 | SERVICES = |
| 42 | ||
| 5f80beda MT |
43 | # Fix build with GCC 15 |
| 44 | CFLAGS += -std=gnu17 -fcommon | |
| b061abae | 45 | |
| a3fe88a5 EK |
46 | ############################################################################### |
| 47 | # Top-level Rules | |
| 48 | ############################################################################### | |
| 49 | ||
| 50 | objects = $(DL_FILE) | |
| 51 | ||
| 52 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
| 53 | ||
| 9a7e4d85 | 54 | $(DL_FILE)_BLAKE2 = 181385c3fbf43abd4ead975aac11b5ff196de94d9a8d6f195b3f0068aba6ae953067995d19f0175b49ab15c447c99d531542ae786603ee390e080e79bdcd7ae3 |
| a3fe88a5 EK |
55 | |
| 56 | install : $(TARGET) | |
| 57 | ||
| 58 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
| 59 | ||
| 60 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
| 61 | ||
| 9a7e4d85 | 62 | b2 : $(subst %,%_BLAKE2,$(objects)) |
| a3fe88a5 | 63 | |
| 66c36198 | 64 | dist: |
| a3fe88a5 EK |
65 | @$(PAK) |
| 66 | ||
| 67 | ############################################################################### | |
| 9a7e4d85 | 68 | # Downloading, checking, b2sum |
| a3fe88a5 EK |
69 | ############################################################################### |
| 70 | ||
| 71 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
| 72 | @$(CHECK) | |
| 73 | ||
| 74 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
| 75 | @$(LOAD) | |
| 76 | ||
| 9a7e4d85 PM |
77 | $(subst %,%_BLAKE2,$(objects)) : |
| 78 | @$(B2SUM) | |
| a3fe88a5 EK |
79 | |
| 80 | ############################################################################### | |
| 81 | # Installation Details | |
| 82 | ############################################################################### | |
| 83 | ||
| 84 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
| 85 | @$(PREBUILD) | |
| 86 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) | |
| a269a4c6 | 87 | $(UPDATE_AUTOMAKE) |
| a3fe88a5 EK |
88 | cd $(DIR_APP) && ./configure --prefix=/usr |
| 89 | ||
| 90 | cd $(DIR_APP) && make $(MAKETUNING) | |
| 91 | cd $(DIR_APP) && make install | |
| 92 | ||
| 93 | @rm -rf $(DIR_APP) | |
| 94 | @$(POSTBUILD) | |
| 95 |