Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -1,6 +1,6 @@ -prefix=/usr/local +prefix:=/usr/local mandir=$(prefix)/share/man bindir=$(prefix)/bin sysconfdir=/etc initddir=$(sysconfdir)/init.d systemddir=/lib/systemd/system Index: debian/changelog ================================================================== --- debian/changelog +++ debian/changelog @@ -1,5 +1,12 @@ +vws (0.5-2) unstable; urgency=medium + + * Added dpkg-statoverride for qemu-bridge-helper + * Fixed typo in service file + + -- Victor Wagner Wed, 30 Aug 2017 14:44:22 +0300 + vws (0.5-1) unstable; urgency=low * Initial release -- Victor Wagner Sat, 14 Jan 2017 19:48:30 +0300 Index: debian/postinst ================================================================== --- debian/postinst +++ debian/postinst @@ -19,11 +19,11 @@ case "$1" in configure) update-rc.d vws defaults - chmod u+s /usr/lib/qemu/qemu-bridge-helper + dpkg-statoverride --update --add root kvm 4750 /usr/lib/qemu/qemu-bridge-helper ;; abort-upgrade|abort-remove|abort-deconfigure) ;; Index: debian/postrm ================================================================== --- debian/postrm +++ debian/postrm @@ -20,10 +20,11 @@ case "$1" in purge) update-rc.d vws remove + dpkg-statoverride --remove /usr/lib/qemu/qemu-bridge-helper ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; Index: debian/rules ================================================================== --- debian/rules +++ debian/rules @@ -21,19 +21,20 @@ # main packaging script based on dh7 syntax %: dh $@ override_dh_build override_dh_auto_build: make prefix=/usr -override_dh_install override_dh_auto_install: - make install prefix=/usr DESTDIR=`pwd`/debian/vws +override_dh_install: dh_systemd_enable dh_installinit - +override_dh_auto_install: + make install prefix=/usr DESTDIR=`pwd`/debian/vws +# true # debmake generated override targets # This is example for Cmake (See http://bugs.debian.org/641051 ) #override_dh_auto_configure: # dh_auto_configure -- \ # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) Index: vws.service.in ================================================================== --- vws.service.in +++ vws.service.in @@ -6,7 +6,7 @@ Type=forking ExecStart=@bindir@/vws autostart ExecStop=@bindir@/vws shutdown --wait Restart=no [Install] -WantedBy=muiti-user.target +WantedBy=multi-user.target Alias=vws.service