Commit 711804a7 authored by Andrew Price's avatar Andrew Price

Update Debian packaging for systemd

parent 54027aa0
......@@ -18,6 +18,7 @@ install:
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_TWEAK=$(VERSION_TWEAK) -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
......@@ -2,7 +2,7 @@
#export DH_VERBOSE=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