]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/7zip
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / 7zip
CommitLineData
3799d284
AF
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
077a55f4 4# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
3799d284
AF
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 = 7-zip file compression program
28
077a55f4 29VER = 17.05
3799d284 30
8ace58e8
AB
31THISAPP = p7zip-$(VER)
32DL_FILE = $(THISAPP).tar.gz
4bd07ee4 33DL_FROM = $(URL_IPFIRE)
3799d284
AF
34DIR_APP = $(DIR_SRC)/$(THISAPP)
35TARGET = $(DIR_INFO)/$(THISAPP)
36PROG = 7zip
077a55f4 37PAK_VER = 10
3799d284 38
2dc2a278 39DEPS =
3799d284 40
f15707c7
RR
41SERVICES =
42
fed525f2
MT
43CFLAGS += -fcommon
44
3799d284
AF
45###############################################################################
46# Top-level Rules
47###############################################################################
48
49objects = $(DL_FILE)
50
51$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
52
077a55f4 53$(DL_FILE)_BLAKE2 = 0bcba638d3acaf2aa270e02693ad4295dfcc6b388037bdb446e25f3f4e1cb34f1b05bbc9a845364ca770625c32b2d7f55f63f504ad8e0863fff4bf940ae1fddd
3799d284
AF
54
55install : $(TARGET)
56
57check : $(patsubst %,$(DIR_CHK)/%,$(objects))
58
59download :$(patsubst %,$(DIR_DL)/%,$(objects))
60
9a7e4d85 61b2 : $(subst %,%_BLAKE2,$(objects))
3799d284
AF
62
63###############################################################################
9a7e4d85 64# Downloading, checking, b2sum
3799d284
AF
65###############################################################################
66
67$(patsubst %,$(DIR_CHK)/%,$(objects)) :
68 @$(CHECK)
69
70$(patsubst %,$(DIR_DL)/%,$(objects)) :
71 @$(LOAD)
72
9a7e4d85
PM
73$(subst %,%_BLAKE2,$(objects)) :
74 @$(B2SUM)
3799d284 75
66c36198 76dist:
3799d284
AF
77 @$(PAK)
78
79###############################################################################
80# Installation Details
81###############################################################################
82
83$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
84 @$(PREBUILD)
8ace58e8 85 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
c2607bc4
MT
86 cd $(DIR_APP) && make all3 $(MAKETUNING)
87 cd $(DIR_APP) && make DEST_HOME=/usr DEST_MAN=/usr/share/man \
88 DEST_SHARE_DOC=/usr/share/doc/p7zip-$(VER) install
3799d284
AF
89 @rm -rf $(DIR_APP)
90 @$(POSTBUILD)