]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blobdiff - lfs/bacula
apcupsd: Ship due to sobump from json-c update
[people/mfischer/ipfire-2.x.git] / lfs / bacula
index 8c96c7ba14c2abbf984ea30b2239bdce736c0e29..c56e2f921b66e285b30c1169bba0ae6351c9b362 100644 (file)
@@ -24,7 +24,9 @@
 
 include Config
 
-VER        = 9.0.6
+SUMMARY    = Enterprise-ready Network Backup Software
+
+VER        = 9.6.7
 
 THISAPP    = bacula-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -32,10 +34,15 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = bacula
-PAK_VER    = 4
+PAK_VER    = 10
 
 DEPS       =
 
+SERVICES   = bacula
+
+# For GCC 10
+CFLAGS    += -Wno-error=narrowing
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -44,7 +51,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 9168e398808c42bf290515f60892f643
+$(DL_FILE)_BLAKE2 = 8f5d5cbe8c3ce62105624138e9dfbb9f19eb0721bb2e377c07ef2cd3d4a8442641b4758b00b3050d2352dde31205658963782d2bec3e87242dac7b4b6a4d659c
 
 install : $(TARGET)
 
@@ -52,13 +59,13 @@ check : $(patsubst %,$(DIR_CHK)/%,$(objects))
 
 download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
-md5 : $(subst %,%_MD5,$(objects))
+b2 : $(subst %,%_BLAKE2,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
-# Downloading, checking, md5sum
+# Downloading, checking, b2sum
 ###############################################################################
 
 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
@@ -67,8 +74,8 @@ $(patsubst %,$(DIR_CHK)/%,$(objects)) :
 $(patsubst %,$(DIR_DL)/%,$(objects)) :
        @$(LOAD)
 
-$(subst %,%_MD5,$(objects)) :
-       @$(MD5)
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
 
 ###############################################################################
 # Installation Details
@@ -80,13 +87,18 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && ./configure \
                                --prefix=/usr \
+                               --enable-smartalloc \
                                --sysconfdir=/etc/bacula \
                                --with-working-dir=/var/bacula/working \
                                --enable-client-only
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
-       ln -s /etc/bacula/bacula-ctl-fd /etc/rc.d/init.d/bacula
-       rm -f /root/.rnd
+
+       #install initscripts
+       $(call INSTALL_INITSCRIPTS,$(SERVICES))
+
+       install -v -m 644 ${DIR_SRC}/config/backup/includes/bacula \
+                       /var/ipfire/backup/addons/includes/bacula
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)