--- umit-0.9.5.orig/debian/umit.desktop +++ umit-0.9.5/debian/umit.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Umit Network Scanner +GenericName=Network Scanner +Comment=Explore the network and scan ports +Icon=/usr/share/pixmaps/umit/umit_ico_48px.svg +Exec=umit +Terminal=false +Type=Application +Categories=Network; --- umit-0.9.5.orig/debian/menu +++ umit-0.9.5/debian/menu @@ -0,0 +1,3 @@ +?package(umit): needs="X11" section="Applications/Network" \ + title="Umit Network Scanner" command="/usr/bin/umit" \ + icon="/usr/share/pixmaps/umit/umit-menu.xpm" --- umit-0.9.5.orig/debian/changelog +++ umit-0.9.5/debian/changelog @@ -0,0 +1,5 @@ +umit (0.9.5-0ubuntu1) intrepid; urgency=low + + * Initial release (LP: #243532) + + -- Luis A. Bastiao Silva Tue, 05 Aug 2008 18:48:42 +0100 --- umit-0.9.5.orig/debian/compat +++ umit-0.9.5/debian/compat @@ -0,0 +1 @@ +5 --- umit-0.9.5.orig/debian/pycompat +++ umit-0.9.5/debian/pycompat @@ -0,0 +1 @@ +2 --- umit-0.9.5.orig/debian/copyright +++ umit-0.9.5/debian/copyright @@ -0,0 +1,98 @@ +This package was debianized by Luis A. Bastião Silva on +Mon, 05 Aug 2008 21:08:14 +0100. + +It was downloaded from http://downloads.sourceforge.net/umit/ + +Upstream Author: + + Adriano Monteiro Marques + Cleber Rodrigues + Frederico Silva Ribeiro + Guilherme Polo + Martin v. Löwis + + +Copyright: + + Copyright © 2005-2006 Insecure.Com LLC. + Copyright © 2007-2008 Adriano Monteiro Marques + + +License: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +Files inside higwidgets/ are under LGPLv2.1 +On Debian/Ubuntu systems the full text of the LGPL version 2.1 can be found in +/usr/share/common-licenses/LGPL-2.1 + +File utils/msgfmt.py is under PSF LICENSE v2, which is reproduced below: + +PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 +-------------------------------------------- + +1. This LICENSE AGREEMENT is between the Python Software Foundation +("PSF"), and the Individual or Organization ("Licensee") accessing and +otherwise using this software ("Python") in source or binary form and +its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, PSF +hereby grants Licensee a nonexclusive, royalty-free, world-wide +license to reproduce, analyze, test, perform and/or display publicly, +prepare derivative works, distribute, and otherwise use Python +alone or in any derivative version, provided, however, that PSF's +License Agreement and PSF's notice of copyright, i.e., "Copyright (c) +2001, 2002, 2003, 2004, 2005, 2006, 2007 Python Software Foundation; +All Rights Reserved" are retained in Python alone or in any derivative +version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python. + +4. PSF is making Python available to Licensee on an "AS IS" +basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between PSF and +Licensee. This License Agreement does not grant permission to use PSF +trademarks or trade name in a trademark sense to endorse or promote +products or services of Licensee, or any third party. + +8. By copying, installing or otherwise using Python, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + + +The Debian packaging is © 2008, Luis A. Bastião Silva and +is licensed under version 2 of the GPL, see `/usr/share/common-licenses/GPL-2'. --- umit-0.9.5.orig/debian/control +++ umit-0.9.5/debian/control @@ -0,0 +1,23 @@ +Source: umit +Section: net +Priority: optional +Maintainer: Ubuntu MOTU Developers +Build-Depends: debhelper (>= 5), python, cdbs (>= 0.4.49) +Build-Depends-Indep: python-central (>= 0.6.1) +XSBC-Original-Maintainer: Luis A. Bastiao Silva +XS-Python-Version: current +Standards-Version: 3.8.0 +Homepage: http://www.umitproject.org + +Package: umit +Architecture: all +Depends: ${python:Depends}, python-gnome2-extras, nmap (>= 4.50), python-gtk2, python-pysqlite2, python-gobject +XB-Python-Version: ${python:Versions} +Recommends: python-psyco +Description: network tool and graphical frontend for nmap + Scan the hosts in your network discovering open ports and the services and + operating systems that they are running. + . + With umit, you have all the power provided by nmap through its regular + command line interface, and a lot more, in a highly usable and portable + graphical interface. --- umit-0.9.5.orig/debian/rules +++ umit-0.9.5/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pycentral + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_INSTALL_MANPAGES_umit = debian/umit.1 +DEB_PYTHON_INSTALL_ARGS_ALL = --install-lib=usr/share/umit + +clean:: + rm -rf build + find share/locale -name "umit.mo" -exec rm {} \; + +install/umit:: + # Silent lintian warnings + chmod -x debian/umit/usr/share/pixmaps/umit/* + chmod -x debian/umit/usr/share/umit/config/* + chmod -x debian/umit/usr/share/umit/misc/* + chmod -x debian/umit/usr/share/umit/umitCore/* + chmod -x debian/umit/usr/share/umit/*egg* + find debian/umit/usr/share/locale -name "umit.mo" -exec chmod -x {} \; + rm -rf debian/umit/usr/lib/python-support --- umit-0.9.5.orig/debian/umit.1 +++ umit-0.9.5/debian/umit.1 @@ -0,0 +1,40 @@ +.TH UMIT 1 "August 07, 2008" + +.SH NAME +umit \- network tool and port scanner + +.SH SYNOPSIS +\fBumit\fP + +.SH DESCRIPTION +\fBumit\fP scans the hosts in your network discovering open ports and the +services and operating systems that they are running. +.PP +With \fBumit\fP, you have all the power provided by \fBnmap\fP +through its regular command line interface, and a lot more, in a highly usable +and portable graphical interface. A regular user will be able to +construct powerful scans with \fBumit\fP's command creatiop wizards. + +.SH FILES +.TP +~/.umit +Stores configuration settings for \fBumit\fP. + +.SH BUGS +Please report bugs at http://trac.umitproject.org. + +.SH SEE ALSO +http://www.umitproject.org + +.SH AUTHORS +Adriano Monteiro Marques + +Cleber Rodrigues + +Frederico Silva Ribeiro + +Guilherme Polo + + +This manual page was written by Luis A. Bastião Silva . + --- umit-0.9.5.orig/debian/install +++ umit-0.9.5/debian/install @@ -0,0 +1 @@ +debian/*.desktop usr/share/applications/ --- umit-0.9.5.orig/debian/watch +++ umit-0.9.5/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/umit/umit-(0|1)\.([0-9])\.([0-9])\.tar\.gz --- umit-0.9.5.orig/debian/patches/setup.patch +++ umit-0.9.5/debian/patches/setup.patch @@ -0,0 +1,61 @@ +--- setup.py.orig 2008-08-05 18:42:17.000000000 +0100 ++++ setup.py 2008-08-07 01:09:45.000000000 +0100 +@@ -44,6 +44,8 @@ + icons_dir = os.path.join('share', 'icons', 'umit') + locale_dir = os.path.join('share', 'locale') + config_dir = os.path.join('share', 'umit', 'config') ++docs_dir_r = os.path.join('share', 'doc', 'umit', 'html') ++docs_dir_s = os.path.join('share', 'doc', 'umit', 'html', 'screenshots') + docs_dir = os.path.join('share', 'doc', 'umit') + misc_dir = os.path.join('share', 'umit', 'misc') + +@@ -81,12 +83,12 @@ + + (misc_dir, glob(os.path.join(misc_dir, '*.dmp'))), + +- (icons_dir, glob(os.path.join('share', 'icons', 'umit', +- '*.ico'))+ +- glob(os.path.join('share', 'icons', 'umit', +- '*.png'))), ++ #(icons_dir, glob(os.path.join('share', 'icons', 'umit', ++ # '*.ico'))+ ++ # glob(os.path.join('share', 'icons', 'umit', ++ # '*.png'))), + +- (docs_dir, glob(os.path.join(docs_dir, '*.html'))+ ++ (docs_dir_r, glob(os.path.join(docs_dir, '*.html'))+ + glob(os.path.join(docs_dir, + 'comparing_results', '*.xml'))+ + glob(os.path.join(docs_dir, +@@ -96,9 +98,9 @@ + glob(os.path.join(docs_dir, + 'searching', '*.xml'))+ + glob(os.path.join(docs_dir, +- 'wizard', '*.xml'))+ +- glob(os.path.join(docs_dir, +- 'screenshots', '*.png')))] ++ 'wizard', '*.xml'))), ++ ++ (docs_dir_s, glob(os.path.join(docs_dir,'screenshots', '*.png')))] + + # Add i18n files to data_files list + os.path.walk(locale_dir, mo_find, data_files) +@@ -141,8 +143,8 @@ + + self.set_perms() + self.set_modules_path() +- self.fix_paths() +- self.create_uninstaller() ++ #self.fix_paths() ++ #self.create_uninstaller() + self.finish_banner() + + def create_uninstaller(self): +@@ -197,6 +199,7 @@ + if re_sys.match(ucontent[line]): + uline = line + 1 + break ++ modules = "/usr/share/umit" + + ucontent.insert(uline, "sys.path.append('%s')\n" % modules) + --- umit-0.9.5.orig/debian/patches/paths.patch +++ umit-0.9.5/debian/patches/paths.patch @@ -0,0 +1,22 @@ +--- umitCore/BasePaths.py.orig 2008-08-05 18:42:34.000000000 +0100 ++++ umitCore/BasePaths.py 2008-08-05 18:38:55.000000000 +0100 +@@ -38,12 +38,13 @@ + if hasattr(sys, "frozen"): + main_dir = os.path.dirname(sys.executable) + +-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") ++CONFIG_DIR = "/usr/share/umit/config" ++LOCALE_DIR = "/usr/share/locale" ++MISC_DIR = "/usr/share/umit/misc" ++ICONS_DIR = "/usr/share/icons/umit" ++PIXMAPS_DIR = "/usr/share/pixmaps/umit" ++DOCS_DIR = "/usr/share/doc/umit/html" ++ + + base_paths = dict(config_file = 'umit.conf', + config_dir = '.umit', --- umit-0.9.5.orig/debian/patches/root.patch +++ umit-0.9.5/debian/patches/root.patch @@ -0,0 +1,37 @@ +--- umitGUI/MainWindow.py.orig 2008-08-07 16:55:51.000000000 +0100 ++++ umitGUI/MainWindow.py 2008-08-07 17:51:09.000000000 +0100 +@@ -1016,11 +1016,32 @@ + warning_text = _('''You are trying to run Umit with a non-root user!\n + Some nmap options need root privileges to work.''') + +- HIGAlertDialog.__init__(self, message_format=_('Non root user'), ++ HIGAlertDialog.__init__(self, buttons=gtk.BUTTONS_NONE, message_format=_('Non root user'), + secondary_text=warning_text) +- ++ root = gtk.Button('Run as Root') ++ cont = gtk.Button('Continue') ++ root.connect("clicked", self.run_as_root) ++ cont.connect("clicked", self.contin) ++ box = HIGHBox() ++ box.pack_end(cont) ++ box.pack_end(root) ++ self.vbox.pack_start(box) ++ root.show() ++ cont.show() ++ cont.grab_focus() ++ box.show_all() + self.run() + self.destroy() ++ def run_as_root(self, w): ++ ++ self.destroy() ++ import gksu2 ++ gksu2.sudo('umit') ++ ++ sys.exit(0) ++ ++ def contin(self,w): ++ self.destroy() + + class NonValidTarget (HIGAlertDialog): + """ Alert for bad nmap option"""