Difference between revisions of "PKI 10 Development"

From Dogtag
Jump to: navigation, search
m (Steps to go from a minimal Fedora install to a working dogtag 10 Build)
Line 1: Line 1:
== Steps to go from a minimal Fedora install to a working dogtag 10 Build ==
+
== Overview ==
  
In the steps below, I did the build as root. Its easy enough to modify the procedure though.  Just make sure you have sudo access to run the yum commands.
+
This page describes the process to build Dogtag 10. Some of the commands may require root or sudo access.
  
1. Make sure you have the correct Fedora version for the Dogtag version you want to build:
+
= 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.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.
 
* Dogtag 10.1 or later will only work on Fedora 20 or later.
  
2. Get the source:
+
= Source Code =
 +
 
 +
<pre>
 +
$ yum install git rpm-build gcc gcc-c++
 +
$ mkdir dogtag
 +
$ cd dogtag
 +
$ git clone git://git.fedorahosted.org/git/pki.git
 +
</pre>
 +
 
 +
Checkout the right branch. 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.
  
  yum install git rpm-build gcc gcc-c++
+
<pre>
  mkdir dogtag; cd dogtag
+
$ cd pki
  git clone git://git.fedorahosted.org/git/pki.git
+
$ git branch -r
 +
$ git checkout <branch>
 +
</pre>
  
3. Make sure you have the right branch.    For Fedora 20, you want HEAD/master 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.
+
= Dependencies =
  
  cd pki
+
We use the yum-builddep command for this, which is provided by the yum-utils package.
  git branch -r
 
  
4. Get the build requirements.  We use the yum-builddep command for this, which is provided by the yum-utils package.
+
<pre>
 +
$ yum-builddep ./specs/pki-core.spec
 +
</pre>
  
  yum-builddep ./specs/pki-core.spec
+
= Building =
  
5. Do the build:
+
<pre>
    cd scripts/
+
$ cd scripts/
  ./compose_pki_core_packages rpms
+
$ ./compose_pki_core_packages rpms
 +
</pre>
  
 
RPMS will be built and placed under ../../packages/RPMS.  You can install them by doing :
 
RPMS will be built and placed under ../../packages/RPMS.  You can install them by doing :
  
  yum localinstall ../../packages/RPMS/noarch/* ../../packages/RPMS/x86_64/*
+
<pre>
 +
$ yum localinstall ../../packages/RPMS/noarch/* ../../packages/RPMS/x86_64/*
 +
</pre>

Revision as of 16:01, 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++
$ mkdir dogtag
$ cd dogtag
$ git clone git://git.fedorahosted.org/git/pki.git

Checkout the right branch. 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.

$ cd pki
$ 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/*