Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=01680742c7266aee65f1bd3a711ea3490bb323ce

commit 01680742c7266aee65f1bd3a711ea3490bb323ce
Author: Devil505 <devil505li...@gmail.com>
Date:   Wed Nov 3 10:58:46 2010 +0100

gnome-ppp-0.3.23-4-i686
* fixing up2date
* added usefull patches
* now using gnome-sciptlet schema

diff --git a/source/gnome-extra/gnome-ppp/FrugalBuild 
b/source/gnome-extra/gnome-ppp/FrugalBuild
index ed2ec02..49381e2 100644
--- a/source/gnome-extra/gnome-ppp/FrugalBuild
+++ b/source/gnome-extra/gnome-ppp/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=gnome-ppp
pkgver=0.3.23
-pkgrel=3
+pkgrel=4
pkgdesc="A Gnome frontend to WvDial"
url="http://www.gnomefiles.org/app.php?soft_id=41";
rodepends=('wvdial')
@@ -11,8 +11,15 @@ depends=('gtk+2>=2.20.0-2' 'libglade')
makedepends=('intltool' 'perl-xml-parser')
groups=('gnome-extra')
archs=('i686' 'x86_64')
-up2date="lynx -dump $url | grep -m1 version | sed 's/.*version //'"
-source=(http://frugalware.org/~alex/tarballs/$pkgname-$pkgver.tar.bz2)
-sha1sums=('db6c1981beddb9a9824eaae86f6a410822f9d6b6')
+_F_gnome_desktop="y"
+_F_gnome_iconcache="y"
+Finclude gnome-scriptlet
+up2date="Flasttar http://frugalware.org/~alex/tarballs/";
+source=(http://frugalware.org/~alex/tarballs/$pkgname-$pkgver.tar.bz2 \
+       gnome-ppp-0.3.23-implicit-decl.patch \
+       gnome-ppp-0.3.23-wvdial-notify.patch)
+sha1sums=('db6c1981beddb9a9824eaae86f6a410822f9d6b6' \
+          '35b53939eacc610133923110ad6e639dd551cdaa' \
+          '1f2529b1fc7cf1c088b1369e165a026f357c03d5')

# optimization OK
diff --git a/source/gnome-extra/gnome-ppp/gnome-ppp-0.3.23-implicit-decl.patch 
b/source/gnome-extra/gnome-ppp/gnome-ppp-0.3.23-implicit-decl.patch
new file mode 100644
index 0000000..6a05a89
--- /dev/null
+++ b/source/gnome-extra/gnome-ppp/gnome-ppp-0.3.23-implicit-decl.patch
@@ -0,0 +1,10 @@
+--- src/gnome-ppp-details.c    2005-05-04 01:26:25.000000000 +0300
++++ src/gnome-ppp-details.c    2007-04-14 13:28:30.000000000 +0300
+@@ -31,6 +31,7 @@
+  *    Joe Marcus Clarke  <mar...@freebsd.org>
+  */
+
++#include <unistd.h>
+ #include "gnome-ppp.h"
+
+
diff --git a/source/gnome-extra/gnome-ppp/gnome-ppp-0.3.23-wvdial-notify.patch 
b/source/gnome-extra/gnome-ppp/gnome-ppp-0.3.23-wvdial-notify.patch
new file mode 100644
index 0000000..197558c
--- /dev/null
+++ b/source/gnome-extra/gnome-ppp/gnome-ppp-0.3.23-wvdial-notify.patch
@@ -0,0 +1,83 @@
+--- src/gnome-ppp-connected.c  2005-02-07 23:23:10.000000000 +0200
++++ src/gnome-ppp-connected.c  2007-07-14 09:00:51.000000000 +0300
+@@ -51,6 +51,8 @@
+
+ gboolean on_conn_delete_event (GtkWidget *widget, GdkEvent *event, gpointer 
data)
+ {
++      gnome_ppp.connected.show = FALSE;
++      gtk_widget_hide (gnome_ppp.connected.window);
+       return TRUE;
+ }
+
+--- src/gnome-ppp-wvdial.c     2005-02-01 21:28:25.000000000 +0200
++++ src/gnome-ppp-wvdial.c     2007-07-14 09:01:29.000000000 +0300
+@@ -56,13 +56,13 @@
+
+       g_print ("GNOME PPP: STDERR: %s", line);
+
+-      if (g_strrstr (line, "--> Cannot open") != NULL)
++      if (g_strrstr (line, "Cannot open") != NULL)
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.connecting.msgs), 
_("Can not open modem."));
+
+-      if (g_strrstr (line, "--> Modem not responding") != NULL)
++      if (g_strrstr (line, "Modem not responding") != NULL)
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.connecting.msgs), 
_("Modem not responding."));
+
+-      if (g_strrstr (line, "--> Please enter password") != NULL) {
++      if (g_strrstr (line, "Please enter password") != NULL) {
+               const gchar *password;
+
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.connecting.msgs), 
_("Sending password..."));
+@@ -75,7 +75,7 @@
+               g_io_channel_shutdown (in, TRUE, NULL);
+       }
+
+-      if (g_strrstr (line, "--> Configuration does not specify a valid 
password.") != NULL)
++      if (g_strrstr (line, "Configuration does not specify a valid 
password.") != NULL)
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.connecting.msgs), 
_("No valid password."));
+
+       if (g_strrstr (line, "ATM") != NULL) {
+@@ -90,13 +90,13 @@
+               g_free (message);
+       }
+
+-      if (g_strrstr (line, "--> Carrier detected.  Waiting for prompt.") != 
NULL)
++      if (g_strrstr (line, "Carrier detected.  Waiting for prompt.") != NULL)
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.connecting.msgs), 
_("Waiting for prompt..."));
+
+       if (g_strrstr (line, "Username:") != NULL)
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.connecting.msgs), 
_("Authenticating..."));
+
+-      if (g_strrstr (line, "--> Using interface") != NULL) {
++      if (g_strrstr (line, "Using interface") != NULL) {
+               gchar iface[255];
+               gchar tmp[255];
+
+@@ -104,14 +104,14 @@
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.details.interface), 
&iface[0]);
+       }
+       /* in case we are using auto reconnect */
+-      if (g_strrstr (line, "--> Auto Reconnect") != NULL) {
++      if (g_strrstr (line, "Auto Reconnect") != NULL) {
+               gtk_label_set_text (GTK_LABEL (gnome_ppp.connecting.msgs), 
_("Reconnecting..."));
+               gtk_widget_hide (gnome_ppp.gnome_ppp.window);
+               gtk_widget_hide (gnome_ppp.details.window);
+               gtk_widget_show (gnome_ppp.connecting.window);
+       }
+       /* we're about to connect (pppd) */
+-      if (g_strrstr (line, "--> Starting pppd") != NULL) {
++      if (g_strrstr (line, "Starting pppd") != NULL) {
+               gboolean minimize;
+
+               minimize = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON 
(gnome_ppp.setup.minimize));
+@@ -135,8 +135,8 @@
+               gnome_ppp.connected.update = g_timeout_add (1000, 
(GSourceFunc)timer, NULL);
+       }
+
+-      if (g_strrstr (line, "--> The PPP daemon has died") != NULL
+-              || g_strrstr (line, "--> Disconnecting") != NULL) {
++      if (g_strrstr (line, "The PPP daemon has died.") != NULL
++              || g_strrstr (line, "Disconnecting") != NULL) {
+
+               if (gnome_ppp.connected.update) {
+                       g_source_remove (gnome_ppp.connected.update);
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to