parent
56809f1d3e
commit
6c303203c7
@ -0,0 +1,32 @@
|
||||
kvpnc for Debian
|
||||
----------------
|
||||
|
||||
kvpnc for Debian uses su-to-root from menu package instead kdesu.
|
||||
|
||||
Howto setup kvpnc for use without root password using sudo:
|
||||
|
||||
* Install sudo
|
||||
|
||||
aptitude install sudo
|
||||
|
||||
* Edit /etc/sudoers
|
||||
|
||||
# Cmnd alias specification
|
||||
Cmnd_Alias KVPNC = /usr/bin/kvpnc
|
||||
|
||||
# User privilege specification
|
||||
ALL ALL=NOPASSWD:KVPNC
|
||||
|
||||
* Edit desktop link /usr/share/applications/kde/Internet/kvpnc.desktop
|
||||
|
||||
* replace the folling lines:
|
||||
|
||||
Exec=su-to-root -X -c /usr/bin/kvpnc
|
||||
X-KDE-SubstituteUID=true
|
||||
|
||||
with:
|
||||
|
||||
Exec=sudo kvpnc
|
||||
X-KDE-SubstituteUID=false
|
||||
|
||||
-- Fathi Boudra <fboudra@free.fr>, Thu, 18 May 2006 15:17:52 +0100
|
@ -0,0 +1,6 @@
|
||||
kvpnc-trinity (0.9.6a-1) lucid; urgency=low
|
||||
|
||||
* Initial build
|
||||
|
||||
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Tue, 06 Dec 2011 12:26:00 -0600
|
||||
|
@ -0,0 +1 @@
|
||||
5
|
@ -0,0 +1,20 @@
|
||||
Source: kvpnc-trinity
|
||||
Section: kde
|
||||
Priority: optional
|
||||
Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
||||
Uploaders: Fathi Boudra <fabo@debian.org>, Mark Purcell <msp@debian.org>
|
||||
Build-Depends: cdbs, debhelper (>= 5), quilt, automake, tdelibs4-trinity-dev, libgcrypt11-dev
|
||||
Standards-Version: 3.8.4
|
||||
|
||||
Package: kvpnc-trinity
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, menu, net-tools, psmisc, tdebase-trinity-bin | gksu | sux, module-init-tools | modutils
|
||||
Suggests: iptables, openssl, openvpn, racoon, vpnc, pptp-linux, openswan, xl2tpd, openct, opensc
|
||||
Description: vpn clients frontend for TDE
|
||||
KVpnc is a TDE frontend for various vpn clients.
|
||||
.
|
||||
It supports :
|
||||
* Cisco-compatible VPN client (vpnc)
|
||||
* IPSec (freeswan, openswan, racoon)
|
||||
* Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
|
||||
* Virtual Private Network daemon (openvpn)
|
@ -0,0 +1,65 @@
|
||||
This package was debianized by Fathi Boudra <fboudra@free.fr> on
|
||||
Thu, 26 Jan 2006 11:49:10 +0100.
|
||||
|
||||
It was downloaded from http://home.gna.org/kvpnc
|
||||
|
||||
Copyright Holder: Christoph Thielecke <crissi99@gmx.de>
|
||||
|
||||
Copyright for ciscopasswddecoder :
|
||||
(C) 2005 hal9000 <hal9000@evilscientists.de>
|
||||
(C) 2005 Maurice Massar <vpnc@unix-ag.uni-kl.de>
|
||||
(C) 2005 Christoph Thielecke <crissi99@gmx.de>
|
||||
|
||||
Copyright for openvpn-kde-dialogs.pl:
|
||||
Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
|
||||
kvpnc contains parts of code from klcc project:
|
||||
Peter Simonsson <psn@linux.se>
|
||||
|
||||
Copyright for kfeedback (user feedback form and mailing utilities) and
|
||||
parts of code from kdirstat project:
|
||||
Stefan Hundhammer <sh@suse.de>
|
||||
|
||||
preferencesdialog contains parts of code from konversation project
|
||||
(konvisettingsdialog.cpp)
|
||||
(C) 2006 John Tapsell <johnflux@gmail.com>
|
||||
(C) 2006 Eike Hein <hein@kde.org>
|
||||
|
||||
kfeedback license:
|
||||
|
||||
This package is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU Lesser General
|
||||
Public License can be found in `/usr/share/common-licenses/LGPL'.
|
||||
|
||||
kvpnc license:
|
||||
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
@ -0,0 +1,2 @@
|
||||
README
|
||||
TODO
|
@ -0,0 +1,69 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH KVPNC 1 "novembre 16, 2005"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
kvpnc \- vpn clients frontend for KDE
|
||||
.SH SYNOPSIS
|
||||
.B kvpnc
|
||||
.RI [ options ]
|
||||
.br
|
||||
.SH DESCRIPTION
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
\fBkvpnc\fP is a KDE frontend for various vpn clients.
|
||||
.br
|
||||
It supports :
|
||||
.br
|
||||
* Cisco-compatible VPN client (vpnc)
|
||||
.br
|
||||
* IPSec (freeswan, openswan, racoon)
|
||||
.br
|
||||
* Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
|
||||
.br
|
||||
* Virtual Private Network daemon (openvpn)
|
||||
.SH OPTIONS
|
||||
All KDE and Qt programs accept some common command\-line options.
|
||||
.br
|
||||
Kvpnc has no application\-specific options.
|
||||
.PP
|
||||
.TP
|
||||
\fB\-\-help\fR
|
||||
Show help about options
|
||||
.TP
|
||||
\fB\-\-help\-qt\fR
|
||||
Show Qt specific options
|
||||
.TP
|
||||
\fB\-\-help\-kde\fR
|
||||
Show KDE specific options
|
||||
.TP
|
||||
\fB\-\-help\-all\fR
|
||||
Show all options
|
||||
.TP
|
||||
\fB\-\-author\fR
|
||||
Show author information
|
||||
.TP
|
||||
\fB\-v\fR, \fB\-\-version\fR
|
||||
Show version information
|
||||
.TP
|
||||
\fB\-\-license\fR
|
||||
Show license information
|
||||
.SH AUTHOR
|
||||
kvpnc was written by Christoph Thielecke <crissi99@gmx.de>.
|
||||
.PP
|
||||
This manual page was written by Fathi Boudra <fboudra@free.fr>,
|
||||
for the Debian project (but may be used by others).
|
@ -0,0 +1,6 @@
|
||||
?package(kvpnc):\
|
||||
needs="X11"\
|
||||
section="Applications/Network/Communication"\
|
||||
title="kvpnc"\
|
||||
hints="KDE"\
|
||||
command="su-to-root -X -c kvpnc"
|
@ -0,0 +1,11 @@
|
||||
--- a/src/kvpnc.desktop
|
||||
+++ b/src/kvpnc.desktop
|
||||
@@ -18,7 +18,7 @@
|
||||
GenericName[xx]=xxVPN Client GUIxx
|
||||
|
||||
Categories=Network;RemoteAccess;KDE;Qt
|
||||
-Exec=kvpnc
|
||||
+Exec=su-to-root -X -c /opt/trinity/bin/kvpnc
|
||||
X-KDE-SubstituteUID=true
|
||||
Icon=kvpnc
|
||||
Type=Application
|
@ -0,0 +1,24 @@
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <kmessagebox.h>
|
||||
#include <kmainwindow.h>
|
||||
#include <kapp.h>
|
||||
+#include <kuser.h>
|
||||
|
||||
#include <klocale.h>
|
||||
#include <dcopclient.h>
|
||||
@@ -129,7 +130,12 @@
|
||||
// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
|
||||
// exit(0);
|
||||
// }
|
||||
-
|
||||
+ if (!KUser().isSuperUser())
|
||||
+ {
|
||||
+ KMessageBox::error( 0L, i18n( "Kvpnc must be started as root!" ) );
|
||||
+ exit(0);
|
||||
+ }
|
||||
+
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||
|
||||
a.setMainWidget( kvpnc );
|
@ -0,0 +1,2 @@
|
||||
10_su-to-root_usage.diff
|
||||
13_add_kuser_issuperuser.diff
|
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||
include /usr/share/cdbs/1/class/kde.mk
|
||||
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
||||
include /usr/share/cdbs/1/rules/utils.mk
|
||||
|
||||
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,--as-needed"
|
||||
DEB_INSTALL_MANPAGES_kvpnc-trinity := debian/kvpnc-trinity.1
|
||||
|
||||
install/kvpnc-trinity::
|
||||
# fix script-not-executable
|
||||
chmod 0755 debian/kvpnc-trinity/opt/trinity/share/apps/kvpnc/ping_check.sh
|
||||
|
||||
# remove uneeded dir
|
||||
rm -rf debian/kvpnc-trinity/opt/trinity/share/doc/kde/HTML/kvpnc
|
||||
|
||||
# install desktop file in applications
|
||||
install -D -p -m0644 src/kvpnc.desktop \
|
||||
debian/kvpnc-trinity/opt/trinity/share/applications/kde/kvpnc.desktop
|
||||
|
||||
binary-post-install/kvpnc-trinity::
|
||||
rm -rf debian/kvpnc-trinity/opt/trinity/share/applnk/
|
||||
|
||||
clean::
|
||||
rm -f config.status config.log
|
||||
find . -type f -name '*.gmo' | xargs rm -f
|
@ -0,0 +1,2 @@
|
||||
version=3
|
||||
http://download.gna.org/kvpnc/kvpnc-(0.*)\.tar\.bz2 debian svn-upgrade
|
@ -0,0 +1,32 @@
|
||||
kvpnc for Debian
|
||||
----------------
|
||||
|
||||
kvpnc for Debian uses su-to-root from menu package instead kdesu.
|
||||
|
||||
Howto setup kvpnc for use without root password using sudo:
|
||||
|
||||
* Install sudo
|
||||
|
||||
aptitude install sudo
|
||||
|
||||
* Edit /etc/sudoers
|
||||
|
||||
# Cmnd alias specification
|
||||
Cmnd_Alias KVPNC = /usr/bin/kvpnc
|
||||
|
||||
# User privilege specification
|
||||
ALL ALL=NOPASSWD:KVPNC
|
||||
|
||||
* Edit desktop link /usr/share/applications/kde/Internet/kvpnc.desktop
|
||||
|
||||
* replace the folling lines:
|
||||
|
||||
Exec=su-to-root -X -c /usr/bin/kvpnc
|
||||
X-KDE-SubstituteUID=true
|
||||
|
||||
with:
|
||||
|
||||
Exec=sudo kvpnc
|
||||
X-KDE-SubstituteUID=false
|
||||
|
||||
-- Fathi Boudra <fboudra@free.fr>, Thu, 18 May 2006 15:17:52 +0100
|
@ -0,0 +1,6 @@
|
||||
kvpnc-trinity (0.9.6a-1) lucid; urgency=low
|
||||
|
||||
* Initial build
|
||||
|
||||
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Tue, 06 Dec 2011 12:26:00 -0600
|
||||
|
@ -0,0 +1 @@
|
||||
5
|
@ -0,0 +1,20 @@
|
||||
Source: kvpnc-trinity
|
||||
Section: kde
|
||||
Priority: optional
|
||||
Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
||||
Uploaders: Fathi Boudra <fabo@debian.org>, Mark Purcell <msp@debian.org>
|
||||
Build-Depends: cdbs, debhelper (>= 5), quilt, automake, tdelibs4-trinity-dev, libgcrypt11-dev
|
||||
Standards-Version: 3.8.4
|
||||
|
||||
Package: kvpnc-trinity
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, menu, net-tools, psmisc, tdebase-trinity-bin | gksu | sux, module-init-tools | modutils
|
||||
Suggests: iptables, openssl, openvpn, racoon, vpnc, pptp-linux, openswan, xl2tpd, openct, opensc
|
||||
Description: vpn clients frontend for TDE
|
||||
KVpnc is a TDE frontend for various vpn clients.
|
||||
.
|
||||
It supports :
|
||||
* Cisco-compatible VPN client (vpnc)
|
||||
* IPSec (freeswan, openswan, racoon)
|
||||
* Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
|
||||
* Virtual Private Network daemon (openvpn)
|
@ -0,0 +1,65 @@
|
||||
This package was debianized by Fathi Boudra <fboudra@free.fr> on
|
||||
Thu, 26 Jan 2006 11:49:10 +0100.
|
||||
|
||||
It was downloaded from http://home.gna.org/kvpnc
|
||||
|
||||
Copyright Holder: Christoph Thielecke <crissi99@gmx.de>
|
||||
|
||||
Copyright for ciscopasswddecoder :
|
||||
(C) 2005 hal9000 <hal9000@evilscientists.de>
|
||||
(C) 2005 Maurice Massar <vpnc@unix-ag.uni-kl.de>
|
||||
(C) 2005 Christoph Thielecke <crissi99@gmx.de>
|
||||
|
||||
Copyright for openvpn-kde-dialogs.pl:
|
||||
Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
|
||||
kvpnc contains parts of code from klcc project:
|
||||
Peter Simonsson <psn@linux.se>
|
||||
|
||||
Copyright for kfeedback (user feedback form and mailing utilities) and
|
||||
parts of code from kdirstat project:
|
||||
Stefan Hundhammer <sh@suse.de>
|
||||
|
||||
preferencesdialog contains parts of code from konversation project
|
||||
(konvisettingsdialog.cpp)
|
||||
(C) 2006 John Tapsell <johnflux@gmail.com>
|
||||
(C) 2006 Eike Hein <hein@kde.org>
|
||||
|
||||
kfeedback license:
|
||||
|
||||
This package is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU Lesser General
|
||||
Public License can be found in `/usr/share/common-licenses/LGPL'.
|
||||
|
||||
kvpnc license:
|
||||
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
@ -0,0 +1,2 @@
|
||||
README
|
||||
TODO
|
@ -0,0 +1,69 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH KVPNC 1 "novembre 16, 2005"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
kvpnc \- vpn clients frontend for KDE
|
||||
.SH SYNOPSIS
|
||||
.B kvpnc
|
||||
.RI [ options ]
|
||||
.br
|
||||
.SH DESCRIPTION
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
\fBkvpnc\fP is a KDE frontend for various vpn clients.
|
||||
.br
|
||||
It supports :
|
||||
.br
|
||||
* Cisco-compatible VPN client (vpnc)
|
||||
.br
|
||||
* IPSec (freeswan, openswan, racoon)
|
||||
.br
|
||||
* Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
|
||||
.br
|
||||
* Virtual Private Network daemon (openvpn)
|
||||
.SH OPTIONS
|
||||
All KDE and Qt programs accept some common command\-line options.
|
||||
.br
|
||||
Kvpnc has no application\-specific options.
|
||||
.PP
|
||||
.TP
|
||||
\fB\-\-help\fR
|
||||
Show help about options
|
||||
.TP
|
||||
\fB\-\-help\-qt\fR
|
||||
Show Qt specific options
|
||||
.TP
|
||||
\fB\-\-help\-kde\fR
|
||||
Show KDE specific options
|
||||
.TP
|
||||
\fB\-\-help\-all\fR
|
||||
Show all options
|
||||
.TP
|
||||
\fB\-\-author\fR
|
||||
Show author information
|
||||
.TP
|
||||
\fB\-v\fR, \fB\-\-version\fR
|
||||
Show version information
|
||||
.TP
|
||||
\fB\-\-license\fR
|
||||
Show license information
|
||||
.SH AUTHOR
|
||||
kvpnc was written by Christoph Thielecke <crissi99@gmx.de>.
|
||||
.PP
|
||||
This manual page was written by Fathi Boudra <fboudra@free.fr>,
|
||||
for the Debian project (but may be used by others).
|
@ -0,0 +1,6 @@
|
||||
?package(kvpnc):\
|
||||
needs="X11"\
|
||||
section="Applications/Network/Communication"\
|
||||
title="kvpnc"\
|
||||
hints="KDE"\
|
||||
command="su-to-root -X -c kvpnc"
|
@ -0,0 +1,11 @@
|
||||
--- a/src/kvpnc.desktop
|
||||
+++ b/src/kvpnc.desktop
|
||||
@@ -18,7 +18,7 @@
|
||||
GenericName[xx]=xxVPN Client GUIxx
|
||||
|
||||
Categories=Network;RemoteAccess;KDE;Qt
|
||||
-Exec=kvpnc
|
||||
+Exec=su-to-root -X -c /opt/trinity/bin/kvpnc
|
||||
X-KDE-SubstituteUID=true
|
||||
Icon=kvpnc
|
||||
Type=Application
|
@ -0,0 +1,24 @@
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <kmessagebox.h>
|
||||
#include <kmainwindow.h>
|
||||
#include <kapp.h>
|
||||
+#include <kuser.h>
|
||||
|
||||
#include <klocale.h>
|
||||
#include <dcopclient.h>
|
||||
@@ -129,7 +130,12 @@
|
||||
// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
|
||||
// exit(0);
|
||||
// }
|
||||
-
|
||||
+ if (!KUser().isSuperUser())
|
||||
+ {
|
||||
+ KMessageBox::error( 0L, i18n( "Kvpnc must be started as root!" ) );
|
||||
+ exit(0);
|
||||
+ }
|
||||
+
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||
|
||||
a.setMainWidget( kvpnc );
|
@ -0,0 +1,2 @@
|
||||
10_su-to-root_usage.diff
|
||||
13_add_kuser_issuperuser.diff
|
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||
include /usr/share/cdbs/1/class/kde.mk
|
||||
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
||||
include /usr/share/cdbs/1/rules/utils.mk
|
||||
|
||||
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,--as-needed"
|
||||
DEB_INSTALL_MANPAGES_kvpnc-trinity := debian/kvpnc-trinity.1
|
||||
|
||||
install/kvpnc-trinity::
|
||||
# fix script-not-executable
|
||||
chmod 0755 debian/kvpnc-trinity/opt/trinity/share/apps/kvpnc/ping_check.sh
|
||||
|
||||
# remove uneeded dir
|
||||
rm -rf debian/kvpnc-trinity/opt/trinity/share/doc/kde/HTML/kvpnc
|
||||
|
||||
# install desktop file in applications
|
||||
install -D -p -m0644 src/kvpnc.desktop \
|
||||
debian/kvpnc-trinity/opt/trinity/share/applications/kde/kvpnc.desktop
|
||||
|
||||
binary-post-install/kvpnc-trinity::
|
||||
rm -rf debian/kvpnc-trinity/opt/trinity/share/applnk/
|
||||
|
||||
clean::
|
||||
rm -f config.status config.log
|
||||
find . -type f -name '*.gmo' | xargs rm -f
|
@ -0,0 +1,2 @@
|
||||
version=3
|
||||
http://download.gna.org/kvpnc/kvpnc-(0.*)\.tar\.bz2 debian svn-upgrade
|
@ -0,0 +1,32 @@
|
||||
kvpnc for Debian
|
||||
----------------
|
||||
|
||||
kvpnc for Debian uses su-to-root from menu package instead kdesu.
|
||||
|
||||
Howto setup kvpnc for use without root password using sudo:
|
||||
|
||||
* Install sudo
|
||||
|
||||
aptitude install sudo
|
||||
|
||||
* Edit /etc/sudoers
|
||||
|
||||
# Cmnd alias specification
|
||||
Cmnd_Alias KVPNC = /usr/bin/kvpnc
|
||||
|
||||
# User privilege specification
|
||||
ALL ALL=NOPASSWD:KVPNC
|
||||
|
||||
* Edit desktop link /usr/share/applications/kde/Internet/kvpnc.desktop
|
||||
|
||||
* replace the folling lines:
|
||||
|
||||
Exec=su-to-root -X -c /usr/bin/kvpnc
|
||||
X-KDE-SubstituteUID=true
|
||||
|
||||
with:
|
||||
|
||||
Exec=sudo kvpnc
|
||||
X-KDE-SubstituteUID=false
|
||||
|
||||
-- Fathi Boudra <fboudra@free.fr>, Thu, 18 May 2006 15:17:52 +0100
|
@ -0,0 +1,6 @@
|
||||
kvpnc-trinity (0.9.6a-1) lucid; urgency=low
|
||||
|
||||
* Initial build
|
||||
|
||||
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Tue, 06 Dec 2011 12:26:00 -0600
|
||||
|
@ -0,0 +1 @@
|
||||
5
|
@ -0,0 +1,20 @@
|
||||
Source: kvpnc-trinity
|
||||
Section: kde
|
||||
Priority: optional
|
||||
Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
||||
Uploaders: Fathi Boudra <fabo@debian.org>, Mark Purcell <msp@debian.org>
|
||||
Build-Depends: cdbs, debhelper (>= 5), quilt, automake, tdelibs4-trinity-dev, libgcrypt11-dev
|
||||
Standards-Version: 3.8.4
|
||||
|
||||
Package: kvpnc-trinity
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, menu, net-tools, psmisc, tdebase-trinity-bin | gksu | sux, module-init-tools | modutils
|
||||
Suggests: iptables, openssl, openvpn, racoon, vpnc, pptp-linux, openswan, xl2tpd, openct, opensc
|
||||
Description: vpn clients frontend for TDE
|
||||
KVpnc is a TDE frontend for various vpn clients.
|
||||
.
|
||||
It supports :
|
||||
* Cisco-compatible VPN client (vpnc)
|
||||
* IPSec (freeswan, openswan, racoon)
|
||||
* Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
|
||||
* Virtual Private Network daemon (openvpn)
|
@ -0,0 +1,65 @@
|
||||
This package was debianized by Fathi Boudra <fboudra@free.fr> on
|
||||
Thu, 26 Jan 2006 11:49:10 +0100.
|
||||
|
||||
It was downloaded from http://home.gna.org/kvpnc
|
||||
|
||||
Copyright Holder: Christoph Thielecke <crissi99@gmx.de>
|
||||
|
||||
Copyright for ciscopasswddecoder :
|
||||
(C) 2005 hal9000 <hal9000@evilscientists.de>
|
||||
(C) 2005 Maurice Massar <vpnc@unix-ag.uni-kl.de>
|
||||
(C) 2005 Christoph Thielecke <crissi99@gmx.de>
|
||||
|
||||
Copyright for openvpn-kde-dialogs.pl:
|
||||
Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
|
||||
kvpnc contains parts of code from klcc project:
|
||||
Peter Simonsson <psn@linux.se>
|
||||
|
||||
Copyright for kfeedback (user feedback form and mailing utilities) and
|
||||
parts of code from kdirstat project:
|
||||
Stefan Hundhammer <sh@suse.de>
|
||||
|
||||
preferencesdialog contains parts of code from konversation project
|
||||
(konvisettingsdialog.cpp)
|
||||
(C) 2006 John Tapsell <johnflux@gmail.com>
|
||||
(C) 2006 Eike Hein <hein@kde.org>
|
||||
|
||||
kfeedback license:
|
||||
|
||||
This package is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU Lesser General
|
||||
Public License can be found in `/usr/share/common-licenses/LGPL'.
|
||||
|
||||
kvpnc license:
|
||||
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
@ -0,0 +1,2 @@
|
||||
README
|
||||
TODO
|
@ -0,0 +1,69 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH KVPNC 1 "novembre 16, 2005"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
kvpnc \- vpn clients frontend for KDE
|
||||
.SH SYNOPSIS
|
||||
.B kvpnc
|
||||
.RI [ options ]
|
||||
.br
|
||||
.SH DESCRIPTION
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
\fBkvpnc\fP is a KDE frontend for various vpn clients.
|
||||
.br
|
||||
It supports :
|
||||
.br
|
||||
* Cisco-compatible VPN client (vpnc)
|
||||
.br
|
||||
* IPSec (freeswan, openswan, racoon)
|
||||
.br
|
||||
* Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
|
||||
.br
|
||||
* Virtual Private Network daemon (openvpn)
|
||||
.SH OPTIONS
|
||||
All KDE and Qt programs accept some common command\-line options.
|
||||
.br
|
||||
Kvpnc has no application\-specific options.
|
||||
.PP
|
||||
.TP
|
||||
\fB\-\-help\fR
|
||||
Show help about options
|
||||
.TP
|
||||
\fB\-\-help\-qt\fR
|
||||
Show Qt specific options
|
||||
.TP
|
||||
\fB\-\-help\-kde\fR
|
||||
Show KDE specific options
|
||||
.TP
|
||||
\fB\-\-help\-all\fR
|
||||
Show all options
|
||||
.TP
|
||||
\fB\-\-author\fR
|
||||
Show author information
|
||||
.TP
|
||||
\fB\-v\fR, \fB\-\-version\fR
|
||||
Show version information
|
||||
.TP
|
||||
\fB\-\-license\fR
|
||||
Show license information
|
||||
.SH AUTHOR
|
||||
kvpnc was written by Christoph Thielecke <crissi99@gmx.de>.
|
||||
.PP
|
||||
This manual page was written by Fathi Boudra <fboudra@free.fr>,
|
||||
for the Debian project (but may be used by others).
|
@ -0,0 +1,6 @@
|
||||
?package(kvpnc):\
|
||||
needs="X11"\
|
||||
section="Applications/Network/Communication"\
|
||||
title="kvpnc"\
|
||||
hints="KDE"\
|
||||
command="su-to-root -X -c kvpnc"
|
@ -0,0 +1,11 @@
|
||||
--- a/src/kvpnc.desktop
|
||||
+++ b/src/kvpnc.desktop
|
||||
@@ -18,7 +18,7 @@
|
||||
GenericName[xx]=xxVPN Client GUIxx
|
||||
|
||||
Categories=Network;RemoteAccess;KDE;Qt
|
||||
-Exec=kvpnc
|
||||
+Exec=su-to-root -X -c /opt/trinity/bin/kvpnc
|
||||
X-KDE-SubstituteUID=true
|
||||
Icon=kvpnc
|
||||
Type=Application
|
@ -0,0 +1,24 @@
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <kmessagebox.h>
|
||||
#include <kmainwindow.h>
|
||||
#include <kapp.h>
|
||||
+#include <kuser.h>
|
||||
|
||||
#include <klocale.h>
|
||||
#include <dcopclient.h>
|
||||
@@ -129,7 +130,12 @@
|
||||
// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
|
||||
// exit(0);
|
||||
// }
|
||||
-
|
||||
+ if (!KUser().isSuperUser())
|
||||
+ {
|
||||
+ KMessageBox::error( 0L, i18n( "Kvpnc must be started as root!" ) );
|
||||
+ exit(0);
|
||||
+ }
|
||||
+
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||
|
||||
a.setMainWidget( kvpnc );
|
@ -0,0 +1,2 @@
|
||||
10_su-to-root_usage.diff
|
||||
13_add_kuser_issuperuser.diff
|
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||
include /usr/share/cdbs/1/class/kde.mk
|
||||
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
||||
include /usr/share/cdbs/1/rules/utils.mk
|
||||
|
||||
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,--as-needed"
|
||||
DEB_INSTALL_MANPAGES_kvpnc-trinity := debian/kvpnc-trinity.1
|
||||
|
||||
install/kvpnc-trinity::
|
||||
# fix script-not-executable
|
||||
chmod 0755 debian/kvpnc-trinity/opt/trinity/share/apps/kvpnc/ping_check.sh
|
||||
|
||||
# remove uneeded dir
|
||||
rm -rf debian/kvpnc-trinity/opt/trinity/share/doc/kde/HTML/kvpnc
|
||||
|
||||
# install desktop file in applications
|
||||
install -D -p -m0644 src/kvpnc.desktop \
|
||||
debian/kvpnc-trinity/opt/trinity/share/applications/kde/kvpnc.desktop
|
||||
|
||||
binary-post-install/kvpnc-trinity::
|
||||
rm -rf debian/kvpnc-trinity/opt/trinity/share/applnk/
|
||||
|
||||
clean::
|
||||
rm -f config.status config.log
|
||||
find . -type f -name '*.gmo' | xargs rm -f
|
@ -0,0 +1,2 @@
|
||||
version=3
|
||||
http://download.gna.org/kvpnc/kvpnc-(0.*)\.tar\.bz2 debian svn-upgrade
|
Loading…
Reference in new issue