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

(-)Makefile (-15 / +17 lines)
Lines 7-14 Link Here
7
# TODO: - configurable --enable-xxx for various additional dependancies
7
# TODO: - configurable --enable-xxx for various additional dependancies
8
8
9
PORTNAME=	scapy
9
PORTNAME=	scapy
10
PORTVERSION=	1.1.1
10
PORTVERSION=	2.0.0.10
11
PORTREVISION=	1
12
CATEGORIES=	net
11
CATEGORIES=	net
13
MASTER_SITES=	http://secdev.org/projects/scapy/files/
12
MASTER_SITES=	http://secdev.org/projects/scapy/files/
14
13
Lines 19-30 Link Here
19
		${PYTHON_SITELIBDIR}/pcap.py:${PORTSDIR}/net/py-pcap
18
		${PYTHON_SITELIBDIR}/pcap.py:${PORTSDIR}/net/py-pcap
20
19
21
MAN1=		scapy.1
20
MAN1=		scapy.1
22
MANCOMPRESSED=	no
21
MANCOMPRESSED=	yes
23
22
24
PLIST_FILES=	bin/scapy
23
USE_PYTHON=	2.5+
25
24
USE_PYDISTUTILS=yes
26
USE_PYTHON=	yes
27
NO_BUILD=	yes
28
25
29
OPTIONS=	PYX "Support for PostScript and PDF graphs drawing" off \
26
OPTIONS=	PYX "Support for PostScript and PDF graphs drawing" off \
30
		PYCRYPTO "Support for py-crypto for WEP decoding" off \
27
		PYCRYPTO "Support for py-crypto for WEP decoding" off \
Lines 37-43 Link Here
37
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
38
35
39
.if defined(WITH_PYX)
36
.if defined(WITH_PYX)
40
RUN_DEPENDS+=	 ${PYTHON_SITELIBDIR}/pyx/__init__.py:${PORTSDIR}/graphics/py-PyX
37
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pyx/__init__.py:${PORTSDIR}/graphics/py-PyX
41
.endif
38
.endif
42
39
43
.if defined(WITH_PYCRYPTO)
40
.if defined(WITH_PYCRYPTO)
Lines 49-71 Link Here
49
.endif
46
.endif
50
47
51
.if defined(WITH_P0F_BASE)
48
.if defined(WITH_P0F_BASE)
52
RUN_DEPENDS+=	${PREFIX}/etc/p0f/p0f.fp:${PORTSDIR}/net-mgmt/p0f
49
RUN_DEPENDS+=	${LOCALBASE}/etc/p0f/p0f.fp:${PORTSDIR}/net-mgmt/p0f
53
.endif
50
.endif
54
51
55
.if defined(WITH_QUESO_BASE)
52
.if defined(WITH_QUESO_BASE)
56
RUN_DEPENDS+=	${PREFIX}/etc/queso.conf:${PORTSDIR}/net/queso
53
RUN_DEPENDS+=	${LOCALBASE}/etc/queso.conf:${PORTSDIR}/net/queso
57
.endif
54
.endif
58
55
59
.if defined(WITH_NMAP)
56
.if defined(WITH_NMAP)
60
RUN_DEPENDS+=	${PREFIX}/share/nmap/nmap-os-fingerprints:${PORTSDIR}/security/nmap
57
RUN_DEPENDS+=	${LOCALBASE}/share/nmap/nmap-os-fingerprints:${PORTSDIR}/security/nmap
61
.endif
58
.endif
62
59
63
.if defined(WITH_MANUF)
60
.if defined(WITH_MANUF)
64
RUN_DEPENDS+=	${PREFIX}/share/wireshark/manuf:${PORTSDIR}/net/wireshark
61
RUN_DEPENDS+=	${LOCALBASE}/share/wireshark/manuf:${PORTSDIR}/net/wireshark
65
.endif
62
.endif
66
63
67
do-install:
64
SCAPY_MODULES=	nmap.py p0f.py queso.py
68
	${INSTALL_SCRIPT} ${WRKSRC}/scapy.py ${PREFIX}/bin/scapy
65
69
	${INSTALL_MAN} ${WRKSRC}/scapy.1 ${MAN1PREFIX}/man/man1
66
post-patch:
67
	@${REINPLACE_CMD} "s,share/man/man1,man/man1," ${WRKSRC}/setup.py
68
	@${REINPLACE_CMD} "s,%%LOCALBASE%%,${LOCALBASE}," \
69
		${SCAPY_MODULES:S,^,${WRKSRC}/scapy/modules/,} \
70
		${WRKSRC}/scapy/config.py \
71
		${WRKSRC}/scapy/utils6.py
70
72
71
.include <bsd.port.post.mk>
73
.include <bsd.port.post.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (scapy-1.1.1.tar.gz) = 8ac720a1bea4304797c713ef1ed063f1
1
MD5 (scapy-2.0.0.10.tar.gz) = 41834e40e531b1b51911e34dafb6049e
2
SHA256 (scapy-1.1.1.tar.gz) = 2a11ba05f34b2978af3add623a641e0340d39322b4ca2bd26baae743c78de956
2
SHA256 (scapy-2.0.0.10.tar.gz) = 56f18529124331067e2758128a8979cdd106b10adf34f560246cb2bf3900102e
3
SIZE (scapy-1.1.1.tar.gz) = 147401
3
SIZE (scapy-2.0.0.10.tar.gz) = 182350
(-)pkg-plist (+233 lines)
Added Link Here
1
bin/UTscapy
2
bin/scapy
3
%%PYTHON_SITELIBDIR%%/scapy/__init__.py
4
%%PYTHON_SITELIBDIR%%/scapy/__init__.pyc
5
%%PYTHON_SITELIBDIR%%/scapy/__init__.pyo
6
%%PYTHON_SITELIBDIR%%/scapy/all.py
7
%%PYTHON_SITELIBDIR%%/scapy/all.pyc
8
%%PYTHON_SITELIBDIR%%/scapy/all.pyo
9
%%PYTHON_SITELIBDIR%%/scapy/ansmachine.py
10
%%PYTHON_SITELIBDIR%%/scapy/ansmachine.pyc
11
%%PYTHON_SITELIBDIR%%/scapy/ansmachine.pyo
12
%%PYTHON_SITELIBDIR%%/scapy/arch/__init__.py
13
%%PYTHON_SITELIBDIR%%/scapy/arch/__init__.pyc
14
%%PYTHON_SITELIBDIR%%/scapy/arch/__init__.pyo
15
%%PYTHON_SITELIBDIR%%/scapy/arch/bsd.py
16
%%PYTHON_SITELIBDIR%%/scapy/arch/bsd.pyc
17
%%PYTHON_SITELIBDIR%%/scapy/arch/bsd.pyo
18
%%PYTHON_SITELIBDIR%%/scapy/arch/linux.py
19
%%PYTHON_SITELIBDIR%%/scapy/arch/linux.pyc
20
%%PYTHON_SITELIBDIR%%/scapy/arch/linux.pyo
21
%%PYTHON_SITELIBDIR%%/scapy/arch/pcapdnet.py
22
%%PYTHON_SITELIBDIR%%/scapy/arch/pcapdnet.pyc
23
%%PYTHON_SITELIBDIR%%/scapy/arch/pcapdnet.pyo
24
%%PYTHON_SITELIBDIR%%/scapy/arch/solaris.py
25
%%PYTHON_SITELIBDIR%%/scapy/arch/solaris.pyc
26
%%PYTHON_SITELIBDIR%%/scapy/arch/solaris.pyo
27
%%PYTHON_SITELIBDIR%%/scapy/arch/unix.py
28
%%PYTHON_SITELIBDIR%%/scapy/arch/unix.pyc
29
%%PYTHON_SITELIBDIR%%/scapy/arch/unix.pyo
30
%%PYTHON_SITELIBDIR%%/scapy/as_resolvers.py
31
%%PYTHON_SITELIBDIR%%/scapy/as_resolvers.pyc
32
%%PYTHON_SITELIBDIR%%/scapy/as_resolvers.pyo
33
%%PYTHON_SITELIBDIR%%/scapy/asn1/__init__.py
34
%%PYTHON_SITELIBDIR%%/scapy/asn1/__init__.pyc
35
%%PYTHON_SITELIBDIR%%/scapy/asn1/__init__.pyo
36
%%PYTHON_SITELIBDIR%%/scapy/asn1/asn1.py
37
%%PYTHON_SITELIBDIR%%/scapy/asn1/asn1.pyc
38
%%PYTHON_SITELIBDIR%%/scapy/asn1/asn1.pyo
39
%%PYTHON_SITELIBDIR%%/scapy/asn1/ber.py
40
%%PYTHON_SITELIBDIR%%/scapy/asn1/ber.pyc
41
%%PYTHON_SITELIBDIR%%/scapy/asn1/ber.pyo
42
%%PYTHON_SITELIBDIR%%/scapy/asn1/mib.py
43
%%PYTHON_SITELIBDIR%%/scapy/asn1/mib.pyc
44
%%PYTHON_SITELIBDIR%%/scapy/asn1/mib.pyo
45
%%PYTHON_SITELIBDIR%%/scapy/asn1fields.py
46
%%PYTHON_SITELIBDIR%%/scapy/asn1fields.pyc
47
%%PYTHON_SITELIBDIR%%/scapy/asn1fields.pyo
48
%%PYTHON_SITELIBDIR%%/scapy/asn1packet.py
49
%%PYTHON_SITELIBDIR%%/scapy/asn1packet.pyc
50
%%PYTHON_SITELIBDIR%%/scapy/asn1packet.pyo
51
%%PYTHON_SITELIBDIR%%/scapy/automaton.py
52
%%PYTHON_SITELIBDIR%%/scapy/automaton.pyc
53
%%PYTHON_SITELIBDIR%%/scapy/automaton.pyo
54
%%PYTHON_SITELIBDIR%%/scapy/autorun.py
55
%%PYTHON_SITELIBDIR%%/scapy/autorun.pyc
56
%%PYTHON_SITELIBDIR%%/scapy/autorun.pyo
57
%%PYTHON_SITELIBDIR%%/scapy/base_classes.py
58
%%PYTHON_SITELIBDIR%%/scapy/base_classes.pyc
59
%%PYTHON_SITELIBDIR%%/scapy/base_classes.pyo
60
%%PYTHON_SITELIBDIR%%/scapy/config.py
61
%%PYTHON_SITELIBDIR%%/scapy/config.pyc
62
%%PYTHON_SITELIBDIR%%/scapy/config.pyo
63
%%PYTHON_SITELIBDIR%%/scapy/dadict.py
64
%%PYTHON_SITELIBDIR%%/scapy/dadict.pyc
65
%%PYTHON_SITELIBDIR%%/scapy/dadict.pyo
66
%%PYTHON_SITELIBDIR%%/scapy/data.py
67
%%PYTHON_SITELIBDIR%%/scapy/data.pyc
68
%%PYTHON_SITELIBDIR%%/scapy/data.pyo
69
%%PYTHON_SITELIBDIR%%/scapy/error.py
70
%%PYTHON_SITELIBDIR%%/scapy/error.pyc
71
%%PYTHON_SITELIBDIR%%/scapy/error.pyo
72
%%PYTHON_SITELIBDIR%%/scapy/fields.py
73
%%PYTHON_SITELIBDIR%%/scapy/fields.pyc
74
%%PYTHON_SITELIBDIR%%/scapy/fields.pyo
75
%%PYTHON_SITELIBDIR%%/scapy/layers/__init__.py
76
%%PYTHON_SITELIBDIR%%/scapy/layers/__init__.pyc
77
%%PYTHON_SITELIBDIR%%/scapy/layers/__init__.pyo
78
%%PYTHON_SITELIBDIR%%/scapy/layers/all.py
79
%%PYTHON_SITELIBDIR%%/scapy/layers/all.pyc
80
%%PYTHON_SITELIBDIR%%/scapy/layers/all.pyo
81
%%PYTHON_SITELIBDIR%%/scapy/layers/bluetooth.py
82
%%PYTHON_SITELIBDIR%%/scapy/layers/bluetooth.pyc
83
%%PYTHON_SITELIBDIR%%/scapy/layers/bluetooth.pyo
84
%%PYTHON_SITELIBDIR%%/scapy/layers/dhcp.py
85
%%PYTHON_SITELIBDIR%%/scapy/layers/dhcp.pyc
86
%%PYTHON_SITELIBDIR%%/scapy/layers/dhcp.pyo
87
%%PYTHON_SITELIBDIR%%/scapy/layers/dhcp6.py
88
%%PYTHON_SITELIBDIR%%/scapy/layers/dhcp6.pyc
89
%%PYTHON_SITELIBDIR%%/scapy/layers/dhcp6.pyo
90
%%PYTHON_SITELIBDIR%%/scapy/layers/dns.py
91
%%PYTHON_SITELIBDIR%%/scapy/layers/dns.pyc
92
%%PYTHON_SITELIBDIR%%/scapy/layers/dns.pyo
93
%%PYTHON_SITELIBDIR%%/scapy/layers/dot11.py
94
%%PYTHON_SITELIBDIR%%/scapy/layers/dot11.pyc
95
%%PYTHON_SITELIBDIR%%/scapy/layers/dot11.pyo
96
%%PYTHON_SITELIBDIR%%/scapy/layers/gprs.py
97
%%PYTHON_SITELIBDIR%%/scapy/layers/gprs.pyc
98
%%PYTHON_SITELIBDIR%%/scapy/layers/gprs.pyo
99
%%PYTHON_SITELIBDIR%%/scapy/layers/hsrp.py
100
%%PYTHON_SITELIBDIR%%/scapy/layers/hsrp.pyc
101
%%PYTHON_SITELIBDIR%%/scapy/layers/hsrp.pyo
102
%%PYTHON_SITELIBDIR%%/scapy/layers/inet.py
103
%%PYTHON_SITELIBDIR%%/scapy/layers/inet.pyc
104
%%PYTHON_SITELIBDIR%%/scapy/layers/inet.pyo
105
%%PYTHON_SITELIBDIR%%/scapy/layers/inet6.py
106
%%PYTHON_SITELIBDIR%%/scapy/layers/inet6.pyc
107
%%PYTHON_SITELIBDIR%%/scapy/layers/inet6.pyo
108
%%PYTHON_SITELIBDIR%%/scapy/layers/ir.py
109
%%PYTHON_SITELIBDIR%%/scapy/layers/ir.pyc
110
%%PYTHON_SITELIBDIR%%/scapy/layers/ir.pyo
111
%%PYTHON_SITELIBDIR%%/scapy/layers/isakmp.py
112
%%PYTHON_SITELIBDIR%%/scapy/layers/isakmp.pyc
113
%%PYTHON_SITELIBDIR%%/scapy/layers/isakmp.pyo
114
%%PYTHON_SITELIBDIR%%/scapy/layers/l2.py
115
%%PYTHON_SITELIBDIR%%/scapy/layers/l2.pyc
116
%%PYTHON_SITELIBDIR%%/scapy/layers/l2.pyo
117
%%PYTHON_SITELIBDIR%%/scapy/layers/l2tp.py
118
%%PYTHON_SITELIBDIR%%/scapy/layers/l2tp.pyc
119
%%PYTHON_SITELIBDIR%%/scapy/layers/l2tp.pyo
120
%%PYTHON_SITELIBDIR%%/scapy/layers/llmnr.py
121
%%PYTHON_SITELIBDIR%%/scapy/layers/llmnr.pyc
122
%%PYTHON_SITELIBDIR%%/scapy/layers/llmnr.pyo
123
%%PYTHON_SITELIBDIR%%/scapy/layers/mgcp.py
124
%%PYTHON_SITELIBDIR%%/scapy/layers/mgcp.pyc
125
%%PYTHON_SITELIBDIR%%/scapy/layers/mgcp.pyo
126
%%PYTHON_SITELIBDIR%%/scapy/layers/mobileip.py
127
%%PYTHON_SITELIBDIR%%/scapy/layers/mobileip.pyc
128
%%PYTHON_SITELIBDIR%%/scapy/layers/mobileip.pyo
129
%%PYTHON_SITELIBDIR%%/scapy/layers/netbios.py
130
%%PYTHON_SITELIBDIR%%/scapy/layers/netbios.pyc
131
%%PYTHON_SITELIBDIR%%/scapy/layers/netbios.pyo
132
%%PYTHON_SITELIBDIR%%/scapy/layers/netflow.py
133
%%PYTHON_SITELIBDIR%%/scapy/layers/netflow.pyc
134
%%PYTHON_SITELIBDIR%%/scapy/layers/netflow.pyo
135
%%PYTHON_SITELIBDIR%%/scapy/layers/ntp.py
136
%%PYTHON_SITELIBDIR%%/scapy/layers/ntp.pyc
137
%%PYTHON_SITELIBDIR%%/scapy/layers/ntp.pyo
138
%%PYTHON_SITELIBDIR%%/scapy/layers/ppp.py
139
%%PYTHON_SITELIBDIR%%/scapy/layers/ppp.pyc
140
%%PYTHON_SITELIBDIR%%/scapy/layers/ppp.pyo
141
%%PYTHON_SITELIBDIR%%/scapy/layers/radius.py
142
%%PYTHON_SITELIBDIR%%/scapy/layers/radius.pyc
143
%%PYTHON_SITELIBDIR%%/scapy/layers/radius.pyo
144
%%PYTHON_SITELIBDIR%%/scapy/layers/rip.py
145
%%PYTHON_SITELIBDIR%%/scapy/layers/rip.pyc
146
%%PYTHON_SITELIBDIR%%/scapy/layers/rip.pyo
147
%%PYTHON_SITELIBDIR%%/scapy/layers/rtp.py
148
%%PYTHON_SITELIBDIR%%/scapy/layers/rtp.pyc
149
%%PYTHON_SITELIBDIR%%/scapy/layers/rtp.pyo
150
%%PYTHON_SITELIBDIR%%/scapy/layers/sebek.py
151
%%PYTHON_SITELIBDIR%%/scapy/layers/sebek.pyc
152
%%PYTHON_SITELIBDIR%%/scapy/layers/sebek.pyo
153
%%PYTHON_SITELIBDIR%%/scapy/layers/skinny.py
154
%%PYTHON_SITELIBDIR%%/scapy/layers/skinny.pyc
155
%%PYTHON_SITELIBDIR%%/scapy/layers/skinny.pyo
156
%%PYTHON_SITELIBDIR%%/scapy/layers/smb.py
157
%%PYTHON_SITELIBDIR%%/scapy/layers/smb.pyc
158
%%PYTHON_SITELIBDIR%%/scapy/layers/smb.pyo
159
%%PYTHON_SITELIBDIR%%/scapy/layers/snmp.py
160
%%PYTHON_SITELIBDIR%%/scapy/layers/snmp.pyc
161
%%PYTHON_SITELIBDIR%%/scapy/layers/snmp.pyo
162
%%PYTHON_SITELIBDIR%%/scapy/layers/tftp.py
163
%%PYTHON_SITELIBDIR%%/scapy/layers/tftp.pyc
164
%%PYTHON_SITELIBDIR%%/scapy/layers/tftp.pyo
165
%%PYTHON_SITELIBDIR%%/scapy/layers/x509.py
166
%%PYTHON_SITELIBDIR%%/scapy/layers/x509.pyc
167
%%PYTHON_SITELIBDIR%%/scapy/layers/x509.pyo
168
%%PYTHON_SITELIBDIR%%/scapy/main.py
169
%%PYTHON_SITELIBDIR%%/scapy/main.pyc
170
%%PYTHON_SITELIBDIR%%/scapy/main.pyo
171
%%PYTHON_SITELIBDIR%%/scapy/modules/__init__.py
172
%%PYTHON_SITELIBDIR%%/scapy/modules/__init__.pyc
173
%%PYTHON_SITELIBDIR%%/scapy/modules/__init__.pyo
174
%%PYTHON_SITELIBDIR%%/scapy/modules/geoip.py
175
%%PYTHON_SITELIBDIR%%/scapy/modules/geoip.pyc
176
%%PYTHON_SITELIBDIR%%/scapy/modules/geoip.pyo
177
%%PYTHON_SITELIBDIR%%/scapy/modules/nmap.py
178
%%PYTHON_SITELIBDIR%%/scapy/modules/nmap.pyc
179
%%PYTHON_SITELIBDIR%%/scapy/modules/nmap.pyo
180
%%PYTHON_SITELIBDIR%%/scapy/modules/p0f.py
181
%%PYTHON_SITELIBDIR%%/scapy/modules/p0f.pyc
182
%%PYTHON_SITELIBDIR%%/scapy/modules/p0f.pyo
183
%%PYTHON_SITELIBDIR%%/scapy/modules/queso.py
184
%%PYTHON_SITELIBDIR%%/scapy/modules/queso.pyc
185
%%PYTHON_SITELIBDIR%%/scapy/modules/queso.pyo
186
%%PYTHON_SITELIBDIR%%/scapy/modules/voip.py
187
%%PYTHON_SITELIBDIR%%/scapy/modules/voip.pyc
188
%%PYTHON_SITELIBDIR%%/scapy/modules/voip.pyo
189
%%PYTHON_SITELIBDIR%%/scapy/packet.py
190
%%PYTHON_SITELIBDIR%%/scapy/packet.pyc
191
%%PYTHON_SITELIBDIR%%/scapy/packet.pyo
192
%%PYTHON_SITELIBDIR%%/scapy/plist.py
193
%%PYTHON_SITELIBDIR%%/scapy/plist.pyc
194
%%PYTHON_SITELIBDIR%%/scapy/plist.pyo
195
%%PYTHON_SITELIBDIR%%/scapy/route.py
196
%%PYTHON_SITELIBDIR%%/scapy/route.pyc
197
%%PYTHON_SITELIBDIR%%/scapy/route.pyo
198
%%PYTHON_SITELIBDIR%%/scapy/route6.py
199
%%PYTHON_SITELIBDIR%%/scapy/route6.pyc
200
%%PYTHON_SITELIBDIR%%/scapy/route6.pyo
201
%%PYTHON_SITELIBDIR%%/scapy/sendrecv.py
202
%%PYTHON_SITELIBDIR%%/scapy/sendrecv.pyc
203
%%PYTHON_SITELIBDIR%%/scapy/sendrecv.pyo
204
%%PYTHON_SITELIBDIR%%/scapy/supersocket.py
205
%%PYTHON_SITELIBDIR%%/scapy/supersocket.pyc
206
%%PYTHON_SITELIBDIR%%/scapy/supersocket.pyo
207
%%PYTHON_SITELIBDIR%%/scapy/themes.py
208
%%PYTHON_SITELIBDIR%%/scapy/themes.pyc
209
%%PYTHON_SITELIBDIR%%/scapy/themes.pyo
210
%%PYTHON_SITELIBDIR%%/scapy/tools/UTscapy.py
211
%%PYTHON_SITELIBDIR%%/scapy/tools/UTscapy.pyc
212
%%PYTHON_SITELIBDIR%%/scapy/tools/UTscapy.pyo
213
%%PYTHON_SITELIBDIR%%/scapy/tools/__init__.py
214
%%PYTHON_SITELIBDIR%%/scapy/tools/__init__.pyc
215
%%PYTHON_SITELIBDIR%%/scapy/tools/__init__.pyo
216
%%PYTHON_SITELIBDIR%%/scapy/tools/check_asdis.py
217
%%PYTHON_SITELIBDIR%%/scapy/tools/check_asdis.pyc
218
%%PYTHON_SITELIBDIR%%/scapy/tools/check_asdis.pyo
219
%%PYTHON_SITELIBDIR%%/scapy/utils.py
220
%%PYTHON_SITELIBDIR%%/scapy/utils.pyc
221
%%PYTHON_SITELIBDIR%%/scapy/utils.pyo
222
%%PYTHON_SITELIBDIR%%/scapy/utils6.py
223
%%PYTHON_SITELIBDIR%%/scapy/utils6.pyc
224
%%PYTHON_SITELIBDIR%%/scapy/utils6.pyo
225
%%PYTHON_SITELIBDIR%%/scapy/volatile.py
226
%%PYTHON_SITELIBDIR%%/scapy/volatile.pyc
227
%%PYTHON_SITELIBDIR%%/scapy/volatile.pyo
228
@dirrm %%PYTHON_SITELIBDIR%%/scapy/tools
229
@dirrm %%PYTHON_SITELIBDIR%%/scapy/modules
230
@dirrm %%PYTHON_SITELIBDIR%%/scapy/layers
231
@dirrm %%PYTHON_SITELIBDIR%%/scapy/asn1
232
@dirrm %%PYTHON_SITELIBDIR%%/scapy/arch
233
@dirrm %%PYTHON_SITELIBDIR%%/scapy
(-)files/patch-scapy.py (-24 lines)
Removed Link Here
1
--- /usr/ports/net/scapy/work/scapy-1.1.1/scapy.py	Mon Apr  9 13:17:35 2007
2
+++ scapy.py	Sat Apr 21 22:24:12 2007
3
@@ -482,7 +482,7 @@
4
         pass
5
     return manufdb
6
     
7
-MANUFDB = load_manuf("/usr/share/wireshark/wireshark/manuf")
8
+MANUFDB = load_manuf("/usr/local/share/wireshark/manuf")
9
 
10
 
11
 
12
@@ -11856,9 +11856,9 @@
13
     BTsocket = BluetoothL2CAPSocket
14
     histfile = os.path.join(os.environ["HOME"], ".scapy_history")
15
     padding = 1
16
-    p0f_base ="/etc/p0f/p0f.fp"
17
-    queso_base ="/etc/queso.conf"
18
-    nmap_base ="/usr/share/nmap/nmap-os-fingerprints"
19
+    p0f_base ="/usr/local/etc/p0f/p0f.fp"
20
+    queso_base ="/usr/local/etc/queso.conf"
21
+    nmap_base ="/usr/local/share/nmap/nmap-os-fingerprints"
22
     IPCountry_base = "GeoIPCountry4Scapy.gz"
23
     countryLoc_base = "countryLoc.csv"
24
     gnuplot_world = "world.dat"
(-)files/patch-scapy_config.py (+11 lines)
Added Link Here
1
--- scapy/config.py.orig	2008-11-12 05:01:38.000000000 +0800
2
+++ scapy/config.py	2008-11-12 05:01:59.000000000 +0800
3
@@ -308,7 +308,7 @@
4
     services_tcp = TCP_SERVICES
