Source: netcat-openbsd
Version: 1.226-1
Severity: normal
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

Hi!

Your package installs nc.openbsd into /bin. For the ongoing Debian
UsrMerge effort [1] it should move to /usr/bin in the trixie cycle.

I'm attaching a patch to implement such a move.
As noted in debian/changelog, the update-alternatives calls are
intentionally kept unchanged, to preserve existing user
configuration.

However, please still read the wiki page on moving files, especially
if you intend to backport to bookworm or earlier. The patch has
already been checked by a local dumat copy.

If during the trixie cycle your package will undergo structural
changes or any other file moves, please also see the wiki and upload
to experimental first when these changes are done.

Chris

[1] https://wiki.debian.org/UsrMerge
diff -Nru netcat-openbsd-1.226/debian/changelog netcat-openbsd-1.226/debian/changelog
--- netcat-openbsd-1.226/debian/changelog	2023-10-16 19:31:08.000000000 +0200
+++ netcat-openbsd-1.226/debian/changelog	2023-12-24 20:41:47.000000000 +0100
@@ -1,3 +1,12 @@
+netcat-openbsd (1.226-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Install nc.openbsd into /usr/bin. (Closes: #-1)
+    Keep update-alternatives calls unchanged to preserve user
+    configuration.
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sun, 24 Dec 2023 20:41:47 +0100
+
 netcat-openbsd (1.226-1) unstable; urgency=medium
 
   [ Guilhem Moulin ]
diff -Nru netcat-openbsd-1.226/debian/netcat-openbsd.install netcat-openbsd-1.226/debian/netcat-openbsd.install
--- netcat-openbsd-1.226/debian/netcat-openbsd.install	2023-10-16 19:31:08.000000000 +0200
+++ netcat-openbsd-1.226/debian/netcat-openbsd.install	2023-12-24 20:41:19.000000000 +0100
@@ -1 +1 @@
-nc bin/
+nc usr/bin/
diff -Nru netcat-openbsd-1.226/debian/rules netcat-openbsd-1.226/debian/rules
--- netcat-openbsd-1.226/debian/rules	2023-10-16 19:31:08.000000000 +0200
+++ netcat-openbsd-1.226/debian/rules	2023-12-24 20:41:33.000000000 +0100
@@ -39,7 +39,7 @@
 endif
 
 execute_after_dh_install:
-	mv -T $(prefix)/bin/nc $(prefix)/bin/nc.openbsd
+	mv -T $(prefix)/usr/bin/nc $(prefix)/usr/bin/nc.openbsd
 
 execute_after_dh_installman:
 	mv -T $(man1dir)/nc.1 $(man1dir)/nc_openbsd.1

Reply via email to