View | Details | Raw Unified | Return to bug 187973
Collapse All | Expand All

(-)net/py-impacket/Makefile (-13 / +24 lines)
Lines 2-38 Link Here
2
# $FreeBSD: head/net/py-impacket/Makefile 340722 2014-01-22 17:00:46Z mat $
2
# $FreeBSD: head/net/py-impacket/Makefile 340722 2014-01-22 17:00:46Z mat $
3
3
4
PORTNAME=	impacket
4
PORTNAME=	impacket
5
PORTVERSION=	0.9.10
5
PORTVERSION=	0.9.11
6
CATEGORIES=	net python
6
CATEGORIES=	net python
7
MASTER_SITES=	GOOGLE_CODE
7
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Collection of Python classes providing access to network packets
11
COMMENT=	Collection of Python classes providing access to network packets
12
12
13
LICENSE=	AL11
13
LICENSE=	APACHE11
14
LICENSE_NAME=	Apache License version 1.1
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
17
14
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pcapy>=0:${PORTSDIR}/net/py-pcapy \
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pcapy>=0:${PORTSDIR}/net/py-pcapy \
19
		${PYTHON_PKGNAMEPREFIX}pycrypto>=0:${PORTSDIR}/security/py-pycrypto
16
		${PYTHON_PKGNAMEPREFIX}pycrypto>=0:${PORTSDIR}/security/py-pycrypto
20
17
21
USES=		dos2unix
18
NO_ARCH=	yes
19
22
USE_PYTHON=	yes
20
USE_PYTHON=	yes
23
USE_PYDISTUTILS=yes
21
USE_PYDISTUTILS=yes
24
PYDISTUTILS_AUTOPLIST=yes
22
PYDISTUTILS_AUTOPLIST=yes
25
23
26
PORTDOCS=	README
24
DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
25
EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
27
26
28
OPTIONS_DEFINE=	DOCS
27
PORTDOCS=	*
28
PORTEXAMPLES=	*
29
29
30
.include <bsd.port.options.mk>
30
OPTIONS_DEFINE=	DOCS EXAMPLES
31
31
32
post-install:
32
post-install:
33
.if ${PORT_OPTIONS:MDOCS}
34
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
33
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
35
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
34
	(cd ${WRKSRC} && ${INSTALL_DATA} README \
36
.endif
35
		${STAGEDIR}${DOCSDIR})
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/testcases/ImpactPacket
37
	(cd ${WRKSRC}/impacket/testcases/ImpactPacket && ${INSTALL_DATA} * \
38
		${STAGEDIR}${DOCSDIR}/testcases/ImpactPacket)
39
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/testcases/SMB-RPC
40
	(cd ${WRKSRC}/impacket/testcases/SMB-RPC && ${INSTALL_DATA} * \
41
		${STAGEDIR}${DOCSDIR}/testcases/SMB-RPC)
42
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/testcases/dot11
43
	(cd ${WRKSRC}/impacket/testcases/dot11 && ${INSTALL_DATA} * \
44
		${STAGEDIR}${DOCSDIR}/testcases/dot11)
45
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
46
	(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.py \
47
		${STAGEDIR}${EXAMPLESDIR})
37
48
38
.include <bsd.port.mk>
49
.include <bsd.port.mk>
(-)net/py-impacket/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (impacket-0.9.10.tar.gz) = 6d9e2b91f825c3bdfb9b5f42419900fcc7739257cbb5eac48ee8d8f68166092b
1
SHA256 (impacket-0.9.11.tar.gz) = e0b4e5174b869efa35c3068ee55ac3c2364706b59ffc43cd9e3c2f75f5accf2d
2
SIZE (impacket-0.9.10.tar.gz) = 435448
2
SIZE (impacket-0.9.11.tar.gz) = 779016
(-)net/py-impacket/files/patch-setup.py (-6 / +8 lines)
Lines 1-10 Link Here
1
--- ./setup.py.orig	2013-05-08 13:57:03.000000000 +0000
1
--- ./setup.py.orig	2013-05-08 13:57:03.000000000 +0000
2
+++ ./setup.py	2013-05-08 13:57:03.000000000 +0000
2
+++ ./setup.py	2013-05-08 13:57:03.000000000 +0000
3
@@ -21,7 +21,5 @@
3
@@ -20,9 +20,4 @@
4
       long_description = 'Impacket is a collection of Python classes focused on providing access to network packets. Impacket allows Python developers to craft and decode network packets in simple and consistent manner.',
4
       platforms = ["Unix","Windows"],
5
       platforms = ["Unix","Windows"],
5
       packages = ['impacket', 'impacket.dcerpc', 'impacket.examples'],
6
       packages = ['impacket', 'impacket.dcerpc', 'impacket.examples', 'impacket.dcerpc.v5'],
6
       scripts = glob.glob(os.path.join('examples', '*.py')),
7
-      scripts = glob.glob(os.path.join('examples', '*.py')),
7
-      data_files = [(os.path.join('share', 'doc', PACKAGE_NAME),
8
-      data_files = [(os.path.join('share', 'doc', PACKAGE_NAME), ['README', 'LICENSE']+glob.glob('doc/*')),
8
-                     ['README', 'LICENSE']+glob.glob('doc/*'))],
9
-                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'dot11'),glob.glob('impacket/testcases/dot11/*')),
9
 
10
-                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'ImpactPacket'),glob.glob('impacket/testcases/ImpactPacket/*')),
11
-                    (os.path.join('share', 'doc', PACKAGE_NAME, 'testcases', 'SMB-RPC'),glob.glob('impacket/testcases/SMB-RPC/*'))],
10
       )
12
       )
(-)net/py-impacket/pkg-descr (-12 / +9 lines)
Lines 1-14 Link Here
1
Impacket is a collection of Python classes focused
1
Impacket is a collection of Python classes focused on providing access
2
on providing access to network packets.
2
to network packets. Impacket allows Python developers to craft and
3
Impacket allows Python developers to craft and decode
3
decode network packets in simple and consistent manner. It includes
4
network packets in simple and consistent manner.
4
support for low-level protocols such as IP, UDP and TCP, as well as
5
It includes support for low-level protocols such as
5
higher-level protocols such as NMB and SMB. Impacket is highly effective
6
IP, UDP and TCP, as well as higher-level protocols
6
when used in conjunction with a packet capture utility or package such
7
such as NMB and SMB. Impacket is highly effective
7
as Pcapy. Packets can be constructed from scratch, as well as parsed
8
when used in conjunction with a packet capture utility
8
from raw data. Furthermore, the object oriented API makes it simple to
9
or package such as Pcapy. Packets can be constructed
9
work with deep protocol hierarchies.
10
from scratch, as well as parsed from raw data. Furthermore,
11
the object oriented API makes it simple to work with deep
12
protocol hierarchies.
13
10
14
WWW: http://oss.coresecurity.com/projects/impacket.html
11
WWW: http://oss.coresecurity.com/projects/impacket.html

Return to bug 187973