[38112] trunk/dports/net
raimue at macports.org
raimue at macports.org
Sun Jul 6 16:44:22 PDT 2008
Revision: 38112
http://trac.macosforge.org/projects/macports/changeset/38112
Author: raimue at macports.org
Date: 2008-07-06 16:44:22 -0700 (Sun, 06 Jul 2008)
Log Message:
-----------
net/umit:
New port, closes #15860.
Added Paths:
-----------
trunk/dports/net/umit/
trunk/dports/net/umit/Portfile
trunk/dports/net/umit/files/
trunk/dports/net/umit/files/patch-base.diff
trunk/dports/net/umit/files/patch-setup.diff
Added: trunk/dports/net/umit/Portfile
===================================================================
--- trunk/dports/net/umit/Portfile (rev 0)
+++ trunk/dports/net/umit/Portfile 2008-07-06 23:44:22 UTC (rev 38112)
@@ -0,0 +1,31 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+name umit
+version 0.9.5-RC2
+categories net
+maintainers luis.kop at gmail.com
+description A graphical tool to scanner networks
+homepage http://www.umitproject.org/
+platforms darwin freebsd
+long_description Umit is a graphical scanner.
+
+patchfiles patch-base.diff patch-setup.diff
+master_sites sourceforge:umit
+
+checksums md5 d781b415b7d9398cc6c1f41631f8a7f5 \
+ sha1 8c2a244149ef5da8f1492755161651bde93adcee \
+ rmd160 48121916e6d469072da669de8099a075d336ebc2
+
+depends_lib port:coreutils\
+ port:nmap \
+ port:py25-gtk\
+ port:py25-sqlite3
+
+use_bzip2 yes
+
+post-patch {
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/umitCore/BasePaths.py
+}
Property changes on: trunk/dports/net/umit/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/net/umit/files/patch-base.diff
===================================================================
--- trunk/dports/net/umit/files/patch-base.diff (rev 0)
+++ trunk/dports/net/umit/files/patch-base.diff 2008-07-06 23:44:22 UTC (rev 38112)
@@ -0,0 +1,82 @@
+--- umitCore/BasePaths.py.orig 2008-07-03 17:30:17.000000000 +0100
++++ umitCore/BasePaths.py 2008-07-03 17:48:56.000000000 +0100
+@@ -36,14 +36,16 @@
+ # directory.
+ main_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
+ if hasattr(sys, "frozen"):
+- main_dir = os.path.dirname(sys.executable)
++ main_dir = dirname(sys.executable)
++
++CONFIG_DIR = "__PREFIX__/share/umit/config"
++LOCALE_DIR = "__PREFIX__/share/locale"
++MISC_DIR = "__PREFIX__/share/umit/misc"
++ICONS_DIR = "__PREFIX__/share/icons/umit"
++PIXMAPS_DIR = "__PREFIX__/share/pixmaps/umit"
++DOCS_DIR = "__PREFIX__/share/doc/umit"
++
+
+-CONFIG_DIR = os.path.join(main_dir, "share", "umit", "config")
+-LOCALE_DIR = os.path.join(main_dir, "share", "locale")
+-MISC_DIR = os.path.join(main_dir, "share", "umit", "misc")
+-ICONS_DIR = os.path.join(main_dir, "share", "icons", "umit")
+-PIXMAPS_DIR = os.path.join(main_dir, "share", "pixmaps", "umit")
+-DOCS_DIR = os.path.join(main_dir, "share", "doc", "umit")
+
+ base_paths = dict(config_file = 'umit.conf',
+ config_dir = '.umit',
+@@ -56,17 +58,17 @@
+ options = 'options.xml',
+ umit_opf = 'umit.opf',
+ umit_opt = 'umit.opt',
+- pixmaps_dir = PIXMAPS_DIR,
+- i18n_dir = LOCALE_DIR,
++ pixmaps_dir = os.path.join('share', 'pixmaps'),
++ i18n_dir = os.path.join('share','locale'),
+ i18n_message_file = 'umit.mo',
+ scan_results_extension = 'usr', # comes from umit scan result
+ scan_profile_extension = 'usp', # comes from umit scan profile
+ user_home = HOME,
+ basic_search_sequence = [HOME, CURRENT_DIR],
+ config_search_sequence = [HOME, CURRENT_DIR],
+- pixmaps_search_sequence = [os.path.join(CURRENT_DIR, PIXMAPS_DIR),
++ pixmaps_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'pixmaps'),
+ HOME],
+- i18n_search_sequence = [os.path.join(CURRENT_DIR, LOCALE_DIR), HOME],
++ i18n_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'locale'), HOME],
+ umitdb = "umit.db",
+ services = "nmap-services",
+ services_dump = "services.dmp",
+@@ -83,25 +85,27 @@
+ '/opt/umit', HOME, CURRENT_DIR],
+ config_search_sequence = [os.path.join(HOME, base_paths['config_dir']),
+ CURRENT_DIR, '/etc'],
+- pixmaps_search_sequence = [os.path.join(CURRENT_DIR, PIXMAPS_DIR),
+- '/usr/share/pixmaps/umit',
++ pixmaps_search_sequence = [os.path.join(CURRENT_DIR,
++ 'share',
++ 'pixmaps'),
++ '/usr/share/pixmaps',
+ '/opt/umit', HOME],
+- i18n_search_sequence = [os.path.join(CURRENT_DIR, LOCALE_DIR),
++ i18n_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'locale'),
+ '/usr/share/locale',
+ HOME, CURRENT_DIR]))
+ elif PLATFORM == 'win32':
+ PROGRAM_FILES = os.environ.get("PROGRAMFILES", "\\")
+ UMIT_DIR = os.path.join(PROGRAM_FILES, "Umit")
+- PIXMAPS_DIR = os.path.join(UMIT_DIR, PIXMAPS_DIR)
++ PIXMAPS_DIR = os.path.join(UMIT_DIR, 'share', 'pixmaps')
+
+ base_paths.update(dict(\
+ basic_search_sequence = [UMIT_DIR, PROGRAM_FILES, HOME, CURRENT_DIR],
+ config_search_sequence = [UMIT_DIR, PROGRAM_FILES, HOME, CURRENT_DIR],
+ pixmaps_search_sequence = [PIXMAPS_DIR, PROGRAM_FILES,
+- os.path.join(CURRENT_DIR, PIXMAPS_DIR),
++ os.path.join(CURRENT_DIR, 'share', 'pixmaps'),
+ HOME],
+ i18n_search_sequence = [UMIT_DIR, PROGRAM_FILES,
+- os.path.join(CURRENT_DIR, LOCALE_DIR), HOME],))
++ os.path.join(CURRENT_DIR, 'share', 'locale'), HOME],))
+
+ elif PLATFORM == 'darwin':
+ base_paths.update(dict(user_home = HOME,
Added: trunk/dports/net/umit/files/patch-setup.diff
===================================================================
--- trunk/dports/net/umit/files/patch-setup.diff (rev 0)
+++ trunk/dports/net/umit/files/patch-setup.diff 2008-07-06 23:44:22 UTC (rev 38112)
@@ -0,0 +1,20 @@
+Index: setup.py
+===================================================================
+--- setup.py (revision 2980)
++++ setup.py (working copy)
+@@ -105,7 +105,7 @@
+
+ self.set_perms()
+ self.set_modules_path()
+- self.fix_paths()
++ #self.fix_paths()
+ self.create_uninstaller()
+ self.finish_banner()
+
+@@ -270,4 +270,4 @@
+ packages = ['', 'umitCore', 'umitGUI', 'higwidgets'],
+ data_files = data_files,
+ cmdclass = {"install":umit_install,
+- "sdist":umit_sdist})
+\ No newline at end of file
++ "sdist":umit_sdist})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080706/00c102d5/attachment.html
More information about the macports-changes
mailing list