]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/readline
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / readline
CommitLineData
7b6b8153 1###############################################################################
7b6b8153 2# #
70df8302 3# IPFire.org - A linux based firewall #
e9ba050b 4# Copyright (C) 2007-2024 IPFire Team <info@ipfire.org> #
70df8302
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
7b6b8153 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
7b6b8153
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
7b6b8153
MT
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 #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
7b6b8153
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
1ad5a013 27VER = 8.2
e9ba050b 28# https://ftp.gnu.org/gnu/readline/
7b6b8153
MT
29
30THISAPP = readline-$(VER)
31DL_FILE = $(THISAPP).tar.gz
32DL_FROM = $(URL_IPFIRE)
33DIR_APP = $(DIR_SRC)/$(THISAPP)
34TARGET = $(DIR_INFO)/$(THISAPP)
35
36###############################################################################
37# Top-level Rules
38###############################################################################
39
40objects = $(DL_FILE)
41
42$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
43
1ad5a013 44$(DL_FILE)_BLAKE2 = 7974322b9c092a756a79e537df08e8532f8e0fcb598f77732e28287c33ebec9e9837ed88b43334c310892d56a871b423903f0f564def2fbe700a1004f2ae7b18
7b6b8153
MT
45
46install : $(TARGET)
47
48check : $(patsubst %,$(DIR_CHK)/%,$(objects))
49
50download :$(patsubst %,$(DIR_DL)/%,$(objects))
51
9a7e4d85 52b2 : $(subst %,%_BLAKE2,$(objects))
7b6b8153
MT
53
54###############################################################################
9a7e4d85 55# Downloading, checking, b2sum
7b6b8153
MT
56###############################################################################
57
58$(patsubst %,$(DIR_CHK)/%,$(objects)) :
59 @$(CHECK)
60
61$(patsubst %,$(DIR_DL)/%,$(objects)) :
62 @$(LOAD)
63
9a7e4d85
PM
64$(subst %,%_BLAKE2,$(objects)) :
65 @$(B2SUM)
7b6b8153
MT
66
67###############################################################################
68# Installation Details
69###############################################################################
70
71$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
72 @$(PREBUILD)
73 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
f19b3cb6 74
e9ba050b 75 for i in $$(seq 1 10); do \
1ad5a013
AB
76 cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/readline/readline82-$$(printf "%03d" "$${i}") || exit 1; \
77 done
f19b3cb6 78
e9ba050b
AB
79 cd $(DIR_APP) && ./configure \
80 --prefix=/usr \
81 --disable-static
9b0ff0a0 82 cd $(DIR_APP) && make $(MAKETUNING) SHLIB_LIBS=-lncurses
7b6b8153 83 cd $(DIR_APP) && make install
f19b3cb6
MT
84
85 rm -rfv /usr/share/readline
7b6b8153
MT
86 @rm -rf $(DIR_APP)
87 @$(POSTBUILD)