[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-pkg
Subject:    Portable way for testing listening sockets
From:       Jean-Yves Migeon <jym () helkyn ! org>
Date:       2020-04-26 18:39:49
Message-ID: c2971b96-da70-3ccd-29ef-26c4fb49d1e4 () helkyn ! org
[Download RAW message or body]

Hi everyone,

I got a package (apache-solr) for which I need a portable, sh-posixish
way of testing for the presence of a listening socket. FreeBSD "fixed"
it by patching over lsof and use their sockstat(1) instead:

https://svnweb.freebsd.org/ports/head/textproc/apache-solr/files/patch-bin_solr?view=markup&pathrev=438757


I'd like to avoid this in the pkg. What would be the acceptable form for
this, considering that even sockstat(1) syntax can differ from one OS to
another?

Having lsof in DEPENDS just for this seems kind of overkill.

Thanks,

-- 
Jean-Yves Migeon


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic