From 932824afbc8302949e4b3551a14b42e629a66ebc Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 16 Dec 2018 08:59:23 +0000 Subject: Do not impose dependency on `runit' binary package Instead, generate conflict relation with old `runit' version, not providing `runit-log' user. --- debian/changelog | 3 +++ dh_runit | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0a35570..c1ce29d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ dh-runit (2.8.1) UNRELEASED; urgency=medium * Make auto-generated runscripts invoke svlogd(8) as `runit-log' user. * Impose dependency on (runit >= 2.1.2-20), which provides `runit-log' user. + * Do not impose dependency on `runit' binary package. Instead, + generate conflict relation with old `runit' version, not providing + `runit-log' user. -- Dmitry Bogatov Wed, 12 Dec 2018 02:15:19 +0000 diff --git a/dh_runit b/dh_runit index bf2a49a..a3e512b 100755 --- a/dh_runit +++ b/dh_runit @@ -102,7 +102,8 @@ HERE install_dir("$tmp/var/lib/runit/log/supervise/$name"); } } - addsubstvar($pkg, 'misc:Depends', 'runit', '>= 2.1.2-20~'); + # runit=2.1.2-20 introduced 'runit-log' user + addsubstvar($pkg, 'runit:Conflicts', 'runit', '<< 2.1.2-20~'); addsubstvar($pkg, 'misc:Depends', 'runit-helper', '>= 2.8.1~'); } -- cgit v1.2.3