]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include Config | |
26 | ||
f15707c7 RR |
27 | SUMMARY = Enterprise-ready Network Backup Software |
28 | ||
2abcb7ee | 29 | VER = 9.6.7 |
008c392e TE |
30 | |
31 | THISAPP = bacula-$(VER) | |
32 | DL_FILE = $(THISAPP).tar.gz | |
9ac40513 | 33 | DL_FROM = $(URL_IPFIRE) |
008c392e TE |
34 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
35 | TARGET = $(DIR_INFO)/$(THISAPP) | |
36 | PROG = bacula | |
c183124f | 37 | PAK_VER = 10 |
008c392e | 38 | |
2dc2a278 | 39 | DEPS = |
008c392e | 40 | |
f15707c7 RR |
41 | SERVICES = bacula |
42 | ||
e39437b2 MT |
43 | # For GCC 10 |
44 | CFLAGS += -Wno-error=narrowing | |
45 | ||
008c392e TE |
46 | ############################################################################### |
47 | # Top-level Rules | |
48 | ############################################################################### | |
49 | ||
50 | objects = $(DL_FILE) | |
51 | ||
52 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
53 | ||
9a7e4d85 | 54 | $(DL_FILE)_BLAKE2 = 8f5d5cbe8c3ce62105624138e9dfbb9f19eb0721bb2e377c07ef2cd3d4a8442641b4758b00b3050d2352dde31205658963782d2bec3e87242dac7b4b6a4d659c |
008c392e TE |
55 | |
56 | install : $(TARGET) | |
57 | ||
58 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
59 | ||
60 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
61 | ||
9a7e4d85 | 62 | b2 : $(subst %,%_BLAKE2,$(objects)) |
008c392e | 63 | |
66c36198 | 64 | dist: |
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 |