]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/libxcrypt
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / libxcrypt
CommitLineData
cf6c8e67
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
62accadb 4# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
cf6c8e67
MT
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
62accadb 27VER = 4.4.36
cf6c8e67
MT
28
29THISAPP = libxcrypt-$(VER)
692c2251 30DL_FILE = $(THISAPP).tar.xz
cf6c8e67
MT
31DL_FROM = $(URL_IPFIRE)
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33
34ifeq "$(TOOLCHAIN)" "1"
35 TARGET = $(DIR_INFO)/$(THISAPP)-tools
5063f52d
AF
36 EXTRACONFIG = --host=$(CROSSTARGET) \
37 --target=$(CROSSTARGET)
cf6c8e67
MT
38else
39 TARGET = $(DIR_INFO)/$(THISAPP)
40endif
41
42###############################################################################
43# Top-level Rules
44###############################################################################
45
46objects = $(DL_FILE)
47
48$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
49
62accadb 50$(DL_FILE)_BLAKE2 = 9f028e0fe2cb7bb4273f3f6d1e579e0fe93cd71eba21286aa7dc078c904ea3cdce38b2955bdcd618853f7657b01aea7e28c4d898680e69fdf75f812b5a304c1d
cf6c8e67
MT
51
52install : $(TARGET)
53
54check : $(patsubst %,$(DIR_CHK)/%,$(objects))
55
56download :$(patsubst %,$(DIR_DL)/%,$(objects))
57
9a7e4d85 58b2 : $(subst %,%_BLAKE2,$(objects))
cf6c8e67
MT
59
60###############################################################################
9a7e4d85 61# Downloading, checking, b2sum
cf6c8e67
MT
62###############################################################################
63
64$(patsubst %,$(DIR_CHK)/%,$(objects)) :
65 @$(CHECK)
66
67$(patsubst %,$(DIR_DL)/%,$(objects)) :
68 @$(LOAD)
69
9a7e4d85
PM
70$(subst %,%_BLAKE2,$(objects)) :
71 @$(B2SUM)
cf6c8e67
MT
72
73###############################################################################
74# Installation Details
75###############################################################################
76
77$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
78 @$(PREBUILD)
79 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
80 cd $(DIR_APP) && autoreconf -vfi
81 cd $(DIR_APP) && \
82 ./configure \
5063f52d 83 $(EXTRACONFIG) \
cf6c8e67
MT
84 --prefix=$(PREFIX) \
85 --disable-static \
86 --enable-hashes=strong,glibc \
87 --enable-obsolete-api \
88 --disable-failure-tokens
89 cd $(DIR_APP) && make $(MAKETUNING)
90 cd $(DIR_APP) && make install
91 @rm -rf $(DIR_APP)
92 @$(POSTBUILD)