summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/applications/kvpnc/debian/patches
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-28 14:13:18 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-28 14:13:18 -0500
commit4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6 (patch)
treec6f53decaabed9678523a8bbd6a1000a9f3bf78f /ubuntu/raring/applications/kvpnc/debian/patches
parent211d261d7778de1d9a773e7ec43a4e97b4bd7e57 (diff)
downloadtde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.tar.gz
tde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.zip
Split raring packaging into new directory due to defoma changes
Diffstat (limited to 'ubuntu/raring/applications/kvpnc/debian/patches')
-rw-r--r--ubuntu/raring/applications/kvpnc/debian/patches/10_su-to-root_usage.diff11
-rw-r--r--ubuntu/raring/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff29
-rw-r--r--ubuntu/raring/applications/kvpnc/debian/patches/series2
3 files changed, 42 insertions, 0 deletions
diff --git a/ubuntu/raring/applications/kvpnc/debian/patches/10_su-to-root_usage.diff b/ubuntu/raring/applications/kvpnc/debian/patches/10_su-to-root_usage.diff
new file mode 100644
index 000000000..711bbff74
--- /dev/null
+++ b/ubuntu/raring/applications/kvpnc/debian/patches/10_su-to-root_usage.diff
@@ -0,0 +1,11 @@
+--- a/src/kvpnc.desktop
++++ b/src/kvpnc.desktop
+@@ -18,7 +18,7 @@
+ GenericName[xx]=xxVPN Client GUIxx
+
+ Categories=Network;RemoteAccess;TDE;Qt
+-Exec=kvpnc
++Exec=su-to-root -X -c /opt/trinity/bin/kvpnc
+ X-TDE-SubstituteUID=true
+ Icon=kvpnc
+ Type=Application
diff --git a/ubuntu/raring/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff b/ubuntu/raring/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff
new file mode 100644
index 000000000..826d4e236
--- /dev/null
+++ b/ubuntu/raring/applications/kvpnc/debian/patches/13_add_kuser_issuperuser.diff
@@ -0,0 +1,29 @@
+diff --git a/src/main.cpp b/src/main.cpp
+index 7c45fcf..b933832 100644
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -24,6 +24,7 @@
+ #include <tdemessagebox.h>
+ #include <tdemainwindow.h>
+ #include <kapp.h>
++#include <kuser.h>
+
+ #include <tdelocale.h>
+ #include <dcopclient.h>
+@@ -134,11 +135,11 @@ int main ( int argc, char *argv[] )
+ }
+ else
+ {
+-// if (getenv("USER") != "root")
+-// {
+-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+-// exit(0);
+-// }
++ if (getenv("USER") != "root")
++ {
++ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
++ exit(0);
++ }
+
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
+
diff --git a/ubuntu/raring/applications/kvpnc/debian/patches/series b/ubuntu/raring/applications/kvpnc/debian/patches/series
new file mode 100644
index 000000000..09040ada9
--- /dev/null
+++ b/ubuntu/raring/applications/kvpnc/debian/patches/series
@@ -0,0 +1,2 @@
+10_su-to-root_usage.diff
+13_add_kuser_issuperuser.diff