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
No related branches found
No related tags found
1 merge request!43WIP:Integration of backupninja as systemd service in packaging
......@@ -6,7 +6,8 @@ Uploaders: Micah Anderson <micah@riseup.net>,
intrigeri <intrigeri@debian.org>,
Jerome Charaoui <jerome@riseup.net>
Build-Depends:
debhelper (>= 10)
debhelper (>= 10),
pkg-config
Build-Conflicts: autoconf2.13
Standards-Version: 4.1.4
Homepage: https://0xacab.org/riseuplabs/backupninja
......
#!/usr/bin/make -f
# -*- makefile -*-
SYSTEMD_DIR := $(shell pkg-config systemd --variable=systemdsystemunitdir)
PACKAGE = backupninja
TMP = $(CURDIR)/debian/$(PACKAGE)
%:
dh $@
override_dh_clean:
dh_auto_clean
rm -f debian/backupninja.service
rm -f debian/backupninja.timer
override_dh_auto_configure:
dh_auto_configure -- \
--libdir=\$${prefix}/lib \
--libexecdir=\$${prefix}/lib
--libexecdir=\$${prefix}/lib \
--with-systemdsystemunitdir=$(SYSTEMD_DIR)
override_dh_auto_install:
dh_auto_install
chmod a-x $(TMP)/usr/lib/backupninja/parseini
chmod a-x $(TMP)/usr/lib/backupninja/vserver
rm $(TMP)/usr/share/backupninja/example.*
cp systemd/backupninja.service debian
cp systemd/backupninja.timer debian
override_dh_compress:
dh_compress -Xexample
......@@ -27,4 +37,3 @@ override_dh_fixperms:
override_dh_installchangelogs:
dh_installchangelogs ChangeLog
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment