curl -o openvswitch-2.7.0.tar.gz http://openvswitch.org/releases/openvswitch-2.7.0.tar.gz
tar zxvf openvswitch-2.7.0.tar.gz
cd openvswitch-2.7.0
# if everything is ok then this should return no output
dpkg-checkbuilddeps
`DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary`
The .deb files for ovs will be built and placed in the parent directory (ie. in …/). The next step is to build the kernel modules.
Install datapath sources
cd ..
apt-get -y install module-assistant
dpkg -i openvswitch-datapath-source_2.7.0-1_all.deb
Build kernel modules using module-assistant
m-a prepare
m-a build openvswitch-datapath
Copy the resulting deb package. Note that your version may differ slightly depending on your specific kernel version.