Build patched openvpn Linux package

# This post replaced by

https://scramblevpn.wordpress.com/2014/05/28/build-deb-linux-package/

# due to openvpn-2.3.4 heartbleed update

#==================================================================
#==================================================================
#==================================================================
# Old post. This is no longer valid and supported
# Base source openvpn-2.3.2
#
#==================================================================

# Need a few components to be able to compile and later install deb package
sudo apt-get update -y
sudo apt-get install gcc make automake autoconf dh-autoreconf file patch perl dh-make debhelper devscripts gnupg lintian quilt libtool pkg-config libssl-dev liblzo2-dev libpam0g-dev libpkcs11-helper1-dev -y
wget http://snapshot.debian.org/archive/debian-ports/20110407T130234Z/pool-armhf/main/o/openssl098/libssl0.9.8_0.9.8o-7_armhf.deb
sudo dpkg -i libssl0.9.8_0.9.8o-7_armhf.deb
sudo apt-get install openssl-blacklist openvpn-blacklist

# Now we start
cd $HOME/
git clone https://github.com/mattock/openvpn-build
cd $HOME/openvpn-build/debian/openvpn/
cp changelog.sample changelog
# Edit Changed log to say 2.3.2-Scramblevpn-raspbian
sudo nano changelog

openvpn (2.3.2-Scramblevpn-raspbian) stable; urgency=low

* somechange by someone
* another change by another

-- John Doe Tue, 2 Jul 2012 13:06:00 +0000

# fetch source code & apply patch
cd $HOME/openvpn-build/debian/openvpn
wget http://swupdate.openvpn.org/community/releases/openvpn-2.3.2.zip
unzip openvpn-2.3.2.zip
wget https://github.com/clayface/openvpn_xorpatch/archive/master.zip
unzip master.zip
cp openvpn_xorpatch-master/openvpn_xor.patch openvpn-2.3.2/
cd openvpn-2.3.2/
git apply --check openvpn_xor.patch
git apply openvpn_xor.patch

# Build Deb package
cd $HOME/openvpn-build/debian/openvpn
sudo cp -r debian openvpn-2.3.2/
sudo cp changelog openvpn-2.3.2/debian/
cd openvpn-2.3.2
sudo dpkg-buildpackage -b
ls -l $HOME/openvpn-build/debian/openvpn
cd $HOME/openvpn-build/debian/openvpn

# Test Install
sudo dpkg -i openvpn_2.3.2-Scramblevpn-raspbian_armhf.deb

# Test uninstall
sudo dpkg -r openvpn

# If you are on different h/w or linux system please build your own package
# something like above.
# Deb package available for Raspberry pi, Install as follows

wget http://snapshot.debian.org/archive/debian-ports/20110407T130234Z/pool-armhf/main/o/openssl098/libssl0.9.8_0.9.8o-7_armhf.deb
sudo dpkg -i libssl0.9.8_0.9.8o-7_armhf.deb
sudo apt-get install openssl-blacklist openvpn-blacklist liblzo2-dev libpam0g-dev libpkcs11-helper1-dev -y
wget --no-check-cert https://www.dropbox.com/s/pdhlcw7870ucsle/openvpn_2.3.2-Scramblevpn-raspbian_armhf.deb
sudo dpkg -i openvpn_2.3.2-Scramblevpn-raspbian_armhf.deb

###########################################################################
Other compiled versions
There is a dependency on libssl0.9.8, so you need to download and install from
https://packages.debian.org/squeeze/libssl0.9.8

Ubuntu AMD64
https://www.dropbox.com/s/0v3mpijtb5ogyk4/openvpn_2.3.2-scramblevpn-64bitubuntu1204_amd64.deb

Ubuntu 12.04 32-bit Minimal
https://www.dropbox.com/s/u4pba8ip5ggwy3z/openvpn_2.3.2-scramble-ubuntu1204_i386.deb

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Build patched openvpn Linux package

  1. dadang says:

    error for me………
    /opt/openvpn-build/debian/openvpn# sudo dpkg -i openvpn_2.3.2-Scramblevpn-raspbian_armhf.deb
    dpkg-deb: `openvpn_2.3.2-Scramblevpn-raspbian_armhf.deb’ is not a debian format archive
    dpkg: error processing openvpn_2.3.2-Scramblevpn-raspbian_armhf.deb (–install):
    subprocess dpkg-deb –control returned error exit status 2
    Errors were encountered while processing:
    openvpn_2.3.2-Scramblevpn-raspbian_armhf.deb

    • scramblevpn says:

      yes, many thanks found the problem

      problem was, wget of the deb package from github, seems to corrupt it.
      but using dropbox is ok.

      btw Building your own package should also work.
      This is the safest thing to do.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s