Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119557 - dsniff-2.4b1.ebuild (Update)
Summary: dsniff-2.4b1.ebuild (Update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-19 08:26 UTC by a1200ux
Modified: 2006-01-22 11:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dsniff-2.4-r13.ebuild (dsniff-2.4-r13.ebuild,1.28 KB, text/plain)
2006-01-19 08:27 UTC, a1200ux
Details
00_include-sshcrypto.patch (00_include-sshcrypto.patch,375 bytes, patch)
2006-01-19 08:29 UTC, a1200ux
Details | Diff
01_include-time.patch (01_include-time.patch,662 bytes, patch)
2006-01-19 08:31 UTC, a1200ux
Details | Diff
02_mailsnarf_corrupt.patch (02_mailsnarf_corrupt.patch,483 bytes, patch)
2006-01-19 08:31 UTC, a1200ux
Details | Diff
03_urlsnarf_zeropad.patch (03_urlsnarf_zeropad.patch,465 bytes, patch)
2006-01-19 08:32 UTC, a1200ux
Details | Diff
04_multiple_intf.patch (04_multiple_intf.patch,1.61 KB, patch)
2006-01-19 08:32 UTC, a1200ux
Details | Diff
05_pcap_read_dump.patch (05_pcap_read_dump.patch,16.30 KB, patch)
2006-01-19 08:33 UTC, a1200ux
Details | Diff
07_libnet_1.1.patch (07_libnet_1.1.patch,27.06 KB, patch)
2006-01-19 08:33 UTC, a1200ux
Details | Diff
08_pathnames.patch (08_pathnames.patch,2.09 KB, patch)
2006-01-19 08:34 UTC, a1200ux
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description a1200ux 2006-01-19 08:26:12 UTC
Bump from net-analyzer/dsniff-2.3-r7 to dsniff-2.4-r13

Based on dsniff-2.4b1.tar.gz with enhancements from Debian.
See: http://packages.debian.org/unstable/net/dsniff.html

ebuild need some work but compiles fine (and works)
Tested on ~x86
Comment 1 a1200ux 2006-01-19 08:27:47 UTC
Created attachment 77540 [details]
dsniff-2.4-r13.ebuild
Comment 2 a1200ux 2006-01-19 08:29:41 UTC
Created attachment 77541 [details, diff]
00_include-sshcrypto.patch
Comment 3 a1200ux 2006-01-19 08:31:16 UTC
Created attachment 77542 [details, diff]
01_include-time.patch
Comment 4 a1200ux 2006-01-19 08:31:52 UTC
Created attachment 77544 [details, diff]
02_mailsnarf_corrupt.patch
Comment 5 a1200ux 2006-01-19 08:32:16 UTC
Created attachment 77545 [details, diff]
03_urlsnarf_zeropad.patch
Comment 6 a1200ux 2006-01-19 08:32:38 UTC
Created attachment 77546 [details, diff]
04_multiple_intf.patch
Comment 7 a1200ux 2006-01-19 08:33:01 UTC
Created attachment 77547 [details, diff]
05_pcap_read_dump.patch
Comment 8 a1200ux 2006-01-19 08:33:28 UTC
Created attachment 77548 [details, diff]
07_libnet_1.1.patch
Comment 9 a1200ux 2006-01-19 08:34:00 UTC
Created attachment 77549 [details, diff]
08_pathnames.patch
Comment 10 Marcelo Goes (RETIRED) gentoo-dev 2006-01-19 09:48:45 UTC
Hello,

Thanks for reporting.

Some problems with your ebuild:

It's not because it's Debian's -r13 that it is our -r13.
Do not install licenses/installation docs:
http://dev.gentoo.org/~ciaranm/docs/mw-faq/docfiles.txt

Also, where do your patches come from?
I checked out Debian's patchset, and here is what they have:

01_time.h.dpatch
02_mailsnarf_corrupt.dpatch
03_pcap_read_dump.dpatch
04_multiple_intf.dpatch
05_amd64_fix.dpatch
06_urlsnarf_zeropad.dpatch
07_libnet_1.1.dpatch
20_debian_dirs.dpatch
Comment 11 Marcelo Goes (RETIRED) gentoo-dev 2006-01-19 10:05:43 UTC
I made a 2.4_beta1 ebuild available with the patchset from Debian. It's currently in package.mask.
Please test and tell me if there are any modifications/patches that it could benefit from.

Cheers
Comment 12 a1200ux 2006-01-20 02:51:11 UTC
Hello Marcelo,

Sorry about naming the ebuild -r13 and installing the license, I assumed that because other/some non-GPL programms do the same (find /usr/share | grep -i LICENSE)
About the patches and where they come from:

dsniff-2.4b1-13-debian.diff includes:

[ 1 ] patching file sshcrypto.c
[ 2 ] patching file debian/patches/03_pcap_read_dump.dpatch
[ 3 ] patching file debian/patches/01_time.h.dpatch
[D  ] patching file debian/patches/00list
[ 4 ] patching file debian/patches/04_multiple_intf.dpatch
[ 5 ] patching file debian/patches/05_amd64_fix.dpatch
[ 6 ] patching file debian/patches/07_libnet_1.1.dpatch
[ 7 ] patching file debian/patches/20_debian_dirs.dpatch
[ 8 ] patching file debian/patches/02_mailsnarf_corrupt.dpatch
[ 9 ] patching file debian/patches/06_urlsnarf_zeropad.dpatch
[D  ] patching file debian/changelog
[D  ] patching file debian/compat
[D  ] patching file debian/control
[D  ] patching file debian/dirs
[D  ] patching file debian/docs
[D  ] patching file debian/rules
[D  ] patching file debian/copyright
[D  ] patching file config.sub
[D  ] patching file config.guess


Explanations:
First, all .dpatch were converted to .patch
Re-ordered and re-named some patches. Sorry.

 D => We dont't need that! :)

 1 => 00_include-sshcrypto.patch
 2 => 05_pcap_read_dump.patch
 3 => 01_include-time.patch
 4 => 04_multiple_intf.patch
 5 => Debian says: amd64_fix
        Looking in "debian/patches/05_amd64_fix.dpatch" and you will see that they only check for "__dn_expand in -lresolv" but we include this already in the ebuild (append-ldflags -lresolv)
        Conclusion: We don't need this patch(!?)
 6 => 07_libnet_1.1.patch
        RDEPEND=">=net-libs/libnet-1.1.2.1-r1" right :)
 7 => 08_pathnames.patch
        man-pages (dnsspoof.8 and dsniff.8) update to point to /etc/dsniff/
        Makefile.in change "@libdir@" to "$(prefix)/share/dsniff", configs don't land in /usr/ after install (ugly!)
        define DSNIFF_LIBDIR as "/etc/dsniff/"
 8 => 02_mailsnarf_corrupt.patch
 9 => 03_urlsnarf_zeropad.patch

