For anyone wanting to try the binaries from u-l, here's a simple
(and likely wrong) patch against u-l git, that produces a
util-linux.deb with the binaries included.

Use at your own risk :-)

>From 140d9982e75e7cd313a91a3ba8b7bd8a9fb0e283 Mon Sep 17 00:00:00 2001
From: Christian Hofstaedtler <z...@debian.org>
Date: Sun, 22 Jan 2017 16:01:51 +0000
Subject: [PATCH] Build login, nologin, su, chsh, chfn from this package

---
 debian/control            | 5 ++++-
 debian/rules              | 6 ------
 debian/util-linux.install | 5 +++++
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index 4bf4359ad..e514c1119 100644
--- a/debian/control
+++ b/debian/control
@@ -37,7 +37,10 @@ Replaces: bash-completion (<< 1:2.1-4.1~),
           sysvinit-utils (<< 2.88dsf-59.1~),
           initscripts (<< 2.88dsf-59.2~),
           mount (= 2.26.2-3),
-          mount (= 2.26.2-3ubuntu1)
+          mount (= 2.26.2-3ubuntu1),
+          passwd (<= 1:4.4-2),
+          login (<= 1:4.4-2),
+          bash-completion (<= 1:2.1-4.3)
 Breaks: bash-completion (<< 1:2.1-4.1~),
           grml-debootstrap (<< 0.68),
           cloud-utils (<< 0.27-1~),
diff --git a/debian/rules b/debian/rules
index 227577bfb..1c0cf70f4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,16 +36,10 @@ CONFOPTS += --without-python
 CONFOPTS += --enable-libmount-force-mountinfo
 
 # disable utilities shipped by other packages
-# => login
-CONFOPTS += --disable-login
-CONFOPTS += --disable-nologin
-CONFOPTS += --disable-su
 # => procps
 CONFOPTS += --disable-kill
 # => eject
 CONFOPTS += --disable-eject
-# => passwd
-CONFOPTS += --disable-chfn-chsh
 
 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
        CROSS :=
diff --git a/debian/util-linux.install b/debian/util-linux.install
index bbe347c3c..31dfd228e 100755
--- a/debian/util-linux.install
+++ b/debian/util-linux.install
@@ -30,6 +30,11 @@ sbin/sulogin
 sbin/swaplabel
 sbin/wipefs
 sbin/zramctl                                                    [linux-any]
+bin/su
+bin/login
+sbin/nologin
+usr/bin/chsh
+usr/bin/chfn
 usr/bin/chrt                                                   [!hurd-any]
 usr/bin/flock
 usr/bin/getopt
-- 
2.11.0

Reply via email to