--- gmail-notify-1.6.1.orig/debian/changelog +++ gmail-notify-1.6.1/debian/changelog @@ -0,0 +1,20 @@ +gmail-notify (1.6.1-3) unstable; urgency=low + + * Chance default x-www-browser to www-browser (closes: #389532) + + -- Joseph Smidt Thu, 28 Sep 2006 19:59:36 -0600 + +gmail-notify (1.6.1-2) unstable; urgency=low + + *Add x-www-browser as default web browser + change arch: any to arch all + Update dependency on python2.4* to python* since python2.4 is default + + -- Joseph Smidt Fri, 22 Sep 2006 18:52:03 -0600 + +gmail-notify (1.6.1-1) unstable; urgency=low + + * Initial release (Closes: #369625) + + -- Joseph Smidt Mon, 3 Jul 2006 10:43:33 -0600 + --- gmail-notify-1.6.1.orig/debian/compat +++ gmail-notify-1.6.1/debian/compat @@ -0,0 +1 @@ +5 --- gmail-notify-1.6.1.orig/debian/patches/04_www-browser.patch +++ gmail-notify-1.6.1/debian/patches/04_www-browser.patch @@ -0,0 +1,11 @@ +--- GmailConfig.py 2005-09-25 11:12:11.000000000 -0600 ++++ GmailConfig2.py 2006-09-22 19:01:21.000000000 -0600 +@@ -18,7 +18,7 @@ + configElements = None + + # Declare global variables for configuration as dictionary +- options = { "gmailusername":None, "gmailpassword":None, "browserpath":"firefox", "lang":"English", ++ options = { "gmailusername":None, "gmailpassword":None, "browserpath":"www-browser", "lang":"English", + "voffset":0, "hoffset":0, "checkinterval":20000, + "animationdelay":15, "popuptimespan":5000} + --- gmail-notify-1.6.1.orig/debian/patches/02_trayicon.patch +++ gmail-notify-1.6.1/debian/patches/02_trayicon.patch @@ -0,0 +1,20 @@ +--- gmail-notify-1.6.1/notifier.py.old 2005-10-08 17:39:28.897190568 +0200 ++++ gmail-notify-1.6.1/notifier.py 2005-10-08 17:39:48.163261680 +0200 +@@ -6,7 +6,7 @@ + import gtk + import time + import os +-import pytrayicon ++from egg.trayicon import TrayIcon + import sys + import warnings + import ConfigParser +@@ -82,7 +82,7 @@ + self.popuptimer=0 + self.waittimer=0 + # Create the tray icon object +- self.tray = pytrayicon.TrayIcon(self.lang.get_string(21)); ++ self.tray = TrayIcon(self.lang.get_string(21)); + self.eventbox = gtk.EventBox() + self.tray.add(self.eventbox) + self.eventbox.connect("button_press_event", self.tray_icon_clicked) --- gmail-notify-1.6.1.orig/debian/patches/03_password_fixes.patch +++ gmail-notify-1.6.1/debian/patches/03_password_fixes.patch @@ -0,0 +1,15 @@ +diff -Nur gmail-notify-1.6.1/GmailConfig.py gmail-notify-1.6.1.new/GmailConfig.py +--- gmail-notify-1.6.1/GmailConfig.py 2005-09-25 19:12:11.000000000 +0200 ++++ gmail-notify-1.6.1.new/GmailConfig.py 2006-04-09 00:06:01.000000000 +0200 +@@ -237,7 +237,10 @@ + self.config.remove_option( "options", "gmailusername" ) + self.config.remove_option( "options", "gmailpassword" ) + +- self.config.write( open( self.loadedConfig, 'w' ) ) ++ fd = open( self.loadedConfig, 'w' ) ++ os.chmod( self.loadedConfig, 0600) ++ self.config.write( fd ) ++ fd.close() + gtk.main_quit() + self.hide() + else: --- gmail-notify-1.6.1.orig/debian/patches/01_fixes.patch +++ gmail-notify-1.6.1/debian/patches/01_fixes.patch @@ -0,0 +1,51 @@ +--- gmail-notify-1.6.1/GmailConfig.py.old 2005-10-08 17:25:08.422002680 +0200 ++++ gmail-notify-1.6.1/GmailConfig.py 2005-10-08 17:26:05.778283200 +0200 +@@ -9,8 +9,8 @@ + import xmllangs + import sys + +-LANGSXML_PATH=sys.path[0]+"/langs.xml" +-ICON_PATH=sys.path[0]+"/gmail-notify-icon.png" ++LANGSXML_PATH="/usr/share/apps/gmail-notify/langs.xml" ++ICON_PATH="/usr/share/apps/gmail-notify/gmail-notify-icon.png" + + class GmailConfigWindow: + +@@ -131,12 +131,12 @@ + # Attach combobox and label + table.attach( self.lbl_langs, 0, 1, 8, 9 ) + self.lbl_langs.show() +- table.attach( self.cbo_langs, 1, 2, 8, 9, ypadding=5 ) ++ table.attach( self.cbo_langs, 1, 2, 8, 9, xpadding=5, ypadding=5 ) + self.cbo_langs.show() + + # Add 'Close' button + button = gtk.Button( stock=gtk.STOCK_OK ) +- table.attach( button, 0, 2, 10, 11, ypadding=2 ) ++ table.attach( button, 0, 2, 10, 11, xpadding=2, ypadding=2 ) + button.connect( "clicked", self.onOkay ) + button.show() + +--- gmail-notify-1.6.1/notifier.py.old 2005-10-08 17:26:24.603421344 +0200 ++++ gmail-notify-1.6.1/notifier.py 2005-10-08 17:27:34.491796696 +0200 +@@ -8,6 +8,7 @@ + import os + import pytrayicon + import sys ++sys.path.insert (0, "/usr/lib/gmail-notify/") + import warnings + import ConfigParser + import xmllangs +@@ -15,9 +16,9 @@ + import GmailPopupMenu + import gmailatom + +-BKG_PATH=sys.path[0]+"/background.jpg" +-ICON_PATH=sys.path[0]+"/icon.png" +-ICON2_PATH=sys.path[0]+"/icon2.png" ++BKG_PATH="/usr/share/apps/gmail-notify/background.jpg" ++ICON_PATH="/usr/share/apps/gmail-notify/icon.png" ++ICON2_PATH="/usr/share/apps/gmail-notify/icon2.png" + + def removetags(text): + raw=text.split("") --- gmail-notify-1.6.1.orig/debian/scripts/gmail-notify +++ gmail-notify-1.6.1/debian/scripts/gmail-notify @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/lib/gmail-notify +./notifier.py --- gmail-notify-1.6.1.orig/debian/control +++ gmail-notify-1.6.1/debian/control @@ -0,0 +1,15 @@ +Source: gmail-notify +Section: mail +Priority: optional +Maintainer: Joseph Smidt +Build-Depends: cdbs, debhelper (>= 5.0.37.2) ,patchutils (>= 0.2.25),python +Standards-Version: 3.7.2 + +Package: gmail-notify +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends},${python:Depends}, python-gtk2, python-gnome2-extras +Recommends: www-browser +Description: A Gmail Notifier + Gmail Notifier is a Linux alternative for the notifier program released + by Google, it is written in Python and provides an attractive and + simple way to check for new mail messages. --- gmail-notify-1.6.1.orig/debian/docs +++ gmail-notify-1.6.1/debian/docs @@ -0,0 +1 @@ +README --- gmail-notify-1.6.1.orig/debian/rules +++ gmail-notify-1.6.1/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses cdbs. Originaly written by Robert Millan. +# This file is public domain. + +export DH_VERBOSE=1 + +# Add here any variable or target overrides you need + + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + + +install/gmail-notify:: + chmod -x notifier.conf.sample + dh_install + dh_installman debian/gmail-notify.1 + +binary/gmail-notify:: + dh_desktop + +binary-fixup/gmail-notify:: + dh_python + +clean:: + --- gmail-notify-1.6.1.orig/debian/copyright +++ gmail-notify-1.6.1/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Joseph Smidt on +Mon, 3 Jul 2006 10:43:33 -0600. + +It was downloaded from http://gmail-notify.sourceforge.net/ + +Copyright Holder: 2004,2005 John Winter + +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 file. + + --- gmail-notify-1.6.1.orig/debian/extras/icon.xpm +++ gmail-notify-1.6.1/debian/extras/icon.xpm @@ -0,0 +1,43 @@ +/* XPM */ +static char *icon[] = { +/* columns rows colors chars-per-pixel */ +"32 32 5 1", +" c #B64F53", +". c #E7DFE4", +"X c #E6E6E6", +"o c gray100", +"O c None", +/* pixels */ +"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", +"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", +"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", +"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", +"OOOO ................ OOOO", +"OOO oooooooooooooo OOO", +"OO oooooooooooo OO", +"OO oooooooooo OO", +"OO oooooooo OO", +"OO oooooo OO", +"OO o oooo o OO", +"OO oo oo oo OO", +"OO ooo ooo OO", +"OO oooo oooo OO", +"OO ooooo ooooo OO", +"OO oooooo oooooo OO", +"OO ooooooo ooooooo OO", +"OO oooooooo oooooooo OO", +"OO ooooooooo ooooooooo OO", +"OO oooooooo.oo.oooooooo OO", +"OO ooooooo.oooo.ooooooo OO", +"OO oooooo.oooooo.oooooo OO", +"OO ooooo.oooooooo.ooooo OO", +"OO oooo.oooooooooo.oooo OO", +"OO ooo.oooooooooooo.ooo OO", +"OO oo.oooooooooooooo.oo OO", +"OO o.oooooooooooooooo.o OO", +"OO .oooooooooooooooooo. OO", +"OOO OOO", +"OOOO OOOO", +"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", +"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO" +}; --- gmail-notify-1.6.1.orig/debian/gmail-notify.1 +++ gmail-notify-1.6.1/debian/gmail-notify.1 @@ -0,0 +1,40 @@ +.TH gmail-notify 1 "May 31, 2006" +. +.SH NAME +gmail-notify \- A Gmail Notifier +. +.SH SYNOPSIS +.B gmail-notify +. +.SH DESCRIPTION +.B gmail-notify +Gmail Notifier is a Linux alternative for the notifier program released +by Google, it is written in Python and provides an attractive and +simple way to check for new mail messages. + +Open the notifier.conf file in your favourite text editor and edit the configuration options to match your system. Below is an explanation of each option: (See notifer.conf.sample located in the /usr/share/doc/gmail-notify directory for a helpful example) + +gmailusername - fairly self explanatory, must be without the @gmail.com at the end + +gmailpassword - obvious + +browserpath - this is the full path to the browser that you want Gmail Notifier to open when you click the popup to goto your Gmail inbox + +voffset - this is the amount (in pixels) the popup will be displaced from the bottom of the screen, it will almost definately need changing to suit your system, ideally, you want it to look like it came out of the bar along the bottom of the screen the best way to adjust it is to run it initially with the default value and then add/remove from it then test again. Higher values result in the popup appearing higher up the screen. + +hoffset - same as above only this is the amount the popup will be displaced from the side of the screen. Higher values will displace it more to the left of the screen. + +checkinterval - this is how often Gmail Notifier will check for new mail (in ms), do NOT set it lower than 20000 (20 seconds), or the libgmail library will not keep up, causing many strange side effects. If you need to check your mail more than once every 20 seconds, then chances are your famous and don't have time to read your mail anyway. + +animationdelay - this is the amount of time (in ms) that Gmail Notifier will wait before moving the popup up one step, when the popup is popping up, to high values will cause the animation to be jerky, to low values will cause tearing at the bottom of the popup. 15ms seems about right. Only small adjustments are necercery, best thing is to leave it alone. + +popuptimespan - this is the amount of time before the popup will dissappear again after popping up you can set this to whatever you want + +. +.SH Web Page +http://gmail-notify.sourceforge.net/ +. +.SH AUTHOR +John Winter +. +.\" EOF --- gmail-notify-1.6.1.orig/debian/gmail-notify.install +++ gmail-notify-1.6.1/debian/gmail-notify.install @@ -0,0 +1,9 @@ +*.py* usr/lib/gmail-notify/ +*.xml usr/share/apps/gmail-notify/ +notifier.conf.sample usr/share/doc/gmail-notify +debian/scripts/gmail-notify usr/bin/ +debian/extras/* usr/share/apps/gmail-notify/ +*.png usr/share/apps/gmail-notify/ +*.jpg usr/share/apps/gmail-notify/ +debian/gmail-notify.desktop usr/share/applications/ +gmail-notify-icon.png usr/share/pixmaps/ --- gmail-notify-1.6.1.orig/debian/gmail-notify.desktop +++ gmail-notify-1.6.1/debian/gmail-notify.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Gmail Notify +GenericName=Gmail Notify +Comment=New Gmail notification tool +Icon=gmail-notify-icon.png +Exec=gmail-notify +Terminal=false +Categories=Application;Network; --- gmail-notify-1.6.1.orig/debian/menu +++ gmail-notify-1.6.1/debian/menu @@ -0,0 +1,4 @@ +?package(gmail-notify):needs="X11" section="Apps/Net" title="GMail Notifier" \ + command="/usr/bin/gmail-notify" \ + icon="/usr/share/apps/gmail-notify/icon.xpm" + --- gmail-notify-1.6.1.orig/debian/pycompat +++ gmail-notify-1.6.1/debian/pycompat @@ -0,0 +1 @@ +2