--- umit-0.9.5.orig/debian/changelog +++ umit-0.9.5/debian/changelog @@ -0,0 +1,60 @@ +umit (0.9.5-0ubuntu6) trusty; urgency=medium + + * Port to dh_python2. + + -- Dimitri John Ledkov Sun, 26 Jan 2014 22:13:39 +0000 + +umit (0.9.5-0ubuntu5) quantal; urgency=low + + * debian/patches/root.patch: + - Update to call gksu directly instead of via python-gksu2 + * debian/control: + - Drop python-gksu2, as it is NBS, in favor of gksu + + -- Michael Terry Thu, 05 Jul 2012 14:05:44 -0400 + +umit (0.9.5-0ubuntu4) lucid; urgency=low + + * debian/rules: + - Add --prefix=/usr to install args to fix FTBFS. + * debian/control: + - Bump debhelper build-dependency. + - Bump Standards. + - Add ${misc:Depends} macro to Depends field. + * debian/menu: + - Move to Applications/Network/Monitoring to make lintian happy, the + Applications/Network section is intended only as a menu root. + * Register the HTML documentation with doc-base. + + -- Alessio Treglia Sat, 19 Dec 2009 11:00:52 +0100 + +umit (0.9.5-0ubuntu3) lucid; urgency=low + + * debian/control: + - Depend on python-gksu2 rather than python-gnome2-extras. The latter + package has been split and no longer exists. + + -- Chris Coulson Tue, 15 Dec 2009 21:34:49 +0000 + +umit (0.9.5-0ubuntu2) intrepid; urgency=low + + * debian/patches/bugregister.patch: When an automatic bug report was filed + in trac the developers were not able to close it. This is fixed by + setting the bug to new when it is filed. + - http://trac.umitproject.org/ticket/44 + - debian/patches/setup.patch: Put the modules dir at the start of + sys.path so that it is not overriden by other things in the path + (LP: #264750) + - http://trac.umitproject.org/changeset/3742 + * debian/patches/root.patch: Catch gobject.GError to prevent cancelling + gksu causing a traceback, and hence a bug to be filed automatically. + - fixed extraports warning: Scans made with extraports used was crashing + with a traceback (http://trac.umitproject.org/changeset/3628). + + -- Luis A. Bastiao Silva Thu, 04 Sep 2008 16:18:23 +0100 + +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/control +++ umit-0.9.5/debian/control @@ -0,0 +1,27 @@ +Source: umit +Section: net +Priority: optional +Maintainer: Ubuntu Developers +Build-Depends: debhelper (>= 5.0.38), python, cdbs (>= 0.4.49) +Build-Depends-Indep: dh-python +XSBC-Original-Maintainer: Luis A. Bastiao Silva +Standards-Version: 3.8.3 +Homepage: http://www.umitproject.org + +Package: umit +Architecture: all +Depends: ${python:Depends}, + gksu, + nmap (>= 4.50), + python-gtk2, + python-pysqlite2, + python-gobject, + ${misc:Depends} +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/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/install +++ umit-0.9.5/debian/install @@ -0,0 +1 @@ +debian/*.desktop usr/share/applications/ --- umit-0.9.5.orig/debian/menu +++ umit-0.9.5/debian/menu @@ -0,0 +1,3 @@ +?package(umit): needs="X11" section="Applications/Network/Monitoring" \ + title="Umit Network Scanner" command="/usr/bin/umit" \ + icon="/usr/share/pixmaps/umit/umit-menu.xpm" --- umit-0.9.5.orig/debian/patches/bugregister.patch +++ umit-0.9.5/debian/patches/bugregister.patch @@ -0,0 +1,13 @@ +Index: umitCore/BugRegister.py +=================================================================== +--- umitCore/BugRegister.py (revision 3378) ++++ umitCore/BugRegister.py (working copy) +@@ -86,6 +86,8 @@ + "cc":self.cc, + "reporter":self.reporter, + "attachment":self.input_file, ++ "status":"new", ++ "action":"create", + "submit":self.submit}) + + request = urllib2.Request(trac_new_ticket, data) --- umit-0.9.5.orig/debian/patches/extraports.patch +++ umit-0.9.5/debian/patches/extraports.patch @@ -0,0 +1,20 @@ +Index: umitCore/NmapParser.py +=================================================================== +--- umitCore/NmapParser.py (revision 3610) ++++ umitCore/NmapParser.py (working copy) +@@ -331,6 +331,7 @@ + osmatch = property(get_osmatch, set_osmatch) + ports = property(get_ports, set_ports) + ports_used = property(get_ports_used, set_ports_used) ++ extraports = property(get_extraports, set_extraports) + uptime = property(get_uptime, set_uptime) + hostnames = property(get_hostnames, set_hostnames) + tcptssequence = property(get_tcptssequence, set_tcptssequence) +@@ -348,6 +349,7 @@ + _osmatch = [] + _ports = [] + _ports_used = [] ++ _extraports = [] + _uptime = {} + _hostnames = [] + _tcptssequence = {} --- 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,35 @@ +--- umitGUI/MainWindow.py.orig 2008-09-30 22:33:05.000000000 +0100 ++++ umitGUI/MainWindow.py 2008-09-30 22:13:03.000000000 +0100 +@@ -1016,11 +1016,30 @@ + 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() ++ os.execl("/usr/bin/gksu", "/usr/bin/gksu", "umit") ++ sys.exit(0) ++ ++ def contin(self,w): ++ self.destroy() + + class NonValidTarget (HIGAlertDialog): + """ Alert for bad nmap option""" --- umit-0.9.5.orig/debian/patches/setup.patch +++ umit-0.9.5/debian/patches/setup.patch @@ -0,0 +1,63 @@ +--- setup.py.orig 2008-09-30 21:42:12.000000000 +0100 ++++ setup.py 2008-09-30 21:46:18.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,8 +199,7 @@ + if re_sys.match(ucontent[line]): + uline = line + 1 + break +- +- ucontent.insert(uline, "sys.path.append('%s')\n" % modules) ++ ucontent.insert(uline, "sys.path.insert(0, '/usr/share/umit')\n") + + ufile = open(umit, "w") + ufile.writelines(ucontent) --- umit-0.9.5.orig/debian/rules +++ umit-0.9.5/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +DEB_PYTHON2_MODULE_PACKAGES=umit + +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 --prefix=/usr + +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/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/umit.doc-base +++ umit-0.9.5/debian/umit.doc-base @@ -0,0 +1,8 @@ +Document: umit +Title: Umit Help +Abstract: Documentation reference for Umit. +Section: Network/Monitoring + +Format: HTML +Index: /usr/share/doc/umit/html/help.html +Files: /usr/share/doc/umit/html/* --- 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