Hi! Please find attached sngrep-0.2.0.ebuild. I recommend the category net-analyzer. sngrep is a terminal tool that groups SIP (Session Initiation Protocol) Messages by Call-Id, and displays them in arrow flows similar to the used in SIP RFCs. The aim of this tool is to make easier the process of learnig or debugging SIP. Features: * Capture SIP packets from devices or read from PCAP file * Supports UDP, TCP and TLS (partially) transports * Allows filtering using BPF (Berkeley Packet Filter) * Save captured packets to PCAP file You can see some screenshots at https://github.com/irontec/sngrep/wiki/Screenshots This ebuild depends on sys-libs/ncurses, net-libs/libpcap and optionally dev-libs/openssl Kaian
Created attachment 393230 [details] sngrep-0.2.0.ebuild
Comment on attachment 393230 [details] sngrep-0.2.0.ebuild >MY_V="0.2.0" You don't need $MY_V when it's the same as $PV. >MY_P="${PN}-${MY_V}" That's $P. >DESCRIPTION="SIP Messages flow viewer" >HOMEPAGE="https://github.com/irontec/sngrep" >SRC_URI="${HOMEPAGE}/archive/v${MY_V}.tar.gz" That needs a "SRC_URI arrow": SRC_URI="<someURL>/v${PV}.tar.gz - > ${P}.tar.gz" so that it's stored with a somewhat more unique name in DISTDIR. >LICENSE="GPL-3+openssl" There is no such license. With a space in between it would be two valid ones. >SLOT="0" >KEYWORDS="amd64 ~arm ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" You have tested on all those platforms? >src_install() { > emake DESTDIR="${D}" install > dodoc ChangeLog COPYING README AUTHORS You can replace emake DESTDIR="${D}" install with default And if you write DOCS=( ChangeLog COPYING README AUTHORS ) in the global scope, then you don't need to define src_install() at all.
Hi Jeroen, Thanks a lot for the support and also filling the bug fields properly. I'm kinda new writing ebuilds, so its based on an existing one. I have updated the ebuild with the changes you suggested me. This software can be compiled with SSL support using openssl 0.9.8 or 1.0.0 so I've updated the DEPENDS removing the "-1" from openssl, that I guess refers to the slot number. Is this correct? Thanks again! Kaian
Created attachment 393316 [details] sngrep-0.2.0.ebuild
Created attachment 394606 [details] sngrep-0.2.1.ebuild
Created attachment 398152 [details] sngrep-0.3.0.ebuild
A new version of sngrep has been released so I've updated the ebuild with the new use flags (unicode and pcre).
Created attachment 406728 [details] new ebuild for upcoming version. net-analyzer/sngrep/sngrep-0.4.1.ebuild ready to be added to main portage of gentoo. thanks!
Created attachment 413926 [details] sngrep-1.0.0.ebuild
Would it be possible to add an optional dependancy to libressl as a choice to replace openssl ? Thanks !
(In reply to Gled from comment #10) > Would it be possible to add an optional dependancy to libressl as a choice > to replace openssl ? > > Thanks ! Hi! If we update the ebuild to latest stable version (1.3.1) it would be possible to use openssl or libressl (--with-openssl configure flag) or even gnuTLS (--with-gnutls configure flag), but not both at the same time. I think It should't be hard to update the ebuild to change versions and dependencies. Best regards
Hi Jeroen, Thanks for including sngrep in the tree. I'm the software developer and also gentoo user, so don't hesitate to request any help or support you would need. We can review any required patches to check if we can include them in upstream if you want. Regards