mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
786b2266cc
- Pass maintainership to submitter - While here, fix build WITH_GTK and fix some identation PR: 138005 Submitted by: Ayumi M <ayu@commun.jp>
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# New ports collection makefile for: yersinia
|
|
# Date created: Sun Jul 24 10:43:13 CEST 2005
|
|
# Whom: se
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= yersinia
|
|
PORTVERSION= 0.7.1
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.yersinia.net/download/
|
|
|
|
MAINTAINER= ayu@commun.jp
|
|
COMMENT= Layer 2 vulnerability scanner (switches, spanning tree, 802.1q ...)
|
|
|
|
BUILD_DEPENDS= ${LIBNET_CONFIG}:${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
|
|
CONFIGURE_ENV= LIBNET_CONFIG="${LIBNET_CONFIG}"
|
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
|
|
|
|
#NOT_FOR_ARCHS= ia64 sparc64
|
|
MAN8= yersinia.8
|
|
PLIST_FILES= sbin/yersinia
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lnet|`${LIBNET_CONFIG} --libs`|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/yersinia ${PREFIX}/sbin/
|
|
${INSTALL_MAN} ${WRKSRC}/yersinia.8 ${MAN8PREFIX}/man/man8/
|
|
|
|
.include <bsd.port.mk>
|