freebsd-ports/security/yersinia/Makefile
Sergey Matveychuk e1c4707bab libnet update:
- move 1.0 obsoleted version to net/libnet10
  net/libnet is latest Stable Version
  net/libnet is latest Beta Version

- Fix all depended ports with a new DEPENDS scheme

- While I'm here fix security/yersinia build on 4.x
  (getopt_long and ncurses issues)

PR:		ports/85519 (based on)
Submitted by:	Stas Yakovlev <stas.yakovlev_at_gmail.com>
2005-11-14 17:07:08 +00:00

41 lines
968 B
Makefile

# New ports collection makefile for: yersinia
# Date created: Sun Jul 24 10:43:13 CEST 2005
# Whom: se
#
# $FreeBSD$
#
PORTNAME= yersinia
PORTVERSION= 0.5.4
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
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
.if ${OSVERSION} < 500000
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
NOT_FOR_ARCHS= ia64 sparc64
MAN8= yersinia.8
CFLAGS+= -DNEED_GETOPT_H
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>