[pkg-bacula-commits] [bacula] 01/16: don't install systemd related files on non-linux ports
Carsten Leonhardt
leo at moszumanska.debian.org
Mon Dec 7 18:22:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
leo pushed a commit to branch bacula-fd5.2
in repository bacula.
commit 4eff1e1eda03b7c508e513e85e956961d7f3ee1e
Author: Carsten Leonhardt <leo at debian.org>
Date: Tue Aug 4 12:14:49 2015 +0200
don't install systemd related files on non-linux ports
---
debian/bacula-common.install | 1 -
debian/changelog | 1 +
debian/rules | 14 ++++++++++++--
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/debian/bacula-common.install b/debian/bacula-common.install
index 9cc5eaa..eac8dd5 100644
--- a/debian/bacula-common.install
+++ b/debian/bacula-common.install
@@ -14,4 +14,3 @@ etc/bacula/bconsole.conf usr/share/bacula-common/defconfig
etc/bacula/bacula-sd.conf usr/share/bacula-common/defconfig
etc/bacula/bacula-fd.conf usr/share/bacula-common/defconfig
etc/bacula/bacula-dir.conf usr/share/bacula-common/defconfig
-platforms/systemd/bacula.conf usr/lib/tmpfiles.d
diff --git a/debian/changelog b/debian/changelog
index 2f94fa9..bbbea0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ bacula-fd5.2 (5.2.13+dfsg-2) unstable; urgency=medium
[ Carsten Leonhardt ]
* New package to address upgrade issues (Closes: #807242)
+ * don't install systemd related files on non-linux ports
--
diff --git a/debian/rules b/debian/rules
index 03ee7cb..ea7de57 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,14 +47,20 @@ CONF_ALL = \
--with-subsys-dir=/var/lock \
--with-dump-email=root \
--with-job-email=root \
- --with-systemd=/lib/systemd/system \
--with-mysql --with-postgresql --with-sqlite3 \
--enable-bat --enable-tray-monitor --enable-bwx-console --with-x
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+CONF_ALL += --with-systemd=/lib/systemd/system
+endif
+
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
CONF_ALL += --disable-acl --disable-xattr
endif
+#set to 1 if configured with systemd
+HAVE_SYSTEMD = $(findstring 1,$(shell egrep "^\#define HAVE_SYSTEMD" config.log))
+
LONGNAME_mysql = mysql
LONGNAME_pgsql = postgresql
LONGNAME_sqlite3 = sqlite3
@@ -132,7 +138,11 @@ override_dh_install:
-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;)
-
+ $(info HAVE_SYSTEMD=$(HAVE_SYSTEMD))
+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
+endif
override_dh_installdocs:
dh_installdocs -pbacula --link-doc=bacula-common
--
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