aboutsummaryrefslogtreecommitdiff
path: root/security/zenmap/Makefile
blob: f88e07de6e08f351dc254d6438f00e9aa4852bde (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
# Ports collection makefile for:	zenmap
# Date created:				2008-01-13
# Whom:					Daniel Roethlisberger <daniel@roe.ch>
#
# $FreeBSD$
#

PORTNAME=	zenmap
PORTVERSION=	4.62
PORTREVISION=	1
CATEGORIES=	security ipv6
MASTER_SITES=	http://nmap.org/dist/ \
		http://www.mirrors.wiretapped.net/security/network-mapping/nmap/ \
		http://www.mirrorservice.org/sites/ftp.wiretapped.net/pub/security/network-mapping/nmap/ \
		http://mirror.sg.depaul.edu/pub/security/nmap/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	nmap-${PORTVERSION}

MAINTAINER=	daniel@roe.ch
COMMENT=	GUI frontend for the nmap scanning utility

RUN_DEPENDS=	${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap \
		${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23

USE_BZIP2=	yes
USE_PYTHON=	yes
USE_GNOME=	pygtk2
INSTALLS_EGGINFO=	yes

MAN1=		zenmap.1
MLINKS=		zenmap.1 xnmap.1

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
WITHOUT_PSYCO=	yes
.endif

.ifndef(WITHOUT_PSYCO)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
.endif

pre-everything::
.ifndef(WITHOUT_PSYCO)
	@${ECHO_MSG} '===> Define WITHOUT_PSYCO to disable devel/py-psyco optimization'
.endif

do-build:
	cd ${WRKSRC}/${PORTNAME} && \
		${PYTHON_CMD} setup.py build

do-install:
	cd ${WRKSRC}/${PORTNAME} && \
		${PYTHON_CMD} setup.py install --prefix ${PREFIX}
	@${RM} ${PREFIX}/bin/uninstall_zenmap
	${INSTALL_MAN} ${WRKSRC}/docs/zenmap.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.post.mk>