On the LAN, many services can be discovered in a convenient manner via mDNS/Zeroconf/Bonjour/Avahi/Thisconceptsnameoftheweek, and despite its age,FTP is no exception. The attached ebuild provides a USE-flag for net-ftp/ftpbase to hook into avahi-daemon, broadcasting the ftpd's presence on the network in turn. A default .service-file for avahi-daemon to register the ftp server is also attached. Reproducible: Always Steps to Reproduce: not applicable Actual Results: not applicable Expected Results: not applicable An eclass handling the management of .service-files for /etc/avahi/services/ would probably make sense. Avahi rocks.
Created attachment 184491 [details] .service-file for avahi to broadcast the system's ftpd.
Created attachment 184493 [details] Suggested ebuild for net-ftp/ftpbase to add avahi support.
A diff showing the changes you did to the ebuild would be very handy :) Reassigning to maintainer-needed.
Created attachment 184500 [details] Unified diff between detailing changes made for acahi support.
Here you are... it's my first time actually submitting a modified ebuild; hopes are high you can use it. If not, please be gentle ;)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcd1a43f1d94f02a3935b8ebbd112173b4177a5a commit dcd1a43f1d94f02a3935b8ebbd112173b4177a5a Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2021-07-23 11:40:19 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2021-07-23 19:49:17 +0000 net-ftp/ftpbase: add zeroconf support Also dropped old blocker, which are ancient. Closes: https://bugs.gentoo.org/261910 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> net-ftp/ftpbase/files/ftp.service | 10 +++++++++ net-ftp/ftpbase/ftpbase-0.01-r5.ebuild | 39 ++++++++++++++++++++++++++++++++++ net-ftp/ftpbase/metadata.xml | 3 +++ 3 files changed, 52 insertions(+)