Commit 3ae066f0 authored by Andrew Price's avatar Andrew Price Committed by Imran Hussain

Update Debian packaging for systemd


(cherry picked from commit 711804a7)
parent 652ee18c
Pipeline #488 failed with stage
in 6 minutes and 47 seconds
......@@ -23,6 +23,7 @@ install: install-home
deb:
cp -a debian-template debian
cp mw.service debian/mw3.service
dch --create --package mw3 -v $(VERSION) -c debian/changelog "Build mw3 $(VERSION) package"
debuild -e VERSION=$(VERSION) -us -uc -b
......
......@@ -2,7 +2,16 @@ Source: mw3
Section: misc
Priority: extra
Maintainer: Milliways Developers <mw-devel@lists.sucs.org>
Build-Depends: debhelper (>= 8), libreadline-dev (>=5), libcurl4-dev | libcurl-dev, libsqlite3-dev, libjansson-dev, libncurses5-dev, libssl-dev, libpq-dev
Build-Depends:
debhelper (>= 8),
libreadline-dev (>=5),
libcurl4-dev | libcurl-dev | libcurl4-gnutls-dev,
libsqlite3-dev,
libjansson-dev,
libncurses5-dev,
libssl-dev,
libpq-dev,
dh-systemd (>= 1.5)
Standards-Version: 3.7.2
Package: mw3
......
usr/bin/mw
usr/lib/mw/*
usr/share/locale/*
etc/init.d/mwserv
......@@ -20,8 +20,6 @@ if ! getent passwd mw >/dev/null 2>&1; then
--ingroup mw mw
fi
update-rc.d mwserv defaults
chown -R mw:mw /usr/lib/mw
chown mw:mw /usr/bin/mw
chown mw:mw /var/log/mw
......
#!/bin/sh -e
if [ "$1" = purge ]; then
update-rc.d mwserv remove
fi
......@@ -3,7 +3,7 @@
export RELEASE_BUILD=1
%:
dh $@
dh --with systemd $@
override_dh_strip:
dh_strip --dbg-package=mw3-dbg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment