]>
Commit | Line | Data |
---|---|---|
649b209c CS |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
420e8a85 | 4 | # Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> # |
649b209c CS |
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 = Security and System auditing tool |
28 | ||
310ad69d | 29 | VER = 3.0.8 |
649b209c CS |
30 | |
31 | THISAPP = lynis-$(VER) | |
32 | DL_FILE = $(THISAPP).tar.gz | |
33 | DL_FROM = $(URL_IPFIRE) | |
f1f2a8db | 34 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
649b209c CS |
35 | TARGET = $(DIR_INFO)/$(THISAPP) |
36 | ||
81bac43b | 37 | PROG = lynis |
310ad69d | 38 | PAK_VER = 12 |
f15707c7 | 39 | |
2dc2a278 | 40 | DEPS = |
81bac43b | 41 | |
f15707c7 RR |
42 | SERVICES = |
43 | ||
649b209c CS |
44 | ############################################################################### |
45 | # Top-level Rules | |
46 | ############################################################################### | |
47 | ||
48 | objects = $(DL_FILE) | |
49 | ||
50 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
51 | ||
310ad69d | 52 | $(DL_FILE)_BLAKE2 = 490bd6799619a4247c3fa68cc96f2f1fead651b23db0ffb512394960f8ca0360ab7f25d2bb8d9e742641558972e1fdd4b1e18d7de0d13007988276eed3a97b1f |
649b209c CS |
53 | |
54 | install : $(TARGET) | |
55 | ||
56 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
57 | ||
58 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
59 | ||
9a7e4d85 | 60 | b2 : $(subst %,%_BLAKE2,$(objects)) |
649b209c CS |
61 | |
62 | ############################################################################### | |
9a7e4d85 | 63 | # Downloading, checking, b2sum |
649b209c CS |
64 | ############################################################################### |
65 | ||
66 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
67 | @$(CHECK) | |
68 | ||
69 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
70 | @$(LOAD) | |
71 | ||
9a7e4d85 PM |
72 | $(subst %,%_BLAKE2,$(objects)) : |
73 | @$(B2SUM) | |
649b209c | 74 | |
81bac43b AF |
75 | dist: |
76 | @$(PAK) | |
77 | ||
649b209c CS |
78 | ############################################################################### |
79 | # Installation Details | |
80 | ############################################################################### | |
81 | ||
82 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
83 | @$(PREBUILD) | |
b2bf01ef AB |
84 | @rm -rf $(DIR_SRC)/$(PROG) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) |
85 | cd $(DIR_SRC)/$(PROG) && rm -rf *.md FAQ INSTALL LICENCE lynis.8 README | |
86 | cp -vrf $(DIR_SRC)/$(PROG) /var/ipfire/lynis | |
87 | @rm -rf $(DIR_SRC)/$(PROG) | |
649b209c | 88 | @$(POSTBUILD) |