5
     services_udp = UDP_SERVICES
6
     extensions_paths = "."
7
-    manufdb = load_manuf("/usr/share/wireshark/wireshark/manuf")
8
+    manufdb = load_manuf("%%LOCALBASE%%/share/wireshark/manuf")
9
     stats_classic_protocols = []
10
     stats_dot11_protocols = []
11
     temp_files = []
(-)files/patch-scapy_modules (+33 lines)
Added Link Here
1
--- scapy/modules/nmap.py.orig	2008-11-12 04:11:51.000000000 +0800
2
+++ scapy/modules/nmap.py	2008-11-12 04:14:50.000000000 +0800
3
@@ -6,7 +6,7 @@
4
 from scapy.data import KnowledgeBase
5
 from scapy.config import conf
6
 
7
-conf.nmap_base ="/usr/share/nmap/nmap-os-fingerprints"
8
+conf.nmap_base ="%%LOCALBASE%%/share/nmap/nmap-os-fingerprints"
9
 
10
 
11
 ######################
12
--- scapy/modules/p0f.py.orig	2008-11-12 04:12:07.000000000 +0800
13
+++ scapy/modules/p0f.py	2008-11-12 04:20:49.000000000 +0800
14
@@ -6,7 +6,7 @@
15
 from scapy.data import KnowledgeBase
