]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/bacula
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / bacula
CommitLineData
008c392e
TE
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
849ed299 4# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
008c392e
TE
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 = Enterprise-ready Network Backup Software
28
849ed299 29VER = 11.0.6
008c392e
TE
30
31THISAPP = bacula-$(VER)
32DL_FILE = $(THISAPP).tar.gz
9ac40513 33DL_FROM = $(URL_IPFIRE)
008c392e
TE
34DIR_APP = $(DIR_SRC)/$(THISAPP)
35TARGET = $(DIR_INFO)/$(THISAPP)
36PROG = bacula
849ed299 37PAK_VER = 12
008c392e 38
2dc2a278 39DEPS =
008c392e 40
f15707c7
RR
41SERVICES = bacula
42
e39437b2
MT
43# For GCC 10
44CFLAGS += -Wno-error=narrowing
45
008c392e
TE
46###############################################################################
47# Top-level Rules
48###############################################################################
49
50objects = $(DL_FILE)
51
52$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
53
849ed299 54$(DL_FILE)_BLAKE2 = 60b1c1f4de3cef7470f0f33aa9d361393cee176222bb911d93bac108b8e3a6e38d73acdcc8b773a06d8820039d2e12a4216a5773a4fab4a9c35095607bd6b7c6
008c392e
TE
55
56install : $(TARGET)
57
58check : $(patsubst %,$(DIR_CHK)/%,$(objects))
59
60download :$(patsubst %,$(DIR_DL)/%,$(objects))
61
9a7e4d85 62b2 : $(subst %,%_BLAKE2,$(objects))
008c392e 63
66c36198 64dist:
008c392e
TE
65 @$(PAK)
66
67###############################################################################
9a7e4d85 68# Downloading, checking, b2sum
008c392e
TE
69###############################################################################
70
71$(patsubst %,$(DIR_CHK)/%,$(objects)) :
72 @$(CHECK)
73
74$(patsubst %,$(DIR_DL)/%,$(objects)) :
75 @$(LOAD)
76
9a7e4d85
PM
77$(subst %,%_BLAKE2,$(objects)) :
78 @$(B2SUM)
008c392e
TE
79
80###############################################################################
81# Installation Details
82###############################################################################
83
84$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
85 @$(PREBUILD)
86 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
3e290220 87 $(UPDATE_AUTOMAKE)
6d3854a8
TE
88 cd $(DIR_APP) && ./configure \
89 --prefix=/usr \
3b887740 90 --enable-smartalloc \
6d3854a8
TE
91 --sysconfdir=/etc/bacula \
92 --with-working-dir=/var/bacula/working \
93 --enable-client-only
008c392e
TE
94 cd $(DIR_APP) && make $(MAKETUNING)
95 cd $(DIR_APP) && make install
c2f02d9d
AB
96
97 #install initscripts
f15707c7 98 $(call INSTALL_INITSCRIPTS,$(SERVICES))
c2f02d9d 99
be7f8b80
AB
100 install -v -m 644 ${DIR_SRC}/config/backup/includes/bacula \
101 /var/ipfire/backup/addons/includes/bacula
008c392e
TE
102 @rm -rf $(DIR_APP)
103 @$(POSTBUILD)
6d3854a8 104