[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#926776: xdm: add support for runit init system



Package: xdm
Version: 1:1.1.11-3
Severity: wishlist
Tags: +patch
User: runit@packages.debian.org
Usertags: +runscript

Dear Maintainer,

please consider applying following patch that add support for runit init
system.

From a42aabe7d6d48f7d8d51cb4b9e5b6c0ce84c881b Mon Sep 17 00:00:00 2001
From: Dmitry Bogatov <KAction@debian.org>
Date: Mon, 8 Apr 2019 17:37:12 +0000
Subject: [PATCH] Add runscript

---
 debian/control       | 2 ++
 debian/rules         | 1 +
 debian/xdm.runit     | 1 +
 debian/xdm.runscript | 2 ++
 4 files changed, 6 insertions(+)
 create mode 100644 debian/xdm.runit
 create mode 100755 debian/xdm.runscript

diff --git a/debian/control b/debian/control
index 4886b7d..eba8144 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
 Uploaders: Cyril Brulebois <kibi@debian.org>
 Build-Depends:
  debhelper (>= 9),
+ dh-runit  (>= 2.8.8),
  dpkg-dev (>= 1.16.1),
  pkg-config,
  libxmu-dev (>= 1:1.0.1),
@@ -35,6 +36,7 @@ Depends:
  x11-xserver-utils,
  procps,
 Provides: x-display-manager
+Breaks: ${runit:Breaks}
 Description: X display manager
  xdm manages a collection of X servers, which may be on the local host or
  remote machines.  It provides services similar to those provided by init,
diff --git a/debian/rules b/debian/rules
index 5d2dbd3..0e28855 100755
--- a/debian/rules
+++ b/debian/rules
@@ -124,6 +124,7 @@ clean: xsfclean
 binary-arch: $(STAMP_DIR)/install
 	dh_testdir
 	dh_testroot
+	dh_runit
 
 	dh_installdocs
 	dh_install --sourcedir=debian/tmp --list-missing
diff --git a/debian/xdm.runit b/debian/xdm.runit
new file mode 100644
index 0000000..abcbe9f
--- /dev/null
+++ b/debian/xdm.runit
@@ -0,0 +1 @@
+debian/xdm.runscript logscript,name=xdm,since=1:1.1.11-4
diff --git a/debian/xdm.runscript b/debian/xdm.runscript
new file mode 100755
index 0000000..9572461
--- /dev/null
+++ b/debian/xdm.runscript
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/xdm -nodaemon -error /dev/stdout
-- 
        Note, that I send and fetch email in batch, once every 24 hours.
                 If matter is urgent, try https://t.me/kaction
                                                                             --

Attachment: pgplTmIITW4wW.pgp
Description: PGP signature


Reply to: