1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Update to 2.1.0

- Remove 5 unneeded patches and add 6 new pathces

PR:		ports/141471
Submitted by:	Sofian Brabez <sbrabez@gmail.com>
Approved by:	maintainer(timeout, >20days)
This commit is contained in:
Wen Heping 2010-01-06 00:25:50 +00:00
parent 997055539f
commit 8af3088d41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247240
13 changed files with 79 additions and 75 deletions

View File

@ -7,8 +7,7 @@
# TODO: - configurable --enable-xxx for various additional dependancies
PORTNAME= scapy
PORTVERSION= 2.0.1
PORTREVISION= 2
PORTVERSION= 2.1.0
CATEGORIES= net
MASTER_SITES= http://secdev.org/projects/scapy/files/

View File

@ -1,3 +1,3 @@
MD5 (scapy-2.0.1.tar.gz) = eaf09bce872c835135a8c66327f920cb
SHA256 (scapy-2.0.1.tar.gz) = 4575588bc55733bea7b2c94bf6cf1bd0cfa66c169e2c2d02f5b05a8ad7eaabc1
SIZE (scapy-2.0.1.tar.gz) = 864953
MD5 (scapy-2.1.0.tar.gz) = 357b5b21ea3b4f289a326c0905b715c1
SHA256 (scapy-2.1.0.tar.gz) = 43ca233b0cfc950401193e2702ea32ee1dd83d4bab671371e322a7b6c52275ba
SIZE (scapy-2.1.0.tar.gz) = 956785

View File

@ -1,11 +0,0 @@
--- scapy/layers/inet.py.orig 2009-05-25 14:36:27.000000000 +0200
+++ scapy/layers/inet.py 2009-05-25 14:36:30.000000000 +0200
@@ -780,7 +780,7 @@
self.label.visible ^= 1
visual.scene = visual.display()
- visual.scene.exit_on_close(0)
+ #visual.scene.exit_on_close(0)
start = visual.box()
rings={}
tr3d = {}

View File

@ -1,11 +0,0 @@
--- scapy/sendrecv.py.orig 2009-07-15 18:19:31.000000000 +0200
+++ scapy/sendrecv.py 2009-07-15 18:19:46.000000000 +0200
@@ -9,7 +9,7 @@
from arch import *
from config import conf
from packet import Gen
-from utils import warning
+from utils import warning,PcapReader
import plist
from error import log_runtime,log_interactive

View File

@ -0,0 +1,11 @@
--- ./scapy/data.py.orig 2010-01-05 11:34:28.000000000 +0100
+++ ./scapy/data.py 2010-01-05 11:35:09.000000000 +0100
@@ -178,7 +178,7 @@
IP_PROTOS=load_protocols("/etc/protocols")
ETHER_TYPES=load_ethertypes("/etc/ethertypes")
TCP_SERVICES,UDP_SERVICES=load_services("/etc/services")
- MANUFDB = load_manuf("/usr/share/wireshark/wireshark/manuf")
+ MANUFDB = load_manuf("%%LOCALBASE%%/share/wireshark/wireshark/manuf")

View File

@ -0,0 +1,11 @@
--- ./scapy/modules/nmap.py.orig 2010-01-05 11:35:33.000000000 +0100
+++ ./scapy/modules/nmap.py 2010-01-05 11:36:28.000000000 +0100
@@ -13,7 +13,7 @@
if WINDOWS:
conf.nmap_base=os.environ["ProgramFiles"] + "\\nmap\\nmap-os-fingerprints"
else:
- conf.nmap_base ="/usr/share/nmap/nmap-os-fingerprints"
+ conf.nmap_base ="%%LOCALBASE%%/share/nmap/nmap-os-fingerprints"
######################

View File

@ -0,0 +1,17 @@
--- ./scapy/modules/p0f.py.orig 2010-01-05 11:36:56.000000000 +0100
+++ ./scapy/modules/p0f.py 2010-01-05 11:37:50.000000000 +0100
@@ -8,10 +8,10 @@
from scapy.layers.inet import IP, TCP, TCPOptions
from scapy.packet import NoPayload
-conf.p0f_base ="/etc/p0f/p0f.fp"
-conf.p0fa_base ="/etc/p0f/p0fa.fp"
-conf.p0fr_base ="/etc/p0f/p0fr.fp"
-conf.p0fo_base ="/etc/p0f/p0fo.fp"
+conf.p0f_base ="%%LOCALBASE%%/etc/p0f/p0f.fp"
+conf.p0fa_base ="%%LOCALBASE%%/etc/p0f/p0fa.fp"
+conf.p0fr_base ="%%LOCALBASE%%/etc/p0f/p0fr.fp"
+conf.p0fo_base ="%%LOCALBASE%%/etc/p0f/p0fo.fp"
###############

View File

@ -0,0 +1,11 @@
--- ./scapy/modules/queso.py.orig 2010-01-05 11:38:01.000000000 +0100
+++ ./scapy/modules/queso.py 2010-01-05 11:38:14.000000000 +0100
@@ -8,7 +8,7 @@
from scapy.layers.inet import IP,TCP
#from
-conf.queso_base ="/etc/queso.conf"
+conf.queso_base ="%%LOCALBASE%%/etc/queso.conf"
#################

View File

