Difference between revisions of "PKI 10 Development"

From Dogtag
Jump to: navigation, search
m (Source Code)
(Source Code)
Line 12: Line 12:
  
 
<pre>
 
<pre>
$ yum install git rpm-build gcc gcc-c++
+
$ yum install git rpm-build make gcc gcc-c++
 
$ git clone git://git.fedorahosted.org/git/pki.git
 
$ git clone git://git.fedorahosted.org/git/pki.git
 
$ cd pki
 
$ cd pki

Revision as of 16:42, 18 March 2015

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 make 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/*