[mw-devel] [Git][arthur/mw][master] Update Debian packaging for systemd
Imran Hussain
imranh at sucs.org
Sat Nov 17 14:35:07 GMT 2018
Imran Hussain pushed to branch master at Justin Mitchell / mw
Commits:
3ae066f0 by Andrew Price at 2018-11-17T14:35:05+00:00
Update Debian packaging for systemd
(cherry picked from commit 711804a769274c547571b9a46468a71f8b95a989)
- - - - -
6 changed files:
- Makefile
- debian-template/control
- debian-template/mw3.install
- debian-template/postinst
- − debian-template/postrm
- debian-template/rules
Changes:
=====================================
Makefile
=====================================
--- a/Makefile
+++ b/Makefile
@@ -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
=====================================
debian-template/control
=====================================
--- a/debian-template/control
+++ b/debian-template/control
@@ -2,7 +2,16 @@ Source: mw3
Section: misc
Priority: extra
Maintainer: Milliways Developers <mw-devel at 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
=====================================
debian-template/mw3.install
=====================================
--- a/debian-template/mw3.install
+++ b/debian-template/mw3.install
@@ -1,4 +1,3 @@
usr/bin/mw
usr/lib/mw/*
usr/share/locale/*
-etc/init.d/mwserv
=====================================
debian-template/postinst
=====================================
--- a/debian-template/postinst
+++ b/debian-template/postinst
@@ -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
=====================================
debian-template/postrm deleted
=====================================
--- a/debian-template/postrm
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh -e
-
-if [ "$1" = purge ]; then
- update-rc.d mwserv remove
-fi
=====================================
debian-template/rules
=====================================
--- a/debian-template/rules
+++ b/debian-template/rules
@@ -3,7 +3,7 @@
export RELEASE_BUILD=1
%:
- dh $@
+ dh --with systemd $@
override_dh_strip:
dh_strip --dbg-package=mw3-dbg
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/3ae066f070382ec171d7f4006c5f59f36327b118
--
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/3ae066f070382ec171d7f4006c5f59f36327b118
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20181117/1d101834/attachment-0001.html>
More information about the mw-devel
mailing list