PPA: use systemd startup scripts for daemons
refs #2810
Change-Id: I79d29d91b1ec3b9e5b85fb9ea6f9e958937452f3
diff --git a/packaging.mk b/packaging.mk
index 3fa5242..925db1d 100644
--- a/packaging.mk
+++ b/packaging.mk
@@ -50,12 +50,11 @@
NEW_VER="${VERSION}-ppa${PPA_VERSION}~$$distro"; \
rm -Rf debian ; cp -r ../../debian . ; \
sed -i -e "s/DISTRO/$$distro/g" debian/changelog ; \
- if [ -f "debian/control.$$distro" ]; then \
- mv "debian/control.$$distro" debian/control ; \
- fi ; \
- if [ -f "debian/rules.$$distro" ]; then \
- mv "debian/rules.$$distro" debian/rules ; \
- fi ; \
+ for file in debian/*.$$distro; do \
+ if [ -f $$file ]; then \
+ rename -f "s/\.$$distro$$//" $$file ; \
+ fi ; \
+ done ; \
CUR_VER=`dpkg-parsechangelog | grep '^Version: ' | awk '{print $$2}'`; \
if dpkg --compare-versions $$NEW_VER gt $$CUR_VER; then \
echo "New version. Will update changelog and build source package" ; \