35ac3b7309
full changelog available at http://nmap.org/changelog.html Nping needs a very current libpcap to work as root
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
$OpenBSD: patch-zenmap_setup_py,v 1.8 2011/03/28 09:01:24 giovanni Exp $
|
|
--- zenmap/setup.py.orig Fri Jan 21 01:04:51 2011
|
|
+++ zenmap/setup.py Wed Feb 2 13:12:14 2011
|
|
@@ -199,12 +199,11 @@ class my_install(install):
|
|
install.finalize_options(self)
|
|
|
|
def run(self):
|
|
+ self.fix_paths()
|
|
install.run(self)
|
|
|
|
self.set_perms()
|
|
self.set_modules_path()
|
|
- self.fix_paths()
|
|
- self.create_uninstaller()
|
|
self.write_installed_files()
|
|
|
|
def get_installed_files(self):
|
|
@@ -359,17 +358,10 @@ for dir in dirs:
|
|
# See $(nmapdatadir) in nmap/Makefile.in.
|
|
"NMAPDATADIR": os.path.join(self.saved_prefix, "share", "nmap"),}
|
|
|
|
- # Find and read the Paths.py file.
|
|
- pcontent = ""
|
|
paths_file = os.path.join("zenmapCore", "Paths.py")
|
|
- installed_files = self.get_outputs()
|
|
- for f in installed_files:
|
|
- if re.findall("(%s)" % re.escape(paths_file), f):
|
|
- paths_file = f
|
|
- pf = open(paths_file)
|
|
- pcontent = pf.read()
|
|
- pf.close()
|
|
- break
|
|
+ pf = open(paths_file)
|
|
+ pcontent = pf.read()
|
|
+ pf.close()
|
|
|
|
# Replace the path definitions.
|
|
for path, replacement in interesting_paths.items():
|
|
@@ -390,11 +382,6 @@ for dir in dirs:
|
|
|
|
desktop_filename = None
|
|
root_desktop_filename = None
|
|
- for f in installed_files:
|
|
- if re.search("%s$" % re.escape("zenmap-root.desktop"), f):
|
|
- root_desktop_filename = f
|
|
- elif re.search("%s$" % re.escape("zenmap.desktop"), f):
|
|
- desktop_filename = f
|
|
|
|
if desktop_filename is not None:
|
|
df = open(desktop_filename, "r")
|