🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.devel.mentors
Article #134

Bug#1150929: RFS: portop/0.1.0+git20261014.6772ea7-1 [ITP] -- interactive TCP and UDP port and process monitor

#134
From: Maytham Alsudany
Date: Mon, 23 Nov 2026 01:50
81 lines
6910 bytes
--=-iX37NMccH8vQv7s2DFox
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Luca,

On Sun, 2026-11-22 at 19:36 +0100, Luca Padovan wrote:
> > What is the benefit of packaging portop when other implementations
> > like top, htop, btop and many others are already in Debian? In other
> > words, what makes portop unique?
>=20
> portop is not a process monitor like top or htop; it sits next to ss,
> netstat and lsof, which give a one-off listing without context. portop
> shows a live table of TCP and UDP sockets with their process, the
> systemd unit or container behind them (read from cgroups), who can
> reach each listener (every interface, one address or loopback only)
> and what the host firewall (ufw, firewalld, nftables) does with it. It
> can stop the owner of a port safely, checking the process start time
> first, and it is scriptable: --wait and --free for services, --diff
> against a saved baseline with an exit code for cron or CI, a Docker
> Compose port audit, Prometheus metrics and a Cockpit page. I am not
> aware of another tool in Debian that combines these.

You've convinced me :)
At least this will be insanely useful when I'm trying to figure out some
arcane issue on one of my servers.

> > Is there a reason that the package is not being maintained on
> > salsa.debian.org, under go-team/packages/?
>=20
> No particular reason, and I agree it is the better place. I have
> prepared the packaging for v0.4.0 in DEP-14 layout (debian/sid,
> upstream/latest, pristine-tar), following the team conventions, with
> the Debian Go Packaging Team as Maintainer and myself in Uploaders, so
> other contributors can work on it freely. It builds in sid against the
> packaged libraries, and passes lintian and autopkgtest. I will ask the
> Go team for access to go-team/packages and reply here with the link
> once the repository is there.

Do you have a Salsa account yet? If yes, what's your username? I may be
able to create a repo for portop and give you access to that
specifically in the meantime.

> While preparing it I also found that GOPATH builds fell back to old Go
> defaults (the Go 1.21 ServeMux, which broke the web dashboard's routes,
> and SHA-1 in TLS); the package carries a small patch for it, and the
> fix will be in the next upstream release so the patch can be dropped.

Have you tried using module aware builds? The Go team is slowly
switching packages over, which should fix this problem.
See https://wiki.debian.org/Teams/DebianGoTeam/ModuleAwareBuilds
In short, remove dh-golang/dh-sequence-golang, add dh-go to Build-
Depends and --with golang to the dh invocation in d/rules.

--
Maytham


--=-iX37NMccH8vQv7s2DFox
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQJGBAABCgAwFiEESl/RzRFQh8wD3DXB1ZeJcgbF8H8FAmsDmRUSHG1heXRoYW1A
YWV6aWduLmF1AAoJENWXiXIGxfB/q9cP/jQcpotajVns0kct0vxVls6yvkyzxnaY
OmFZoTqlIF3ACxg/TrVzrt2ZgNBgfhshclaMmpKkq28foqQZy5At3FE5pIIkfn7I
T++XLsRVUhY/LUpSlI6y8s+bFucqOMiEMLJEm7wtGPKp8D0xKEO4MNW1yeJBHYM2
3OYo6zUI5Ust0E5GEdQ7CUo/el4uLqesD4bjYU5a/nwGvTx8lkZ7CV+8/xPWchth
Jtt7akGQl/W1yduovcegKiMo+5mQtTb9bOc/3RAF2DSVqFikt7PwggidUPjGkJMj
CB/N+Yxm7TXV4ebB9yIdfw0MZGuYd00X5Fsc0FqallrAjHm4gNPrUOjK5JOuY641
flWci/f0uXYoMnSKKDLKdOr8PbhemthuAoBP+I0SeCmsxXCXxKkM4/s/aOy6HmSQ
A5jkINqqdL7xqW5/REh5SdrmVJ/thYD4Hz9EnZJaXQ9/3u5r15Wl7evsAk9Nps4T
IdBL339UBEPno89fRNsZEBIfj5blhhxzvEJjGAKIU2Nw+DADU5dYqzx/cuyQb1si
q3mgj3CTn5qHK95AhbLeGC6eOkTQJj+XMufmFdriRMIfZj4QqI30v2UQI8NAYSHe
0wlHiCV/mkzMtLmCwB/dO0qstgaAn+nnrPwT0rXAK44sqR2tRXnAn+NgFuNevDSj
fPATcl5llYAL
=ihW2
-----END PGP SIGNATURE-----

