blob: 55471b6f403427ed3f6af62db87c235d384b1294 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# 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>
|