1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/security/dsniff/Makefile
Rene Ladan 620968a43a cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11

Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*

Reviewed by:	doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index
2021-09-30 23:23:30 +02:00

60 lines
1.6 KiB
Makefile

# Created by: Kris Kennaway <kris@FreeBSD.org>
PORTNAME= dsniff
DISTVERSION= 2.4b1
PORTREVISION= 6
CATEGORIES= security
MASTER_SITES= http://www.monkey.org/~dugsong/${PORTNAME}/beta/ \
LOCAL/sbz
MAINTAINER= sbz@FreeBSD.org
COMMENT= Various sniffing utilities for penetration testing
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/lib/libnids.a:net/libnids
LIB_DEPENDS= libnet.so:net/libnet
USES= gettext gnome pkgconfig
USE_GNOME= glib20
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libnet=${LOCALBASE}
DESTDIRNAME= install_prefix
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/..$//}
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT= X11
OPTIONS_SUB= yes
X11_USES= xorg
X11_USE= xorg=x11,xmu
X11_CONFIGURE_WITH=x
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD || ${SSL_DEFAULT} == openssl
# Requires LibreSSL for old SSL interface
BUILD_DEPENDS+= ${NONEXISTENT}:security/libressl:stage
CPPFLAGS+= -nostdinc -I/usr/include -I${WRKDIR}/libressl/include
LDFLAGS+= -L${WRKDIR}/libressl/lib
CONFIGURE_ARGS+= --with-openssl=${WRKDIR}/libressl
# Don't use COPYTREE_SHARE here as it hard links files, and the original files
# are owned by root, which creates problems of its own.
pre-configure:
@cd `${MAKE} -V STAGEDIR -C ${PORTSDIR}/security/libressl`${PREFIX} \
&& ${FIND} . ! -name *.so\* | ${CPIO} -dump ${WRKDIR}/libressl >/dev/null 2>&1
.else
BROKEN_SSL= openssl
BROKEN_SSL_REASON_openssl= incomplete definition of type 'struct rsa_st'
.endif
post-patch:
@${REINPLACE_CMD} -e 's,csin,_csin,g' \
${WRKSRC}/webmitm.c \
${WRKSRC}/sshmitm.c
.include <bsd.port.post.mk>