--=-iX37NMccH8vQv7s2DFox--
Technical Details
Message-ID: <O2rlT-dzLQ-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NOeyd-5x8L-5@gated-at.bofh.it> <NOeHU-5xdy-19@gated-at.bofh.it> <NOeHU-5xdy-17@gated-at.bofh.it> <NOeyd-5x8L-7@gated-at.bofh.it> <NZbdD-bKdX-5@gated-at.bofh.it> <NZbdD-bKdX-3@gated-at.bofh.it> <NOeyd-5x8L-7@gated-at.bofh.it> <O2rlT-dzLQ-3@gated-at.bofh.it> <NOeyd-5x8L-7@gated-at.bofh.it> <O2rlT-dzLQ-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Maytham Alsudany <maytham@aezign.au>
Newsgroups: linux.debian.devel.mentors
Subject: Bug#1150929: RFS: portop/0.1.0+git20261014.6772ea7-1 [ITP] -- interactive TCP and UDP port and process monitor
Date: Mon, 23 Nov 2026 02:50:01 +0100
Message-ID: <O2rlT-dzLQ-1@gated-at.bofh.it>
References: <NOeyd-5x8L-5@gated-at.bofh.it> <NOeHU-5xdy-19@gated-at.bofh.it> <NOeHU-5xdy-17@gated-at.bofh.it> <NOeyd-5x8L-7@gated-at.bofh.it> <NZbdD-bKdX-5@gated-at.bofh.it> <NZbdD-bKdX-3@gated-at.bofh.it> <NOeyd-5x8L-7@gated-at.bofh.it> <O2rlT-dzLQ-3@gated-at.bofh.it> <NOeyd-5x8L-7@gated-at.bofh.it> <O2rlT-dzLQ-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-mentors-request@lists.debian.org  Mon Nov 23 01:41:20 2026
Old-Return-Path: <bounces+20261123-debian+2Dmentors=lists.debian.org@tracker.debian.org>
X-Amavis-Spam-Status: No, score=-3.951 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
 RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Reply-To: Maytham Alsudany <maytham@aezign.au>, 1150929@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: package-sponsorship-requests@lists.debian.org
X-Debian-Pr-Message: followup 1150929
X-Debian-Pr-Package: sponsorship-requests
X-Debian-Pr-Keywords: moreinfo
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-iX37NMccH8vQv7s2DFox"
User-Agent: Evolution 3.62.1-3 
MIME-Version: 1.0
X-Distro-Tracker-Keyword: bts
X-Distro-Tracker-Package: sponsorship-requests
X-Debian: tracker.debian.org
X-Debian-Package: sponsorship-requests
X-Pts-Package: sponsorship-requests
X-Pts-Keyword: bts
X-Mailing-List: <debian-mentors@lists.debian.org> archive/latest/119948
List-ID: <debian-mentors.lists.debian.org>
List-URL: <https://lists.debian.org/debian-mentors/>
List-Archive: https://lists.debian.org/msgid-search/048ae40be223af24bb9e190e69a003e0b810ba6f.camel@aezign.au
Approved: robomod@news.nic.it
Lines: 81
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 23 Nov 2026 09:38:29 +0800
X-Original-Message-ID: <048ae40be223af24bb9e190e69a003e0b810ba6f.camel@aezign.au>
X-Original-References: <as_wA3x1HaKWckiD@belkar.wrar.name>  <CAH3_GWNEEfyK4N+5nmH-t1hCMR2u-PRkKWgjb0ehD46ZUHAnbg@mail.gmail.com>  <as_yIUaP3c6VwtWJ@belkar.wrar.name>  <CAH3_GWNOEvwY9kYPFLGYQjBhLCQ1dTq8-Srw5jP9V6LvW6DP+A@mail.gmail.com>  <CAH3_GWPBp9Nt=H_4q5p0EiafC46=tUjw-dR1zDwQJ9fggaUm5A@mail.gmail.com>  <a8e1fae6e4c75a37b7540bd754aebc35a6a554c3.camel@aezign.au>  <CAH3_GWNOEvwY9kYPFLGYQjBhLCQ1dTq8-Srw5jP9V6LvW6DP+A@mail.gmail.com>  <CAH3_GWO-6MRmVE9EYBzCqO8PdioD5GVqt=TekSt9yYtF6T7wvQ@mail.gmail.com> <CAH3_GWNOEvwY9kYPFLGYQjBhLCQ1dTq8-Srw5jP9V6LvW6DP+A@mail.gmail.com> <CAH3_GWO-6MRmVE9EYBzCqO8PdioD5GVqt=TekSt9yYtF6T7wvQ@mail.gmail.com>