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
Created attachment 55305 [details] yersinia-0.5.3.ebuild A very, very basic ebuild...
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.
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.
You dont need to set S=${WORKDIR}/${P} because its the default
Created attachment 55385 [details] yersinia-0.5.3.ebuild.diff minor fixes ...
*** Bug 129498 has been marked as a duplicate of this bug. ***
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.
*** Bug 130570 has been marked as a duplicate of this bug. ***
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.
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
(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
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?
Created attachment 89683 [details] yersinia-0.7.ebuild Update of last ebuild; incorporates gtk use flag.
(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
Thanks, committed Murakami's ebuild with a few changes!