Source: iputils
Version: 3:20190709-2
Severity: wishlist
Tags: patch

Dear Maintainer,

I was really surprised to find that the rdisc daemon is not provided
in a package for Debian. I'm currently working on moving hundreds of
machines over to Debian from a different distro and we rely on
rdisc. Is there any technical or legal reason why the rdisc daemon
couldn't be shipped in a package?

Attached is a patch which enables the building of rdisc and puts it
into an iputils-rdisc package along with the associated man page and
systemd service file. Note that I had to bump the debian/compat level
to 10 for dh_installsystemd to do the right thing with the postinst,
postrm and prerm scripts.

Regards,

Stephen Quinney

-- System Information:
Debian Release: buster/sid
  APT prefers eoan-updates
  APT policy: (500, 'eoan-updates'), (500, 'eoan-security'), (500, 'eoan'), 
(100, 'eoan-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-26-generic (SMP w/2 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

diff -ruN iputils-20190709.orig/debian/changelog 
iputils-20190709/debian/changelog
--- iputils-20190709.orig/debian/changelog      2020-02-19 13:08:46.431046203 
+0000
+++ iputils-20190709/debian/changelog   2020-02-19 13:16:17.391052469 +0000
@@ -1,3 +1,9 @@
+iputils (3:20190709-2.1) unstable; urgency=low
+
+  * Non-Maintainer Upload: Added iputils-rdisc package (Closes: #457059)
+
+ -- Stephen Quinney <squin...@inf.ed.ac.uk>  Wed, 19 Feb 2020 13:15:00 +0000
+
 iputils (3:20190709-2) unstable; urgency=medium
 
   * Incorporate upstream fix for arping exit code regression
diff -ruN iputils-20190709.orig/debian/compat iputils-20190709/debian/compat
--- iputils-20190709.orig/debian/compat 2020-02-19 13:08:46.431046203 +0000
+++ iputils-20190709/debian/compat      2020-02-19 13:37:10.179017574 +0000
@@ -1 +1 @@
-9
+10
diff -ruN iputils-20190709.orig/debian/control iputils-20190709/debian/control
--- iputils-20190709.orig/debian/control        2020-02-19 13:08:46.431046203 
+0000
+++ iputils-20190709/debian/control     2020-02-19 13:37:15.315017535 +0000
@@ -52,3 +52,11 @@
  The time differences measured by clockdiff are obtained using a
  sequence of ICMP TSTAMP messages which are returned to the sender by
  the IP module in the remote machine.
+
+Package: iputils-rdisc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Network router discovery daemon
+ rdisc implements client side of the ICMP router discover protocol.  It is
+ typically invoked at boot time to populate the network routing tables
+ with default routes.
diff -ruN iputils-20190709.orig/debian/iputils-rdisc.install 
iputils-20190709/debian/iputils-rdisc.install
--- iputils-20190709.orig/debian/iputils-rdisc.install  1970-01-01 
01:00:00.000000000 +0100
+++ iputils-20190709/debian/iputils-rdisc.install       2020-02-19 
13:25:54.411031642 +0000
@@ -0,0 +1,3 @@
+usr/sbin/rdisc
+usr/share/man/man8/rdisc.8
+lib/systemd/system/rdisc.service
diff -ruN iputils-20190709.orig/debian/rules iputils-20190709/debian/rules
--- iputils-20190709.orig/debian/rules  2020-02-19 13:08:46.435046203 +0000
+++ iputils-20190709/debian/rules       2020-02-19 13:31:31.895021796 +0000
@@ -5,9 +5,9 @@
 export DEBIAN_LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 export BUILD_DIR=obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
-TARGETS=ping tracepath traceroute6 clockdiff arping
+TARGETS=ping tracepath traceroute6 clockdiff arping rdisc
 MAN_TARGETS=doc/arping.8 doc/clockdiff.8 \
-          doc/ping.8 doc/tracepath.8 doc/traceroute6.8
+          doc/ping.8 doc/tracepath.8 doc/traceroute6.8 doc/rdisc.8
 
 %:
        dh $@ --buildsystem=meson+ninja --builddirectory=$(BUILD_DIR)
@@ -16,7 +16,7 @@
        meson $(BUILD_DIR) \
                -Dprefix=/usr \
                -DBUILD_RARPD=false \
-               -DBUILD_RDISC=false \
+               -DBUILD_RDISC=true \
                -DBUILD_TFTPD=false \
                -DBUILD_NINFOD=false \
                -DBUILD_HTML_MANS=false \

Reply via email to