]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/vim
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / vim
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 2# #
70df8302 3# IPFire.org - A linux based firewall #
2c881999 4# Copyright (C) 2007-2020 IPFire Team <info@ipfire.org> #
70df8302
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
cd1a2927 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 #
cd1a2927
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
cd1a2927
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/>. #
cd1a2927 18# #
cd1a2927
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
be4bd649 27VER = 9.0
cd1a2927
MT
28
29THISAPP = vim-$(VER)
30DL_FILE = $(THISAPP).tar.bz2
7a98bae5 31DL_FROM = $(URL_IPFIRE)
be4bd649 32DIR_APP = $(DIR_SRC)/vim90
cd1a2927
MT
33TARGET = $(DIR_INFO)/$(THISAPP)
34
900e1c57
MT
35# vim tries to build itself with FORTIFY_SOURCE=1 and is not very good at
36# filtering out any CFLAGS that might change that. So we do this ourselves.
37CFLAGS := $(filter-out -Wp$(COMMA)-U_FORTIFY_SOURCE,$(CFLAGS))
38
cd1a2927
MT
39###############################################################################
40# Top-level Rules
41###############################################################################
42
90d372c4 43objects = $(DL_FILE)
cd1a2927
MT
44
45$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
cd1a2927 46
be4bd649 47$(DL_FILE)_BLAKE2 = 824208c9dd9c2c64ab16112146cfff70e7722c34aacb119129ca6c46afe6306a7e989519a2a7a0e78cb84e6617149233e7148cc805ccd9c9dc048ad2b76add10
cd1a2927
MT
48
49install : $(TARGET)
50
51check : $(patsubst %,$(DIR_CHK)/%,$(objects))
52
53download :$(patsubst %,$(DIR_DL)/%,$(objects))
54
9a7e4d85 55b2 : $(subst %,%_BLAKE2,$(objects))
cd1a2927
MT
56
57###############################################################################
9a7e4d85 58# Downloading, checking, b2sum
cd1a2927
MT
59###############################################################################
60
61$(patsubst %,$(DIR_CHK)/%,$(objects)) :
62 @$(CHECK)
63
64$(patsubst %,$(DIR_DL)/%,$(objects)) :
65 @$(LOAD)
66
9a7e4d85
PM
67$(subst %,%_BLAKE2,$(objects)) :
68 @$(B2SUM)
cd1a2927
MT
69
70###############################################################################
71# Installation Details
72###############################################################################
73
74$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
75 @$(PREBUILD)
76 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
be4bd649 77 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/vim/vim-9.0_fix_hardening_crash.patch
cd1a2927 78 cd $(DIR_APP) && echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
08facb3b
MT
79 cd $(DIR_APP) && ./configure \
80 --prefix=/usr \
81 --with-features=huge \
82 --enable-multibyte \
83 --enable-gui=no \
84 --disable-nls
90d372c4 85 cd $(DIR_APP) && make $(MAKETUNING)
cd1a2927 86 cd $(DIR_APP) && make install
08facb3b
MT
87
88 ln -svf vim /usr/bin/vi
89 install -m 644 $(DIR_SRC)/config/vim/vimrc /etc/vimrc
90
cd1a2927
MT
91 @rm -rf $(DIR_APP)
92 @$(POSTBUILD)