diff options
Diffstat (limited to 'net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset')
5 files changed, 1112 insertions, 0 deletions
diff --git a/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/01_all_nm-dep.patch b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/01_all_nm-dep.patch new file mode 100644 index 0000000..3a7ecee --- /dev/null +++ b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/01_all_nm-dep.patch @@ -0,0 +1,13 @@ +Index: configure.in +=================================================================== +--- configure.in (revision 2743) ++++ configure.in (working copy) +@@ -111,7 +111,7 @@ + AC_SUBST(DBUS_CFLAGS) + AC_SUBST(DBUS_LIBS) + +-PKG_CHECK_MODULES(NETWORK_MANAGER, NetworkManager >= 0.4.1 libnm-util >= 0.7.0) ++PKG_CHECK_MODULES(NETWORK_MANAGER, NetworkManager >= 0.4.1 libnm-util >= 0.6.5) + AC_SUBST(NETWORK_MANAGER_CFLAGS) + AC_SUBST(NETWORK_MANAGER_LIBS) + diff --git a/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/02_all_remove-general-dialog.patch b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/02_all_remove-general-dialog.patch new file mode 100644 index 0000000..7c4ed2e --- /dev/null +++ b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/02_all_remove-general-dialog.patch @@ -0,0 +1,25 @@ +Index: configure.in +=================================================================== +--- configure.in (Revision 2743) ++++ configure.in (Arbeitskopie) +@@ -191,7 +191,6 @@ + Makefile + src/Makefile + auth-dialog/Makefile +-auth-dialog-general/Makefile + properties/Makefile + po/Makefile.in + ]) +Index: Makefile.am +=================================================================== +--- Makefile.am (Revision 2743) ++++ Makefile.am (Arbeitskopie) +@@ -1,7 +1,7 @@ + AUTOMAKE_OPTIONS = foreign + + if WITH_GNOME +-SUBDIRS = src auth-dialog auth-dialog-general properties po ++SUBDIRS = src auth-dialog properties po + else + SUBDIRS = src + endif diff --git a/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/03_all_remove-non-pptp-parts.patch b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/03_all_remove-non-pptp-parts.patch new file mode 100644 index 0000000..255c51d --- /dev/null +++ b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/03_all_remove-non-pptp-parts.patch @@ -0,0 +1,825 @@ +## 03_nm_ppp_dialog.glade.patch.dpatch by Craig Box <ubuntu@dubculture.co.nz> +## 04_nm_ppp_properties.c.dpatch by Craig Box <ubuntu@dubculture.co.nz> + +--- properties/nm-ppp-dialog.glade (Revision 2743) ++++ properties/nm-ppp-dialog.glade (Arbeitskopie) +@@ -286,305 +286,6 @@ + </packing> + </child> + +- <child> +- <widget class="GtkVBox" id="dialup-front"> +- <property name="homogeneous">False</property> +- <property name="spacing">4</property> +- +- <child> +- <widget class="GtkHBox" id="hbox20"> +- <property name="visible">True</property> +- <property name="homogeneous">False</property> +- <property name="spacing">12</property> +- +- <child> +- <widget class="GtkLabel" id="label47"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">Telep_hone number:</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">1</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="mnemonic_widget">phone-number</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">False</property> +- <property name="fill">False</property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkEntry" id="phone-number"> +- <property name="visible">True</property> +- <property name="tooltip" translatable="yes">Host name or IP address of the PPTP server</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char">*</property> +- <property name="activates_default">False</property> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">True</property> +- <property name="fill">True</property> +- </packing> +- </child> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">False</property> +- <property name="fill">False</property> +- </packing> +- </child> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">True</property> +- <property name="fill">True</property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkVBox" id="bluetooth-front"> +- <property name="visible">True</property> +- <property name="homogeneous">False</property> +- <property name="spacing">6</property> +- +- <child> +- <widget class="GtkTable" id="table99"> +- <property name="visible">True</property> +- <property name="n_rows">2</property> +- <property name="n_columns">2</property> +- <property name="homogeneous">False</property> +- <property name="row_spacing">6</property> +- <property name="column_spacing">12</property> +- +- <child> +- <widget class="GtkLabel" id="label53"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">C_hannel:</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">0</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="mnemonic_widget">bt-channel</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="left_attach">0</property> +- <property name="right_attach">1</property> +- <property name="top_attach">1</property> +- <property name="bottom_attach">2</property> +- <property name="x_options">fill</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkEntry" id="bt-channel"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">3</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char">*</property> +- <property name="activates_default">False</property> +- </widget> +- <packing> +- <property name="left_attach">1</property> +- <property name="right_attach">2</property> +- <property name="top_attach">1</property> +- <property name="bottom_attach">2</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkEntry" id="bt-bdaddr"> +- <property name="visible">True</property> +- <property name="tooltip" translatable="yes">Host name or IP address of the PPTP server</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">17</property> +- <property name="text" translatable="yes">00:00:00:00</property> +- <property name="has_frame">True</property> +- <property name="invisible_char">*</property> +- <property name="activates_default">False</property> +- </widget> +- <packing> +- <property name="left_attach">1</property> +- <property name="right_attach">2</property> +- <property name="top_attach">0</property> +- <property name="bottom_attach">1</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkHBox" id="hbox21"> +- <property name="visible">True</property> +- <property name="homogeneous">False</property> +- <property name="spacing">12</property> +- +- <child> +- <widget class="GtkLabel" id="label49"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">_Device address:</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">1</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="mnemonic_widget">bt-bdaddr</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">False</property> +- <property name="fill">False</property> +- </packing> +- </child> +- </widget> +- <packing> +- <property name="left_attach">0</property> +- <property name="right_attach">1</property> +- <property name="top_attach">0</property> +- <property name="bottom_attach">1</property> +- <property name="x_options">fill</property> +- <property name="y_options">fill</property> +- </packing> +- </child> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">True</property> +- <property name="fill">True</property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkHButtonBox" id="hbuttonbox2"> +- <property name="visible">True</property> +- <property name="layout_style">GTK_BUTTONBOX_END</property> +- <property name="spacing">0</property> +- +- <child> +- <widget class="GtkButton" id="bt-find-device"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="relief">GTK_RELIEF_NORMAL</property> +- <property name="focus_on_click">True</property> +- +- <child> +- <widget class="GtkAlignment" id="alignment28"> +- <property name="visible">True</property> +- <property name="xalign">0.5</property> +- <property name="yalign">0.5</property> +- <property name="xscale">0</property> +- <property name="yscale">0</property> +- <property name="top_padding">0</property> +- <property name="bottom_padding">0</property> +- <property name="left_padding">0</property> +- <property name="right_padding">0</property> +- +- <child> +- <widget class="GtkHBox" id="hbox32"> +- <property name="visible">True</property> +- <property name="homogeneous">False</property> +- <property name="spacing">2</property> +- +- <child> +- <widget class="GtkImage" id="image2"> +- <property name="visible">True</property> +- <property name="stock">gtk-find</property> +- <property name="icon_size">4</property> +- <property name="xalign">0.5</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">False</property> +- <property name="fill">False</property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkLabel" id="label92"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">Find Device</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">0.5</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">False</property> +- <property name="fill">False</property> +- </packing> +- </child> +- </widget> +- </child> +- </widget> +- </child> +- </widget> +- </child> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">True</property> +- <property name="fill">True</property> +- </packing> +- </child> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">True</property> +- <property name="fill">True</property> +- </packing> +- </child> + </widget> + <packing> + <property name="padding">0</property> +@@ -711,226 +412,6 @@ + </child> + + <child> +- <widget class="GtkTable" id="gprs-options"> +- <property name="border_width">12</property> +- <property name="visible">True</property> +- <property name="n_rows">4</property> +- <property name="n_columns">2</property> +- <property name="homogeneous">False</property> +- <property name="row_spacing">6</property> +- <property name="column_spacing">12</property> +- +- <child> +- <widget class="GtkLabel" id="label54"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">_Access point name:</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">1</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="mnemonic_widget">gprs-apn</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="left_attach">0</property> +- <property name="right_attach">1</property> +- <property name="top_attach">0</property> +- <property name="bottom_attach">1</property> +- <property name="x_options">fill</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkEntry" id="gprs-apn"> +- <property name="visible">True</property> +- <property name="tooltip" translatable="yes">Service providers GPRS access point from device config</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char">*</property> +- <property name="activates_default">False</property> +- </widget> +- <packing> +- <property name="left_attach">1</property> +- <property name="right_attach">2</property> +- <property name="top_attach">0</property> +- <property name="bottom_attach">1</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkLabel" id="label57"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">IP a_ddress:</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">0</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="mnemonic_widget">gprs-ip-address</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="left_attach">0</property> +- <property name="right_attach">1</property> +- <property name="top_attach">1</property> +- <property name="bottom_attach">2</property> +- <property name="x_options">fill</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkEntry" id="gprs-ip-address"> +- <property name="visible">True</property> +- <property name="tooltip" translatable="yes">Service providers IP address</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char">*</property> +- <property name="activates_default">False</property> +- </widget> +- <packing> +- <property name="left_attach">1</property> +- <property name="right_attach">2</property> +- <property name="top_attach">1</property> +- <property name="bottom_attach">2</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkLabel" id="label58"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">_Packet type:</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">0</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="mnemonic_widget">gprs-packet-type</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="left_attach">0</property> +- <property name="right_attach">1</property> +- <property name="top_attach">2</property> +- <property name="bottom_attach">3</property> +- <property name="x_options">fill</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkEntry" id="gprs-packet-type"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char">*</property> +- <property name="activates_default">False</property> +- <property name="width_chars">9</property> +- </widget> +- <packing> +- <property name="left_attach">1</property> +- <property name="right_attach">2</property> +- <property name="top_attach">2</property> +- <property name="bottom_attach">3</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkLabel" id="label59"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">Context _number:</property> +- <property name="use_underline">True</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">0</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="mnemonic_widget">gprs-context-num</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="left_attach">0</property> +- <property name="right_attach">1</property> +- <property name="top_attach">3</property> +- <property name="bottom_attach">4</property> +- <property name="x_options">fill</property> +- <property name="y_options"></property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkEntry" id="gprs-context-num"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char">*</property> +- <property name="activates_default">False</property> +- <property name="width_chars">3</property> +- </widget> +- <packing> +- <property name="left_attach">1</property> +- <property name="right_attach">2</property> +- <property name="top_attach">3</property> +- <property name="bottom_attach">4</property> +- <property name="y_options"></property> +- </packing> +- </child> +- </widget> +- <packing> +- <property name="tab_expand">False</property> +- <property name="tab_fill">True</property> +- </packing> +- </child> +- +- <child> + <widget class="GtkLabel" id="label76"> + <property name="visible">True</property> + <property name="label" translatable="yes">GPRS Options</property> +@@ -2075,80 +1556,6 @@ + </child> + + <child> +- <widget class="GtkVBox" id="serial-options"> +- <property name="border_width">12</property> +- <property name="visible">True</property> +- <property name="homogeneous">False</property> +- <property name="spacing">6</property> +- +- <child> +- <widget class="GtkCheckButton" id="ppp-modem"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="label" translatable="yes">_Modem connection</property> +- <property name="use_underline">True</property> +- <property name="relief">GTK_RELIEF_NORMAL</property> +- <property name="focus_on_click">True</property> +- <property name="active">False</property> +- <property name="inconsistent">False</property> +- <property name="draw_indicator">True</property> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">False</property> +- <property name="fill">False</property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkCheckButton" id="ppp-crtscts"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="label" translatable="yes">_Hardware RTS/CTS</property> +- <property name="use_underline">True</property> +- <property name="relief">GTK_RELIEF_NORMAL</property> +- <property name="focus_on_click">True</property> +- <property name="active">False</property> +- <property name="inconsistent">False</property> +- <property name="draw_indicator">True</property> +- </widget> +- <packing> +- <property name="padding">0</property> +- <property name="expand">False</property> +- <property name="fill">False</property> +- </packing> +- </child> +- </widget> +- <packing> +- <property name="tab_expand">False</property> +- <property name="tab_fill">True</property> +- </packing> +- </child> +- +- <child> +- <widget class="GtkLabel" id="label80"> +- <property name="visible">True</property> +- <property name="label" translatable="yes">Serial Options</property> +- <property name="use_underline">False</property> +- <property name="use_markup">False</property> +- <property name="justify">GTK_JUSTIFY_LEFT</property> +- <property name="wrap">False</property> +- <property name="selectable">False</property> +- <property name="xalign">0.5</property> +- <property name="yalign">0.5</property> +- <property name="xpad">0</property> +- <property name="ypad">0</property> +- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> +- <property name="width_chars">-1</property> +- <property name="single_line_mode">False</property> +- <property name="angle">0</property> +- </widget> +- <packing> +- <property name="type">tab</property> +- </packing> +- </child> +- +- <child> + <widget class="GtkVBox" id="routing-options"> + <property name="border_width">12</property> + <property name="visible">True</property> +diff -urNad network-manager-pptp-0.6.4+pptp0.6.5~/properties/nm-ppp-properties.c network-manager-pptp-0.6.4+pptp0.6.5/properties/nm-ppp-properties.c +--- properties/nm-ppp-properties.c 2007-05-26 12:19:31.000000000 +1200 ++++ properties/nm-ppp-properties.c 2007-05-26 12:18:27.000000000 +1200 +@@ -42,7 +42,7 @@ + + #define BUILD_BLUETOOTH + +-#define VPNUI_DISPLAY_NAME _("pppd tunnel (PPTP, BTGPRS, Dialup)") ++#define VPNUI_DISPLAY_NAME _("PPTP tunnel") + #define VPNUI_SERVICE_NAME "org.freedesktop.NetworkManager.ppp_starter" + #define VPNUI_BASIC_DEFAULTS "connection-name='';" \ + "ppp-debug=no;" \ +@@ -50,7 +50,7 @@ + "usepeerdns-overtunnel=yes;" \ + "ppp-lock=yes;" \ + "ppp-auth-peer=no;" \ +- "ppp-refuse-eap=no;" \ ++ "ppp-refuse-eap=yes;" \ + "ppp-refuse-chap=no;" \ + "ppp-refuse-mschap=no;" \ + "lcp-echo-failure=10;" \ +@@ -59,26 +59,6 @@ + "routes=;" \ + "ppp-debug=no;" \ + "ppp-extra='';" +-#define VPNUI_BTOOTH_DEFAULTS "bt-bdaddr=00:00:00:00:00:00;" \ +- "bt-channel=1;" +-#define VPNUI_GPRS_DEFAULTS "gprs-packet-type=IP;" \ +- "gprs-context-num=1;" \ +- "gprs-ip-address=0.0.0.0;" \ +- "gprs-apn=internet;" \ +- "ppp-crtscts=yes;" \ +- "ppp-noipdefault=yes;" \ +- "ppp-modem=yes;" \ +- "usepeerdns=yes;" \ +- "ppp-connect-delay=5000;" +-#define VPNUI_BTGPRS_DEFAULTS "ppp-connection-type=btgprs;" \ +- "encrypt-mppe=no;" \ +- "encrypt-mppe-128=no;" \ +- "encrypt-mppe-stateful=no;" \ +- "compress-mppc=no;" \ +- "compress-bsd=no;" \ +- "compress-deflate=no;" \ +- "mru=1000;" \ +- "mtu=1000;" + #define VPNUI_PPTP_DEFAULTS "pptp-remote='';" \ + "ppp-connection-type=pptp;" \ + "encrypt-mppe=no;" \ +@@ -89,18 +69,6 @@ + "compress-deflate=no;" \ + "mru=1416;" \ + "mtu=1416;" +-#define VPNUI_DIALUP_DEFAULTS "phone-number=THIS DOESN'T DO ANYTHING;" \ +- "ppp-crtscts=yes;" \ +- "ppp-modem=yes;" \ +- "ppp-connection-type=dialup;" \ +- "encrypt-mppe=no;" \ +- "encrypt-mppe-128=no;" \ +- "encrypt-mppe-stateful=no;" \ +- "compress-mppc=no;" \ +- "compress-bsd=no;" \ +- "compress-deflate=no;" \ +- "mru=1000;" \ +- "mtu=1000;" + + #ifdef NMVPNUI_PPTP_PROPERTIES_C + #endif +@@ -192,51 +160,6 @@ + GTK_SIGNAL_FUNC(&editable_changed), NULL, impl ); + + opt = vpnui_opt_new( +- "phone-number", VPN_UI_OPTTYPE_STRING, +- "phone-number", "Telephone-Number", _("Telephone Number"), +- GTK_SIGNAL_FUNC(&editable_changed), &vld_non_empty, impl ); +- +- opt = vpnui_opt_new( +- "bt-bdaddr", VPN_UI_OPTTYPE_STRING, +- "bt-bdaddr", "Bluetooth-Address", _("Bluetooth Address"), +- GTK_SIGNAL_FUNC(&editable_changed), &vld_non_empty, impl ); +- +- opt = vpnui_opt_new( +- "bt-channel", VPN_UI_OPTTYPE_STRING, +- "bt-channel", "Bluetooth-Channel", _("Bluetooth Channel"), +- GTK_SIGNAL_FUNC(&editable_changed), &vld_non_empty, impl ); +- +- opt = vpnui_opt_new( +- "gprs-apn", VPN_UI_OPTTYPE_STRING, +- "gprs-apn", "GPRS-Access-Point-Name", _("GPRS APN"), +- GTK_SIGNAL_FUNC(&editable_changed), &vld_non_empty, impl ); +- +- opt = vpnui_opt_new( +- "gprs-ip-address", VPN_UI_OPTTYPE_STRING, +- "gprs-ip-address", "GPRS-IP-Address", _("GPRS IP"), +- GTK_SIGNAL_FUNC(&editable_changed), &vld_non_empty, impl ); +- +- opt = vpnui_opt_new( +- "gprs-context-num", VPN_UI_OPTTYPE_STRING, +- "gprs-context-num", "GPRS-Context-Number", _("GPRS Context No."), +- GTK_SIGNAL_FUNC(&editable_changed), &vld_non_empty, impl ); +- +- opt = vpnui_opt_new( +- "gprs-packet-type", VPN_UI_OPTTYPE_STRING, +- "gprs-packet-type", "GPRS-Packet-Type", _("GPRS Packet Type"), +- GTK_SIGNAL_FUNC(&editable_changed), &vld_non_empty, impl ); +- +- opt = vpnui_opt_new( +- "ppp-crtscts", VPN_UI_OPTTYPE_YESNO, +- "ppp-crtscts", "PPP-Hardware-CTSRTS", _("Use CTS/RTS flow control"), +- GTK_SIGNAL_FUNC(&editable_changed), NULL, impl ); +- +- opt = vpnui_opt_new( +- "ppp-modem", VPN_UI_OPTTYPE_YESNO, +- "ppp-modem", "PPP-Modem", _("Connect via a modem"), +- GTK_SIGNAL_FUNC(&editable_changed), NULL, impl ); +- +- opt = vpnui_opt_new( + "ppp-noipdefault", VPN_UI_OPTTYPE_YESNO, + "ppp-noipdefault", "PPP-No-IP-Default", _("Require IP to be provided"), + GTK_SIGNAL_FUNC(&editable_changed), NULL, impl ); +@@ -358,29 +281,14 @@ + VPNUI_BASIC_DEFAULTS VPNUI_PPTP_DEFAULTS, + impl); + +-#ifdef BUILD_BLUETOOTH +- variant = vpnui_variant_new( "btgprs", "GPRS over Bluetooth (via mobile phone)", +- VPNUI_BASIC_DEFAULTS VPNUI_GPRS_DEFAULTS VPNUI_BTOOTH_DEFAULTS VPNUI_BTGPRS_DEFAULTS, +- impl); +-#endif ++ gtk_combo_box_set_active(impl->variant_combo, 0); ++// vpnui_variant_select_byname(impl,"Windows VPN (PPTP)"); + +- variant = vpnui_variant_new( "dialup", "Dialup", +- VPNUI_BASIC_DEFAULTS VPNUI_DIALUP_DEFAULTS, +- impl); + // + // GLADE NAME IMPLEMENTATION_OBJ + // expand= vpnui_expand_new ("routing-expander",impl); +-// expand= vpnui_expand_new ("dialup-expander",impl); + // expand= vpnui_expand_new ("pppd-expander",impl); + // expand= vpnui_expand_new ("pptp-expander",impl); +-// expand= vpnui_expand_new ("bluetooth-expander",impl); +-// expand= vpnui_expand_new ("serial-expander",impl); +-// expand= vpnui_expand_new ("gprs-expander",impl); +- +-// Attach to press event of the Bluetooth "Find Device" button. +-// will need libbtcl +-// impl->w_import_button = GTK_BUTTON (glade_xml_get_widget (impl->xml, +-// "import-button")); + + // Attach an import_button + impl->w_import_button = GTK_BUTTON (glade_xml_get_widget (impl->xml, +@@ -444,15 +352,11 @@ + void + impl_hide_and_show (NetworkManagerVpnUIImpl *impl) + { +- GtkWidget *serial_options = NULL; +- GtkWidget *gprs_options = NULL; + GtkWidget *auth_options = NULL; + GtkWidget *comp_enc_options = NULL; + GtkWidget *routing_options = NULL; + GtkWidget *ppp_options = NULL; +- GtkWidget *bluetooth_front = NULL; + GtkWidget *pptp_front = NULL; +- GtkWidget *dialup_front = NULL; + GtkComboBox *combo = NULL; + char *variant_name; + +@@ -466,17 +370,9 @@ + auth_options = glade_xml_get_widget(impl->xml, "auth-options"); + comp_enc_options = glade_xml_get_widget(impl->xml, "comp-enc-options"); + routing_options = glade_xml_get_widget(impl->xml, "routing-options"); +- gprs_options = glade_xml_get_widget(impl->xml, "gprs-options"); +- serial_options = glade_xml_get_widget(impl->xml, "serial-options"); +- bluetooth_front = glade_xml_get_widget(impl->xml, "bluetooth-front"); +- dialup_front = glade_xml_get_widget(impl->xml, "dialup-front"); + pptp_front = glade_xml_get_widget(impl->xml, "pptp-front"); + + if (pptp_front) gtk_widget_hide(pptp_front); +- if (bluetooth_front) gtk_widget_hide(bluetooth_front); +- if (dialup_front) gtk_widget_hide(dialup_front); +- if (gprs_options) gtk_widget_hide(gprs_options); +- if (serial_options) gtk_widget_hide(serial_options); + if (ppp_options) gtk_widget_hide(ppp_options); + if (auth_options) gtk_widget_hide(auth_options); + if (comp_enc_options) gtk_widget_hide(comp_enc_options); +@@ -491,20 +387,5 @@ + if (auth_options) gtk_widget_show(auth_options); + if (comp_enc_options) gtk_widget_show(comp_enc_options); + if (routing_options) gtk_widget_show(routing_options); +- } else if (strcmp(variant_name,"dialup")==0) { +- if (dialup_front) gtk_widget_show(dialup_front); +- if (serial_options) gtk_widget_show(serial_options); +- if (ppp_options) gtk_widget_show(ppp_options); +- if (auth_options) gtk_widget_show(auth_options); +- if (comp_enc_options) gtk_widget_show(comp_enc_options); +- if (routing_options) gtk_widget_show(routing_options); +- } else if (strcmp(variant_name,"btgprs")==0) { +- if (bluetooth_front) gtk_widget_show(bluetooth_front); +- if (gprs_options) gtk_widget_show(gprs_options); +- if (serial_options) gtk_widget_show(serial_options); +- if (ppp_options) gtk_widget_show(ppp_options); +- if (auth_options) gtk_widget_show(auth_options); +- if (comp_enc_options) gtk_widget_show(comp_enc_options); +- if (routing_options) gtk_widget_show(routing_options); + } + } diff --git a/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/04_all_revert-vpn-subsystem-changes.patch b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/04_all_revert-vpn-subsystem-changes.patch new file mode 100644 index 0000000..05b2808 --- /dev/null +++ b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/04_all_revert-vpn-subsystem-changes.patch @@ -0,0 +1,220 @@ +Index: ChangeLog +=================================================================== +--- ChangeLog (Revision 2679) ++++ ChangeLog (Revision 2678) +@@ -1,9 +1,3 @@ +-2007-08-14 Dan Williams <dcbw@redhat.com> +- +- * src/nm-openvpn-service.c +- - Handle NM_VPN_STATE_* -> NM_VPN_SERVICE_STATE_* and NMVPNState -> +- NMVPNServiceState renames +- + 2007-07-26 Dan Williams <dcbw@redhat.com> + + Patch from Kelemen Gábor <kelemeng@gnome.hu> +Index: src/nm-ppp-starter.c +=================================================================== +--- src/nm-ppp-starter.c (Revision 2679) ++++ src/nm-ppp-starter.c (Revision 2678) +@@ -76,7 +76,7 @@ + { + GMainLoop *loop; + DBusConnection *con; +- NMVPNServiceState state; ++ NMVPNState state; + GPid pid; + guint quit_timer; + guint helper_timer; +@@ -162,7 +162,7 @@ + * Signal the bus that our state changed. + * + */ +-static void nm_ppp_dbus_signal_state_change (NmPPPData *data, NMVPNServiceState old_state) ++static void nm_ppp_dbus_signal_state_change (NmPPPData *data, NMVPNState old_state) + { + DBusMessage *message; + +@@ -189,9 +189,9 @@ + * Set our state and make sure to signal the bus. + * + */ +-static void nm_ppp_set_state (NmPPPData *data, NMVPNServiceState new_state) ++static void nm_ppp_set_state (NmPPPData *data, NMVPNState new_state) + { +- NMVPNServiceState old_state; ++ NMVPNState old_state; + + g_return_if_fail (data != NULL); + +@@ -356,7 +356,7 @@ + break; + } + +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STOPPED); ++ nm_ppp_set_state (data, NM_VPN_STATE_STOPPED); + nm_ppp_schedule_quit_timer (data, 10000); + } + +@@ -425,7 +425,7 @@ + } + + +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STOPPED); ++ nm_ppp_set_state (data, NM_VPN_STATE_STOPPED); + nm_ppp_schedule_quit_timer (data, 10000); + } + +@@ -1110,7 +1110,7 @@ + g_return_val_if_fail (message != NULL, FALSE); + g_return_val_if_fail (data != NULL, FALSE); + +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STARTING); ++ nm_ppp_set_state (data, NM_VPN_STATE_STARTING); + + dbus_error_init (&error); + if (!dbus_message_get_args (message, &error, +@@ -1152,7 +1152,7 @@ + dbus_free_string_array (auth_items); + dbus_free_string_array (user_routes); + if (!success) +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STOPPED); ++ nm_ppp_set_state (data, NM_VPN_STATE_STOPPED); + return success; + } + +@@ -1169,13 +1169,13 @@ + + if (data->pid > 0) + { +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STOPPING); ++ nm_ppp_set_state (data, NM_VPN_STATE_STOPPING); + + kill (data->pid, SIGTERM); + nm_info ("Terminated pppd with PID %d.", data->pid); + data->pid = 0; + +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STOPPED); ++ nm_ppp_set_state (data, NM_VPN_STATE_STOPPED); + nm_ppp_schedule_quit_timer (data, 10000); + } + +@@ -1194,13 +1194,13 @@ + + if (data->pid > 0) + { +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STOPPING); ++ nm_ppp_set_state (data, NM_VPN_STATE_STOPPING); + + kill (data->pid, SIGTERM); + nm_info ("Terminated pppd with PID %d.", data->pid); + data->pid = 0; + +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STOPPED); ++ nm_ppp_set_state (data, NM_VPN_STATE_STOPPED); + nm_ppp_schedule_quit_timer (data, 10000); + } + +@@ -1224,22 +1224,22 @@ + + switch (data->state) + { +- case NM_VPN_SERVICE_STATE_STARTING: ++ case NM_VPN_STATE_STARTING: + reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE_PPP_STARTER, NM_DBUS_VPN_STARTING_IN_PROGRESS, + "Could not process the request because the VPN connection is already being started."); + break; + +- case NM_VPN_SERVICE_STATE_STARTED: ++ case NM_VPN_STATE_STARTED: + reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE_PPP_STARTER, NM_DBUS_VPN_ALREADY_STARTED, + "Could not process the request because a VPN connection was already active."); + break; + +- case NM_VPN_SERVICE_STATE_STOPPING: ++ case NM_VPN_STATE_STOPPING: + reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE_PPP_STARTER, NM_DBUS_VPN_STOPPING_IN_PROGRESS, + "Could not process the request because the VPN connection is being stopped."); + break; + +- case NM_VPN_SERVICE_STATE_STOPPED: ++ case NM_VPN_STATE_STOPPED: + nm_ppp_cancel_quit_timer (data); + nm_ppp_dbus_handle_start_vpn (message, data); + reply = dbus_message_new_method_return (message); +@@ -1270,18 +1270,18 @@ + + switch (data->state) + { +- case NM_VPN_SERVICE_STATE_STOPPING: ++ case NM_VPN_STATE_STOPPING: + reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE_PPP_STARTER, NM_DBUS_VPN_STOPPING_IN_PROGRESS, + "Could not process the request because the VPN connection is already being stopped."); + break; + +- case NM_VPN_SERVICE_STATE_STOPPED: ++ case NM_VPN_STATE_STOPPED: + reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE_PPP_STARTER, NM_DBUS_VPN_ALREADY_STOPPED, + "Could not process the request because no VPN connection was active."); + break; + +- case NM_VPN_SERVICE_STATE_STARTING: +- case NM_VPN_SERVICE_STATE_STARTED: ++ case NM_VPN_STATE_STARTING: ++ case NM_VPN_STATE_STARTED: + nm_ppp_dbus_handle_stop_vpn (data); + reply = dbus_message_new_method_return (message); + break; +@@ -1398,7 +1398,7 @@ + g_return_if_fail (message != NULL); + + /* Only accept the config info if we're in STARTING state */ +- if (data->state != NM_VPN_SERVICE_STATE_STARTING) ++ if (data->state != NM_VPN_STATE_STARTING) + return; + + if (dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &error_item, DBUS_TYPE_INVALID)) +@@ -1446,7 +1446,7 @@ + g_return_if_fail (message != NULL); + + /* Only accept the config info if we're in STARTING state */ +- if (data->state != NM_VPN_SERVICE_STATE_STARTING) ++ if (data->state != NM_VPN_STATE_STARTING) + return; + + /* If IP is up then we don't need to leave the auth info lying around */ +@@ -1568,7 +1568,7 @@ + } + + dbus_message_unref (signal); +- nm_ppp_set_state (data, NM_VPN_SERVICE_STATE_STARTED); ++ nm_ppp_set_state (data, NM_VPN_STATE_STARTED); + success = TRUE; + } + +@@ -1608,7 +1608,7 @@ + /* nm_info ("nm_ppp_dbus_message_handler() got method '%s' for path '%s'.", method, path); */ + + /* If we aren't ready to accept dbus messages, don't */ +- if ((data->state == NM_VPN_SERVICE_STATE_INIT) || (data->state == NM_VPN_SERVICE_STATE_SHUTDOWN)) ++ if ((data->state == NM_VPN_STATE_INIT) || (data->state == NM_VPN_STATE_SHUTDOWN)) + { + nm_warning ("Received dbus messages but couldn't handle them due to INIT or SHUTDOWN states."); + reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE_PPP_STARTER, NM_DBUS_VPN_WRONG_STATE, +@@ -1792,7 +1792,7 @@ + vpn_data = g_malloc0 (sizeof (NmPPPData)); + + vpn_data->debug = FALSE; +- vpn_data->state = NM_VPN_SERVICE_STATE_INIT; ++ vpn_data->state = NM_VPN_STATE_INIT; + + vpn_data->loop = g_main_loop_new (NULL, FALSE); + +@@ -1806,7 +1806,7 @@ + sigaction (SIGINT, &action, NULL); + sigaction (SIGTERM, &action, NULL); + +- nm_ppp_set_state (vpn_data, NM_VPN_SERVICE_STATE_STOPPED); ++ nm_ppp_set_state (vpn_data, NM_VPN_STATE_STOPPED); + g_main_loop_run (vpn_data->loop); + + nm_ppp_dbus_handle_stop_vpn (vpn_data); diff --git a/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/05_all_service-name.patch b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/05_all_service-name.patch new file mode 100644 index 0000000..26e5673 --- /dev/null +++ b/net-misc/networkmanager-pptp/files/networkmanager-pptp-0.6.5_p20070820-patchset/05_all_service-name.patch @@ -0,0 +1,29 @@ +Index: Makefile.am +=================================================================== +--- Makefile.am (Revision 2743) ++++ Makefile.am (Arbeitskopie) +@@ -15,7 +15,7 @@ + + %.name: %.name.in Makefile + @sed -e "s|%bindir%|$(bindir)|g" \ +- -e "s|%libdir%|$(libdir)|g" \ ++ -e "s|%prefix%|$(prefix)|g" \ + -e "s|%libexecdir%|$(libexecdir)|g" $< > $@ + + if WITH_GNOME +Index: nm-ppp-starter.name.in +=================================================================== +--- nm-ppp-starter.name.in (Revision 2743) ++++ nm-ppp-starter.name.in (Arbeitskopie) +@@ -1,8 +1,8 @@ + [VPN Connection] + name=ppp + service=org.freedesktop.NetworkManager.ppp_starter +-program=@bindir@/nm-ppp-starter ++program=%bindir%/nm-ppp-starter + + [GNOME] +-auth-dialog=@libexecdir@/nm-ppp-auth-dialog +-properties=@prefix@/${LIB}/libnm-ppp-properties ++auth-dialog=%libexecdir%/nm-ppp-auth-dialog ++properties=%prefix%/${LIB}/libnm-ppp-properties |