]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/berkeley
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / berkeley
CommitLineData
56daf5bb 1###############################################################################
56daf5bb 2# #
70df8302 3# IPFire.org - A linux based firewall #
d561f0d8 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 #
56daf5bb 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 #
56daf5bb
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
56daf5bb
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/>. #
56daf5bb 18# #
56daf5bb
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
a3f1e8ee 27VER = 5.3.28
56daf5bb
MT
28
29THISAPP = db-$(VER)
30DL_FILE = $(THISAPP).tar.gz
1751628e 31DL_FROM = $(URL_IPFIRE)
56daf5bb
MT
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33TARGET = $(DIR_INFO)/$(THISAPP)
34
35###############################################################################
36# Top-level Rules
37###############################################################################
38
39objects = $(DL_FILE)
40
41$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
42
9a7e4d85 43$(DL_FILE)_BLAKE2 = 5b77a4ec0945fa96ce6c2b452fb4b029295e037fa64d5ff8dcb3b5e01ee3501fd75d9a73b8f5fa54d8907717d93546fbb5348ee70119e877fa2f17d301ecf50d
56daf5bb
MT
44
45install : $(TARGET)
46
47check : $(patsubst %,$(DIR_CHK)/%,$(objects))
48
49download :$(patsubst %,$(DIR_DL)/%,$(objects))
50
9a7e4d85 51b2 : $(subst %,%_BLAKE2,$(objects))
56daf5bb
MT
52
53###############################################################################
9a7e4d85 54# Downloading, checking, b2sum
56daf5bb
MT
55###############################################################################
56
57$(patsubst %,$(DIR_CHK)/%,$(objects)) :
58 @$(CHECK)
59
60$(patsubst %,$(DIR_DL)/%,$(objects)) :
61 @$(LOAD)
62
9a7e4d85
PM
63$(subst %,%_BLAKE2,$(objects)) :
64 @$(B2SUM)
56daf5bb
MT
65
66###############################################################################
67# Installation Details
68###############################################################################
69
70$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
71 @$(PREBUILD)
72 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
4c1d6ed2 73 $(UPDATE_AUTOMAKE)
a3f1e8ee
MT
74 cd $(DIR_APP) && sed -i "s/\(__atomic_compare_exchange\)/\1_db/" src/dbinc/atomic.h
75 cd $(DIR_APP)/build_unix && ../dist/configure \
76 --prefix=/usr \
77 --enable-compat185 \
78 --enable-dbm \
79 --enable-cxx \
80 --disable-static
9b0ff0a0 81 cd $(DIR_APP)/build_unix && make $(MAKETUNING)
94025eea 82 cd $(DIR_APP)/build_unix && make docdir=/usr/share/doc/$(THISAPP) install
a3f1e8ee
MT
83
84 # Fix file permissions
85 chown -vR root:root \
86 /usr/bin/db_* \
87 /usr/include/db{,_185,_cxx}.h \
88 /usr/lib/libdb*.{so,la} \
89 /usr/share/doc/$(THISAPP)
90
56daf5bb
MT
91 @rm -rf $(DIR_APP)
92 @$(POSTBUILD)