summaryrefslogtreecommitdiffstats
path: root/pki/dogtag
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-07-13 22:30:41 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-07-13 22:30:41 +0000
commit7db47ec57c27ea82aaff61922040007f205a06cc (patch)
treef42fdf8f1522ab9edece4f1d268a5a9247eb4ef8 /pki/dogtag
parent6b523d3f3b48ba0ad1f32b746412719710fbd352 (diff)
downloadpki-7db47ec57c27ea82aaff61922040007f205a06cc.tar.gz
pki-7db47ec57c27ea82aaff61922040007f205a06cc.tar.xz
pki-7db47ec57c27ea82aaff61922040007f205a06cc.zip
Bugzilla Bug #669226 - Remove Legacy Build System (Ant + Autoconf --> CMake)
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2057 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/dogtag')
-rw-r--r--pki/dogtag/ca-ui/build.xml273
-rwxr-xr-xpki/dogtag/ca-ui/build_dogtag82
-rw-r--r--pki/dogtag/ca-ui/dogtag-pki-ca-ui.spec62
-rwxr-xr-xpki/dogtag/ca/build_dogtag82
-rw-r--r--pki/dogtag/ca/pki-ca.spec104
-rwxr-xr-xpki/dogtag/common/build_dogtag82
-rw-r--r--pki/dogtag/common/pki-common.spec119
-rwxr-xr-xpki/dogtag/config-ext/build_dogtag_pki322
-rwxr-xr-xpki/dogtag/console/build_dogtag82
-rw-r--r--pki/dogtag/console/pki-console.spec65
-rwxr-xr-xpki/dogtag/java-tools/build_dogtag82
-rw-r--r--pki/dogtag/java-tools/pki-java-tools.spec82
-rwxr-xr-xpki/dogtag/kra/build_dogtag82
-rw-r--r--pki/dogtag/kra/pki-kra.spec113
-rwxr-xr-xpki/dogtag/manage/build_dogtag82
-rw-r--r--pki/dogtag/manage/pki-manage.spec59
-rwxr-xr-xpki/dogtag/meta/build_dogtag78
-rw-r--r--pki/dogtag/meta/dogtag-pki.spec120
-rwxr-xr-xpki/dogtag/migrate/build_dogtag82
-rw-r--r--pki/dogtag/migrate/pki-migrate.spec72
-rwxr-xr-xpki/dogtag/native-tools/build_dogtag82
-rw-r--r--pki/dogtag/native-tools/pki-native-tools.spec80
-rwxr-xr-xpki/dogtag/ocsp/build_dogtag82
-rw-r--r--pki/dogtag/ocsp/pki-ocsp.spec122
-rwxr-xr-xpki/dogtag/osutil/build_dogtag82
-rw-r--r--pki/dogtag/osutil/osutil.spec77
-rwxr-xr-xpki/dogtag/ra/build_dogtag82
-rw-r--r--pki/dogtag/ra/pki-ra.spec120
-rw-r--r--pki/dogtag/scripts/dogtag_svn_external_properties_db11
-rwxr-xr-xpki/dogtag/scripts/set_dogtag_SVN_external_properties48
-rwxr-xr-xpki/dogtag/selinux/build_dogtag82
-rw-r--r--pki/dogtag/selinux/pki-selinux.spec86
-rwxr-xr-xpki/dogtag/setup/build_dogtag82
-rw-r--r--pki/dogtag/setup/pki-setup.spec64
-rwxr-xr-xpki/dogtag/silent/build_dogtag82
-rw-r--r--pki/dogtag/silent/pki-silent.spec76
-rwxr-xr-xpki/dogtag/symkey/build_dogtag82
-rw-r--r--pki/dogtag/symkey/pki-symkey.spec82
-rwxr-xr-xpki/dogtag/tks/build_dogtag82
-rw-r--r--pki/dogtag/tks/pki-tks.spec115
-rwxr-xr-xpki/dogtag/tps/build_dogtag83
-rw-r--r--pki/dogtag/tps/pki-tps.spec229
-rwxr-xr-xpki/dogtag/util/build_dogtag82
-rw-r--r--pki/dogtag/util/pki-util.spec92
44 files changed, 0 insertions, 4230 deletions
diff --git a/pki/dogtag/ca-ui/build.xml b/pki/dogtag/ca-ui/build.xml
deleted file mode 100644
index 1b3bcf91d..000000000
--- a/pki/dogtag/ca-ui/build.xml
+++ /dev/null
@@ -1,273 +0,0 @@
-<!-- ### BEGIN COPYRIGHT BLOCK ###
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; version 2 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
- Copyright (C) 2007 Red Hat, Inc.
- All rights reserved.
- ### END COPYRIGHT BLOCK ### -->
-<project name="ca-ui" default="main" basedir=".">
-
- <import file="config/product.xml"/>
- <import file="config/product-ext.xml" optional="true"/>
-
-
- <target name="clean"
- depends=""
- description="--> remove component directories">
- <echo message="${begin.clean.log.message}"/>
- <delete dir="${dist.base}"/>
- <delete dir="${build.dir}"/>
- <echo message="${end.clean.log.message}"/>
- </target>
-
-
- <target name="download"
- depends=""
- description="--> download dependent components">
- <echo message="${begin.download.log.message}"/>
- <echo message="${empty.download.log.message}"/>
- <echo message="${end.download.log.message}"/>
- </target>
-
-
- <target name="compile_java"
- depends=""
- description="--> compile java source code into classes">
- <echo message="${begin.compile.java.log.message}"/>
- <echo message="${empty.compile.java.log.message}"/>
- <echo message="${end.compile.java.log.message}"/>
- </target>
-
-
- <target name="build_jars"
- depends="compile_java"
- description="--> generate jar files">
- <echo message="${begin.build.jars.log.message}"/>
- <echo message="${empty.build.jars.log.message}"/>
- <echo message="${end.build.jars.log.message}"/>
- </target>
-
-
- <target name="build_jni_headers"
- depends="compile_java"
- description="--> generate jni header files">
- <echo message="${begin.build.jni.headers.log.message}"/>
- <echo message="${empty.build.jni.headers.log.message}"/>
- <echo message="${end.build.jni.headers.log.message}"/>
- </target>
-
-
- <target name="build"
- depends="build_jars,build_jni_headers"
- description="--> build classes, jars, and jni headers">
- <echo message="${notify.build.log.message}"/>
- </target>
-
-
- <target name="compile_junit_tests"
- depends="build"
- description="--> compile junit test source code">
- <echo message="${begin.compile.junit.tests.log.message}"/>
- <echo message="${empty.compile.junit.tests.log.message}"/>
- <echo message="${end.compile.junit.tests.log.message}"/>
- </target>
-
-
- <target name="run_junit_tests"
- depends="compile_junit_tests"
- description="--> execute junit tests">
- <echo message="${begin.run.junit.tests.log.message}"/>
- <echo message="${empty.run.junit.tests.log.message}"/>
- <echo message="${end.run.junit.tests.log.message}"/>
- </target>
-
-
- <target name="verify"
- depends="run_junit_tests"
- description="--> build and execute junit tests">
- <echo message="${notify.verify.log.message}"/>
- </target>
-
-
- <target name="clean_javadocs"
- depends=""
- description="--> remove javadocs directory">
- <echo message="${begin.clean.javadocs.log.message}"/>
- <echo message="${empty.clean.javadocs.log.message}"/>
- <echo message="${end.clean.javadocs.log.message}"/>
- </target>
-
-
- <target name="compose_javadocs"
- depends="build"
- description="--> generate javadocs">
- <echo message="${begin.compose.javadocs.log.message}"/>
- <echo message="${empty.compose.javadocs.log.message}"/>
- <echo message="${end.compose.javadocs.log.message}"/>
- </target>
-
-
- <target name="document"
- depends="clean_javadocs,compose_javadocs"
- description="--> remove old javadocs and compose new javadocs">
- <echo message="${notify.document.log.message}"/>
- </target>
-
-
- <target name="distribute_binaries"
- depends="document"
- description="--> create the zip and gzipped tar binary distributions">
- <echo message="${begin.distribute.binaries.log.message}"/>
- <mkdir dir="${dist.base.binaries}"/>
-
- <echo message="${begin.binary.wrappers.log.message}"/>
- <echo message="${empty.binary.wrappers.log.message}"/>
- <echo message="${end.binary.wrappers.log.message}"/>
-
- <echo message="${begin.binary.zip.log.message}"/>
- <zip destfile="${dist.base.binaries}/${dist.name}.zip">
- <zipfileset dir="./shared"
- filemode="644"
- prefix="usr/share/${product.prefix}/${product}">
- <include name="**"/>
- </zipfileset>
- <zipfileset dir="."
- filemode="644"
- prefix="usr/share/doc/${dist.name}">
- <include name="LICENSE"/>
- </zipfileset>
- </zip>
- <echo message="${end.binary.zip.log.message}"/>
-
- <echo message="${begin.binary.tar.log.message}"/>
- <tar longfile="gnu"
- destfile="${dist.base.binaries}/${dist.name}.tar">
- <tarfileset dir="./shared"
- mode="644"
- prefix="${dist.name}/usr/share/${product.prefix}/${product}">
- <include name="**"/>
- </tarfileset>
- <tarfileset dir="."
- mode="644"
- prefix="${dist.name}/usr/share/doc/${dist.name}">
- <include name="LICENSE"/>
- </tarfileset>
- </tar>
- <echo message="${end.binary.tar.log.message}"/>
-
- <echo message="${begin.binary.gtar.log.message}"/>
- <gzip destfile="${dist.base.binaries}/${dist.name}.tar.gz"
- src="${dist.base.binaries}/${dist.name}.tar"/>
- <delete file="${dist.base.binaries}/${dist.name}.tar"/>
- <delete dir="${dist.name}"/>
- <checksum fileext=".md5">
- <fileset dir="${dist.base.binaries}/">
- <include name="**/*"/>
- <exclude name="**/*.asc"/>
- <exclude name="**/*.md5"/>
- </fileset>
- </checksum>
- <checksum fileext=".sha1"
- algorithm="SHA">
- <fileset dir="${dist.base.binaries}/">
- <include name="**/*"/>
- <exclude name="**/*.asc"/>
- <exclude name="**/*.md5"/>
- </fileset>
- </checksum>
- <echo message="${end.binary.gtar.log.message}"/>
-
- <echo message="${end.distribute.binaries.log.message}"/>
- </target>
-
-
- <target name="distribute_source"
- depends=""
- description="--> create the zip and gzipped tar source distributions">
- <echo message="${begin.distribute.source.log.message}"/>
- <mkdir dir="${dist.base.source}"/>
-
- <echo message="${begin.source.zip.log.message}"/>
- <zip destfile="${dist.base.source}/${src.dist.name}.zip">
- <zipfileset dir="."
- filemode="644"
- prefix="${src.dist.name}">
- <include name="${specfile}"/>
- <include name="LICENSE"/>
- <include name="build.xml"/>
- <include name="config/product*.xml"/>
- <include name="config/release*.xml"/>
- <include name="release"/>
- <include name="shared/**"/>
- </zipfileset>
- </zip>
- <echo message="${end.source.zip.log.message}"/>
-
- <echo message="${begin.source.tar.log.message}"/>
- <tar longfile="gnu"
- destfile="${dist.base.source}/${src.dist.name}.tar">
- <tarfileset dir="."
- mode="644"
- prefix="${src.dist.name}">
- <include name="${specfile}"/>
- <include name="LICENSE"/>
- <include name="build.xml"/>
- <include name="config/product*.xml"/>
- <include name="config/release*.xml"/>
- <include name="release"/>
- <include name="shared/**"/>
- </tarfileset>
- </tar>
- <echo message="${end.source.tar.log.message}"/>
-
- <echo message="${begin.source.gtar.log.message}"/>
- <gzip destfile="${dist.base.source}/${src.dist.name}.tar.gz"
- src="${dist.base.source}/${src.dist.name}.tar"/>
- <delete file="${dist.base.source}/${src.dist.name}.tar"/>
- <delete dir="${dist.name}"/>
- <checksum fileext=".md5">
- <fileset dir="${dist.base.source}/">
- <include name="**/*"/>
- <exclude name="**/*.asc"/>
- <exclude name="**/*.md5"/>
- </fileset>
- </checksum>
- <checksum fileext=".sha1"
- algorithm="SHA">
- <fileset dir="${dist.base.source}/">
- <include name="**/*"/>
- <exclude name="**/*.asc"/>
- <exclude name="**/*.md5"/>
- </fileset>
- </checksum>
- <echo message="${end.source.gtar.log.message}"/>
-
- <echo message="${end.distribute.source.log.message}"/>
- </target>
-
-
- <target name="distribute"
- depends="distribute_binaries,distribute_source"
- description="--> create binary and source component distributions">
- <echo message="${notify.distribute.log.message}"/>
- </target>
-
-
- <target name="main"
- depends="clean,distribute"
- description="--> clean, build, verify, document, distribute [default]">
- <echo message="${notify.main.log.message}"/>
- </target>
-
-</project>
-
diff --git a/pki/dogtag/ca-ui/build_dogtag b/pki/dogtag/ca-ui/build_dogtag
deleted file mode 100755
index d6b520097..000000000
--- a/pki/dogtag/ca-ui/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="dogtag-pki-ca-ui.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX="dogtag"
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="ca-ui"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/ca-ui/dogtag-pki-ca-ui.spec b/pki/dogtag/ca-ui/dogtag-pki-ca-ui.spec
deleted file mode 100644
index ce105f523..000000000
--- a/pki/dogtag/ca-ui/dogtag-pki-ca-ui.spec
+++ /dev/null
@@ -1,62 +0,0 @@
-Name: dogtag-pki-ca-ui
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - Certificate Authority User Interface
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-# NOTE: Several PKI packages require a "virtual" UI component. These
-# "virtual" UI components are "Provided" by various UI "flavors"
-# including "dogtag", "redhat", and "null". Consequently,
-# all "dogtag", "redhat", and "null" UI components MUST be
-# mutually exclusive!
-Provides: pki-ca-ui = %{version}-%{release}
-
-Obsoletes: pki-ca-ui < %{version}-%{release}
-
-Conflicts: null-pki-ca-ui
-Conflicts: redhat-pki-ca-ui
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Certificate Authority User Interface contains the graphical
-user interface for the Dogtag Certificate Authority.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="dogtag" \
- -Dproduct.prefix="pki" \
- -Dproduct="ca-ui" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_datadir}/pki/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/ca/build_dogtag b/pki/dogtag/ca/build_dogtag
deleted file mode 100755
index de016271a..000000000
--- a/pki/dogtag/ca/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-ca.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="ca"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/ca/pki-ca.spec b/pki/dogtag/ca/pki-ca.spec
deleted file mode 100644
index 527716af4..000000000
--- a/pki/dogtag/ca/pki-ca.spec
+++ /dev/null
@@ -1,104 +0,0 @@
-Name: pki-ca
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - Certificate Authority
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Daemons
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: pki-common
-BuildRequires: pki-util
-BuildRequires: tomcatjss
-
-Requires: java >= 1:1.6.0
-Requires: pki-ca-ui
-Requires: pki-common
-Requires: pki-selinux
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires(postun): initscripts
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Certificate Authority is a required PKI subsystem which issues,
-renews, revokes, and publishes certificates as well as compiling and
-publishing Certificate Revocation Lists (CRLs).
-The Dogtag Certificate Authority can be configured as a self-signing
-Certificate Authority (CA), where it is the root CA, or it can act as a
-subordinate CA, where it obtains its own signing certificate from a public CA.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dinit.d="rc.d/init.d" \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="ca" \
- -Dversion="%{version}"
-
-%install
-%define major_version %(echo `echo %{version} | awk -F. '{ print $1 }'`)
-%define minor_version %(echo `echo %{version} | awk -F. '{ print $2 }'`)
-%define patch_version %(echo `echo %{version} | awk -F. '{ print $3 }'`)
-
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_datadir}/pki/ca/conf
-mv CS.cfg.in CS.cfg
-sed -i 's/^preop.product.version=.*$/preop.product.version=%{version}/' %{buildroot}%{_datadir}/pki/ca/conf/CS.cfg
-sed -i 's/^cms.version=.*$/cms.version=%{major_version}.%{minor_version}/' %{buildroot}%{_datadir}/pki/ca/conf/CS.cfg
-mkdir -p %{buildroot}%{_localstatedir}/lock/pki/ca
-mkdir -p %{buildroot}%{_localstatedir}/run/pki/ca
-cd %{buildroot}%{_datadir}/pki/ca/setup
-mv config.desktop.in config.desktop
-cd %{buildroot}%{_javadir}/pki
-mv pki-ca.jar pki-ca-%{version}.jar
-ln -s pki-ca-%{version}.jar pki-ca.jar
-
-%clean
-rm -rf %{buildroot}
-
-%post
-# This adds the proper /etc/rc*.d links for the script
-/sbin/chkconfig --add pki-cad || :
-
-%preun
-if [ $1 = 0 ] ; then
- /sbin/service pki-cad stop >/dev/null 2>&1
- /sbin/chkconfig --del pki-cad || :
-fi
-
-%postun
-if [ "$1" -ge "1" ] ; then
- /sbin/service pki-cad condrestart >/dev/null 2>&1 || :
-fi
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_initrddir}/*
-%{_javadir}/pki/
-%{_datadir}/pki/
-%{_localstatedir}/lock/*
-%{_localstatedir}/run/*
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/common/build_dogtag b/pki/dogtag/common/build_dogtag
deleted file mode 100755
index a225bc53f..000000000
--- a/pki/dogtag/common/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-common.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="common"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/common/pki-common.spec b/pki/dogtag/common/pki-common.spec
deleted file mode 100644
index 6dbf2d6ec..000000000
--- a/pki/dogtag/common/pki-common.spec
+++ /dev/null
@@ -1,119 +0,0 @@
-Name: pki-common
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - PKI Common Framework
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: ldapjdk
-BuildRequires: osutil
-BuildRequires: pki-symkey
-BuildRequires: pki-util
-BuildRequires: velocity
-BuildRequires: xalan-j2
-Buildrequires: xerces-j2
-
-%if 0%{?fedora} >= 14
-Requires: apache-commons-lang
-Requires: apache-commons-logging
-%endif
-%if 0%{?rhel} || 0%{?fedora} < 14
-Requires: jakarta-commons-lang
-Requires: jakarta-commons-logging
-%endif
-Requires: java >= 1:1.6.0
-Requires: jss >= 4.2.6
-Requires: osutil
-Requires: pki-common-ui
-Requires: pki-java-tools
-Requires: pki-setup
-Requires: pki-symkey
-Requires: tomcatjss
-Requires: %{_javadir}/ldapjdk.jar
-Requires: %{_javadir}/velocity.jar
-Requires: %{_javadir}/xalan-j2.jar
-Requires: %{_javadir}/xalan-j2-serializer.jar
-Requires: %{_javadir}/xerces-j2.jar
-Requires: velocity
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%if 0%{?rhel}
-# For EPEL, override the '_sharedstatedir' macro on RHEL
-%define _sharedstatedir /var/lib
-%endif
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag PKI Common Framework is required by the following four
-Dogtag PKI subsystems:
-
- the Dogtag Certificate Authority,
- the Dogtag Data Recovery Manager,
- the Dogtag Online Certificate Status Protocol Manager, and
- the Dogtag Token Key Service.
-
-%package javadoc
-Summary: Dogtag Certificate System - PKI Common Framework Javadocs
-Group: Documentation
-
-Requires: pki-common = %{version}-%{release}
-
-%description javadoc
-Dogtag Certificate System - PKI Common Framework Javadocs
-
-This documentation pertains exclusively to version %{version} of
-the Dogtag PKI Common Framework.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="common" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_javadir}/pki
-mv pki-certsrv.jar pki-certsrv-%{version}.jar
-ln -s pki-certsrv-%{version}.jar pki-certsrv.jar
-mv pki-cms.jar pki-cms-%{version}.jar
-ln -s pki-cms-%{version}.jar pki-cms.jar
-mv pki-cmsbundle.jar pki-cmsbundle-%{version}.jar
-ln -s pki-cmsbundle-%{version}.jar pki-cmsbundle.jar
-mv pki-cmscore.jar pki-cmscore-%{version}.jar
-ln -s pki-cmscore-%{version}.jar pki-cmscore.jar
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_javadir}/pki/
-%{_datadir}/pki/
-
-%files javadoc
-%defattr(-,root,root,-)
-%{_javadocdir}/%{name}-%{version}/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/config-ext/build_dogtag_pki b/pki/dogtag/config-ext/build_dogtag_pki
deleted file mode 100755
index 75647a7ad..000000000
--- a/pki/dogtag/config-ext/build_dogtag_pki
+++ /dev/null
@@ -1,322 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory above this
-# shared shell script prior to executing it so that
-# all of its output is written to this directory
-cd `dirname $0`/..
-
-# Set pre-defined variables
-#
-# NOTE: Variables prefixed with "DOGTAG" are defined in the invoking script.
-# Variables prefixed with "PKI" are defined in this shared script.
-# Variables containing no prefix are reserved for the generated script.
-#
-PKI_ABORT_SCRIPT="false"
-PKI_BASEDIR="../../.."
-PKI_BUILD_XML=build.xml
-PKI_DIR=pki
-PKI_DOGTAG_DIR=dogtag
-PKI_RELEASE_DIR=release
-PKI_RELEASE_SCRIPT=release
-PKI_SHARED_SCRIPT=`basename $0`
-PKI_SRC_DIR=base
-
-# Check the values of the passed-in environment variables
-if [ "${DOGTAG_BUILD_SCRIPT}" == "" ]; then
- printf "ERROR: The 'DOGTAG_BUILD_SCRIPT' environment variable is undefined!\n"
- PKI_ABORT_SCRIPT="true"
-fi
-if [ "${DOGTAG_COMPONENT}" == "" ]; then
- printf "ERROR: The 'DOGTAG_COMPONENT' environment variable is undefined!\n"
- PKI_ABORT_SCRIPT="true"
-fi
-if [ "${DOGTAG_SPECFILE}" == "" ]; then
- printf "ERROR: The 'DOGTAG_SPECFILE' environment variable is undefined!\n"
- PKI_ABORT_SCRIPT="true"
-fi
-if [ "${PKI_ABORT_SCRIPT}" == "true" ]; then
- printf "\n"
- printf "The '${PKI_SHARED_SCRIPT}' shared build script MUST be invoked by "
- printf "a\nPKI component-specific build script (e. g. - '${DOGTAG_BUILD_SCRIPT}')\n"
- printf "which defines ALL environment variables prefixed by 'DOGTAG'!\n"
- exit 255
-fi
-
-# Compute remaining variables by assigning their values from the specfile
-PKI_SOURCE_CODE_URL="https://pki.fedoraproject.org/svn/pki/trunk/${PKI_DIR}/${PKI_SRC_DIR}/${DOGTAG_COMPONENT}"
-if [ "${PKI_PRODUCT_UI_FLAVOR_PREFIX}" != "" ]; then
- PKI_PRODUCT_BUILD_XML="${PKI_BUILD_XML}"
- PKI_PRODUCT_NAME="${PKI_PRODUCT_UI_FLAVOR_PREFIX}-${PKI_PRODUCT_PREFIX}-${PKI_PRODUCT}"
- PKI_PRODUCT_SOURCE_PATH="${PKI_DIR}/${PKI_DOGTAG_DIR}/${DOGTAG_COMPONENT}"
-elif [ "${PKI_PRODUCT_PREFIX}" != "" ]; then
- PKI_PRODUCT_BUILD_XML="${PKI_BASEDIR}/${PKI_DIR}/${PKI_SRC_DIR}/${DOGTAG_COMPONENT}/${PKI_BUILD_XML}"
- PKI_PRODUCT_NAME="${PKI_PRODUCT_PREFIX}-${PKI_PRODUCT}"
- PKI_PRODUCT_SOURCE_PATH="${PKI_DIR}/${PKI_SRC_DIR}/${DOGTAG_COMPONENT}"
-else
- PKI_PRODUCT_BUILD_XML="${PKI_BASEDIR}/${PKI_DIR}/${PKI_SRC_DIR}/${DOGTAG_COMPONENT}/${PKI_BUILD_XML}"
- PKI_PRODUCT_NAME="${PKI_PRODUCT}"
- PKI_PRODUCT_SOURCE_PATH="${PKI_DIR}/${PKI_SRC_DIR}/${DOGTAG_COMPONENT}"
-fi
-PKI_RELEASE_ROOT="${PKI_BASEDIR}/${PKI_RELEASE_DIR}/${PKI_PRODUCT_SOURCE_PATH}"
-PKI_SOURCE_CODE_LOCAL_REPOSITORY="`pwd`/${PKI_BASEDIR}/${PKI_PRODUCT_SOURCE_PATH}"
-
-# Always check that local source code for this PKI component is available
-if [ ! -d "${PKI_SOURCE_CODE_LOCAL_REPOSITORY}" ]; then
- printf "Please checkout the '${DOGTAG_COMPONENT}' source code from:\n\n"
- printf " '${PKI_SOURCE_CODE_URL}'\n\n"
- printf "to:\n\n"
- printf " '${PKI_SOURCE_CODE_LOCAL_REPOSITORY}'\n\n"
- exit 255
-fi
-
-# Define awk scripts
-check_targets='
-BEGIN {
- success = "false";
-}
-
-{
- while( getline < FILENAME > 0 ) {
- if( substr( $0, 0, 80 ) ~ "target name" ) {
- start = substr( $0,
- match( $0, "\"" ) + 1 );
- target = substr( start,
- start,
- match( start, "\"" ) - 1 );
- if( build_target == target ) {
- success = "true";
- }
- }
- }
-}
-
-END {
- printf( "%s", success );
-}'
-
-display_targets='{
- while( getline < FILENAME > 0 ) {
- if( substr( $0, 0, 80 ) ~ "target name" ) {
- start = substr( $0,
- match( $0, "\"" ) + 1 );
- target = substr( start,
- start,
- match( start, "\"" ) - 1 );
- }
- if( substr( $0, 0, 80 ) ~ "description" ) {
- start = substr( $0,
- match( $0, "\"" ) + 1 );
- description[target] = substr( start,
- start,
- match( start, "\"" ) - 1 );
- printf( "'%20s' %s\n", target, description[target] );
- }
- }
-}'
-
-# Provide a usage function
-usage() {
- if [ $# -gt 0 ] ; then
- echo
- echo "$1"
- fi
- echo
- echo "Usage: ${DOGTAG_BUILD_SCRIPT} [target]"
- echo
- echo " where [target] is one of the optional values:"
- echo
- echo " help --> display '${PKI_PRODUCT_NAME}' usage statement"
- echo " refresh --> fetch latest '${PKI_PRODUCT_NAME}.spec' file"
- awk "$display_targets" ${PKI_PRODUCT_BUILD_XML}
- echo
- exit 255
-}
-
-# Verify that the appropriate number of
-# command-line parameters have been entered
-# and that a valid target has been specified
-if [ $# -eq 0 ] ; then
- RELEASE_TARGET=main
- BUILD_TARGET=""
-elif [ $# -eq 1 ] ; then
- if [ "$1" == "help" ]; then
- usage
- else
- SUCCESS=`awk -v build_target=$1 "$check_targets" ${PKI_PRODUCT_BUILD_XML}`
- if [ "${SUCCESS}" == "false" ]; then
- usage "ERROR: Invalid target '$1' specified for '${PKI_PRODUCT_NAME}'!"
- else
- RELEASE_TARGET=local
- BUILD_TARGET="$1"
- fi
- fi
-elif [ $# -gt 1 ] ; then
- usage "ERROR: Too many parameters specified for '${PKI_PRODUCT_NAME}'!"
-fi
-
-# This script may ONLY be run on Linux!
-PKI_OS=`uname`
-if [ "${PKI_OS}" != "Linux" ]; then
- printf "The '${DOGTAG_BUILD_SCRIPT}' script is ONLY executable on a 'Linux' machine!\n"
- exit 255
-fi
-
-# Always start with a new release root directory
-rm -rf ${PKI_RELEASE_ROOT}
-mkdir -p ${PKI_RELEASE_ROOT}
-
-# Copy the source code to the release root
-cd ${PKI_BASEDIR}
-find ${PKI_PRODUCT_SOURCE_PATH} -name .svn -prune -o -name *.swp -prune -o -print | cpio -pdum ${PKI_RELEASE_DIR} > /dev/null 2>&1
-cd - > /dev/null 2>&1
-
-# Remove unused files
-rm -rf ${PKI_RELEASE_ROOT}/build_*
-rm -rf ${PKI_RELEASE_ROOT}/*.spec
-if [ -d ${PKI_RELEASE_ROOT}/config-ext ]; then
- rm -rf ${PKI_RELEASE_ROOT}/config-ext
-fi
-
-# Create the default spec file
-cp ${DOGTAG_SPECFILE} ${PKI_RELEASE_ROOT}/${PKI_PRODUCT_NAME}.spec
-
-# Use bash-specific syntax to create the default build script
-cat >> ${PKI_RELEASE_ROOT}/${PKI_RELEASE_SCRIPT} << END_OF_SCRIPT
-#!/bin/bash
-
-#####################################################################
-### DO NOT EDIT! This script has been automatically generated! ###
-#####################################################################
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd \`dirname \$0\`
-
-# Set pre-defined variables
-BUILD_SCRIPT=\`basename \$0\`
-BUILD_XML=${PKI_BUILD_XML}
-SPECFILE=${PKI_PRODUCT_NAME}.spec
-
-# Define awk scripts
-check_targets='
-BEGIN {
- success = "false";
-}
-
-{
- while( getline < FILENAME > 0 ) {
- if( substr( \$0, 0, 80 ) ~ "target name" ) {
- start = substr( \$0,
- match( \$0, "\"" ) + 1 );
- target = substr( start,
- start,
- match( start, "\"" ) - 1 );
- if( build_target == target ) {
- success = "true";
- }
- }
- }
-}
-
-END {
- printf( "%s", success );
-}'
-
-display_targets='{
- while( getline < FILENAME > 0 ) {
- if( substr( \$0, 0, 80 ) ~ "target name" ) {
- start = substr( \$0,
- match( \$0, "\"" ) + 1 );
- target = substr( start,
- start,
- match( start, "\"" ) - 1 );
- }
- if( substr( \$0, 0, 80 ) ~ "description" ) {
- start = substr( \$0,
- match( \$0, "\"" ) + 1 );
- description[target] = substr( start,
- start,
- match( start, "\"" ) - 1 );
- printf( "'%20s' %s\n", target, description[target] );
- }
- }
-}'
-
-# Provide a usage function
-usage() {
- if [ \$# -gt 0 ] ; then
- echo
- echo "\$1"
- fi
- echo
- echo "Usage: \${BUILD_SCRIPT} [target]"
- echo
- echo " where [target] is one of the optional values:"
- echo
- echo " help --> display '${PKI_PRODUCT_NAME}' usage statement"
- awk "\$display_targets" \${BUILD_XML}
- echo
- exit 255
-}
-
-# Verify that the appropriate number of
-# command-line parameters have been entered
-# and that a valid target has been specified
-if [ \$# -eq 0 ] ; then
- RELEASE_TARGET=main
- BUILD_TARGET=main
-elif [ \$# -eq 1 ] ; then
- if [ "\$1" == "help" ]; then
- usage
- else
- SUCCESS=\`awk -v build_target=\$1 "\$check_targets" \${BUILD_XML}\`
- if [ "\${SUCCESS}" == "false" ]; then
- usage "ERROR: Invalid target '\$1' specified for '${PKI_PRODUCT_NAME}'!"
- else
- RELEASE_TARGET=local
- BUILD_TARGET="\$1"
- fi
- fi
-elif [ \$# -gt 1 ] ; then
- usage "ERROR: Too many parameters specified for '${PKI_PRODUCT_NAME}'!"
-fi
-
-# This script may ONLY be run on Linux!
-OS=\`uname\`
-if [ "\${OS}" != "Linux" ]; then
- printf "The '\${BUILD_SCRIPT}' script is ONLY executable on a 'Linux' machine!\n"
- exit 255
-fi
-
-if [ -f /etc/fedora-release ]; then
- # Script is being executed on Fedora
- ant -f config/release.xml -Drhel=0 -Dproduct.ui.flavor.prefix=\${PKI_PRODUCT_UI_FLAVOR_PREFIX} -Dproduct.prefix=\${PKI_PRODUCT_PREFIX} -Dproduct=\${PKI_PRODUCT} -Dversion=\${PKI_VERSION} -Dbasedir=. -Dspecfile=\${SPECFILE} -Dtarget=\${BUILD_TARGET} \${RELEASE_TARGET}
-elif [ -f /etc/redhat-release ]; then
- # Script is being executed on RHEL
- ant -f config/release.xml -Drhel=1 -Dproduct.ui.flavor.prefix=\${PKI_PRODUCT_UI_FLAVOR_PREFIX} -Dproduct.prefix=\${PKI_PRODUCT_PREFIX} -Dproduct=\${PKI_PRODUCT} -Dversion=\${PKI_VERSION} -Dbasedir=. -Dspecfile=\${SPECFILE} -Dtarget=\${BUILD_TARGET} \${RELEASE_TARGET}
-fi
-
-END_OF_SCRIPT
-chmod 00755 ${PKI_RELEASE_ROOT}/${PKI_RELEASE_SCRIPT}
-
-cd ${PKI_RELEASE_ROOT}
-./${PKI_RELEASE_SCRIPT} ${BUILD_TARGET}
-
diff --git a/pki/dogtag/console/build_dogtag b/pki/dogtag/console/build_dogtag
deleted file mode 100755
index 3d143b9d5..000000000
--- a/pki/dogtag/console/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-console.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="console"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/console/pki-console.spec b/pki/dogtag/console/pki-console.spec
deleted file mode 100644
index 1d4103095..000000000
--- a/pki/dogtag/console/pki-console.spec
+++ /dev/null
@@ -1,65 +0,0 @@
-Name: pki-console
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - PKI Console
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: idm-console-framework
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: ldapjdk
-BuildRequires: pki-util
-
-Requires: idm-console-framework
-Requires: java >= 1:1.6.0
-Requires: jss >= 4.2.6
-Requires: ldapjdk
-Requires: pki-console-ui
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The PKI Console is a java application used to administer
-Dogtag Certificate System.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="console" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_javadir}/pki
-ln -s pki-console-%{version}.jar pki-console.jar
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_bindir}/pkiconsole
-%{_javadir}/pki/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/java-tools/build_dogtag b/pki/dogtag/java-tools/build_dogtag
deleted file mode 100755
index dd833bbb8..000000000
--- a/pki/dogtag/java-tools/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-java-tools.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="java-tools"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/java-tools/pki-java-tools.spec b/pki/dogtag/java-tools/pki-java-tools.spec
deleted file mode 100644
index 6ceaaeb90..000000000
--- a/pki/dogtag/java-tools/pki-java-tools.spec
+++ /dev/null
@@ -1,82 +0,0 @@
-Name: pki-java-tools
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - PKI Java-Based Tools
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: osutil
-BuildRequires: pki-util
-
-Requires: java >= 1:1.6.0
-Requires: pki-native-tools
-Requires: pki-util
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-These platform-independent PKI executables are used to help make
-Dogtag Certificate System into a more complete and robust PKI solution.
-
-%package javadoc
-Summary: Dogtag Certificate System - PKI Java-Based Tools Javadocs
-Group: Documentation
-
-Requires: %{name} = %{version}-%{release}
-
-%description javadoc
-Dogtag Certificate System - PKI Java-Based Tools Javadocs
-
-This documentation pertains exclusively to version %{version} of
-the Dogtag PKI Java-Based Tools.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="java-tools" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_javadir}/pki
-mv pki-tools.jar pki-tools-%{version}.jar
-ln -s pki-tools-%{version}.jar pki-tools.jar
-
-## remove unwanted files
-rm -rf %{buildroot}/usr/share/pki
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_bindir}/*
-%{_javadir}/pki/
-
-%files javadoc
-%defattr(0644,root,root,0755)
-%{_javadocdir}/%{name}-%{version}/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/kra/build_dogtag b/pki/dogtag/kra/build_dogtag
deleted file mode 100755
index 106a26703..000000000
--- a/pki/dogtag/kra/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-kra.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="kra"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/kra/pki-kra.spec b/pki/dogtag/kra/pki-kra.spec
deleted file mode 100644
index 40b581cb2..000000000
--- a/pki/dogtag/kra/pki-kra.spec
+++ /dev/null
@@ -1,113 +0,0 @@
-Name: pki-kra
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - Data Recovery Manager
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Daemons
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: pki-common
-BuildRequires: pki-util
-BuildRequires: tomcatjss
-
-Requires: java >= 1:1.6.0
-Requires: pki-common
-Requires: pki-kra-ui
-Requires: pki-selinux
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires(postun): initscripts
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Data Recovery Manager is an optional PKI subsystem that can act
-as a Key Recovery Authority (KRA). When configured in conjunction with the
-Dogtag Certificate Authority, the Dogtag Data Recovery Manager stores
-private encryption keys as part of the certificate enrollment process. The
-key archival mechanism is triggered when a user enrolls in the PKI and creates
-the certificate request. Using the Certificate Request Message Format (CRMF)
-request format, a request is generated for the user's private encryption key.
-This key is then stored in the Dogtag Data Recovery Manager which is
-configured to store keys in an encrypted format that can only be decrypted by
-several agents requesting the key at one time, providing for protection of the
-public encryption keys for the users in the PKI deployment.
-
-Note that the Dogtag Data Recovery Manager archives encryption keys; it does
-not archive signing keys, since such archival would undermine nonrepudiation
-properties of signing keys.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dinit.d="rc.d/init.d" \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="kra" \
- -Dversion="%{version}"
-
-%install
-%define major_version %(echo `echo %{version} | awk -F. '{ print $1 }'`)
-%define minor_version %(echo `echo %{version} | awk -F. '{ print $2 }'`)
-%define patch_version %(echo `echo %{version} | awk -F. '{ print $3 }'`)
-
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_datadir}/pki/kra/conf
-mv CS.cfg.in CS.cfg
-sed -i 's/^preop.product.version=.*$/preop.product.version=%{version}/' %{buildroot}%{_datadir}/pki/kra/conf/CS.cfg
-sed -i 's/^cms.version=.*$/cms.version=%{major_version}.%{minor_version}/' %{buildroot}%{_datadir}/pki/kra/conf/CS.cfg
-mkdir -p %{buildroot}%{_localstatedir}/lock/pki/kra
-mkdir -p %{buildroot}%{_localstatedir}/run/pki/kra
-cd %{buildroot}%{_datadir}/pki/kra/setup
-mv config.desktop.in config.desktop
-cd %{buildroot}%{_javadir}/pki
-mv pki-kra.jar pki-kra-%{version}.jar
-ln -s pki-kra-%{version}.jar pki-kra.jar
-
-%clean
-rm -rf %{buildroot}
-
-%post
-# This adds the proper /etc/rc*.d links for the script
-/sbin/chkconfig --add pki-krad || :
-
-%preun
-if [ $1 = 0 ] ; then
- /sbin/service pki-krad stop >/dev/null 2>&1
- /sbin/chkconfig --del pki-krad || :
-fi
-
-%postun
-if [ "$1" -ge "1" ] ; then
- /sbin/service pki-krad condrestart >/dev/null 2>&1 || :
-fi
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_initrddir}/*
-%{_javadir}/pki/
-%{_datadir}/pki/
-%{_localstatedir}/lock/*
-%{_localstatedir}/run/*
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/manage/build_dogtag b/pki/dogtag/manage/build_dogtag
deleted file mode 100755
index 622a76a12..000000000
--- a/pki/dogtag/manage/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-manage.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="manage"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/manage/pki-manage.spec b/pki/dogtag/manage/pki-manage.spec
deleted file mode 100644
index 78b4cde6e..000000000
--- a/pki/dogtag/manage/pki-manage.spec
+++ /dev/null
@@ -1,59 +0,0 @@
-Name: pki-manage
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - PKI Uninstall Scripts
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-
-Requires: perl >= 5.8.0
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-Dogtag PKI Uninstall Scripts are required to remove
-Dogtag PKI subsystems including:
-
- the Dogtag Certificate Authority,
- the Dogtag Data Recovery Manager,
- the Dogtag Online Certificate Status Protocol Manager,
- the Dogtag Registration Authority,
- the Dogtag Token Key Service, and/or
- the Dogtag Token Processing System.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="manage" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_bindir}/*
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/meta/build_dogtag b/pki/dogtag/meta/build_dogtag
deleted file mode 100755
index 1bbaf1c61..000000000
--- a/pki/dogtag/meta/build_dogtag
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2010 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Establish release root for 'meta' packages
-RELEASE_ROOT="${PWD}/../../../release/pki/meta"
-
-# Specify 'meta' functions
-clean_release_root()
-{
- printf "Removing 'meta' release root . . . "
- rm -rf ${RELEASE_ROOT}
- printf "done.\n"
-}
-
-create_RPM_build_directories()
-{
- printf "Creating 'meta' RPM build directories . . . "
- mkdir -p ${RELEASE_ROOT}
- mkdir -p ${RELEASE_ROOT}/BUILD
- mkdir -p ${RELEASE_ROOT}/BUILDROOT
- mkdir -p ${RELEASE_ROOT}/RPMS
- mkdir -p ${RELEASE_ROOT}/SOURCES
- mkdir -p ${RELEASE_ROOT}/SPECS
- mkdir -p ${RELEASE_ROOT}/SRPMS
- printf "done.\n"
-}
-
-build_specified_meta_package()
-{
- package=$1
- spec_file="${package}.spec"
-
- printf "BEGIN: Building 'meta' package called '${package}' . . .\n"
- cp ${spec_file} ${RELEASE_ROOT}/SPECS
- rpmbuild --define "_topdir ${RELEASE_ROOT}" -ba --clean ${RELEASE_ROOT}/SPECS/${spec_file}
- printf "END: Building 'meta' package called ${package}'.\n"
-}
-
-destroy_RPM_build_directories()
-{
- printf "Destroying 'meta' RPM build directories . . . "
- rm -rf ${RELEASE_ROOT}/BUILD
- rm -rf ${RELEASE_ROOT}/BUILDROOT
- rm -rf ${RELEASE_ROOT}/SOURCES
- rm -rf ${RELEASE_ROOT}/SPECS
- printf "done.\n"
-}
-
-# Build the 'meta' package called 'dogtag-pki'
-clean_release_root
-create_RPM_build_directories
-build_specified_meta_package dogtag-pki
-destroy_RPM_build_directories
-
diff --git a/pki/dogtag/meta/dogtag-pki.spec b/pki/dogtag/meta/dogtag-pki.spec
deleted file mode 100644
index 9b54e50d1..000000000
--- a/pki/dogtag/meta/dogtag-pki.spec
+++ /dev/null
@@ -1,120 +0,0 @@
-Summary: Dogtag Public Key Infrastructure (PKI) Suite
-Name: dogtag-pki
-Version: 9.0.0
-Release: 1%{?dist}
-# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
-License: GPLv2 and LGPLv2
-URL: http://pki.fedoraproject.org/
-Group: System Environment/Daemons
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
-
-# Make certain that this 'meta' package requires the latest version(s)
-# of ALL Dogtag PKI UI packages
-Requires: dogtag-pki-common-ui >= 9.0.0
-Requires: dogtag-pki-console-ui >= 9.0.0
-Requires: dogtag-pki-ca-ui >= 9.0.0
-Requires: dogtag-pki-kra-ui >= 9.0.0
-Requires: dogtag-pki-ocsp-ui >= 9.0.0
-Requires: dogtag-pki-ra-ui >= 9.0.0
-Requires: dogtag-pki-tks-ui >= 9.0.0
-Requires: dogtag-pki-tps-ui >= 9.0.0
-
-# Make certain that this 'meta' package requires the latest version(s)
-# of ALL Dogtag PKI subsystems
-Requires: pki-ca >= 9.0.0
-Requires: pki-kra >= 9.0.0
-Requires: pki-ocsp >= 9.0.0
-Requires: pki-ra >= 9.0.0
-Requires: pki-tks >= 9.0.0
-Requires: pki-tps >= 9.0.0
-
-# Make certain that this 'meta' package requires the latest version(s)
-# of ALL Dogtag PKI tools
-Requires: pki-java-tools >= 9.0.0
-Requires: pki-native-tools >= 9.0.0
-
-# Make certain that this 'meta' package requires the latest version(s)
-# of Dogtag PKI console
-Requires: pki-console >= 9.0.0
-
-# Make certain that this 'meta' package requires the latest version(s)
-# of ALL Dogtag PKI clients
-Requires: esc >= 9.0.0
-
-# Make certain that this 'meta' package requires the latest version(s)
-# of ALL Dogtag PKI javadocs
-Requires: pki-common-javadoc >= 9.0.0
-Requires: pki-java-tools-javadoc >= 9.0.0
-Requires: pki-util-javadoc >= 9.0.0
-
-# Make certain that this 'meta' package requires the latest version(s)
-# of ALL top-level Dogtag PKI supporting packages
-Requires: osutil >= 9.0.0
-Requires: pki-common >= 9.0.0
-Requires: pki-selinux >= 9.0.0
-Requires: pki-setup >= 9.0.0
-Requires: pki-silent >= 9.0.0
-Requires: pki-symkey >= 9.0.0
-Requires: pki-util >= 9.0.0
-Requires: tomcatjss >= 1.2.1
-
-# NOTE: Several PKI packages require a "virtual" UI component. These
-# "virtual" UI components are "Provided" by various UI "flavors"
-# including "dogtag", "redhat", and "null". Consequently,
-# all "dogtag", "redhat", and "null" UI components MUST be
-# mutually exclusive!
-Conflicts: ipa-pki
-Conflicts: redhat-pki
-
-%description
-The Dogtag Public Key Infrastructure (PKI) Suite is comprised of the following
-six subsystems and a client (for use by a Token Management System):
-
- * Certificate Authority (CA)
- * Data Recovery Manager (DRM)
- * Online Certificate Status Protocol (OCSP) Manager
- * Registration Authority (RA)
- * Token Key Service (TKS)
- * Token Processing System (TPS)
- * Enterprise Security Client (ESC)
-
-Additionally, it provides a console GUI application used for server and
-user/group administration of CA, DRM, OCSP, and TKS, javadocs on portions
-of the Dogtag API, as well as various command-line tools used to assist with
-a PKI deployment.
-
-To successfully deploy instances of a CA, DRM, OCSP, or TKS,
-a Tomcat Web Server must be up and running locally on this machine.
-
-To successfully deploy instances of an RA, or TPS,
-an Apache Web Server must be up and running locally on this machine.
-
-To meet the database storage requirements of each CA, DRM, OCSP, TKS, or TPS
-instance, a 389 Directory Server must be up and running either locally on
-this machine, or remotely over the attached network connection.
-
-To meet the database storage requirements of an RA, an SQLite database will
-be created locally on this machine each time a new RA instance is created.
-
-After installation of this package, use the 'pkicreate' and 'pkiremove'
-utilities to respectively create and remove PKI instances.
-
-%prep
-# empty
-
-%build
-# empty
-
-%install
-rm -rf %{buildroot}
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/migrate/build_dogtag b/pki/dogtag/migrate/build_dogtag
deleted file mode 100755
index 2dea80510..000000000
--- a/pki/dogtag/migrate/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-migrate.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="migrate"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/migrate/pki-migrate.spec b/pki/dogtag/migrate/pki-migrate.spec
deleted file mode 100644
index c0d93cc5f..000000000
--- a/pki/dogtag/migrate/pki-migrate.spec
+++ /dev/null
@@ -1,72 +0,0 @@
-Name: pki-migrate
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - PKI Migration Scripts
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-# Suppress automatic 'requires' and 'provisions' of multi-platform 'binaries'
-AutoReqProv: no
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-
-Requires: java >= 1:1.6.0
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-Dogtag PKI Migration Scripts are used to export data from previous
-versions of Netscape Certificate Management Systems, iPlanet Certificate
-Management Systems, and Dogtag Certificate Systems into a flat-file
-which may then be imported into this release of Dogtag Certificate System.
-
-Note that since this utility is platform-independent, it is generally possible
-to migrate data from previous PKI deployments originally stored on other
-hardware platforms as well as earlier versions of this operating system.
-
-%global _binaries_in_noarch_packages_terminate_build 0
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="migrate" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-
-# remove unwanted files
-rm -rf %{buildroot}%{_datadir}/pki/migrate/*/src
-rm -rf %{buildroot}%{_datadir}/pki/migrate/80/*.java
-rm -rf %{buildroot}%{_datadir}/pki/migrate/TpsTo80/*.java
-rm -rf %{buildroot}%{_datadir}/pki/migrate/TpsTo80/Makefile
-rm -rf %{buildroot}%{_datadir}/pki/migrate/TpsTo80/*.c
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_datadir}/pki/migrate/*
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/native-tools/build_dogtag b/pki/dogtag/native-tools/build_dogtag
deleted file mode 100755
index 13b063d8e..000000000
--- a/pki/dogtag/native-tools/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-native-tools.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="native-tools"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/native-tools/pki-native-tools.spec b/pki/dogtag/native-tools/pki-native-tools.spec
deleted file mode 100644
index 8b67dcc2c..000000000
--- a/pki/dogtag/native-tools/pki-native-tools.spec
+++ /dev/null
@@ -1,80 +0,0 @@
-Name: pki-native-tools
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - Native Tools
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: cyrus-sasl-devel
-BuildRequires: openldap-devel
-BuildRequires: nspr-devel >= 4.6.99
-BuildRequires: nss-devel >= 3.12.3.99
-BuildRequires: svrcore-devel
-
-Requires: openldap-clients
-Requires: nss >= 3.12.3.99
-Requires: nss-tools >= 3.12.3.99
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-These platform-dependent PKI executables are used to help make
-Dogtag Certificate System into a more complete and robust PKI solution.
-
-%prep
-
-%setup -q -n %{name}-%{version}
-
-%build
-%configure \
-%ifarch ppc64 s390x sparc64 x86_64
- --enable-64bit \
-%endif
- --libdir=%{_libdir}
-make %{?_smp_mflags}
-
-%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot} INSTALL="install -p"
-
-## rearrange files to be in the desired native packaging layout
-mkdir -p %{buildroot}%{_libdir}/pki/native-tools
-cp -p %{buildroot}/opt/conf/* %{buildroot}%{_libdir}/pki/native-tools
-cp -p %{buildroot}/opt/samples/* %{buildroot}%{_libdir}/pki/native-tools
-cp -p %{buildroot}%{_libexecdir}/* %{buildroot}%{_libdir}/pki/native-tools
-
-# create wrappers
-for wrapper in bulkissuance p7tool revoker setpin sslget tkstool
-do
- sed -e "s|\[PKI_PRODUCT\]|pki|g" \
- -e "s|\[PKI_SUBSYSTEM\]|native-tools|g" \
- -e "s|\[PKI_COMMAND\]|${wrapper}|g" \
- %{buildroot}/opt/templates/pki_subsystem_command_wrapper > %{buildroot}%{_bindir}/${wrapper} ;
-done
-
-## remove unwanted files
-rm -rf %{buildroot}/opt
-rm -rf %{buildroot}%{_libexecdir}
-rm -rf %{buildroot}%{_datadir}/pki
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE doc/README
-%{_bindir}/*
-%{_libdir}/pki
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
-
-* Thu Nov 18 2010 Ade Lee <alee@redhat.com> 2.0.0-2
-- Bugzilla BZ606946 - Convert Native Tools to use ldapAPI from OpenLDAP instead of Mozldap
diff --git a/pki/dogtag/ocsp/build_dogtag b/pki/dogtag/ocsp/build_dogtag
deleted file mode 100755
index f736c15ae..000000000
--- a/pki/dogtag/ocsp/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-ocsp.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="ocsp"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/ocsp/pki-ocsp.spec b/pki/dogtag/ocsp/pki-ocsp.spec
deleted file mode 100644
index eacd28196..000000000
--- a/pki/dogtag/ocsp/pki-ocsp.spec
+++ /dev/null
@@ -1,122 +0,0 @@
-Name: pki-ocsp
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - Online Certificate Status Protocol Manager
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Daemons
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: pki-common
-BuildRequires: pki-util
-BuildRequires: tomcatjss
-
-Requires: java >= 1:1.6.0
-Requires: pki-common
-Requires: pki-ocsp-ui
-Requires: pki-selinux
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires(postun): initscripts
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Online Certificate Status Protocol Manager is an optional
-PKI subsystem that can act as a stand-alone Online Certificate
-Status Protocol (OCSP) service.
-The Dogtag Online Certificate Status Protocol Manager performs the task of an
-online certificate validation authority by enabling OCSP-compliant clients to
-do real-time verification of certificates. Note that an online
-certificate-validation authority is often referred to as an OCSP Responder.
-
-Although the Dogtag Certificate Authority is already configured with an
-internal OCSP service. An external OCSP Responder is offered as a separate
-subsystem in case the user wants the OCSP service provided outside of a
-firewall while the Dogtag Certificate Authority resides inside of a firewall,
-or to take the load of requests off of the Dogtag Certificate Authority.
-
-The Dogtag Online Certificate Status Protocol Manager can receive Certificate
-Revocation Lists (CRLs) from multiple Dogtag Certificate Authority servers,
-and clients can query the Dogtag Online Certificate Status Protocol Manager
-for the revocation status of certificates issued by all of these
-Dogtag Certificate Authority servers.
-
-When an instance of Dogtag Online Certificate Status Protocol Manager is
-set up with an instance of Dogtag Certificate Authority, and publishing
-is set up to this Dogtag Online Certificate Status Protocol Manager,
-CRLs are published to it whenever they are issued or updated.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dinit.d="rc.d/init.d" \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="ocsp" \
- -Dversion="%{version}"
-
-%install
-%define major_version %(echo `echo %{version} | awk -F. '{ print $1 }'`)
-%define minor_version %(echo `echo %{version} | awk -F. '{ print $2 }'`)
-%define patch_version %(echo `echo %{version} | awk -F. '{ print $3 }'`)
-
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_datadir}/pki/ocsp/conf
-mv CS.cfg.in CS.cfg
-sed -i 's/^preop.product.version=.*$/preop.product.version=%{version}/' %{buildroot}%{_datadir}/pki/ocsp/conf/CS.cfg
-sed -i 's/^cms.version=.*$/cms.version=%{major_version}.%{minor_version}/' %{buildroot}%{_datadir}/pki/ocsp/conf/CS.cfg
-mkdir -p %{buildroot}%{_localstatedir}/lock/pki/ocsp
-mkdir -p %{buildroot}%{_localstatedir}/run/pki/ocsp
-cd %{buildroot}%{_datadir}/pki/ocsp/setup
-mv config.desktop.in config.desktop
-cd %{buildroot}%{_javadir}/pki
-mv pki-ocsp.jar pki-ocsp-%{version}.jar
-ln -s pki-ocsp-%{version}.jar pki-ocsp.jar
-
-%clean
-rm -rf %{buildroot}
-
-%post
-# This adds the proper /etc/rc*.d links for the script
-/sbin/chkconfig --add pki-ocspd || :
-
-%preun
-if [ $1 = 0 ] ; then
- /sbin/service pki-ocspd stop >/dev/null 2>&1
- /sbin/chkconfig --del pki-ocspd || :
-fi
-
-%postun
-if [ "$1" -ge "1" ] ; then
- /sbin/service pki-ocspd condrestart >/dev/null 2>&1 || :
-fi
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_initrddir}/*
-%{_javadir}/pki/
-%{_datadir}/pki/
-%{_localstatedir}/lock/*
-%{_localstatedir}/run/*
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/osutil/build_dogtag b/pki/dogtag/osutil/build_dogtag
deleted file mode 100755
index 482d36fab..000000000
--- a/pki/dogtag/osutil/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="osutil.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX=""
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="osutil"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/osutil/osutil.spec b/pki/dogtag/osutil/osutil.spec
deleted file mode 100644
index 20edbcf28..000000000
--- a/pki/dogtag/osutil/osutil.spec
+++ /dev/null
@@ -1,77 +0,0 @@
-Name: osutil
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Operating System Utilities JNI Package
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Libraries
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: nspr-devel >= 4.6.99
-BuildRequires: nss-devel >= 3.12.3.99
-BuildRequires: pkgconfig
-
-Requires: java >= 1:1.6.0
-Requires: jpackage-utils
-Requires: nss >= 3.12.3.99
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%if 0%{?rhel}
-#rhel has no java on ppc
-ExcludeArch: ppc
-%endif
-
-
-%description
-The Operating System Utilities Java Native Interface (JNI) package
-supplies various native operating system operations to Java programs.
-
-%prep
-
-%setup -q -n %{name}-%{version}
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="" \
- -Dproduct="%{name}" \
- -Dversion="%{version}"
-%configure \
-%ifarch ppc64 s390x sparc64 x86_64
- --enable-64bit \
-%endif
- --libdir=%{_libdir}
-make %{?_smp_mflags}
-
-%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-
-## rearrange files to be in the desired native packaging layout
-mkdir -p %{buildroot}%{_libdir}/%{name}/
-mv %{buildroot}/opt/java/%{name}.jar %{buildroot}%{_libdir}/%{name}/%{name}-%{version}.jar
-mv %{buildroot}%{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/%{name}/lib%{name}.so
-mkdir -p %{buildroot}%{_jnidir}/
-cd %{buildroot}%{_jnidir} ; ln -s %{_libdir}/%{name}/%{name}-%{version}.jar %{name}.jar
-
-## remove unwanted files
-rm -rf %{buildroot}/opt
-rm -rf %{buildroot}%{_libdir}/lib%{name}.la
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_jnidir}/*
-%{_libdir}/%{name}/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/ra/build_dogtag b/pki/dogtag/ra/build_dogtag
deleted file mode 100755
index 76e17ebff..000000000
--- a/pki/dogtag/ra/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-ra.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="ra"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/ra/pki-ra.spec b/pki/dogtag/ra/pki-ra.spec
deleted file mode 100644
index c2c8f89af..000000000
--- a/pki/dogtag/ra/pki-ra.spec
+++ /dev/null
@@ -1,120 +0,0 @@
-Name: pki-ra
-Version: 9.0.0
-Release: 2%{?dist}
-Summary: Dogtag Certificate System - Registration Authority
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Daemons
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-
-Requires: mod_nss >= 1.0.7
-Requires: mod_perl >= 1.99_16
-Requires: mod_revocator >= 1.0.3
-Requires: pki-native-tools
-Requires: pki-ra-ui
-Requires: pki-selinux
-Requires: pki-setup
-Requires: perl-DBD-SQLite
-Requires: /usr/sbin/sendmail
-Requires: sqlite
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires(postun): initscripts
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Registration Authority is an optional PKI subsystem that
-acts as a front-end for authenticating and processing
-enrollment requests, PIN reset requests, and formatting requests.
-
-Dogtag Registration Authority communicates over SSL with the
-Dogtag Certificate Authority to fulfill the user's requests.
-
-%prep
-
-%setup -q
-
-cat << \EOF > %{name}-prov
-#!/bin/sh
-%{__perl_provides} $* |\
-sed -e '/perl(PKI.*)/d' -e '/perl(Template.*)/d'
-EOF
-
-%global __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
-
-cat << \EOF > %{name}-req
-#!/bin/sh
-%{__perl_requires} $* |\
-sed -e '/perl(PKI.*)/d' -e '/perl(Template.*)/d'
-EOF
-
-%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
-chmod +x %{__perl_requires}
-
-%build
-ant \
- -Dinit.d="rc.d/init.d" \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="ra" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_datadir}/pki/ra/conf
-mv CS.cfg.in CS.cfg
-sed -i 's/^preop.product.version=.*$/preop.product.version=%{version}/' %{buildroot}%{_datadir}/pki/ra/conf/CS.cfg
-mkdir -p %{buildroot}%{_localstatedir}/lock/pki/ra
-mkdir -p %{buildroot}%{_localstatedir}/run/pki/ra
-
-# rename config.desktop.in --> config.desktop
-cd %{buildroot}%{_datadir}/pki/ra/setup
-mv config.desktop.in config.desktop
-
-%clean
-rm -rf %{buildroot}
-
-%post
-# This adds the proper /etc/rc*.d links for the script
-/sbin/chkconfig --add pki-rad || :
-
-%preun
-if [ $1 = 0 ] ; then
- /sbin/service pki-rad stop >/dev/null 2>&1
- /sbin/chkconfig --del pki-rad || :
-fi
-
-%postun
-if [ "$1" -ge "1" ] ; then
- /sbin/service pki-rad condrestart >/dev/null 2>&1 || :
-fi
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_initrddir}/*
-%{_datadir}/pki/
-%{_localstatedir}/lock/*
-%{_localstatedir}/run/*
-
-%changelog
-* Fri Feb 4 2011 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-2
-- Bugzilla Bug #606943 - Convert RA to use ldap utilities from
- OpenLDAP instead of the Mozldap
-
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
-
diff --git a/pki/dogtag/scripts/dogtag_svn_external_properties_db b/pki/dogtag/scripts/dogtag_svn_external_properties_db
deleted file mode 100644
index 025d32ff8..000000000
--- a/pki/dogtag/scripts/dogtag_svn_external_properties_db
+++ /dev/null
@@ -1,11 +0,0 @@
-###############################################################################
-# Since the 'svn.fedorahosted.org' repository uses a different URL prefix to #
-# distinguish between read-only (http) and read-write (svn+ssh) check-outs, #
-# ALL external SVN properties that refer to this repository MUST now be #
-# read-only, which means that ALL changes which refer to this repository #
-# that need to be saved MUST be applied to the top-level directory referred #
-# to by each external SVN property (i.e. - 'pki/base/config' AND #
-# 'pki/dogtag/config-ext'). #
-###############################################################################
-config http://svn.fedorahosted.org/svn/pki/trunk/pki/base/config
-config-ext http://svn.fedorahosted.org/svn/pki/trunk/pki/dogtag/config-ext
diff --git a/pki/dogtag/scripts/set_dogtag_SVN_external_properties b/pki/dogtag/scripts/set_dogtag_SVN_external_properties
deleted file mode 100755
index 1c72ba7d5..000000000
--- a/pki/dogtag/scripts/set_dogtag_SVN_external_properties
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# (C) 2008 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into this base directory
-# prior to script execution so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the name of this base directory
-PKI_PWD=`pwd`
-
-# Name and location of the SVN external properties DB.
-SVN_EXTERNAL_PROPERTIES_DB_LOCATION="${PKI_PWD}"
-SVN_EXTERNAL_PROPERTIES_DB_NAME="dogtag_svn_external_properties_db"
-SVN_EXTERNAL_PROPERTIES_DB="${SVN_EXTERNAL_PROPERTIES_DB_LOCATION}/${SVN_EXTERNAL_PROPERTIES_DB_NAME}"
-
-# Always make sure that the SVN external properties DB exists.
-if [ ! -f ${SVN_EXTERNAL_PROPERTIES_DB} ]; then
- printf "The SVN external properties DB called '${SVN_EXTERNAL_PROPERTIES_DB}' does NOT exist!\n"
- exit 255;
-fi
-
-# Specify the location and a list of the SVN components that
-# require these SVN external properties to be updated.
-SVN_COMPONENTS_LOCATION="${PKI_PWD}/.."
-SVN_COMPONENTS="ca ca-ui common common-ui console console-ui java-tools kra kra-ui manage migrate native-tools ocsp ocsp-ui osutil ra ra-ui selinux setup silent symkey tks tks-ui tps tps-ui util"
-
-# Change directory to the location of all of these components,
-# and execute the defined SVN external property changes.
-cd ${SVN_COMPONENTS_LOCATION}
-for SVN_COMPONENT in ${SVN_COMPONENTS} ; do
- if [ -d "${SVN_COMPONENTS_LOCATION}/${SVN_COMPONENT}" ]; then
- printf "Setting external SVN properties for the component called '${SVN_COMPONENT}' . . .\n"
- cd "${SVN_COMPONENT}"
- svn propset svn:externals -F "${SVN_EXTERNAL_PROPERTIES_DB}" .
- svn propget svn:externals .
- svn update
- cd ..
- else
- printf "The component called '${SVN_COMPONENTS_LOCATION}/${SVN_COMPONENT}' does NOT exist!\n"
- fi
-done
-
-exit 0;
-
diff --git a/pki/dogtag/selinux/build_dogtag b/pki/dogtag/selinux/build_dogtag
deleted file mode 100755
index 3bdc65efb..000000000
--- a/pki/dogtag/selinux/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-selinux.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="selinux"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/selinux/pki-selinux.spec b/pki/dogtag/selinux/pki-selinux.spec
deleted file mode 100644
index a1d50a1ba..000000000
--- a/pki/dogtag/selinux/pki-selinux.spec
+++ /dev/null
@@ -1,86 +0,0 @@
-Name: pki-selinux
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - PKI Selinux Policies
-URL: https://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: m4
-BuildRequires: make
-BuildRequires: policycoreutils
-BuildRequires: selinux-policy-devel
-
-Requires: policycoreutils
-Requires: selinux-policy-targeted
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Selinux policies for the Pubic Key Infrastructure (PKI) components.
-
-%prep
-
-%setup -q -n %{name}-%{version}
-
-%build
-cd src
-make
-
-%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_datadir}/selinux/modules
-cp -p src/pki.pp %{buildroot}%{_datadir}/selinux/modules
-
-%clean
-rm -rf %{buildroot}
-
-%define saveFileContext() \
-if [ -s /etc/selinux/config ]; then \
- . %{_sysconfdir}/selinux/config; \
- FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
- if [ "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT} ]; then \
- cp -f ${FILE_CONTEXT} ${FILE_CONTEXT}.%{name}; \
- fi \
-fi;
-
-%define relabel() \
-. %{_sysconfdir}/selinux/config; \
-FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
-selinuxenabled; \
-if [ $? == 0 -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.%{name} ]; then \
- fixfiles -C ${FILE_CONTEXT}.%{name} restore; \
- rm -f ${FILE_CONTEXT}.%name; \
-fi;
-
-%pre
-%saveFileContext targeted
-
-%post
-semodule -s targeted -i %{_datadir}/selinux/modules/pki.pp
-%relabel targeted
-
-%preun
-if [ $1 = 0 ]; then
- %saveFileContext targeted
-fi
-
-%postun
-if [ $1 = 0 ]; then
- semodule -s targeted -r pki
- %relabel targeted
-fi
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_datadir}/selinux/modules/pki.pp
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/setup/build_dogtag b/pki/dogtag/setup/build_dogtag
deleted file mode 100755
index f455a7bb1..000000000
--- a/pki/dogtag/setup/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-setup.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="setup"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/setup/pki-setup.spec b/pki/dogtag/setup/pki-setup.spec
deleted file mode 100644
index 0ccfeee61..000000000
--- a/pki/dogtag/setup/pki-setup.spec
+++ /dev/null
@@ -1,64 +0,0 @@
-Name: pki-setup
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate system - PKI Instance Creation and Removal Scripts
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-
-Requires: perl-Crypt-SSLeay
-Requires: policycoreutils
-Requires: openldap-clients
-%{?fc11:Requires: policycoreutils-python}
-%{?fc12:Requires: policycoreutils-python}
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-# This package provides and uses a PRIVATE Perl module (pkicommon.pm).
-# RPM erroneously believes there should be a requires perl(pkicommon)
-# from the public perl library path. Use the documented macros to
-# correct RPM's incorrect automatic dependency generation.
-%filter_from_requires /perl(pkicommon)/d
-%filter_setup
-
-%description
-Public Key Infrastructure (PKI) setup scripts used to create and remove
-instances from Dogtag PKI deployments.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="setup" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_bindir}/*
-%{_datadir}/pki/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
-
-* Fri Nov 19 2010 Ade Lee <alee@redhat.com> 2.0.0-2
-- Bugzilla BZ 606946 - Convert Native Tools to use ldapAPI from OpenLDAP instead of the Mozldap
diff --git a/pki/dogtag/silent/build_dogtag b/pki/dogtag/silent/build_dogtag
deleted file mode 100755
index ae60bd390..000000000
--- a/pki/dogtag/silent/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-silent.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="silent"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/silent/pki-silent.spec b/pki/dogtag/silent/pki-silent.spec
deleted file mode 100644
index ddc785966..000000000
--- a/pki/dogtag/silent/pki-silent.spec
+++ /dev/null
@@ -1,76 +0,0 @@
-Name: pki-silent
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - Silent Installer
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: pki-common
-BuildRequires: pki-util
-
-Requires: java >= 1:1.6.0
-Requires: pki-common
-
-%if 0%{?rhel}
-#rhel has no java on ppc
-ExcludeArch: ppc
-%endif
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Silent Installer may be used to "automatically" configure
-the following Dogtag PKI subsystems in a non-graphical (batch) fashion
-including:
-
- the Dogtag Certificate Authority,
- the Dogtag Data Recovery Manager,
- the Dogtag Online Certificate Status Protocol Manager,
- the Dogtag Registration Authority,
- the Dogtag Token Key Service, and/or
- the Dogtag Token Processing System.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="silent" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_javadir}/pki
-mv pki-silent.jar pki-silent-%{version}.jar
-ln -s pki-silent-%{version}.jar pki-silent.jar
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_bindir}/*
-%{_javadir}/pki/
-%{_datadir}/pki/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/symkey/build_dogtag b/pki/dogtag/symkey/build_dogtag
deleted file mode 100755
index 865b4853d..000000000
--- a/pki/dogtag/symkey/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-symkey.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX=""
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="pki-symkey"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/symkey/pki-symkey.spec b/pki/dogtag/symkey/pki-symkey.spec
deleted file mode 100644
index f4ecdae76..000000000
--- a/pki/dogtag/symkey/pki-symkey.spec
+++ /dev/null
@@ -1,82 +0,0 @@
-Name: pki-symkey
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Symmetric Key JNI Package
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Libraries
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: nspr-devel >= 4.6.99
-BuildRequires: nss-devel >= 3.12.3.99
-BuildRequires: pkgconfig
-
-Requires: java >= 1:1.6.0
-Requires: jpackage-utils
-Requires: jss >= 4.2.6
-Requires: nss >= 3.12.3.99
-
-Provides: symkey = %{version}-%{release}
-
-Obsoletes: symkey < %{version}-%{release}
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%if 0%{?rhel}
-#rhel has no java on ppc
-ExcludeArch: ppc
-%endif
-
-%description
-The Symmetric Key Java Native Interface (JNI) package supplies various native
-symmetric key operations to Java programs.
-
-%prep
-
-%setup -q -n %{name}-%{version}
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="" \
- -Dproduct="%{name}" \
- -Dversion="%{version}"
-%configure \
-%ifarch ppc64 s390x sparc64 x86_64
- --enable-64bit \
-%endif
- --libdir=%{_libdir}
-make %{?_smp_mflags}
-
-%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-
-## rearrange files to be in the desired native packaging layout
-mkdir -p %{buildroot}%{_libdir}/symkey/
-mv %{buildroot}/opt/java/symkey.jar %{buildroot}%{_libdir}/symkey/symkey-%{version}.jar
-mv %{buildroot}%{_libdir}/libsymkey.so %{buildroot}%{_libdir}/symkey/libsymkey.so
-mkdir -p %{buildroot}%{_jnidir}/
-cd %{buildroot}%{_jnidir} ; ln -s %{_libdir}/symkey/symkey-%{version}.jar symkey.jar
-
-## remove unwanted files
-rm -rf %{buildroot}/opt
-rm -rf %{buildroot}%{_libdir}/libsymkey.la
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_jnidir}/*
-%{_libdir}/symkey/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/tks/build_dogtag b/pki/dogtag/tks/build_dogtag
deleted file mode 100755
index 3ca504ee0..000000000
--- a/pki/dogtag/tks/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-tks.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="tks"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/tks/pki-tks.spec b/pki/dogtag/tks/pki-tks.spec
deleted file mode 100644
index 8a570f1c8..000000000
--- a/pki/dogtag/tks/pki-tks.spec
+++ /dev/null
@@ -1,115 +0,0 @@
-Name: pki-tks
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - Token Key Service
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Daemons
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: pki-common
-BuildRequires: pki-util
-BuildRequires: tomcatjss
-
-Requires: java >= 1:1.6.0
-Requires: pki-tks-ui
-Requires: pki-common
-Requires: pki-selinux
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires(postun): initscripts
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Token Key Service is an optional PKI subsystem that
-manages the master key(s) and the transport key(s) required to generate and
-distribute keys for hardware tokens. Dogtag Token Key Service provides
-the security between tokens and an instance of Dogtag Token Processing System,
-where the security relies upon the relationship between the master key
-and the token keys. A Dogtag Token Processing System communicates with a
-Dogtag Token Key Service over SSL using client authentication.
-
-Dogtag Token Key Service helps establish a secure channel (signed and
-encrypted) between the token and the Dogtag Token Processing System,
-provides proof of presence of the security token during enrollment, and
-supports key changeover when the master key changes on the
-Dogtag Token Key Service. Tokens with older keys will get new token keys.
-
-Because of the sensitivity of the data that Dogtag Token Key Service manages,
-Dogtag Token Key Service should be set up behind the firewall with
-restricted access.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dinit.d="rc.d/init.d" \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="tks" \
- -Dversion="%{version}"
-
-%install
-%define major_version %(echo `echo %{version} | awk -F. '{ print $1 }'`)
-%define minor_version %(echo `echo %{version} | awk -F. '{ print $2 }'`)
-%define patch_version %(echo `echo %{version} | awk -F. '{ print $3 }'`)
-
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_datadir}/pki/tks/conf
-mv CS.cfg.in CS.cfg
-sed -i 's/^preop.product.version=.*$/preop.product.version=%{version}/' %{buildroot}%{_datadir}/pki/tks/conf/CS.cfg
-sed -i 's/^cms.version=.*$/cms.version=%{major_version}.%{minor_version}/' %{buildroot}%{_datadir}/pki/tks/conf/CS.cfg
-mkdir -p %{buildroot}%{_localstatedir}/lock/pki/tks
-mkdir -p %{buildroot}%{_localstatedir}/run/pki/tks
-cd %{buildroot}%{_datadir}/pki/tks/setup
-mv config.desktop.in config.desktop
-cd %{buildroot}%{_javadir}/pki
-mv pki-tks.jar pki-tks-%{version}.jar
-ln -s pki-tks-%{version}.jar pki-tks.jar
-
-%clean
-rm -rf %{buildroot}
-
-%post
-# This adds the proper /etc/rc*.d links for the script
-/sbin/chkconfig --add pki-tksd || :
-
-%preun
-if [ $1 = 0 ] ; then
- /sbin/service pki-tksd stop >/dev/null 2>&1
- /sbin/chkconfig --del pki-tksd || :
-fi
-
-%postun
-if [ "$1" -ge "1" ] ; then
- /sbin/service pki-tksd condrestart >/dev/null 2>&1 || :
-fi
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_initrddir}/*
-%{_javadir}/pki/
-%{_datadir}/pki/
-%{_localstatedir}/lock/*
-%{_localstatedir}/run/*
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/tps/build_dogtag b/pki/dogtag/tps/build_dogtag
deleted file mode 100755
index bddefcb15..000000000
--- a/pki/dogtag/tps/build_dogtag
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-tps.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="tps"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/tps/pki-tps.spec b/pki/dogtag/tps/pki-tps.spec
deleted file mode 100644
index f35c7d09b..000000000
--- a/pki/dogtag/tps/pki-tps.spec
+++ /dev/null
@@ -1,229 +0,0 @@
-Name: pki-tps
-Version: 9.0.0
-Release: 3%{?dist}
-Summary: Dogtag Certificate System - Token Processing System
-URL: http://pki.fedoraproject.org/
-License: LGPLv2
-Group: System Environment/Daemons
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: apr-devel
-BuildRequires: apr-util-devel
-BuildRequires: cyrus-sasl-devel
-BuildRequires: httpd-devel >= 2.2.3
-BuildRequires: openldap-devel
-BuildRequires: nspr-devel >= 4.6.99
-BuildRequires: nss-devel >= 3.12.3.99
-BuildRequires: pcre-devel
-BuildRequires: svrcore-devel
-BuildRequires: zlib
-BuildRequires: zlib-devel
-
-Requires: mod_nss >= 1.0.7
-Requires: mod_perl
-Requires: mod_revocator >= 1.0.3
-Requires: openldap-clients
-Requires: pki-native-tools
-Requires: pki-selinux
-Requires: pki-setup
-Requires: pki-tps-ui
-Requires: perl-Mozilla-LDAP
-Requires(post): chkconfig
-Requires(preun): chkconfig
-Requires(preun): initscripts
-Requires(postun): initscripts
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag Token Processing System is an optional PKI subsystem
-that acts as a Registration Authority (RA) for authenticating and processing
-enrollment requests, PIN reset requests, and formatting requests from the
-Enterprise Security Client (ESC).
-
-Dogtag Token Processing System is designed to communicate with tokens that
-conform to Global Platform's Open Platform Specification.
-
-Dogtag Token Processing System communicates over SSL with various
-PKI backend subsystems (including the Dogtag Certificate Authority,
-the Dogtag Data Recovery Manager, and the Dogtag Token Key Service) to
-fulfill the user's requests.
-
-Dogtag Token Processing System also interacts with the token database,
-an LDAP server that stores information about individual tokens.
-
-%package devel
-Group: Development/Libraries
-Summary: Dogtag Certificate System - Token Processing System Library Symlinks
-
-Requires: %{name} = %{version}-%{release}
-
-%description devel
-This package contains symlinks to the Dogtag Certificate System Token
-Processing System library files required to link executables.
-
-%prep
-
-%setup -q -n %{name}-%{version}
-
-cat << \EOF > %{name}-prov
-#!/bin/sh
-%{__perl_provides} $* |\
-sed -e '/perl(PKI.*)/d' -e '/perl(Template.*)/d'
-EOF
-
-%global __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
-
-cat << \EOF > %{name}-req
-#!/bin/sh
-%{__perl_requires} $* |\
-sed -e '/perl(PKI.*)/d' -e '/perl(Template.*)/d'
-EOF
-
-%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
-chmod +x %{__perl_requires}
-
-%build
-%configure \
-%ifarch ppc64 s390x sparc64 x86_64
- --enable-64bit \
-%endif
- --libdir=%{_libdir}
-make %{?_smp_mflags}
-
-%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot} INSTALL="install -p"
-
-## rearrange files to be in the desired native packaging layout
-# create the appropriate subdirectories
-mkdir -p %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{_libdir}/httpd/modules
-mkdir -p %{buildroot}%{_libdir}/pki/tps
-mkdir -p %{buildroot}%{_datadir}/pki/tps/docroot
-mkdir -p %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/Base
-mkdir -p %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/Service
-mkdir -p %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/TPS
-mkdir -p %{buildroot}%{_datadir}/pki/tps/lib/perl/Template
-mkdir -p %{buildroot}%{_localstatedir}/lock/pki/tps
-mkdir -p %{buildroot}%{_localstatedir}/run/pki/tps
-
-# unpack the package contents to the appropriate subdirectories
-cp -p %{buildroot}/opt/apache/modules/*.so %{buildroot}%{_libdir}/httpd/modules
-cp -rp %{buildroot}/opt/alias* %{buildroot}%{_datadir}/pki/tps
-cp -rp %{buildroot}/opt/applets* %{buildroot}%{_datadir}/pki/tps
-cp -rp %{buildroot}/opt/cgi-bin* %{buildroot}%{_datadir}/pki/tps
-cp -rp %{buildroot}/opt/conf* %{buildroot}%{_datadir}/pki/tps
-cp -p %{buildroot}/opt/docroot/index.cgi %{buildroot}%{_datadir}/pki/tps/docroot
-chmod 00755 %{buildroot}%{_datadir}/pki/tps/docroot/index.cgi
-cp -p %{buildroot}/opt/docroot/index.html %{buildroot}%{_datadir}/pki/tps/docroot
-cp -rp %{buildroot}/opt/docroot/demo* %{buildroot}%{_datadir}/pki/tps/docroot
-cp -rp %{buildroot}/opt/docroot/home* %{buildroot}%{_datadir}/pki/tps/docroot
-cp -rp %{buildroot}/opt/docroot/so* %{buildroot}%{_datadir}/pki/tps/docroot
-cp -rp %{buildroot}/opt/docroot/sow* %{buildroot}%{_datadir}/pki/tps/docroot
-cp -rp %{buildroot}/opt/docroot/tokendb* %{buildroot}%{_datadir}/pki/tps/docroot
-cp -rp %{buildroot}/opt/docroot/tps* %{buildroot}%{_datadir}/pki/tps/docroot
-cp -rp %{buildroot}/opt/logs* %{buildroot}%{_datadir}/pki/tps
-cp -rp %{buildroot}/opt/perl/base/* %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/Base
-chmod 00644 %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/Base/*.pm
-cp -rp %{buildroot}/opt/perl/modules/* %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/TPS
-chmod 00644 %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/TPS/*.pm
-cp -rp %{buildroot}/opt/perl/service/* %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/Service
-chmod 00644 %{buildroot}%{_datadir}/pki/tps/lib/perl/PKI/Service/*.pm
-cp -rp %{buildroot}/opt/perl/templates/* %{buildroot}%{_datadir}/pki/tps/lib/perl/Template
-chmod 00644 %{buildroot}%{_datadir}/pki/tps/lib/perl/Template/*.pm
-cp -rp %{buildroot}/opt/samples* %{buildroot}%{_datadir}/pki/tps
-cp -rp %{buildroot}/opt/scripts* %{buildroot}%{_datadir}/pki/tps
-cp -rp %{buildroot}/opt/setup* %{buildroot}%{_datadir}/pki/tps
-cp -rp %{buildroot}/opt/templates* %{buildroot}%{_datadir}/pki/tps
-cp -p %{buildroot}%{_libexecdir}/tpsclient* %{buildroot}%{_libdir}/pki/tps
-
-# create wrappers
-for wrapper in tpsclient
-do
- sed -e "s|\[PKI_PRODUCT\]|pki|g" \
- -e "s|\[PKI_SUBSYSTEM\]|tps|g" \
- -e "s|\[PKI_COMMAND\]|${wrapper}|g" \
- %{buildroot}/opt/templates/pki_subsystem_command_wrapper > %{buildroot}%{_bindir}/${wrapper} ;
-done
-
-# create useful symbolic links as appropriate
-cd %{buildroot}%{_datadir}/pki/tps/docroot
-ln -s tokendb tus
-
-# fix version information in primary configuration file
-cd %{buildroot}%{_datadir}/pki/tps/conf
-mv CS.cfg.in CS.cfg
-sed -i 's/^preop.product.version=.*$/preop.product.version=%{version}/' %{buildroot}%{_datadir}/pki/tps/conf/CS.cfg
-
-# fix location of ldapauth shared object in primary configuration file
-sed -i 's/^auth.instance.0.libraryName=.*$/auth.instance.0.libraryName=[SYSTEM_USER_LIBRARIES]\/[LIB_PREFIX]ldapauth[OBJ_EXT]/' %{buildroot}%{_datadir}/pki/tps/conf/CS.cfg
-sed -i 's/^auth.instance.1.libraryName=.*$/auth.instance.1.libraryName=[SYSTEM_USER_LIBRARIES]\/[LIB_PREFIX]ldapauth[OBJ_EXT]/' %{buildroot}%{_datadir}/pki/tps/conf/CS.cfg
-
-# rename config.desktop.in --> config.desktop
-cd %{buildroot}%{_datadir}/pki/tps/setup
-mv config.desktop.in config.desktop
-
-## remove unwanted files
-rm -rf %{buildroot}/opt/
-rm -rf %{buildroot}%{_libdir}/debug/
-rm -rf %{buildroot}%{_libdir}/lib*.la
-rm -rf %{buildroot}%{_libexecdir}
-rm -rf %{buildroot}%{_datadir}/pki/tps/templates/
-
-%clean
-rm -rf %{buildroot}
-
-
-%post
-/sbin/ldconfig
-# This adds the proper /etc/rc*.d links for the script
-/sbin/chkconfig --add pki-tpsd || :
-
-%preun
-if [ $1 = 0 ] ; then
- /sbin/service pki-tpsd stop >/dev/null 2>&1
- /sbin/chkconfig --del pki-tpsd || :
-fi
-
-
-%postun
-/sbin/ldconfig
-if [ "$1" -ge "1" ] ; then
- /sbin/service pki-tpsd condrestart >/dev/null 2>&1 || :
-fi
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_initrddir}/*
-%{_bindir}/*
-%{_libdir}/httpd/modules/*
-%{_libdir}/libldapauth.so.*
-%{_libdir}/libtokendb.so.*
-%{_libdir}/libtps.so.*
-%{_libdir}/pki/
-%{_datadir}/pki/
-%{_localstatedir}/lock/*
-%{_localstatedir}/run/*
-
-%files devel
-%defattr(-,root,root,-)
-%{_libdir}/libldapauth.so
-%{_libdir}/libtokendb.so
-%{_libdir}/libtps.so
-
-%changelog
-* Thu Mar 31 2011 Ade Lee <alee@redhat.com> 9.0.0-3
-- Bugzilla Bug 691867 - Add ldaps support for install wizard and sow pages
-
-* Fri Jan 21 2011 Ade Lee <alee@redhat.com> 9.0.0-2
-- Bugzilla Bug 606944- Use openldap instead of mozldap
-
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
diff --git a/pki/dogtag/util/build_dogtag b/pki/dogtag/util/build_dogtag
deleted file mode 100755
index 09eac996e..000000000
--- a/pki/dogtag/util/build_dogtag
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# BEGIN COPYRIGHT BLOCK
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# (C) 2007 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-
-# Always switch into the base directory of this
-# shell script prior to executing it so that all
-# of its output is written to this directory
-cd `dirname $0`
-
-# Retrieve the directory name housing this component
-PWD=`pwd`
-
-# Set Dogtag component-specific environment variables
-DOGTAG_BUILD_SCRIPT=`basename $0`
-export DOGTAG_BUILD_SCRIPT
-DOGTAG_COMPONENT=`basename ${PWD}`
-export DOGTAG_COMPONENT
-DOGTAG_SPECFILE="pki-util.spec"
-export DOGTAG_SPECFILE
-
-# Set PKI 'ant' environment variables (originally obtained from specfile)
-PKI_PRODUCT_UI_FLAVOR_PREFIX=""
-export PKI_PRODUCT_UI_FLAVOR_PREFIX
-PKI_PRODUCT_PREFIX="pki"
-export PKI_PRODUCT_PREFIX
-PKI_PRODUCT="util"
-export PKI_PRODUCT
-PKI_VERSION="9.0.0"
-export PKI_VERSION
-
-# Set Dogtag helper variables
-DOGTAG_COMPONENT_NAME=${PKI_PRODUCT}
-export DOGTAG_COMPONENT_NAME
-DOGTAG_WGET_URL=http://cvs.fedora.redhat.com/viewvc
-export DOGTAG_WGET_URL
-
-# Obtain '${DOGTAG_SPECFILE}' as necessary
-if [ "$1" = "refresh" ]; then
- if [ -f "${DOGTAG_SPECFILE}" ]; then
- printf "Removing '${DOGTAG_SPECFILE}' . . . "
- rm -rf ${DOGTAG_SPECFILE}
- printf "done.\n"
- fi
- shift
-fi
-if [ ! -f "${DOGTAG_SPECFILE}" ]; then
- # Check for Fedora Operating System
- if [ ! -f /etc/fedora-release ]; then
- printf "'${DOGTAG_COMPONENT_NAME}' ONLY builds on Fedora!\n"
- exit 255
- fi
- # Obtain Fedora Operating System Version
- FEDORA_VERSION="F-`cat /etc/fedora-release | awk '{print $3}'`"
- export FEDORA_VERSION
- # Retrieve '${DOGTAG_SPECFILE}' from Koji
- printf "Fetching '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}' . . .\n"
- wget -O ${DOGTAG_SPECFILE} ${DOGTAG_WGET_URL}/${FEDORA_VERSION}/${DOGTAG_COMPONENT_NAME}/${DOGTAG_SPECFILE}?view=co
- if [ ! -s "${DOGTAG_SPECFILE}" ]; then
- printf "Failed to fetch '${DOGTAG_SPECFILE}' for '${FEDORA_VERSION}'!\n"
- rm -rf ${DOGTAG_SPECFILE}
- exit 255
- fi
-fi
-
-# Invoke the shared Dogtag PKI build script
-config-ext/build_dogtag_pki $@
-
diff --git a/pki/dogtag/util/pki-util.spec b/pki/dogtag/util/pki-util.spec
deleted file mode 100644
index ad4203bd8..000000000
--- a/pki/dogtag/util/pki-util.spec
+++ /dev/null
@@ -1,92 +0,0 @@
-Name: pki-util
-Version: 9.0.0
-Release: 1%{?dist}
-Summary: Dogtag Certificate System - PKI Utility Framework
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Base
-
-BuildArch: noarch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: jss >= 4.2.6
-BuildRequires: ldapjdk
-BuildRequires: osutil
-BuildRequires: xerces-j2
-
-Requires: java >= 1:1.6.0
-Requires: jpackage-utils
-Requires: jss >= 4.2.6
-Requires: ldapjdk
-
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-
-%if 0%{?rhel}
-# For EPEL, override the '_sharedstatedir' macro on RHEL
-%define _sharedstatedir /var/lib
-%endif
-
-%description
-Dogtag Certificate System is an enterprise software system designed
-to manage enterprise Public Key Infrastructure (PKI) deployments.
-
-The Dogtag PKI Utility Framework is required by the following four
-Dogtag PKI subsystems:
-
- the Dogtag Certificate Authority,
- the Dogtag Data Recovery Manager,
- the Dogtag Online Certificate Status Protocol Manager, and
- the Dogtag Token Key Service.
-
-%package javadoc
-Summary: Dogtag Certificate System - PKI Utility Framework Javadocs
-Group: Documentation
-
-Requires: %{name} = %{version}-%{release}
-
-%description javadoc
-Dogtag Certificate System - PKI Utility Framework Javadocs
-
-This documentation pertains exclusively to version %{version} of
-the Dogtag PKI Utility Framework.
-
-%prep
-
-%setup -q
-
-%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="pki" \
- -Dproduct="util" \
- -Dversion="%{version}"
-
-%install
-rm -rf %{buildroot}
-cd dist/binary
-unzip %{name}-%{version}.zip -d %{buildroot}
-cd %{buildroot}%{_javadir}/pki
-mv pki-cmsutil.jar pki-cmsutil-%{version}.jar
-ln -s pki-cmsutil-%{version}.jar pki-cmsutil.jar
-mv pki-nsutil.jar pki-nsutil-%{version}.jar
-ln -s pki-nsutil-%{version}.jar pki-nsutil.jar
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-%doc LICENSE
-%{_javadir}/pki/
-
-%files javadoc
-%defattr(0644,root,root,0755)
-%{_javadocdir}/%{name}-%{version}/
-
-%changelog
-* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
-- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.