]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/lynis
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / lynis
CommitLineData
649b209c
CS
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
d04d5ff4 4# Copyright (C) 2007-2023 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
25include Config
26
f15707c7
RR
27SUMMARY = Security and System auditing tool
28
d04d5ff4 29VER = 3.0.9
649b209c
CS
30
31THISAPP = lynis-$(VER)
32DL_FILE = $(THISAPP).tar.gz
33DL_FROM = $(URL_IPFIRE)
f1f2a8db 34DIR_APP = $(DIR_SRC)/$(THISAPP)
649b209c
CS
35TARGET = $(DIR_INFO)/$(THISAPP)
36
81bac43b 37PROG = lynis
d04d5ff4 38PAK_VER = 13
f15707c7 39
2dc2a278 40DEPS =
81bac43b 41
f15707c7
RR
42SERVICES =
43
649b209c
CS
44###############################################################################
45# Top-level Rules
46###############################################################################
47
48objects = $(DL_FILE)
49
50$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
51
d04d5ff4 52$(DL_FILE)_BLAKE2 = dc7912c7d1782c3ffdf369cc7f0f004267bd2a2c408982909e654db14ecfa83ebdbd2f731c3d3ee8864e7de21945b1faa2f9d2845dedf3e742a4c79c62373eda
649b209c
CS
53
54install : $(TARGET)
55
56check : $(patsubst %,$(DIR_CHK)/%,$(objects))
57
58download :$(patsubst %,$(DIR_DL)/%,$(objects))
59
9a7e4d85 60b2 : $(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
75dist:
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)