Ticket #16232: umit_0.9.5_update.patch
File umit_0.9.5_update.patch, 6.7 KB (added by luis.kop@…, 16 years ago) |
---|
-
files/patch-setup.diff
1 Index: setup.py 2 =================================================================== 3 --- setup.py (revision 2980) 4 +++ setup.py (working copy) 5 @@ -105,7 +105,7 @@ 1 --- setup.py.orig 2008-08-06 02:05:01.000000000 +0100 2 +++ setup.py 2008-08-06 02:06:49.000000000 +0100 3 @@ -141,7 +141,7 @@ 6 4 7 5 self.set_perms() 8 6 self.set_modules_path() … … 11 9 self.create_uninstaller() 12 10 self.finish_banner() 13 11 14 @@ -270,4 +270,4 @@15 packages = ['', 'umitCore', 'umitGUI', 'higwidgets'],16 data_files = data_files,17 cmdclass = {"install":umit_install,18 - "sdist":umit_sdist})19 \ No newline at end of file20 + "sdist":umit_sdist}) -
files/patch-base.diff
1 --- umitCore/BasePaths.py.orig 2008-0 7-03 17:30:17.000000000 +01002 +++ umitCore/BasePaths.py 2008-0 7-03 17:48:56.000000000 +01003 @@ -36,14 +36,1 6@@1 --- umitCore/BasePaths.py.orig 2008-08-06 02:07:28.000000000 +0100 2 +++ umitCore/BasePaths.py 2008-08-06 02:10:53.000000000 +0100 3 @@ -36,14 +36,14 @@ 4 4 # directory. 5 5 main_dir = os.path.abspath(os.path.dirname(sys.argv[0])) 6 6 if hasattr(sys, "frozen"): 7 7 - main_dir = os.path.dirname(sys.executable) 8 8 + main_dir = dirname(sys.executable) 9 +10 +CONFIG_DIR = "__PREFIX__/share/umit/config"11 +LOCALE_DIR = "__PREFIX__/share/locale"12 +MISC_DIR = "__PREFIX__/share/umit/misc"13 +ICONS_DIR = "__PREFIX__/share/icons/umit"14 +PIXMAPS_DIR = "__PREFIX__/share/pixmaps/umit"15 +DOCS_DIR = "__PREFIX__/share/doc/umit"16 +17 9 18 10 -CONFIG_DIR = os.path.join(main_dir, "share", "umit", "config") 19 11 -LOCALE_DIR = os.path.join(main_dir, "share", "locale") … … 21 13 -ICONS_DIR = os.path.join(main_dir, "share", "icons", "umit") 22 14 -PIXMAPS_DIR = os.path.join(main_dir, "share", "pixmaps", "umit") 23 15 -DOCS_DIR = os.path.join(main_dir, "share", "doc", "umit") 16 +CONFIG_DIR = "__PREFIX__/share/umit/config" 17 +LOCALE_DIR = "__PREFIX__/share/locale" 18 +MISC_DIR = "__PREFIX__/share/umit/misc" 19 +ICONS_DIR = "__PREFIX__/share/icons/umit" 20 +PIXMAPS_DIR = "__PREFIX__/share/pixmaps/umit" 21 +DOCS_DIR = "__PREFIX__/share/doc/umit" 24 22 25 23 base_paths = dict(config_file = 'umit.conf', 26 24 config_dir = '.umit', 27 @@ -56,17 +58,17 @@28 options = 'options.xml',29 umit_opf = 'umit.opf',30 umit_opt = 'umit.opt',31 - pixmaps_dir = PIXMAPS_DIR,32 - i18n_dir = LOCALE_DIR,33 + pixmaps_dir = os.path.join('share', 'pixmaps'),34 + i18n_dir = os.path.join('share','locale'),35 i18n_message_file = 'umit.mo',36 scan_results_extension = 'usr', # comes from umit scan result37 scan_profile_extension = 'usp', # comes from umit scan profile38 user_home = HOME,39 basic_search_sequence = [HOME, CURRENT_DIR],40 config_search_sequence = [HOME, CURRENT_DIR],41 - pixmaps_search_sequence = [os.path.join(CURRENT_DIR, PIXMAPS_DIR),42 + pixmaps_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'pixmaps'),43 HOME],44 - i18n_search_sequence = [os.path.join(CURRENT_DIR, LOCALE_DIR), HOME],45 + i18n_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'locale'), HOME],46 umitdb = "umit.db",47 services = "nmap-services",48 services_dump = "services.dmp",49 @@ -83,25 +85,27 @@50 '/opt/umit', HOME, CURRENT_DIR],51 config_search_sequence = [os.path.join(HOME, base_paths['config_dir']),52 CURRENT_DIR, '/etc'],53 - pixmaps_search_sequence = [os.path.join(CURRENT_DIR, PIXMAPS_DIR),54 - '/usr/share/pixmaps/umit',55 + pixmaps_search_sequence = [os.path.join(CURRENT_DIR,56 + 'share',57 + 'pixmaps'),58 + '/usr/share/pixmaps',59 '/opt/umit', HOME],60 - i18n_search_sequence = [os.path.join(CURRENT_DIR, LOCALE_DIR),61 + i18n_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'locale'),62 '/usr/share/locale',63 HOME, CURRENT_DIR]))64 elif PLATFORM == 'win32':65 PROGRAM_FILES = os.environ.get("PROGRAMFILES", "\\")66 UMIT_DIR = os.path.join(PROGRAM_FILES, "Umit")67 - PIXMAPS_DIR = os.path.join(UMIT_DIR, PIXMAPS_DIR)68 + PIXMAPS_DIR = os.path.join(UMIT_DIR, 'share', 'pixmaps')69 70 base_paths.update(dict(\71 basic_search_sequence = [UMIT_DIR, PROGRAM_FILES, HOME, CURRENT_DIR],72 config_search_sequence = [UMIT_DIR, PROGRAM_FILES, HOME, CURRENT_DIR],73 pixmaps_search_sequence = [PIXMAPS_DIR, PROGRAM_FILES,74 - os.path.join(CURRENT_DIR, PIXMAPS_DIR),75 + os.path.join(CURRENT_DIR, 'share', 'pixmaps'),76 HOME],77 i18n_search_sequence = [UMIT_DIR, PROGRAM_FILES,78 - os.path.join(CURRENT_DIR, LOCALE_DIR), HOME],))79 + os.path.join(CURRENT_DIR, 'share', 'locale'), HOME],))80 81 elif PLATFORM == 'darwin':82 base_paths.update(dict(user_home = HOME, -
Portfile
4 4 PortGroup python25 1.0 5 5 6 6 name umit 7 version 0.9.5 -RC27 version 0.9.5 8 8 categories net 9 9 maintainers luis.kop@gmail.com 10 10 description A graphical tool to scanner networks … … 15 15 patchfiles patch-base.diff patch-setup.diff 16 16 master_sites sourceforge:umit 17 17 18 checksums md5 d781b415b7d9398cc6c1f41631f8a7f5\19 sha1 8c2a244149ef5da8f1492755161651bde93adcee\20 rmd160 48121916e6d469072da669de8099a075d336ebc218 checksums md5 f4c63b19d22e9f7d78458b3409d440ad \ 19 sha1 0d49f306e7482a83924966559d0f711cd82b57bd \ 20 rmd160 ad03c62e7e2fe8884945b74f24601c913dd0ab18 21 21 22 22 depends_lib port:coreutils\ 23 23 port:nmap \