Bug 117528 - net-proxy/pingtunnel minor ebuild fix
Bug#: 117528 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: net-proxy@gentoo.org Reported By: covracer@gmail.com
Component: Ebuilds
URL: 
Summary: net-proxy/pingtunnel minor ebuild fix
Keywords:  
Status Whiteboard: 
Opened: 2006-01-02 19:23 0000
Description:   Opened: 2006-01-02 19:23 0000
I just spent my evening writing an ebuild for this app before realizing it was
in portage. The ebuild might be able to be improved.

1. There is a libpcap virtual which could be used. I can't test it though, I
found--can't create _any_ sockets on my web server :(.

2. The package is called pingtunnel but the binary and man page are called
ptunnel. There are some other apps out there (but I don't think in portage)
that go by the name of ptunnel so probably pingtunnel is better.

3. There is some html documentation that isn't installed.

4. Lastly, I don't know if this is really an important style thing or not, but
in the patch I used the $MY_P and $MY_PN instead of static strings.

------- Comment #1 From Christopher Covington 2006-01-02 19:26:26 0000 -------
Created an attachment (id=76035) [details]
proposed patch

------- Comment #2 From Alin Năstac 2006-01-06 03:40:12 0000 -------
(In reply to comment #0)
> 1. There is a libpcap virtual which could be used. I can't test it though, I
> found--can't create _any_ sockets on my web server :(.

the net-libs/libpcap-ringbuffer package is broken and it shouldn't provide
virtual/libpcap (see bug #117898)

> 2. The package is called pingtunnel but the binary and man page are called
> ptunnel. There are some other apps out there (but I don't think in portage)
> that go by the name of ptunnel so probably pingtunnel is better.

unless there is a conflict, I prefer to stick with whatever names were chosed
by upstream. It would mean more than a simple file rename.

> 3. There is some html documentation that isn't installed.

added depending on "doc" useflag.

> 4. Lastly, I don't know if this is really an important style thing or not, but
> in the patch I used the $MY_P and $MY_PN instead of static strings.

I prefer the other way. It is more readable and I doubt "PingTunnel" will be
ever changed by upstream.

I've commited 3) along with a minor modification in Makefile sed, but I didn't
bump the revision. The doc useflag is the only change worth reemerging for and
"emerge -uDN world" will do that anyway.