Openvpn Building rpm

Building OpenVPN RPM's from the Tar file
To Build The rpm for OpenVPN first you will need. yum -y install rpm-build openssl openssl-devel lzo lzo-devel pam pam-devel device-mapper device-mapper-devel \ openssl openssl-devel pkcs11-helper-devel Next as download the OpenVPN tar.gz file from. http://openvpn.net/download.html and place it in your home directory. cd /home/matt wget http://openvpn.net/release/openvpn-2.1_rc7.tar.gz rpmbuild -tb openvpn-2.1_rc7.tar.gz mv /usr/src/redhat/RPMS/*/openvpn*rpm. When your done building the rpm it should be stored at /usr/src/redhat/RPMS/i386/ so... your done.

My Prebuild OpenVPN RPM's are:
 * Openvpn-2.1_rc4.F7.i386.rpm
 * Openvpn-2.1_rc4.FC6.i386.rpm

Building OpenVPN RPM's from SVN Source
To Build The rpm for OpenVPN first you will need. yum -y install rpm-build openssl openssl-devel lzo lzo-devel pam pam-devel autoconf subversion Then to build them run. cd /tmp/svn rm -rf openvp* svn co http://svn.openvpn.net/projects/openvpn/trunk/openvpn/ cd openvpn autoreconf -i -v ./configure make cp openvpn.spec .. cd /tmp/svn mv openvpn openvpn-`grep Version: /tmp/svn/openvpn.spec |awk '{ print $2 }'` tar -czf /usr/src/redhat/SOURCES/openvpn-`grep Version: /tmp/svn/openvpn.spec |awk '{ print $2 }'`.tar.gz openvpn-`grep Version: /tmp/svn/openvpn.spec |awk '{ print $2 }'` rpmbuild -ta /usr/src/redhat/SOURCES/openvpn-`grep Version: /tmp/svn/openvpn.spec |awk '{ print $2 }'`.tar.gz The above script will install from the current release trunk. If you would like to install a diffrent version look at http://svn.openvpn.net/projects/openvpn/branches/ for more versions.