segunda-feira, outubro 31, 2011

Compilar o vpnc com suporte ssl

Compilar o vpnc com suporte ssl (baseado neste post):

Forma simples de instalar um cliente VPN cisco.

Pré requisitos:
sudo apt-get install libgcrypt11-dev openssl libssl-dev debhelper libgnutls-dev dpatch

Arranjar um sitio para colocar o código fonte:
mkdir /tmp/vpnc
cd /tmp/vpnc

Fazer download do código fonte:
apt-get source vpnc
cd <vpnc-version>
vim Makefile

Editar o ficheiro e em vez de:

# Comment this in to obtain a binary with certificate support which is
# GPL incompliant though.
#OPENSSL_GPL_VIOLATION=yes


colocar:
# Comment this in to obtain a binary with certificate support which is
# GPL incompliant though.
OPENSSL_GPL_VIOLATION=yes


Executar o comando para recompilar o pacote:

dpkg-buildpackage

Se ocorrer erro e existirem patches para aplicar, fazer:
dpkg-source --commit
e depois novamente:
dpkg-buildpackage





No dir /tmp/vpnc deve aparecer o pacote .deb pronto a instalar.

dpkg -i <vpnc_version_i386.deb>

No meu caso o ficheiro gerado foi vpnc_0.5.3r449-2.1_amd64.deb porque uso arquitectura amd64.

3 comentários:

Anónimo disse...

Wonderful goods from you, man. I've bear in mind your stuff previous to and you are simply extremely fantastic. I really like what you've
got here, really like what you're saying and the best way in which you say it. You are making it entertaining and you still take care of to stay it sensible. I can't wait to read much more
from you. That is actually a tremendous website.
my site :: mma fighters

Anónimo disse...

What's up friends, fastidious piece of writing and pleasant urging commented at this place, I am truly enjoying by these.
Also see my web site: click through the next article

Anónimo disse...

If you desire to get much from this post then you have to apply such techniques to your won
website.

Here is my page Spazio-kovan