Kubuntu: Howto build vpnc with SSL-support

The version of vpnc form the (k)ubuntu adept repository doesn’t have builtin
SSL-support. So you have to build it from the sources manually.

  1. for building deb packages:

    # apt-get install fakeroot debhelper dpatch

  2. for compiling vpnc with ssl support:

    # apt-get install libgcrypt11-dev openssl libssl-dev

  3. create temp directory and get vpnc sources:

    # mkdir tmp_dir
    # cd tmp_dir
    # apt-get source vpnc

  4. modify MAKEFILE:
    To enable OpenSSL certificate support cd to the directory containing
    the vpnc sources and uncomment following lines in Makefile:

    OPENSSL_GPL_VIOLATION = -DOPENSSL_GPL_VIOLATION
    OPENSSLLIBS = -lcrypto
    
  5. build the package:

    # dpkg-buildpackage -rfakeroot

  6. install the package:

    # dpkg -i vpnc_0.5.1r275-1_amd64.deb

Done.