Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
network-manager-vpnc patch to add "juniper" as a vendor
diff -ru network-manager-vpnc-0.9.4.0/po/es.po network-manager-vpnc-0.9.4.0-juniper/po/es.po
--- network-manager-vpnc-0.9.4.0/po/es.po 2012-03-12 17:55:20.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/po/es.po 2012-05-20 23:09:22.201087344 -0600
@@ -215,9 +215,9 @@
msgstr "Fabricante:"
#: ../properties/nm-vpnc-dialog.ui.h:6
-msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/netscreen>"
+msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/juniper/netscreen>"
msgstr ""
-"Fabricante de la puerta de enlace IPsec&#10;opción: Vendor <cisco/netscreen>"
+"Fabricante de la puerta de enlace IPsec&#10;opción: Vendor <cisco/juniper/netscreen>"
#: ../properties/nm-vpnc-dialog.ui.h:7
msgid "Transport and Security"
diff -ru network-manager-vpnc-0.9.4.0/po/lv.po network-manager-vpnc-0.9.4.0-juniper/po/lv.po
--- network-manager-vpnc-0.9.4.0/po/lv.po 2012-03-19 09:35:24.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/po/lv.po 2012-05-20 23:09:22.267884937 -0600
@@ -208,8 +208,8 @@
msgstr "Ražotājs:"
#: ../properties/nm-vpnc-dialog.ui.h:6
-msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/netscreen>"
-msgstr "Jūsu IPsec vārtejas ražotājs &#10;config: Ražotājs <cisco/netscreen>"
+msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/juniper/netscreen>"
+msgstr "Jūsu IPsec vārtejas ražotājs &#10;config: Ražotājs <cisco/juniper/netscreen>"
#: ../properties/nm-vpnc-dialog.ui.h:7
msgid "Transport and Security"
diff -ru network-manager-vpnc-0.9.4.0/po/pl.po network-manager-vpnc-0.9.4.0-juniper/po/pl.po
--- network-manager-vpnc-0.9.4.0/po/pl.po 2012-03-19 09:35:24.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/po/pl.po 2012-05-20 23:09:22.320676015 -0600
@@ -204,8 +204,8 @@
msgstr "Producent:"
#: ../properties/nm-vpnc-dialog.ui.h:6
-msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/netscreen>"
-msgstr "Producent bramki IPsec&#10;konfiguracja: Vendor <cisco/netscreen>"
+msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/juniper/netscreen>"
+msgstr "Producent bramki IPsec&#10;konfiguracja: Vendor <cisco/juniper/netscreen>"
#: ../properties/nm-vpnc-dialog.ui.h:7
msgid "Transport and Security"
diff -ru network-manager-vpnc-0.9.4.0/po/sl.po network-manager-vpnc-0.9.4.0-juniper/po/sl.po
--- network-manager-vpnc-0.9.4.0/po/sl.po 2012-03-12 17:55:20.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/po/sl.po 2012-05-20 23:09:22.372321858 -0600
@@ -198,8 +198,8 @@
msgstr "Ponudnik:"
#: ../properties/nm-vpnc-dialog.ui.h:6
-msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/netscreen>"
-msgstr "Ponudnik prehoda IPsec &#10;config: ponudnik <cisco/netscreen>"
+msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/juniper/netscreen>"
+msgstr "Ponudnik prehoda IPsec &#10;config: ponudnik <cisco/juniper/netscreen>"
#: ../properties/nm-vpnc-dialog.ui.h:7
msgid "Transport and Security"
diff -ru network-manager-vpnc-0.9.4.0/po/sr@latin.po network-manager-vpnc-0.9.4.0-juniper/po/sr@latin.po
--- network-manager-vpnc-0.9.4.0/po/sr@latin.po 2012-03-15 16:03:25.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/po/sr@latin.po 2012-05-20 23:09:22.423795906 -0600
@@ -207,10 +207,10 @@
msgstr "Prodavac:"
#: ../properties/nm-vpnc-dialog.ui.h:6
-msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/netscreen>"
+msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/juniper/netscreen>"
msgstr ""
"Prodavac vašeg IPbezbednosti mrežnog prolaza&#10;podešavanje: Prodavac "
-"<cisco/netscreen>"
+"<cisco/juniper/netscreen>"
#: ../properties/nm-vpnc-dialog.ui.h:7
msgid "Transport and Security"
diff -ru network-manager-vpnc-0.9.4.0/po/sr.po network-manager-vpnc-0.9.4.0-juniper/po/sr.po
--- network-manager-vpnc-0.9.4.0/po/sr.po 2012-03-15 16:03:25.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/po/sr.po 2012-05-20 23:09:22.805282161 -0600
@@ -207,10 +207,10 @@
msgstr "Продавац:"
#: ../properties/nm-vpnc-dialog.ui.h:6
-msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/netscreen>"
+msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/juniper/netscreen>"
msgstr ""
"Продавац вашег ИПбезбедности мрежног пролаза&#10;подешавање: Продавац "
-"<cisco/netscreen>"
+"<cisco/juniper/netscreen>"
#: ../properties/nm-vpnc-dialog.ui.h:7
msgid "Transport and Security"
diff -ru network-manager-vpnc-0.9.4.0/po/sv.po network-manager-vpnc-0.9.4.0-juniper/po/sv.po
--- network-manager-vpnc-0.9.4.0/po/sv.po 2012-03-12 17:55:20.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/po/sv.po 2012-05-20 23:09:23.223177937 -0600
@@ -195,7 +195,7 @@
msgstr "Tillverkare:"
#: ../properties/nm-vpnc-dialog.ui.h:6
-msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/netscreen>"
+msgid "Vendor of your IPsec gateway&#10;config: Vendor <cisco/juniper/netscreen>"
msgstr ""
#: ../properties/nm-vpnc-dialog.ui.h:7
diff -ru network-manager-vpnc-0.9.4.0/properties/nm-vpnc.c network-manager-vpnc-0.9.4.0-juniper/properties/nm-vpnc.c
--- network-manager-vpnc-0.9.4.0/properties/nm-vpnc.c 2012-03-12 17:55:20.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/properties/nm-vpnc.c 2012-05-20 23:04:37.100320428 -0600
@@ -575,6 +575,13 @@
}
gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, _("Juniper"), 1, NM_VPNC_VENDOR_JUNIPER, -1);
+ if ((active < 0) && vendor) {
+ if (!strcmp (vendor, NM_VPNC_VENDOR_JUNIPER))
+ active = 1;
+ }
+
+ gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter, 0, _("Netscreen"), 1, NM_VPNC_VENDOR_NETSCREEN, -1);
if ((active < 0) && vendor) {
if (!strcmp (vendor, NM_VPNC_VENDOR_NETSCREEN))
diff -ru network-manager-vpnc-0.9.4.0/properties/nm-vpnc-dialog.ui network-manager-vpnc-0.9.4.0-juniper/properties/nm-vpnc-dialog.ui
--- network-manager-vpnc-0.9.4.0/properties/nm-vpnc-dialog.ui 2012-03-12 17:55:20.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/properties/nm-vpnc-dialog.ui 2012-05-20 23:04:16.775439854 -0600
@@ -202,7 +202,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">model6</property>
- <property name="tooltip_text" translatable="yes">Vendor of your IPsec gateway&#10;config: Vendor &lt;cisco/netscreen&gt;</property>
+ <property name="tooltip_text" translatable="yes">Vendor of your IPsec gateway&#10;config: Vendor &lt;cisco/juniper/netscreen&gt;</property>
<child>
<object class="GtkCellRendererText" id="renderer6"/>
<attributes>
diff -ru network-manager-vpnc-0.9.4.0/src/nm-vpnc-service.h network-manager-vpnc-0.9.4.0-juniper/src/nm-vpnc-service.h
--- network-manager-vpnc-0.9.4.0/src/nm-vpnc-service.h 2012-03-12 17:55:20.000000000 -0600
+++ network-manager-vpnc-0.9.4.0-juniper/src/nm-vpnc-service.h 2012-05-20 23:05:29.903336312 -0600
@@ -78,6 +78,7 @@
#define NM_VPNC_PFS_DH5 "dh5"
#define NM_VPNC_VENDOR_CISCO "cisco"
+#define NM_VPNC_VENDOR_JUNIPER "juniper"
#define NM_VPNC_VENDOR_NETSCREEN "netscreen"
typedef struct {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment