]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/bacula
Merge branch 'temp-c165-development' into next
[ipfire-2.x.git] / lfs / bacula
CommitLineData
008c392e
TE
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
eee037b8 4# Copyright (C) 2007-2018 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
2abcb7ee 29VER = 9.6.7
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
2abcb7ee 37PAK_VER = 9
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
2abcb7ee 54$(DL_FILE)_MD5 = 2fa01ba7b0bb171535f6510b96ffd22b
008c392e
TE
55
56install : $(TARGET)
57
58check : $(patsubst %,$(DIR_CHK)/%,$(objects))
59
60download :$(patsubst %,$(DIR_DL)/%,$(objects))
61
62md5 : $(subst %,%_MD5,$(objects))
63
64dist:
65 @$(PAK)
66
67###############################################################################
68# Downloading, checking, md5sum
69###############################################################################
70
71$(patsubst %,$(DIR_CHK)/%,$(objects)) :
72 @$(CHECK)
73
74$(patsubst %,$(DIR_DL)/%,$(objects)) :
75 @$(LOAD)
76
77$(subst %,%_MD5,$(objects)) :
78 @$(MD5)
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