16
 from scapy.config import conf
17
 
18
-conf.p0f_base ="/etc/p0f/p0f.fp"
19
+conf.p0f_base ="%%LOCALBASE%%/etc/p0f/p0f.fp"
20
 
21
 
22
 ###############
23
--- scapy/modules/queso.py.orig	2008-11-12 04:12:14.000000000 +0800
24
+++ scapy/modules/queso.py	2008-11-12 04:21:04.000000000 +0800
25
@@ -8,7 +8,7 @@
26
 from scapy.layers.inet import IP,TCP
27
 #from 
28
 
29
-conf.queso_base ="/etc/queso.conf"
30
+conf.queso_base ="%%LOCALBASE%%/etc/queso.conf"
31
 
32
 
33
 #################
(-)files/patch-scapy_utils6.py (+11 lines)
Added Link Here
1
--- scapy/utils6.py.orig	2008-11-12 05:06:52.000000000 +0800
2
+++ scapy/utils6.py	2008-11-12 05:07:08.000000000 +0800
3
@@ -194,7 +194,7 @@
4
     Extract the MAC address from a modified EUI-64 constructed IPv6
5
     address provided and use the IANA oui.txt file to get the vendor.
6
     The database used for the conversion is the one loaded by Scapy,
7
-    based on Wireshark (/usr/share/wireshark/wireshark/manuf)  None
8
+    based on Wireshark (%%LOCALBASE%%/share/wireshark/manuf)  None
9
     is returned on error, "UNKNOWN" if the vendor is unknown.
10
     """
11
     mac = in6_addrtomac(addr)

Return to bug 128802