summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 13:02:18 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 13:02:18 +0800
commitf6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610 (patch)
treefa4d20a03f81d387b8a4efde2641d81b8ac40ca6
parent4ee52012f45705994437a50215ce7a1b89a96990 (diff)
downloadmarcuscom-ports-f6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610.tar
marcuscom-ports-f6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610.tar.gz
marcuscom-ports-f6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610.tar.bz2
marcuscom-ports-f6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610.tar.lz
marcuscom-ports-f6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610.tar.xz
marcuscom-ports-f6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610.tar.zst
marcuscom-ports-f6f6037fcb4e43fdc29e6e5fe1b6c80b1b957610.zip
X11BASE -> LOCALBASE, gtk lives in LOCALBASE. Bump the PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6918 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--security/yersinia/Makefile48
-rw-r--r--security/yersinia/distinfo3
-rw-r--r--security/yersinia/files/patch-configure21
-rw-r--r--security/yersinia/pkg-descr12
4 files changed, 84 insertions, 0 deletions
diff --git a/security/yersinia/Makefile b/security/yersinia/Makefile
new file mode 100644
index 000000000..70db8301f
--- /dev/null
+++ b/security/yersinia/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: yersinia
+# Date created: Sun Jul 24 10:43:13 CEST 2005
+# Whom: se
+#
+# $FreeBSD$
+#
+
+PORTNAME= yersinia
+PORTVERSION= 0.7
+PORTREVISION= 1
+CATEGORIES= security
+MASTER_SITES= http://www.yersinia.net/download/
+
+MAINTAINER= se@FreeBSD.org
+COMMENT= Layer 2 vulnerability scanner (switches, spanning tree, 802.1q ...)
+
+BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
+
+.if !defined(WITHOUT_GTK)
+.if exists(${LOCALBASE}/include/gtk-2.0/gtk/gtk.h)
+WITH_GTK= true
+.endif
+.endif
+.if defined(WITH_GTK)
+USE_GNOME+= pkgconfig gtk20
+PKGNAMESUFFIX= -gtk
+CONFLICTS= yersinia-[0-9]*
+.else
+CONFIGURE_ARGS+= --disable-gtk
+CONFLICTS= yersinia-gtk-[0-9]*
+.endif
+GNU_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
+.endif
+
+#NOT_FOR_ARCHS= ia64 sparc64
+MAN8= yersinia.8
+PLIST_FILES= sbin/yersinia
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/yersinia ${PREFIX}/sbin/
+ ${INSTALL_MAN} ${WRKSRC}/yersinia.8 ${PREFIX}/man/man8/
+
+.include <bsd.port.post.mk>
diff --git a/security/yersinia/distinfo b/security/yersinia/distinfo
new file mode 100644
index 000000000..e47873971
--- /dev/null
+++ b/security/yersinia/distinfo
@@ -0,0 +1,3 @@
+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-configure b/security/yersinia/files/patch-configure
new file mode 100644
index 000000000..4ac604b2c
--- /dev/null
+++ b/security/yersinia/files/patch-configure
@@ -0,0 +1,21 @@
+--- configure~ Sun Jun 18 17:24:36 2006
++++ configure Mon Jul 10 17:43:09 2006
+@@ -2971,7 +2971,8 @@
+
+
+ if test -n "$GCC"; then
+- CFLAGS="-O3 -Wall -g"
++# CFLAGS="-O3 -Wall -g"
++:
+ else
+ { echo "$as_me:$LINENO: WARNING: Ouch!! Only gcc is supported..." >&5
+ echo "$as_me: WARNING: Ouch!! Only gcc is supported..." >&2;}
+@@ -3817,7 +3818,7 @@
+ echo $pcap_dir
+ echo $dir
+ echo; echo please wipe out all unused pcap installations
+- exit
++# exit
+ else
+ pcap_dir="$dir"
+ fi
diff --git a/security/yersinia/pkg-descr b/security/yersinia/pkg-descr
new file mode 100644
index 000000000..3e2a5cc52
--- /dev/null
+++ b/security/yersinia/pkg-descr
@@ -0,0 +1,12 @@
+Yersinia is a layer 2 vulnerability scanner with support for the
+following protocols:
+
+Cisco Discovery Protocol (CDP)
+Dynamic Host Configuration Protocol (DHCP)
+Dynamic Trunking Protocol (DTP)
+Hot Standby Router Protocol (HSRP)
+IEEE 802.1q
+Spanning Tree Protocol (STP, RSTP)
+Virtual Trunking Protocol (VTP)
+
+WWW: http://www.yersinia.net/