Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87965 - new application net-analyser/yersinia-0.5.3
Summary: new application net-analyser/yersinia-0.5.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://yersinia.sourceforge.net/
Whiteboard:
Keywords: EBUILD
: 129498 130570 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-04 14:04 UTC by Michael Zanetta
Modified: 2006-07-23 13:50 UTC (History)
5 users (show)

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


Attachments
yersinia-0.5.3.ebuild (yersinia-0.5.3.ebuild,561 bytes, text/plain)
2005-04-04 14:05 UTC, Michael Zanetta
Details
yersinia-0.5.3.ebuild (yersinia-0.5.3.ebuild,521 bytes, text/plain)
2005-04-04 15:27 UTC, Michael Zanetta
Details
yersinia-0.5.3.ebuild.diff (yersinia-0.5.3.ebuild.diff,497 bytes, text/plain)
2005-04-05 11:22 UTC, Marco Morales
Details
yersinia-0.5.6.ebuild (new package, again ;-) (yersinia-0.5.6.ebuild,886 bytes, text/plain)
2006-04-11 07:30 UTC, Thorsten Fischer
Details
yersinia-0.5.6.ebuild (yersinia-0.5.6.ebuild,685 bytes, text/plain)
2006-05-10 11:19 UTC, Thorsten Fischer
Details
yersinia-0.7.ebuild (yersinia-0.7.ebuild,749 bytes, text/plain)
2006-06-20 22:43 UTC, Stefan Schlott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zanetta 2005-04-04 14:04:08 UTC
Hi,
please find attached an ebuild for yersinia, an attack framework aimed at layer2.

snip from the man page :
yersinia is a framework for performing layer 2 attacks.  The  following
       protocols  have  been implemented in Yersinia current version: Spanning
       Tree Protocol(STP), Virtual Trunking Protocol (VTP), Hot Standby Router
       Protocol  (HSRP),  Dynamic  Trunking Protocol (DTP), IEEE 802.1Q, Cisco
       Discovery Protocol (CDP) and finally, the  Dynamic  Host  Configuration
       Protocol (DHCP).
/snip

Enjoy!

Michael
Comment 1 Michael Zanetta 2005-04-04 14:05:50 UTC
Created attachment 55305 [details]
yersinia-0.5.3.ebuild

A very, very basic ebuild...
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-04 14:49:27 UTC
GPL is not a valid value for $LICENSE. It should be either GPL-1 or GPL-2.
You also doesn't need to install COPYING file.

You don't need to specify src_compile in this case, and you don't need to inherit eutils.

Please be sure to have specified all the dependencies (look at configure.(in|ac)), and pass the right options to econf.
Maybe you can take a look if you need nls useflag (use_enable nls), or if you can pass --disable-dependency-tracking to econf to speed up the one-time builds.
Comment 3 Michael Zanetta 2005-04-04 15:27:50 UTC
Created attachment 55309 [details]
yersinia-0.5.3.ebuild

Thanks for the infos, didn't knew all the stuff in configure.in

Added the check for virtual/libpcap and net-libs/libnet.
Removed the src_compile as passing the --diable-dependency-checking seems to
have no effect.

Removed inerit eutils.
Comment 4 Marco Morales 2005-04-05 10:20:20 UTC
You dont need to set S=${WORKDIR}/${P} because its the default
Comment 5 Marco Morales 2005-04-05 11:22:30 UTC
Created attachment 55385 [details]
yersinia-0.5.3.ebuild.diff

minor fixes ...
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-04-10 10:24:20 UTC
*** Bug 129498 has been marked as a duplicate of this bug. ***
Comment 7 Thorsten Fischer 2006-04-11 07:30:10 UTC
Created attachment 84447 [details]
yersinia-0.5.6.ebuild (new package, again ;-)

I submitted this as a 'new' ebuild (bug 129498) and it got redirected here. I re-attach my ebuild (with some slit changes to src_install and IUSE). Again, net-analyzer/yersinia is recommended. If a mantainer for the ebuild is required, I am happy to maintain it.
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-20 03:54:08 UTC
*** Bug 130570 has been marked as a duplicate of this bug. ***
Comment 9 Jacob Lindberg 2006-04-21 01:32:16 UTC
Hi

I have just talked to Alfredo (one of the authors), and within a few weeks, there will be a new release with a gtk2 frontend.

I accidently created a duplicate of this bug (#130570). It containts more features than Michaels original ebuild, but does not contain USE flags.

Michael, lets talk and make a prober ebuild for this release and the future ones and see if we can actually hit the tree with them :-) 

As I mentioned in my bugs there is a small issue with handling of pidfile for the daemon part, but Alfredo told me that this will be fixed in the next release.
Comment 10 Michael Zanetta 2006-04-24 05:28:47 UTC
mmm, a Gtk2 frontend, sounds cool. There should probably be a way to activate/deactivate it so it can be integrated in your ebuild the same way as Thorsten did it in his ebuilds.

Just post some here when the new release is available.

Cheers
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-24 09:36:21 UTC
(In reply to comment #7)
> Created an attachment (id=84447) [edit]
> yersinia-0.5.6.ebuild (new package, again ;-)

- inherit eutils.eclass and use myconf="$(use_with ncurses)" instead if then else
- no* use flags are bad. If it's not really necessary to provide the option, it'd be better to drop the flag.
- either make install (preferable) or einstall, both doesn't make sense


> If a mantainer for the ebuild is required, I am happy to maintain it.

Gentoo is understaffed, so yes, we always need new developers (granted you find someone mentoring you, pass the quiz and are not one of those guys who want to get their package of choice in the tree and hide after a few months, leaving the maintenance to others.) See also

http://www.gentoo.org/proj/en/devrel/staffing-needs/index.xml
Comment 12 Thorsten Fischer 2006-05-10 11:19:28 UTC
Created attachment 86559 [details]
yersinia-0.5.6.ebuild

Here is a new version of the ebuild, which incorporates Carsten's suggestions (comment #11). It inherits eutils, uses 'use_with ncurses', uses only 'make install' and drops the 'noadmin' flag. I considered using a 'admin' flag and then a line like 'if [ ! use admin ]'; would that be at all possible - leave alone desirable - in an ebuild?
Comment 13 Stefan Schlott 2006-06-20 22:43:36 UTC
Created attachment 89683 [details]
yersinia-0.7.ebuild

Update of last ebuild; incorporates gtk use flag.
Comment 14 Taku Murakami 2006-07-23 05:34:38 UTC
(In reply to comment #13)
> Created an attachment (id=89683) [edit]
> ebuild for ver. 0.7

Using this ebuild, I've done quick test and verified yersinia works quite well.

>>To ebuild maintainers
According to INSECURE.ORG survey, yersinia is chosen as one of the favorite
tools among the nmap-hackers mailing list. So, getting the ebuild into the
portage tree would call the attention of security geeks. :P 

http://sectools.org/tools3.html

$ emerge --info
Portage 2.1-r1 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r12 i686)
=================================================================
System uname: 2.6.16-gentoo-r12 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp"
LANG="ja_JP.UTF-8"
LC_ALL="ja_JP.UTF-8"
LINGUAS="ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr cli crypt cups dlloader dri dvd eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml2 xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_ja userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 15 Marcelo Goes (RETIRED) gentoo-dev 2006-07-23 13:50:53 UTC
Thanks, committed Murakami's ebuild with a few changes!