blob: bd67890d284cbb0d4437352fd5b1170a6c771d71 (
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
|
# Created by: Daniel Roethlisberger <daniel@roe.ch>
# $FreeBSD$
PORTNAME= zenmap
PORTVERSION= 6.01
PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= http://nmap.org/dist/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= nmap-${PORTVERSION}
MAINTAINER= nemysis@gmx.ch
COMMENT= GUI frontend for the Nmap scanning utility
LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap \
${PYTHON_PACKAGENAMEPREFIX}sqlite3>:${PORTSDIR}/databases/py-sqlite3
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
USE_BZIP2= yes
USE_GNOME= pygtk2
USE_PYTHON= 2.5+
USE_PYDISTUTILS=yes
MLINKS= zenmap.1 xnmap.1
MAN1= zenmap.1 ndiff.1
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} \
-e '/self.create_uninstaller/s|^|#|' ${WRKSRC}/setup.py
@${REINPLACE_CMD} \
-e 's|share/man/man1|man/man1|' ${WRKSRC}/../ndiff/setup.py
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -i '' '/locale_dir, mo_find, /d' ${WRKSRC}/setup.py
.endif
post-build:
@(cd ${WRKSRC}/../ndiff \
&& ${PYTHON_CMD} setup.py build)
post-install:
${INSTALL_MAN} ${WRKSRC}/../docs/zenmap.1 ${MAN1PREFIX}/man/man1
@(cd ${WRKSRC}/../ndiff \
&& ${PYTHON_CMD} setup.py install --prefix ${PREFIX})
.include <bsd.port.mk>
|