aboutsummaryrefslogtreecommitdiff
path: root/security/yersinia
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2006-06-25 10:15:37 +0000
committerStefan Eßer <se@FreeBSD.org>2006-06-25 10:15:37 +0000
commitba5e3562b424a98778faadf67a4c1a5dacb37e3a (patch)
treecb89142d19253d418e515f090bff2b43eb9e203b /security/yersinia
parent4b79f53db7214f797808ece56e081b8ca4bb7161 (diff)
downloadports-ba5e3562b424a98778faadf67a4c1a5dacb37e3a.tar.gz
ports-ba5e3562b424a98778faadf67a4c1a5dacb37e3a.zip
Notes
Diffstat (limited to 'security/yersinia')
-rw-r--r--security/yersinia/Makefile9
-rw-r--r--security/yersinia/distinfo6
-rw-r--r--security/yersinia/files/patch-Makefile_in35
-rw-r--r--security/yersinia/files/patch-add_getopt_h127
-rw-r--r--security/yersinia/files/patch-commands_c166
-rw-r--r--security/yersinia/files/patch-configure6
-rw-r--r--security/yersinia/files/patch-protocols.h10
-rw-r--r--security/yersinia/pkg-descr2
8 files changed, 19 insertions, 342 deletions
diff --git a/security/yersinia/Makefile b/security/yersinia/Makefile
index e41b627832c9..40fcb65817be 100644
--- a/security/yersinia/Makefile
+++ b/security/yersinia/Makefile
@@ -6,17 +6,13 @@
#
PORTNAME= yersinia
-PORTVERSION= 0.5.4
-PORTREVISION= 1
+PORTVERSION= 0.7
CATEGORIES= security
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITES= http://www.yersinia.net/download/
MAINTAINER= se@FreeBSD.org
COMMENT= Layer 2 vulnerability scanner (switches, spanning tree, 802.1q ...)
-USE_GETOPT_LONG= yes
-
.include <bsd.port.pre.mk>
BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
@@ -31,7 +27,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
NOT_FOR_ARCHS= ia64 sparc64
MAN8= yersinia.8
-CFLAGS+= -DNEED_GETOPT_H
PLIST_FILES= sbin/yersinia
do-install:
diff --git a/security/yersinia/distinfo b/security/yersinia/distinfo
index 3f27ea2c1cb4..e47873971c0e 100644
--- a/security/yersinia/distinfo
+++ b/security/yersinia/distinfo
@@ -1,3 +1,3 @@
-MD5 (yersinia-0.5.4.tar.gz) = 3a4c8ee7c8fbc751152de423f624d994
-SHA256 (yersinia-0.5.4.tar.gz) = 5b149fd33367fda98c96fc54eff80e9fa2d4091d9485545f18f053af05674444
-SIZE (yersinia-0.5.4.tar.gz) = 286435
+MD5 (yersinia-0.7.tar.gz) = 66ae43c5571ceb695e9307b2a4f3c5c3
+SHA256 (yersinia-0.7.tar.gz) = 0a82b904991ee1ecbbeb0a19ca3c3261f4014170a5c50a7fcd5be9af5e30a029
+SIZE (yersinia-0.7.tar.gz) = 322812
diff --git a/security/yersinia/files/patch-Makefile_in b/security/yersinia/files/patch-Makefile_in
deleted file mode 100644
index d1225e260f21..000000000000
--- a/security/yersinia/files/patch-Makefile_in
+++ /dev/null
@@ -1,35 +0,0 @@
---- src/Makefile.in~ Sun Jul 24 12:22:05 2005
-+++ src/Makefile.in Sun Jul 24 12:22:08 2005
-@@ -135,8 +135,8 @@
-
- bin_PROGRAMS = yersinia
-
--yersinia_SOURCES = xstp.c parser.c getopt.c getopt1.c dtp.c dtp.h\
--getopt.h parser.h xstp.h global.h cdp.c cdp.h dhcp.c dhcp.h\
-+yersinia_SOURCES = xstp.c parser.c dtp.c dtp.h\
-+parser.h xstp.h global.h cdp.c cdp.h dhcp.c dhcp.h\
- hsrp.h hsrp.c dot1q.h dot1q.c vtp.h vtp.c arp.h arp.c\
- thread-util.h thread-util.c admin.c admin.h terminal.c\
- terminal.h terminal-defs.h commands.c commands.h commands-struct.h\
-@@ -151,8 +151,8 @@
- bin_PROGRAMS = yersinia$(EXEEXT)
- PROGRAMS = $(bin_PROGRAMS)
-
--am__yersinia_SOURCES_DIST = xstp.c parser.c getopt.c getopt1.c dtp.c \
-- dtp.h getopt.h parser.h xstp.h global.h cdp.c cdp.h dhcp.c \
-+am__yersinia_SOURCES_DIST = xstp.c parser.c dtp.c \
-+ dtp.h parser.h xstp.h global.h cdp.c cdp.h dhcp.c \
- dhcp.h hsrp.h hsrp.c dot1q.h dot1q.c vtp.h vtp.c arp.h arp.c \
- thread-util.h thread-util.c admin.c admin.h terminal.c \
- terminal.h terminal-defs.h commands.c commands.h \
-@@ -160,8 +160,8 @@
- yersinia.h yersinia.c md5.c md5.h md5_sum.c md5_sum.h \
- protocols.h protocols.c ncurses-gui.c ncurses-gui.h
- @HAS_CURSES_TRUE@am__objects_1 = ncurses-gui.$(OBJEXT)
--am_yersinia_OBJECTS = xstp.$(OBJEXT) parser.$(OBJEXT) getopt.$(OBJEXT) \
-- getopt1.$(OBJEXT) dtp.$(OBJEXT) cdp.$(OBJEXT) dhcp.$(OBJEXT) \
-+am_yersinia_OBJECTS = xstp.$(OBJEXT) parser.$(OBJEXT) \
-+ dtp.$(OBJEXT) cdp.$(OBJEXT) dhcp.$(OBJEXT) \
- hsrp.$(OBJEXT) dot1q.$(OBJEXT) vtp.$(OBJEXT) arp.$(OBJEXT) \
- thread-util.$(OBJEXT) admin.$(OBJEXT) terminal.$(OBJEXT) \
- commands.$(OBJEXT) interfaces.$(OBJEXT) attack.$(OBJEXT) \
diff --git a/security/yersinia/files/patch-add_getopt_h b/security/yersinia/files/patch-add_getopt_h
deleted file mode 100644
index e40b90ff92d0..000000000000
--- a/security/yersinia/files/patch-add_getopt_h
+++ /dev/null
@@ -1,127 +0,0 @@
---- src/cdp.c~ Tue May 24 21:28:31 2005
-+++ src/cdp.c Sun Jul 24 11:14:34 2005
-@@ -57,6 +57,10 @@
- #include <unistd.h>
- #endif
-
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
-+#endif
-+
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
-
---- src/dhcp.c~ Tue May 24 21:28:31 2005
-+++ src/dhcp.c Sun Jul 24 11:14:55 2005
-@@ -59,6 +59,10 @@
- #include <unistd.h>
- #endif
-
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
-+#endif
-+
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
-
---- src/dot1q.c~ Tue May 24 21:28:31 2005
-+++ src/dot1q.c Sun Jul 24 11:15:02 2005
-@@ -58,6 +58,10 @@
- #include <unistd.h>
- #endif
-
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
-+#endif
-+
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
-
---- src/dtp.c~ Tue May 24 21:28:31 2005
-+++ src/dtp.c Sun Jul 24 11:15:12 2005
-@@ -57,6 +57,10 @@
- #include <unistd.h>
- #endif
-
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
-+#endif
-+
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
-
---- src/hsrp.c~ Tue May 24 21:28:31 2005
-+++ src/hsrp.c Sun Jul 24 11:15:34 2005
-@@ -59,6 +59,10 @@
- #include <unistd.h>
- #endif
-
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
-+#endif
-+
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
-
---- src/parser.c~ Mon Apr 11 23:15:24 2005
-+++ src/parser.c Sun Jul 24 11:21:11 2005
-@@ -52,6 +52,10 @@
- #include <unistd.h>
- #endif
-
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
-+#endif
-+
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
-@@ -70,12 +74,6 @@
-
- #ifdef HAVE_PTHREAD_H
- #include <pthread.h>
--#endif
--
--#ifdef HAVE_GETOPT_LONG_ONLY
--#include <getopt.h>
--#else
--#include "getopt.h"
- #endif
-
- #include <termios.h>
-
---- src/vtp.c~ Tue May 24 21:28:32 2005
-+++ src/vtp.c Sun Jul 24 11:17:02 2005
-@@ -57,6 +57,10 @@
- #include <unistd.h>
- #endif
-
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
-+#endif
-+
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
-
---- src/xstp.c~ Tue May 24 21:28:32 2005
-+++ src/xstp.c Sun Jul 24 11:21:23 2005
-@@ -53,8 +53,12 @@
- #include <sys/time.h>
- #endif
-
--#ifdef HAVE_UNISTD_H
-+#ifdef HAVE_UNISTD_H_x
- #include <unistd.h>
-+#endif
-+
-+#ifdef NEED_GETOPT_H
-+#include <getopt.h>
- #endif
-
- #ifdef HAVE_STRING_H
diff --git a/security/yersinia/files/patch-commands_c b/security/yersinia/files/patch-commands_c
deleted file mode 100644
index be64d15a0973..000000000000
--- a/security/yersinia/files/patch-commands_c
+++ /dev/null
@@ -1,166 +0,0 @@
---- src/commands.c~ Mon Apr 11 23:15:23 2005
-+++ src/commands.c Tue Jul 26 18:48:36 2005
-@@ -624,7 +624,8 @@
- u_int8_t proto)
- {
- int8_t msg[128];
-- int8_t fail, params, aux;
-+ int8_t fail, params;
-+ int aux;
- struct term_vty *vty = node->specific;
-
- if (!(warray->word[warray->indx+1]))
-@@ -1971,7 +1972,7 @@
- {
- int8_t msg[128], *args, prova;
- int8_t fail, i, params;
-- u_int8_t aux;
-+ int aux;
- char *punt;
- struct stp_data *stp_data;
- struct term_vty *vty = node->specific;
-@@ -2113,21 +2114,11 @@
- if (!strcmp("flags", comm_set_stp[x].s))
- {
- parser_str_tolower(args);
-- if ( (*args == '0') && (*(args+1) == 'x') && (strlen(args) >= 2) )
-- {
-- punt = &prova;
-- aux = strtol(args, &punt, 16);
-- if ( *punt || (aux < 0) || (aux > 255) )
-- return (command_bad_input(node,warray->indx+1));
-- stp_data->flags |= aux;
-- }
-- else
-- {
-- aux = atoi(args);
-- if ( (aux < 0) || (aux > 255) )
-- return (command_bad_input(node,warray->indx+1));
-- stp_data->flags |= aux;
-- }
-+ punt = &prova;
-+ aux = strtol(args, &punt, 0);
-+ if ( *punt || (aux < 0) || (aux > 255) )
-+ return (command_bad_input(node,warray->indx+1));
-+ stp_data->flags |= aux;
-
- return 0;
- }
-@@ -2146,21 +2137,11 @@
- if (!strcmp("cost", comm_set_stp[x].s))
- {
- parser_str_tolower(args);
-- if ( (*args == '0') && (*(args+1) == 'x') && (strlen(args) >= 2) )
-- {
-- punt = &prova;
-- aux = strtol(args, &punt, 16);
-- if ( *punt || (aux < 0) || (strlen(args) > 10) )
-- return (command_bad_input(node,warray->indx+1));
-- stp_data->root_pc = aux;
-- }
-- else
-- {
-- aux = atoi(args);
-- if ( (aux < 0) || (aux > 0xffffffff) )
-- return (command_bad_input(node,warray->indx+1));
-- stp_data->root_pc = aux;
-- }
-+ punt = &prova;
-+ aux = strtol(args, &punt, 0);
-+ if ( *punt || (aux < 0) || (strlen(args) > 10) )
-+ return (command_bad_input(node,warray->indx+1));
-+ stp_data->root_pc = aux;
-
- return 0;
- }
-@@ -2178,21 +2159,11 @@
- if (!strcmp("portid", comm_set_stp[x].s))
- {
- parser_str_tolower(args);
-- if ( (*args == '0') && (*(args+1) == 'x') && (strlen(args) >= 2) )
-- {
-- punt = &prova;
-- aux = strtol(args, &punt, 16);
-- if ( *punt || (aux < 0) || (aux > 65535) )
-- return (command_bad_input(node,warray->indx+1));
-- stp_data->port_id = aux;
-- }
-- else
-- {
-- aux = atoi(args);
-- if ( (aux < 0) || (aux > 65535) )
-- return (command_bad_input(node,warray->indx+1));
-- stp_data->port_id = aux;
-- }
-+ punt = &prova;
-+ aux = strtol(args, &punt, 0);
-+ if ( *punt || (aux < 0) || (aux > 65535) )
-+ return (command_bad_input(node,warray->indx+1));
-+ stp_data->port_id = aux;
-
- return 0;
- }
-@@ -2458,7 +2429,7 @@
- {
- int8_t msg[128], *args;
- int8_t fail, i, params;
-- u_int8_t aux;
-+ int aux;
- struct dtp_data *dtp_data;
- struct term_vty *vty = node->specific;
-
-@@ -2749,7 +2720,7 @@
- {
- int8_t msg[128], *args;
- int8_t fail, i, params;
-- u_int8_t aux;
-+ int aux;
- struct in_addr addr;
- u_int32_t aux_long;
- struct dhcp_data *dhcp_data;
-@@ -3073,7 +3044,7 @@
- {
- int8_t msg[128], *args;
- int8_t fail, i, params;
-- u_int32_t aux;
-+ int aux;
- u_int32_t aux_long;
- struct in_addr addr;
- struct vtp_data *vtp_data;
-@@ -3389,7 +3360,7 @@
- {
- int8_t msg[128], *args;
- int8_t fail, i, params;
-- u_int8_t aux;
-+ int aux;
- u_int32_t aux_long;
- struct in_addr addr;
- struct dot1q_data *dot1q_data;
-@@ -3725,7 +3696,7 @@
- {
- int8_t msg[128], *args;
- int8_t fail, i, params;
-- u_int8_t aux;
-+ int aux;
- struct in_addr addr;
- u_int32_t aux_long;
- struct hsrp_data *hsrp_data;
-@@ -4116,7 +4087,7 @@
- {
- int8_t msg[128], *args;
- int8_t fail, i, params;
-- u_int8_t aux;
-+ int aux;
- struct cdp_data *cdp_data;
- struct term_vty *vty = node->specific;
-
-@@ -4527,7 +4498,8 @@
- u_int8_t proto)
- {
- int8_t msg[128];
-- int8_t i, fail, params, aux;
-+ int8_t i, fail, params;
-+ int aux;
- struct attack *theattack = NULL;
- struct term_vty *vty = node->specific;
-
diff --git a/security/yersinia/files/patch-configure b/security/yersinia/files/patch-configure
index 54dc0bea8f0c..438d4c828d20 100644
--- a/security/yersinia/files/patch-configure
+++ b/security/yersinia/files/patch-configure
@@ -1,6 +1,6 @@
---- configure~ Tue May 24 21:38:11 2005
-+++ configure Sun Jul 24 13:04:08 2005
-@@ -2908,7 +2908,7 @@
+--- configure~ Sun Jun 18 17:24:36 2006
++++ configure Sun Jun 25 11:52:30 2006
+@@ -2971,7 +2971,7 @@
if test -n "$GCC"; then
diff --git a/security/yersinia/files/patch-protocols.h b/security/yersinia/files/patch-protocols.h
new file mode 100644
index 000000000000..302161a74ad6
--- /dev/null
+++ b/security/yersinia/files/patch-protocols.h
@@ -0,0 +1,10 @@
+--- src/protocols.h~ Sun Jun 18 17:23:33 2006
++++ src/protocols.h Sun Jun 25 11:46:35 2006
+@@ -26,6 +26,7 @@
+ #define __PROTOCOLS_H__
+
+ #include <pcap.h>
++#include <sys/socket.h>
+ #include <net/if.h>
+
+ #ifdef SOLARIS
diff --git a/security/yersinia/pkg-descr b/security/yersinia/pkg-descr
index b2711dadcd1b..3e2a5cc52876 100644
--- a/security/yersinia/pkg-descr
+++ b/security/yersinia/pkg-descr
@@ -9,4 +9,4 @@ IEEE 802.1q
Spanning Tree Protocol (STP, RSTP)
Virtual Trunking Protocol (VTP)
-WWW: http://yersinia.sourceforge.net/
+WWW: http://www.yersinia.net/