1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/net-mgmt/ettercap/Makefile
Alexander Leidinger 7b0e707504 - Obey PTHREAD_LIBS also when libpthread exists.
- Use/respect DATADIR and DOCSDIR.

Submitted by:	Marius Strobl <marius@alchemy.franken.de>
2004-02-27 11:30:18 +00:00

75 lines
1.8 KiB
Makefile

# New ports collection makefile for: ettercap
# Date created: 19 February 2001
# Whom: George Reid <greid@ukug.uk.freebsd.org>
#
# $FreeBSD$
#
PORTNAME= ettercap
PORTVERSION= 0.6.b
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net-mgmt security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
${MASTER_SITE_PACKETSTORM:S:%SUBDIR%:sniffers/ettercap:}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A network sniffer/interceptor/injector/logger for switched LANs
USE_REINPLACE= yes
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
.endif
GNU_CONFIGURE= yes
WANT_GNOME= yes
MAN8= ettercap.8
.include <bsd.port.pre.mk>
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_TARGET= -build=${ARCH}-portbld-freebsd${OSREL}
.if defined(WITHOUT_SSL)
CONFIGURE_ARGS= --without-openssl
PLIST_SUB+= SSL="@comment "
.else
CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE}
PLIST_SUB+= SSL=""
.endif
.if ${HAVE_GNOME:Mgtk20}!=""
USE_GNOME+= gtk20
PKGNAMESUFFIX= -gnome
.else
CONFIGURE_ARGS+= --disable-gtk
.endif
CONFIGURE_ENV= WGET_PATH=""
ALL_TARGET= all plug-ins
INSTALL_TARGET= install plug-ins_install
.if !defined(NOPORTDOCS)
INSTALL_TARGET+= install-doc
.endif
post-extract:
@${MV} -f ${WRKSRC}/share/lc-converter.c ${WRKSRC}
post-patch:
@${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -E -e 's|(^DATADIR.+=).+|\1 ${DATADIR}|; \
s|(^DOCDIR.+=).+|\1 ${DOCSDIR}|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|@prefix@\/share\/@PROG@|${DATADIR}|; \
s|@prefix@\/doc\/@PROG@-@VERSION@|${DOCSDIR}|' \
${WRKSRC}/ettercap.8.in
post-build:
${CC} ${CFLAGS} -o ${WRKSRC}/lc-converter ${WRKSRC}/lc-converter.c
post-install::
${INSTALL_PROGRAM} ${WRKSRC}/lc-converter ${PREFIX}/bin
.include <bsd.port.post.mk>