diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gnome-ppp |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gnome-ppp')
-rw-r--r-- | community/gnome-ppp/PKGBUILD | 29 | ||||
-rw-r--r-- | community/gnome-ppp/gnome-ppp-0.3.23-implicit-decl.patch | 10 | ||||
-rw-r--r-- | community/gnome-ppp/gnome-ppp-0.3.23-wvdial-notify.patch | 83 | ||||
-rw-r--r-- | community/gnome-ppp/gnome-ppp.install | 11 |
4 files changed, 133 insertions, 0 deletions
diff --git a/community/gnome-ppp/PKGBUILD b/community/gnome-ppp/PKGBUILD new file mode 100644 index 000000000..7b8c94ae3 --- /dev/null +++ b/community/gnome-ppp/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 18205 2010-06-01 12:52:45Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> + +pkgname=gnome-ppp +pkgver=0.3.23 +pkgrel=7 +pkgdesc="A GNOME 2 WvDial frontend" +arch=('i686' 'x86_64') +url="http://www.gnomefiles.org/app.php?soft_id=41" +license=('GPL2') +depends=('libglade' 'wvdial') +makedepends=('intltool' 'pkgconfig') +install=gnome-ppp.install +source=(http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/${pkgname}-${pkgver}.tar.bz2 + gnome-ppp-0.3.23-implicit-decl.patch + gnome-ppp-0.3.23-wvdial-notify.patch) +md5sums=('ec2e20fc713a01c953d759bea3df8618' + '22eb07c957b8e00b1939560785c97c45' + '00452b66d033316adff0c01373f6108a') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np0 -i ${srcdir}/gnome-ppp-0.3.23-implicit-decl.patch || return 1 + patch -Np0 -i ${srcdir}/gnome-ppp-0.3.23-wvdial-notify.patch || return 1 + ./configure --prefix=/usr + make || return 1 + make DESTDIR=${pkgdir} install +} diff --git a/community/gnome-ppp/gnome-ppp-0.3.23-implicit-decl.patch b/community/gnome-ppp/gnome-ppp-0.3.23-implicit-decl.patch new file mode 100644 index 000000000..6a05a897a --- /dev/null +++ b/community/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 <marcus@freebsd.org> + */ + ++#include <unistd.h> + #include "gnome-ppp.h" + + diff --git a/community/gnome-ppp/gnome-ppp-0.3.23-wvdial-notify.patch b/community/gnome-ppp/gnome-ppp-0.3.23-wvdial-notify.patch new file mode 100644 index 000000000..197558ccd --- /dev/null +++ b/community/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); diff --git a/community/gnome-ppp/gnome-ppp.install b/community/gnome-ppp/gnome-ppp.install new file mode 100644 index 000000000..21b79d2d4 --- /dev/null +++ b/community/gnome-ppp/gnome-ppp.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |