summaryrefslogtreecommitdiff
path: root/community/kvpnc/kvpnc.install
blob: 77b839ca23df4b02c5f603058162f557a599c483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
}