salsa.debian.org/debian / smcroute

debian/rules: Don't ship the smcroute-helper.service when building without systemd support (i.e. kFreeBSD as of now)

Micha Lenk · 5 years ago commit b9ccc3e · parent e99d267 · child b0026ab · patch
diff --git a/debian/rules b/debian/rules
index 03894ba..4afc04b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,6 +36,8 @@ override_dh_auto_install:
 	# delete duplicate license file /usr/share/doc/smcroute/COPYING
 	rm -v debian/smcroute/usr/share/doc/smcroute/COPYING
 
+ifeq ($(with_systemd),--with-systemd)
 override_dh_installsystemd:
 	dh_installsystemd
 	dh_installsystemd --name=smcroute-helper
+endif