@ -1,11 +1,11 @@
--- scapy/utils6.py.orig 2008-11-12 05:06:52.000000000 +0800
+++ scapy/utils6.py 2008-11-12 05:07:08.000000000 +0800
@@ -194,7 +194,7 @@
--- ./scapy/utils6.py.orig 2010-01-05 11:38:37.000000000 +0100
+++ ./scapy/utils6.py 2010-01-05 11:39:13.000000000 +0100
@@ -267,7 +267,7 @@
Extract the MAC address from a modified EUI-64 constructed IPv6
address provided and use the IANA oui.txt file to get the vendor.
The database used for the conversion is the one loaded by Scapy,
- based on Wireshark (/usr/share/wireshark/wireshark/manuf) None
+ based on Wireshark (%%LOCALBASE%%/share/wireshark/manuf) None
+ based on Wireshark (%%LOCALBASE%%/share/wireshark/wireshark/manuf) None
is returned on error, "UNKNOWN" if the vendor is unknown.
"""
mac = in6_addrtomac(addr)

View File

@ -1,11 +0,0 @@
--- scapy/config.py.orig 2009-02-09 17:41:39.000000000 +0500
+++ scapy/config.py 2009-06-24 16:11:35.000000000 +0600
@@ -309,7 +309,7 @@
services_tcp = TCP_SERVICES
services_udp = UDP_SERVICES
extensions_paths = "."
- manufdb = load_manuf("/usr/share/wireshark/manuf")
+ manufdb = load_manuf("%%LOCALBASE%%/share/wireshark/manuf")
stats_classic_protocols = []
stats_dot11_protocols = []
temp_files = []

View File

@ -1,33 +0,0 @@
--- scapy/modules/nmap.py.orig 2008-11-12 04:11:51.000000000 +0800
+++ scapy/modules/nmap.py 2008-11-12 04:14:50.000000000 +0800
@@ -6,7 +6,7 @@
from scapy.data import KnowledgeBase
from scapy.config import conf
-conf.nmap_base ="/usr/share/nmap/nmap-os-fingerprints"
+conf.nmap_base ="%%LOCALBASE%%/share/nmap/nmap-os-fingerprints"
######################
--- scapy/modules/p0f.py.orig 2008-11-12 04:12:07.000000000 +0800
+++ scapy/modules/p0f.py 2008-11-12 04:20:49.000000000 +0800
@@ -6,7 +6,7 @@
from scapy.data import KnowledgeBase
from scapy.config import conf
-conf.p0f_base ="/etc/p0f/p0f.fp"
+conf.p0f_base ="%%LOCALBASE%%/etc/p0f/p0f.fp"
###############
--- scapy/modules/queso.py.orig 2008-11-12 04:12:14.000000000 +0800
+++ scapy/modules/queso.py 2008-11-12 04:21:04.000000000 +0800
@@ -8,7 +8,7 @@
from scapy.layers.inet import IP,TCP
#from
-conf.queso_base ="/etc/queso.conf"
+conf.queso_base ="%%LOCALBASE%%/etc/queso.conf"
#################

View File

@ -0,0 +1,11 @@
--- ./setup.py.orig 2010-01-05 11:40:22.000000000 +0100
+++ ./setup.py 2010-01-05 11:40:57.000000000 +0100
@@ -42,7 +42,7 @@
setup(
name = 'scapy',
version = '2.1.0',
- packages=['scapy','scapy/arch', 'scapy/arch/windows', 'scapy/layers','scapy/asn1','scapy/tools','scapy/modules', 'scapy/crypto'],
+ packages=['scapy','scapy/arch','scapy/layers','scapy/asn1','scapy/tools','scapy/modules', 'scapy/crypto'],
scripts = SCRIPTS,
data_files = [('share/man/man1', ["doc/scapy.1.gz"])],

View File

@ -60,6 +60,12 @@ bin/scapy
%%PYTHON_SITELIBDIR%%/scapy/config.py
%%PYTHON_SITELIBDIR%%/scapy/config.pyc
%%PYTHON_SITELIBDIR%%/scapy/config.pyo
%%PYTHON_SITELIBDIR%%/scapy/crypto/__init__.py
%%PYTHON_SITELIBDIR%%/scapy/crypto/__init__.pyc
%%PYTHON_SITELIBDIR%%/scapy/crypto/__init__.pyo
%%PYTHON_SITELIBDIR%%/scapy/crypto/cert.py
%%PYTHON_SITELIBDIR%%/scapy/crypto/cert.pyc
%%PYTHON_SITELIBDIR%%/scapy/crypto/cert.pyo
%%PYTHON_SITELIBDIR%%/scapy/dadict.py
%%PYTHON_SITELIBDIR%%/scapy/dadict.pyc
%%PYTHON_SITELIBDIR%%/scapy/dadict.pyo
@ -195,6 +201,9 @@ bin/scapy
%%PYTHON_SITELIBDIR%%/scapy/plist.py
%%PYTHON_SITELIBDIR%%/scapy/plist.pyc
%%PYTHON_SITELIBDIR%%/scapy/plist.pyo
%%PYTHON_SITELIBDIR%%/scapy/pton_ntop.py
%%PYTHON_SITELIBDIR%%/scapy/pton_ntop.pyc
%%PYTHON_SITELIBDIR%%/scapy/pton_ntop.pyo
%%PYTHON_SITELIBDIR%%/scapy/route.py
%%PYTHON_SITELIBDIR%%/scapy/route.pyc
%%PYTHON_SITELIBDIR%%/scapy/route.pyo
@ -231,6 +240,7 @@ bin/scapy
@dirrm %%PYTHON_SITELIBDIR%%/scapy/tools
@dirrm %%PYTHON_SITELIBDIR%%/scapy/modules
@dirrm %%PYTHON_SITELIBDIR%%/scapy/layers
@dirrm %%PYTHON_SITELIBDIR%%/scapy/crypto
@dirrm %%PYTHON_SITELIBDIR%%/scapy/asn1
@dirrm %%PYTHON_SITELIBDIR%%/scapy/arch
@dirrm %%PYTHON_SITELIBDIR%%/scapy