freebsd-ports/net/py-impacket/files/patch-setup.py
Jose Alonso Cardenas Marquez c076d2ad15
net/py-impacket: Update to 0.11.0
- Take maintainership. Maintainer not show activity from 2019 and this port was
  marked like vulnerable from 2023-04-09

Approved by:	maintainer timeout
2023-10-02 11:13:26 -05:00

23 lines
1 KiB
Python

--- setup.py.orig 2023-09-21 00:08:28.427651000 -0500
+++ setup.py 2023-09-21 00:09:29.055566000 -0500
@@ -39,12 +39,6 @@
except Exception:
VER_LOCAL = ""
-if platform.system() != 'Darwin':
- data_files = [(os.path.join('share', 'doc', PACKAGE_NAME), ['README.md', 'LICENSE']+glob.glob('doc/*'))]
-else:
- data_files = []
-
-
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
@@ -66,7 +60,6 @@
'impacket.examples.ntlmrelayx.servers.socksplugins', 'impacket.examples.ntlmrelayx.utils',
'impacket.examples.ntlmrelayx.attacks', 'impacket.examples.ntlmrelayx.attacks.httpattacks'],
scripts=glob.glob(os.path.join('examples', '*.py')),
- data_files=data_files,
install_requires=['pyasn1>=0.2.3', 'pycryptodomex', 'pyOpenSSL>=21.0.0', 'six', 'ldap3>=2.5,!=2.5.2,!=2.5.0,!=2.6',
'ldapdomaindump>=0.9.0', 'flask>=1.0', 'future', 'charset_normalizer', 'dsinternals'],
extras_require={'pyreadline:sys_platform=="win32"': [],