Difference between revisions of "PKI 10 Development"

From Dogtag
Jump to: navigation, search
m (Source Code)
m (Source Code)
Line 17: Line 17:
 
</pre>
 
</pre>
  
Checkout the right branch for the operating system. For Fedora 20, you want master branch or the DOGTAG_10_1_BRANCH branch. For Fedora 19/18, you want the DOGTAG_10_0_BRANCH branch.  Switch to the relevant branch using git checkout.
+
Checkout the right branch for the operating system:
 +
* Dogtag 10.2: master
 +
* Dogtag 10.1: DOGTAG_10_1_BRANCH
 +
* Dogtag 10.0: DOGTAG_10_0_BRANCH
  
 
<pre>
 
<pre>

Revision as of 16:04, 24 April 2014

Overview

This page describes the process to build Dogtag 10. Some of the commands may require root or sudo access.

Operating System

Make sure you have the correct Fedora version for the Dogtag version you want to build:

  • Dogtag 10.0 will only work on Fedora 18 and 19. It does not work on Fedora 20 or later.
  • Dogtag 10.1 or later will only work on Fedora 20 or later.

Source Code

$ yum install git rpm-build gcc gcc-c++
$ git clone git://git.fedorahosted.org/git/pki.git
$ cd pki

Checkout the right branch for the operating system:

  • Dogtag 10.2: master
  • Dogtag 10.1: DOGTAG_10_1_BRANCH
  • Dogtag 10.0: DOGTAG_10_0_BRANCH
$ git branch -r
$ git checkout <branch>

Dependencies

We use the yum-builddep command for this, which is provided by the yum-utils package.

$ yum-builddep ./specs/pki-core.spec

Building

$ cd scripts/
$ ./compose_pki_core_packages rpms

RPMS will be built and placed under ../../packages/RPMS. You can install them by doing :

$ yum localinstall ../../packages/RPMS/noarch/* ../../packages/RPMS/x86_64/*