23.11.2014 Views

CRIPTOGRAFIA - FESP

CRIPTOGRAFIA - FESP

CRIPTOGRAFIA - FESP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

where $USER is your username on the machine), create a file (i.e. call it<br />

rpmsetup)and paste this script in it : RPM Setup Script (for i586 arch).<br />

Make it executable:<br />

chmod a+x rpmsetup<br />

And launch it:<br />

./rpmsetup<br />

Then, download the OpenVPN tarball and the GnuPG signaturehere :<br />

http://openvpn.net/download.html<br />

Import James Yonan's (OpenVPN Author) signature:<br />

gpg --recv-keys 1FBF51F3<br />

Verify the package:<br />

gpg --verify openvpn-2.1_beta14.tar.gz.asc<br />

(replace openvpn-2.1_beta14.tar.gz.asc by the version you are testing)<br />

extract the tarball:<br />

tar -xvzf openvpn-2.1_beta14.tar.gz<br />

modify the openvpn-2.1_beta14/openvpn.spec file and when you see:<br />

%if "%{_vendor}" == "MandrakeSoft"<br />

%{!?without_lzo:BuildRequires: liblzo1-devel >= 1.07}<br />

%{!?without_lzo:Requires: liblzo1 >= 1.07}<br />

%else<br />

%{!?without_lzo:BuildRequires: lzo-devel >= 1.07}<br />

%{!?without_lzo:Requires: lzo >= 1.07}<br />

add requires for the Mandriva distribution this way:<br />

%if "%{_vendor}" == "MandakeSoft"<br />

%{!?without_lzo:BuildRequires: liblzo1-devel >= 1.07}<br />

%{!?without_lzo:Requires: liblzo1 >= 1.07}<br />

%else<br />

%if "%{_vendor}" == "Mandriva"<br />

%{!?without_lzo:BuildRequires: liblzo2_2-devel >= 2.01}<br />

%{!?without_lzo:Requires: liblzo2_2 >= 2.01}<br />

%else<br />

%{!?without_lzo:BuildRequires: lzo-devel >= 1.07}<br />

%{!?without_lzo:Requires: lzo >= 1.07}<br />

create a new tarball with the modifications:<br />

mv openvpn-2.1_beta14.tar.gz openvpn-2.1_beta14.tar.gz.orig<br />

tar -cvzf openvpn-2.1_beta14.tar.gz openvpn-2.1_beta14<br />

and finally build your rpm (as a user):<br />

rpmbuild -tb openvpn-2.1_beta14.tar.gz

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!