Changes between Version 1 and Version 2 of SettingUpGenericBuildsystem


Ignore:
Timestamp:
02/28/13 10:22:36 (11 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SettingUpGenericBuildsystem

    v1 v2  
    99You need to install a bunch of tools before attempting a build:
    1010
    11  * [http://mingw-w64.sourceforge.net/ mingw-w64], version 2.0.x, [wiki:InstallingMingwW64 may need backported patches] (if building Windows binaries)
     11 * [http://mingw-w64.sourceforge.net/ mingw-w64], version 2.0.x.
    1212 * gcc-*-arm-linux-gnueabi (if building Arm binaries)
    1313 * [http://git-scm.com/ Git]
     
    1515 * [http://waterlan.home.xs4all.nl/dos2unix.html dos2unix] (for ''windows-nsis'' builds)
    1616 * [http://nsis.sourceforge.net/Main_Page NSIS]: if you need support for riducuously long PATHs, you need to [wiki::BuildingMakeNSIS build NSIS] yourself.
    17  * [http://osslsigncode.sourceforge.net/ osslsigncode] ([wiki:BuildingUsingGenericBuildsystem#Installingosslsigncode installation instructions])
     17 * [http://osslsigncode.sourceforge.net/ osslsigncode] version 1.4 or later (pkcs12 support needed). Earlier versions can be used with minor modifications to the codesign() method in the build scripts.
     18
     19= Converting certificates to PKCS12 format =
     20
     21If you have code-signing certificates generated with MS tools (.spc and .pvk files), you can convert them into standard (pkcs12) format using [attachment:spc+pvk-to-p12.sh this script]. If that fails, look at this [wiki:BuildingUsingGenericBuildsystem@51 old version of this page] for manual instructions.
     22
     23You can also create ''self-signed'' certificate for testing like this:
     24
     25{{{
     26$ openssl req -newkey rsa:1024 -new -x509 -subj "/CN=test1" -out test.crt       
     27$ openssl pkcs12 -export -inkey privkey.pem -in test.crt -out test.p12 
     28}}}
     29
     30Once you have the pkcs12 archive, you can give it and it's password as argument to the buildsystem(s). For details, look here:
     31
     32 * [wiki:BuildingUsingGenericBuildsystem#CreatingaNSISinstallerwindows-nsissubdir Building Windows NSIS installer]
     33 * [wiki:BuildingUsingGenericBuildsystem#BuildingTAP-Windows Building tap-windows]
    1834
    1935= Build environment -specific instructions =
    2036
    21 == Setting up Ubuntu 12.04 ==
     37== Ubuntu 12.04 ==
    2238
    23 On Ubuntu 12.04 (64-bit) you the following commands should take care of everything except osslsigncode:
     39On Ubuntu 12.04 (64-bit) you most build dependencies are satisfied if you run the following command:
    2440
    2541{{{
     
    2844}}}
    2945
     46If you intend to build Windows installers with OpenVPN-GUI, you need to install a [wiki:InstallingMingwW64 modified MinGW version].
     47
     48If you wish to sign the release files (executables, libraries and installers), you need to build [http://sourceforge.net/projects/osslsigncode/ osslsigncode] manually. First install OpenSSL and Curl development libraries:
     49
     50{{{
     51$ apt-get update
     52$ apt-get install libssl-dev libcurl4-openssl-dev
     53}}}
     54
     55The curl library is used for timestamping support. Extract the osslsigncode tarball and issue the usual commands:
     56
     57{{{
     58$ ./configure
     59$ make
     60$ sudo make install
     61}}}
     62
     63This will put osslsigncode in PATH where the build system can find it.
     64
    3065== Ubuntu 12.10 ==
    3166