Skip to content
Snippets Groups Projects
Commit 01d61df7 authored by Emil Breiner's avatar Emil Breiner
Browse files

Integration of backupninja as systemd service in packaging


Integrating the backupninja.service & timer into the installation via the debian package.

Change-Id: I0f8084078052cbd4ce232fa45692cc52ccd502b7
Signed-Off-By: default avatarEmil Breiner <emil.breiner@krumedia.com>
parent f5d083dc
Branches hotfix/syshandler-overwrite-luksheaderbackup
No related tags found
No related merge requests found
...@@ -6,7 +6,8 @@ Uploaders: Micah Anderson <micah@riseup.net>, ...@@ -6,7 +6,8 @@ Uploaders: Micah Anderson <micah@riseup.net>,
intrigeri <intrigeri@debian.org>, intrigeri <intrigeri@debian.org>,
Jerome Charaoui <jerome@riseup.net> Jerome Charaoui <jerome@riseup.net>
Build-Depends: Build-Depends:
debhelper (>= 10) debhelper (>= 10),
pkg-config
Build-Conflicts: autoconf2.13 Build-Conflicts: autoconf2.13
Standards-Version: 4.1.4 Standards-Version: 4.1.4
Homepage: https://0xacab.org/riseuplabs/backupninja Homepage: https://0xacab.org/riseuplabs/backupninja
......
#!/usr/bin/make -f #!/usr/bin/make -f
# -*- makefile -*- # -*- makefile -*-
SYSTEMD_DIR := $(shell pkg-config systemd --variable=systemdsystemunitdir)
PACKAGE = backupninja PACKAGE = backupninja
TMP = $(CURDIR)/debian/$(PACKAGE) TMP = $(CURDIR)/debian/$(PACKAGE)
%: %:
dh $@ dh $@
override_dh_clean:
dh_auto_clean
rm -f debian/backupninja.service
rm -f debian/backupninja.timer
override_dh_auto_configure: override_dh_auto_configure:
dh_auto_configure -- \ dh_auto_configure -- \
--libdir=\$${prefix}/lib \ --libdir=\$${prefix}/lib \
--libexecdir=\$${prefix}/lib --libexecdir=\$${prefix}/lib \
--with-systemdsystemunitdir=$(SYSTEMD_DIR)
override_dh_auto_install: override_dh_auto_install:
dh_auto_install dh_auto_install
chmod a-x $(TMP)/usr/lib/backupninja/parseini chmod a-x $(TMP)/usr/lib/backupninja/parseini
chmod a-x $(TMP)/usr/lib/backupninja/vserver chmod a-x $(TMP)/usr/lib/backupninja/vserver
rm $(TMP)/usr/share/backupninja/example.* rm $(TMP)/usr/share/backupninja/example.*
cp systemd/backupninja.service debian
cp systemd/backupninja.timer debian
override_dh_compress: override_dh_compress:
dh_compress -Xexample dh_compress -Xexample
...@@ -27,4 +37,3 @@ override_dh_fixperms: ...@@ -27,4 +37,3 @@ override_dh_fixperms:
override_dh_installchangelogs: override_dh_installchangelogs:
dh_installchangelogs ChangeLog dh_installchangelogs ChangeLog
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment