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
Created attachment 77540 [details] dsniff-2.4-r13.ebuild
Created attachment 77541 [details, diff] 00_include-sshcrypto.patch
Created attachment 77542 [details, diff] 01_include-time.patch
Created attachment 77544 [details, diff] 02_mailsnarf_corrupt.patch
Created attachment 77545 [details, diff] 03_urlsnarf_zeropad.patch
Created attachment 77546 [details, diff] 04_multiple_intf.patch
Created attachment 77547 [details, diff] 05_pcap_read_dump.patch
Created attachment 77548 [details, diff] 07_libnet_1.1.patch
Created attachment 77549 [details, diff] 08_pathnames.patch
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
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
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
Cool, I applied all your fixes with the exception that I kept the makefile patch (doesn't seem to hurt). Thanks for your work!
Out of package.mask. Marking as fixed.