diff options
Diffstat (limited to 'community/kvpnc')
-rw-r--r-- | community/kvpnc/PKGBUILD | 27 | ||||
-rw-r--r-- | community/kvpnc/kvpnc.install | 52 |
2 files changed, 79 insertions, 0 deletions
diff --git a/community/kvpnc/PKGBUILD b/community/kvpnc/PKGBUILD new file mode 100644 index 000000000..f80a814c3 --- /dev/null +++ b/community/kvpnc/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 18438 2010-06-04 15:44:00Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Danial Olsen <do@meyl.fo> + +pkgname=kvpnc +pkgver=0.9.6a +pkgrel=1 +pkgdesc="KVpnc is a KDE Desktop Environment frontend for various vpn clients" +arch=(i686 x86_64) +url="http://home.gna.org/kvpnc/" +license=("GPL") +depends=('kdelibs' 'hicolor-icon-theme') +makedepends=('cmake' 'automoc4') +install=kvpnc.install +options=(force) +source=(http://download.gna.org/$pkgname/$pkgname-${pkgver}-kde4.tar.bz2) +md5sums=('bf8b7224284f5d3f8ad5235c599fe9e7') + +build() { + cd $srcdir/${pkgname}-${pkgver}-kde4 + + export LDFLAGS=-lX11 + + cmake . -DCMAKE_INSTALL_PREFIX=/usr + make || return 1 + make DESTDIR=$pkgdir install || return 1 +} diff --git a/community/kvpnc/kvpnc.install b/community/kvpnc/kvpnc.install new file mode 100644 index 000000000..77b839ca2 --- /dev/null +++ b/community/kvpnc/kvpnc.install @@ -0,0 +1,52 @@ +# arg 1: the new package version +post_install() { + echo " +You will need a vpn client, these are supported: +----------------------------------------------- +- vpnc >= 0.2-rm+zomb-pre9 Cisco VPN +- FreeS/WAN (OpenS/WAN too) >= 2.x IPSec VPN Linux 2.4/2.6 +- racoon (ipsec-tools) > = 1.x IPSec VPN Linux 2.6 +- pptpclient PPTP VPN +- OpenVPN VPN based on SSL + + +====================================================== +Howto setup KVpnc for use without root password - sudo +====================================================== + +1. install sudo + +2. edit /etc/sudoers + + # Cmnd alias specification + Cmnd_Alias KVPNC = /usr/bin/kvpnc + + # User privilege specification + ALL ALL=NOPASSWD:KVPNC + +3. edit desktop link (/usr/share/applications/kde4/kvpnc.desktop) + + replace the folling lines: + + Exec=kvpnc + X-KDE-SubstituteUID=true + + with: + + Exec=sudo kvpnc + X-KDE-SubstituteUID=false +" + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + +# arg 1: the old package version +post_remove() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + |