Control: tags 1058772 + patch
Control: tags 1058772 + pending

Dear maintainer,

I've prepared an NMU for btrbk (versioned as 0.32.5-1.1) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Chris

diff -Nru btrbk-0.32.5/debian/changelog btrbk-0.32.5/debian/changelog
--- btrbk-0.32.5/debian/changelog	2022-11-05 10:44:49.000000000 +0100
+++ btrbk-0.32.5/debian/changelog	2024-05-25 23:46:17.000000000 +0200
@@ -1,3 +1,10 @@
+btrbk (0.32.5-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Let debhelper place systemd units. (Closes: #1058772)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sat, 25 May 2024 23:46:17 +0200
+
 btrbk (0.32.5-1) unstable; urgency=medium
 
   * New Upstream Release
diff -Nru btrbk-0.32.5/debian/rules btrbk-0.32.5/debian/rules
--- btrbk-0.32.5/debian/rules	2022-11-05 10:44:49.000000000 +0100
+++ btrbk-0.32.5/debian/rules	2024-05-25 23:46:13.000000000 +0200
@@ -15,6 +15,13 @@
 override_dh_auto_configure:
 	dh_auto_configure
 	sed -i \
-	  -e 's/^SYSTEMDDIR\s*=.*/SYSTEMDDIR = \/lib\/systemd\/system/' \
 	  -e 's/ChangeLog//' \
 	  Makefile
+
+execute_after_dh_auto_install:
+	# Let dh place btrbk.service and btrbk.timer.
+	mv debian/btrbk/usr/lib/systemd/system/* debian/
+	rmdir debian/btrbk/usr/lib/systemd/system debian/btrbk/usr/lib/systemd
+
+execute_after_dh_auto_clean:
+	rm -f debian/btrbk.service debian/btrbk.timer

Reply via email to