In dsniff-2.4_beta1.ebuild:

1)      sed -i -e 's:-ldb:-ldb -lpthread:' configure
        Little error, replaces "-ldb2" with "-ldb -lpthread2"
        Should be: ""-ldb2 -lpthread"
        But I think it isn't bad since we don't use it(!?)

2)      sed -i 's:-DDSNIFF_LIBDIR=\\\"$(libdir)/\\\"::' Makefile.in
        Yes! We definitely want that! (Or we should define libdir during the make-process)

3)      sed -i 's:/usr/local/lib:/etc/dsniff:' pathnames.h
        Not necessary. In 08_pathnames.patch

4)      epatch "${FILESDIR}"/2.3-makefile.patch
        Do we need this? I'm not sure.

5)      sed -i "s/de->ip = htonl(lnet_ip);/de->ip = lnet_ip;/" dnsspoof.c
        We don't need this. Patch already in dsniff-2.4b1.tar.gz

6)      mv "${D}"/usr/{dnsspoof.hosts,dsniff.{magic,services}} "${D}"/etc/dsniff/
        =>
        cp "${D}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} "${D}"/etc/dsniff/

---

Your ebuild:
First, do we really need so old versions of sys-libs/db?
I have built it against sys-libs/db-4.2.52_p4 and it works fine :)

A little mistake:
Debian patches dsniff to use /usr/share/dsniff, the ebuild fails to copy the files "dsniff.magic, dsniff.services and dnsspoof.hosts" to /etc/dsniff (so it's empty per default) but dsniff works fine reading the configs from /usr/share/dsniff
It's a little tricky! ;)

... thanks for your patience.

Cheers
Comment 13 Marcelo Goes (RETIRED) gentoo-dev 2006-01-21 13:12:04 UTC
Cool, I applied all your fixes with the exception that I kept the makefile patch (doesn't seem to hurt).

Thanks for your work!
Comment 14 Marcelo Goes (RETIRED) gentoo-dev 2006-01-22 11:25:45 UTC
Out of package.mask. Marking as fixed.