[pkg-bacula-commits] [bacula] 01/02: install text file to be able to determine the dbtype in use without resorting to dbconfig.

Carsten Leonhardt leo at moszumanska.debian.org
Mon Aug 22 11:53:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

leo pushed a commit to branch migrate-files
in repository bacula.

commit d78ebf841ce92a4efbd2286bf954ab85e65d6a1e
Author: Carsten Leonhardt <leo at debian.org>
Date:   Mon Aug 22 13:37:16 2016 +0200

    install text file to be able to determine the dbtype in use
    without resorting to dbconfig.
    
    located at /usr/share/bacula-common/dbtype
    in each bacula-common-DBTYPE package
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index fd02cbc..670b5d6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -117,6 +117,10 @@ override_dh_install-arch:
 		-e "s/XX_DBLONGNAME_XX/$(LONGNAME_$(db))/" \
 		debian/bacula-director-$(db)/etc/bacula/scripts/make_catalog_backup \
 		debian/bacula-director-$(db)/etc/bacula/scripts/make_catalog_backup.pl;)
+# create a reference of which database type is installed on the system
+	$(foreach db,$(VARIANTS), \
+		mkdir -p debian/bacula-common-$(db)/usr/share/bacula-common; \
+		echo $(db) > debian/bacula-common-$(db)/usr/share/bacula-common/dbtype;)
 ifeq ($(HAVE_SYSTEMD),1)
 	# only install systemd related files if systemd is enabled during build
 	install -m 644 platforms/systemd/bacula.conf -D debian/bacula-common/usr/lib/tmpfiles.d/bacula.conf

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git



More information about the pkg-bacula-commits mailing list