summaryrefslogtreecommitdiffstats
path: root/pki/scripts
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-12-14 22:23:31 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-12-14 22:23:31 +0000
commitee70d6866360c28335fb2ea61a3e7c3d1c341ae9 (patch)
tree63f1da7ff2caeafc2cbd3414225316231eec6c9b /pki/scripts
parentbcc2940ff4068f6f2f19d63b7e935d31d046cf10 (diff)
downloadpki-ee70d6866360c28335fb2ea61a3e7c3d1c341ae9.tar.gz
pki-ee70d6866360c28335fb2ea61a3e7c3d1c341ae9.tar.xz
pki-ee70d6866360c28335fb2ea61a3e7c3d1c341ae9.zip
Bugzilla Bug #586073 - Add new 'mod_revocator' runtime dependency to RA and TPS
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1624 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/scripts')
-rwxr-xr-xpki/scripts/compose_pki_console_packages201
-rwxr-xr-xpki/scripts/compose_pki_kra_packages201
-rwxr-xr-xpki/scripts/compose_pki_migrate_packages201
-rwxr-xr-xpki/scripts/compose_pki_ocsp_packages201
-rwxr-xr-xpki/scripts/compose_pki_ra_packages201
-rwxr-xr-xpki/scripts/compose_pki_tks_packages201
-rwxr-xr-xpki/scripts/compose_pki_tps_packages201
7 files changed, 1407 insertions, 0 deletions
diff --git a/pki/scripts/compose_pki_console_packages b/pki/scripts/compose_pki_console_packages
new file mode 100755
index 000000000..b84c3585e
--- /dev/null
+++ b/pki/scripts/compose_pki_console_packages
@@ -0,0 +1,201 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+## Always switch into the base directory three levels
+## above this shell script prior to executing it so
+## that all of its output is written to this directory
+
+cd `dirname $0`/../..
+
+
+##
+## Retrieve the name of this base directory
+##
+
+PKI_PWD=`pwd`
+
+
+##
+## Establish the 'pki-console' name and version information
+##
+
+PKI_CONSOLE="pki-console"
+PKI_CONSOLE_VERSION="9.0.0"
+
+
+##
+## Establish the SOURCE files/directories of the 'pki-console' source directory
+##
+
+PKI_DIR="pki"
+PKI_BASE_DIR="${PKI_DIR}/base"
+PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_CONSOLE}.spec"
+PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
+PKI_CMAKE_DIR="cmake"
+PKI_BASE_MANIFEST="CMakeLists.txt"
+PKI_COMPONENT_LIST="console"
+
+
+##
+## Establish the TARGET files/directories of the 'pki-console' source/spec files
+##
+
+PKI_PACKAGES="${PKI_PWD}/packages"
+PKI_CONSOLE_BUILD_DIR="${PKI_PACKAGES}/BUILD"
+PKI_CONSOLE_RPMS_DIR="${PKI_PACKAGES}/RPMS"
+PKI_CONSOLE_SOURCES_DIR="${PKI_PACKAGES}/SOURCES"
+PKI_CONSOLE_SPECS_DIR="${PKI_PACKAGES}/SPECS"
+PKI_CONSOLE_SRPMS_DIR="${PKI_PACKAGES}/SRPMS"
+
+PKI_CONSOLE_TARBALL="${PKI_CONSOLE}-${PKI_CONSOLE_VERSION}.tar.gz"
+PKI_CONSOLE_SPEC_FILE="${PKI_CONSOLE_SPECS_DIR}/${PKI_CONSOLE}.spec"
+PKI_CONSOLE_PACKAGE_SCRIPT="${PKI_PACKAGES}/package_${PKI_CONSOLE}"
+PKI_CONSOLE_PACKAGE_COMMAND="rpmbuild --define \"_topdir \`pwd\`\" -ba SPECS/${PKI_CONSOLE}.spec"
+
+PKI_CONSOLE_STAGING_DIR="${PKI_PACKAGES}/staging"
+PKI_CONSOLE_DIR="${PKI_CONSOLE_STAGING_DIR}/${PKI_CONSOLE}-${PKI_CONSOLE_VERSION}"
+PKI_CONSOLE_BASE_DIR="${PKI_CONSOLE_DIR}/base"
+
+
+##
+## Always create a top-level 'packages' directory
+##
+
+mkdir -p ${PKI_PACKAGES}
+
+
+##
+## Always create 'pki-console' package directories
+##
+
+mkdir -p ${PKI_CONSOLE_BUILD_DIR}
+mkdir -p ${PKI_CONSOLE_RPMS_DIR}
+mkdir -p ${PKI_CONSOLE_SOURCES_DIR}
+mkdir -p ${PKI_CONSOLE_SPECS_DIR}
+mkdir -p ${PKI_CONSOLE_SRPMS_DIR}
+
+
+##
+## Always start with new 'pki-console' package files
+##
+
+rm -rf ${PKI_CONSOLE_BUILD_DIR}/${PKI_CONSOLE}-${PKI_CONSOLE_VERSION}
+rm -f ${PKI_CONSOLE_RPMS_DIR}/${PKI_CONSOLE}-${PKI_CONSOLE_VERSION}*.rpm
+rm -f ${PKI_CONSOLE_SOURCES_DIR}/${PKI_CONSOLE_TARBALL}
+rm -f ${PKI_CONSOLE_SPEC_FILE}
+rm -f ${PKI_CONSOLE_SRPMS_DIR}/${PKI_CONSOLE}-${PKI_CONSOLE_VERSION}*.rpm
+
+
+##
+## Copy a new 'pki-console' spec file from the
+## current contents of the PKI working repository
+##
+
+cp -p ${PKI_SPECS_FILE} ${PKI_CONSOLE_SPECS_DIR}
+
+
+##
+## Always start with a new 'pki-console' staging directory
+##
+
+rm -rf ${PKI_CONSOLE_STAGING_DIR}
+
+
+##
+## To generate the 'pki-console' tarball, construct a staging area
+## consisting of the 'pki-console' source components from the
+## current contents of the PKI working repository
+##
+
+mkdir -p ${PKI_CONSOLE_DIR}
+cd ${PKI_DIR}
+for file in "${PKI_FILE_LIST}" ;
+do
+ cp -p ${file} ${PKI_CONSOLE_DIR}
+done
+find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_CONSOLE_DIR} > /dev/null 2>&1
+cd - > /dev/null 2>&1
+
+mkdir -p ${PKI_CONSOLE_BASE_DIR}
+cd ${PKI_BASE_DIR}
+cp -p ${PKI_BASE_MANIFEST} ${PKI_CONSOLE_BASE_DIR}
+for component in "${PKI_COMPONENT_LIST}" ;
+do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_CONSOLE_BASE_DIR} > /dev/null 2>&1
+done
+cd - > /dev/null 2>&1
+
+
+##
+## Due to the following lower-level 'config' subdirectories,
+## INDEPENDENTLY remove ALL top-level 'config' directories:
+##
+## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-console')
+## * ./tps/forms/tps/admin/console/config (N/A 'pki-console')
+##
+
+rm -rf ${PKI_CONSOLE_BASE_DIR}/*/config
+
+
+##
+## Create the 'pki-console' tarball
+##
+
+mkdir -p ${PKI_CONSOLE_SOURCES_DIR}
+cd ${PKI_CONSOLE_STAGING_DIR}
+gtar -zcvf ${PKI_CONSOLE_TARBALL} \
+ "${PKI_CONSOLE}-${PKI_CONSOLE_VERSION}" > /dev/null 2>&1
+mv ${PKI_CONSOLE_TARBALL} ${PKI_CONSOLE_SOURCES_DIR}
+cd - > /dev/null 2>&1
+
+
+##
+## Always remove the PKI staging area
+##
+
+rm -rf ${PKI_CONSOLE_STAGING_DIR}
+
+
+##
+## Always generate a fresh 'pki-console' package script
+##
+
+rm -rf ${PKI_CONSOLE_PACKAGE_SCRIPT}
+printf "#!/bin/bash\n\n" > ${PKI_CONSOLE_PACKAGE_SCRIPT}
+printf "${PKI_CONSOLE_PACKAGE_COMMAND}\n\n" >> ${PKI_CONSOLE_PACKAGE_SCRIPT}
+chmod 775 ${PKI_CONSOLE_PACKAGE_SCRIPT}
+
+
+##
+## Automatically invoke RPM/SRPM creation
+##
+
+cd ${PKI_PACKAGES} ;
+script -c package_${PKI_CONSOLE} package_${PKI_CONSOLE}.log
+
diff --git a/pki/scripts/compose_pki_kra_packages b/pki/scripts/compose_pki_kra_packages
new file mode 100755
index 000000000..ef8c37ce6
--- /dev/null
+++ b/pki/scripts/compose_pki_kra_packages
@@ -0,0 +1,201 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+## Always switch into the base directory three levels
+## above this shell script prior to executing it so
+## that all of its output is written to this directory
+
+cd `dirname $0`/../..
+
+
+##
+## Retrieve the name of this base directory
+##
+
+PKI_PWD=`pwd`
+
+
+##
+## Establish the 'pki-kra' name and version information
+##
+
+PKI_KRA="pki-kra"
+PKI_KRA_VERSION="9.0.0"
+
+
+##
+## Establish the SOURCE files/directories of the 'pki-kra' source directory
+##
+
+PKI_DIR="pki"
+PKI_BASE_DIR="${PKI_DIR}/base"
+PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_KRA}.spec"
+PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
+PKI_CMAKE_DIR="cmake"
+PKI_BASE_MANIFEST="CMakeLists.txt"
+PKI_COMPONENT_LIST="kra"
+
+
+##
+## Establish the TARGET files/directories of the 'pki-kra' source/spec files
+##
+
+PKI_PACKAGES="${PKI_PWD}/packages"
+PKI_KRA_BUILD_DIR="${PKI_PACKAGES}/BUILD"
+PKI_KRA_RPMS_DIR="${PKI_PACKAGES}/RPMS"
+PKI_KRA_SOURCES_DIR="${PKI_PACKAGES}/SOURCES"
+PKI_KRA_SPECS_DIR="${PKI_PACKAGES}/SPECS"
+PKI_KRA_SRPMS_DIR="${PKI_PACKAGES}/SRPMS"
+
+PKI_KRA_TARBALL="${PKI_KRA}-${PKI_KRA_VERSION}.tar.gz"
+PKI_KRA_SPEC_FILE="${PKI_KRA_SPECS_DIR}/${PKI_KRA}.spec"
+PKI_KRA_PACKAGE_SCRIPT="${PKI_PACKAGES}/package_${PKI_KRA}"
+PKI_KRA_PACKAGE_COMMAND="rpmbuild --define \"_topdir \`pwd\`\" -ba SPECS/${PKI_KRA}.spec"
+
+PKI_KRA_STAGING_DIR="${PKI_PACKAGES}/staging"
+PKI_KRA_DIR="${PKI_KRA_STAGING_DIR}/${PKI_KRA}-${PKI_KRA_VERSION}"
+PKI_KRA_BASE_DIR="${PKI_KRA_DIR}/base"
+
+
+##
+## Always create a top-level 'packages' directory
+##
+
+mkdir -p ${PKI_PACKAGES}
+
+
+##
+## Always create 'pki-kra' package directories
+##
+
+mkdir -p ${PKI_KRA_BUILD_DIR}
+mkdir -p ${PKI_KRA_RPMS_DIR}
+mkdir -p ${PKI_KRA_SOURCES_DIR}
+mkdir -p ${PKI_KRA_SPECS_DIR}
+mkdir -p ${PKI_KRA_SRPMS_DIR}
+
+
+##
+## Always start with new 'pki-kra' package files
+##
+
+rm -rf ${PKI_KRA_BUILD_DIR}/${PKI_KRA}-${PKI_KRA_VERSION}
+rm -f ${PKI_KRA_RPMS_DIR}/${PKI_KRA}-${PKI_KRA_VERSION}*.rpm
+rm -f ${PKI_KRA_SOURCES_DIR}/${PKI_KRA_TARBALL}
+rm -f ${PKI_KRA_SPEC_FILE}
+rm -f ${PKI_KRA_SRPMS_DIR}/${PKI_KRA}-${PKI_KRA_VERSION}*.rpm
+
+
+##
+## Copy a new 'pki-kra' spec file from the
+## current contents of the PKI working repository
+##
+
+cp -p ${PKI_SPECS_FILE} ${PKI_KRA_SPECS_DIR}
+
+
+##
+## Always start with a new 'pki-kra' staging directory
+##
+
+rm -rf ${PKI_KRA_STAGING_DIR}
+
+
+##
+## To generate the 'pki-kra' tarball, construct a staging area
+## consisting of the 'pki-kra' source components from the
+## current contents of the PKI working repository
+##
+
+mkdir -p ${PKI_KRA_DIR}
+cd ${PKI_DIR}
+for file in "${PKI_FILE_LIST}" ;
+do
+ cp -p ${file} ${PKI_KRA_DIR}
+done
+find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_KRA_DIR} > /dev/null 2>&1
+cd - > /dev/null 2>&1
+
+mkdir -p ${PKI_KRA_BASE_DIR}
+cd ${PKI_BASE_DIR}
+cp -p ${PKI_BASE_MANIFEST} ${PKI_KRA_BASE_DIR}
+for component in "${PKI_COMPONENT_LIST}" ;
+do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_KRA_BASE_DIR} > /dev/null 2>&1
+done
+cd - > /dev/null 2>&1
+
+
+##
+## Due to the following lower-level 'config' subdirectories,
+## INDEPENDENTLY remove ALL top-level 'config' directories:
+##
+## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-kra')
+## * ./tps/forms/tps/admin/console/config (N/A 'pki-kra')
+##
+
+rm -rf ${PKI_KRA_BASE_DIR}/*/config
+
+
+##
+## Create the 'pki-kra' tarball
+##
+
+mkdir -p ${PKI_KRA_SOURCES_DIR}
+cd ${PKI_KRA_STAGING_DIR}
+gtar -zcvf ${PKI_KRA_TARBALL} \
+ "${PKI_KRA}-${PKI_KRA_VERSION}" > /dev/null 2>&1
+mv ${PKI_KRA_TARBALL} ${PKI_KRA_SOURCES_DIR}
+cd - > /dev/null 2>&1
+
+
+##
+## Always remove the PKI staging area
+##
+
+rm -rf ${PKI_KRA_STAGING_DIR}
+
+
+##
+## Always generate a fresh 'pki-kra' package script
+##
+
+rm -rf ${PKI_KRA_PACKAGE_SCRIPT}
+printf "#!/bin/bash\n\n" > ${PKI_KRA_PACKAGE_SCRIPT}
+printf "${PKI_KRA_PACKAGE_COMMAND}\n\n" >> ${PKI_KRA_PACKAGE_SCRIPT}
+chmod 775 ${PKI_KRA_PACKAGE_SCRIPT}
+
+
+##
+## Automatically invoke RPM/SRPM creation
+##
+
+cd ${PKI_PACKAGES} ;
+script -c package_${PKI_KRA} package_${PKI_KRA}.log
+
diff --git a/pki/scripts/compose_pki_migrate_packages b/pki/scripts/compose_pki_migrate_packages
new file mode 100755
index 000000000..d36b58417
--- /dev/null
+++ b/pki/scripts/compose_pki_migrate_packages
@@ -0,0 +1,201 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+## Always switch into the base directory three levels
+## above this shell script prior to executing it so
+## that all of its output is written to this directory
+
+cd `dirname $0`/../..
+
+
+##
+## Retrieve the name of this base directory
+##
+
+PKI_PWD=`pwd`
+
+
+##
+## Establish the 'pki-migrate' name and version information
+##
+
+PKI_MIGRATE="pki-migrate"
+PKI_MIGRATE_VERSION="9.0.0"
+
+
+##
+## Establish the SOURCE files/directories of the 'pki-migrate' source directory
+##
+
+PKI_DIR="pki"
+PKI_BASE_DIR="${PKI_DIR}/base"
+PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_MIGRATE}.spec"
+PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
+PKI_CMAKE_DIR="cmake"
+PKI_BASE_MANIFEST="CMakeLists.txt"
+PKI_COMPONENT_LIST="migrate"
+
+
+##
+## Establish the TARGET files/directories of the 'pki-migrate' source/spec files
+##
+
+PKI_PACKAGES="${PKI_PWD}/packages"
+PKI_MIGRATE_BUILD_DIR="${PKI_PACKAGES}/BUILD"
+PKI_MIGRATE_RPMS_DIR="${PKI_PACKAGES}/RPMS"
+PKI_MIGRATE_SOURCES_DIR="${PKI_PACKAGES}/SOURCES"
+PKI_MIGRATE_SPECS_DIR="${PKI_PACKAGES}/SPECS"
+PKI_MIGRATE_SRPMS_DIR="${PKI_PACKAGES}/SRPMS"
+
+PKI_MIGRATE_TARBALL="${PKI_MIGRATE}-${PKI_MIGRATE_VERSION}.tar.gz"
+PKI_MIGRATE_SPEC_FILE="${PKI_MIGRATE_SPECS_DIR}/${PKI_MIGRATE}.spec"
+PKI_MIGRATE_PACKAGE_SCRIPT="${PKI_PACKAGES}/package_${PKI_MIGRATE}"
+PKI_MIGRATE_PACKAGE_COMMAND="rpmbuild --define \"_topdir \`pwd\`\" -ba SPECS/${PKI_MIGRATE}.spec"
+
+PKI_MIGRATE_STAGING_DIR="${PKI_PACKAGES}/staging"
+PKI_MIGRATE_DIR="${PKI_MIGRATE_STAGING_DIR}/${PKI_MIGRATE}-${PKI_MIGRATE_VERSION}"
+PKI_MIGRATE_BASE_DIR="${PKI_MIGRATE_DIR}/base"
+
+
+##
+## Always create a top-level 'packages' directory
+##
+
+mkdir -p ${PKI_PACKAGES}
+
+
+##
+## Always create 'pki-migrate' package directories
+##
+
+mkdir -p ${PKI_MIGRATE_BUILD_DIR}
+mkdir -p ${PKI_MIGRATE_RPMS_DIR}
+mkdir -p ${PKI_MIGRATE_SOURCES_DIR}
+mkdir -p ${PKI_MIGRATE_SPECS_DIR}
+mkdir -p ${PKI_MIGRATE_SRPMS_DIR}
+
+
+##
+## Always start with new 'pki-migrate' package files
+##
+
+rm -rf ${PKI_MIGRATE_BUILD_DIR}/${PKI_MIGRATE}-${PKI_MIGRATE_VERSION}
+rm -f ${PKI_MIGRATE_RPMS_DIR}/${PKI_MIGRATE}-${PKI_MIGRATE_VERSION}*.rpm
+rm -f ${PKI_MIGRATE_SOURCES_DIR}/${PKI_MIGRATE_TARBALL}
+rm -f ${PKI_MIGRATE_SPEC_FILE}
+rm -f ${PKI_MIGRATE_SRPMS_DIR}/${PKI_MIGRATE}-${PKI_MIGRATE_VERSION}*.rpm
+
+
+##
+## Copy a new 'pki-migrate' spec file from the
+## current contents of the PKI working repository
+##
+
+cp -p ${PKI_SPECS_FILE} ${PKI_MIGRATE_SPECS_DIR}
+
+
+##
+## Always start with a new 'pki-migrate' staging directory
+##
+
+rm -rf ${PKI_MIGRATE_STAGING_DIR}
+
+
+##
+## To generate the 'pki-migrate' tarball, construct a staging area
+## consisting of the 'pki-migrate' source components from the
+## current contents of the PKI working repository
+##
+
+mkdir -p ${PKI_MIGRATE_DIR}
+cd ${PKI_DIR}
+for file in "${PKI_FILE_LIST}" ;
+do
+ cp -p ${file} ${PKI_MIGRATE_DIR}
+done
+find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_MIGRATE_DIR} > /dev/null 2>&1
+cd - > /dev/null 2>&1
+
+mkdir -p ${PKI_MIGRATE_BASE_DIR}
+cd ${PKI_BASE_DIR}
+cp -p ${PKI_BASE_MANIFEST} ${PKI_MIGRATE_BASE_DIR}
+for component in "${PKI_COMPONENT_LIST}" ;
+do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_MIGRATE_BASE_DIR} > /dev/null 2>&1
+done
+cd - > /dev/null 2>&1
+
+
+##
+## Due to the following lower-level 'config' subdirectories,
+## INDEPENDENTLY remove ALL top-level 'config' directories:
+##
+## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-migrate')
+## * ./tps/forms/tps/admin/console/config (N/A 'pki-migrate')
+##
+
+rm -rf ${PKI_MIGRATE_BASE_DIR}/*/config
+
+
+##
+## Create the 'pki-migrate' tarball
+##
+
+mkdir -p ${PKI_MIGRATE_SOURCES_DIR}
+cd ${PKI_MIGRATE_STAGING_DIR}
+gtar -zcvf ${PKI_MIGRATE_TARBALL} \
+ "${PKI_MIGRATE}-${PKI_MIGRATE_VERSION}" > /dev/null 2>&1
+mv ${PKI_MIGRATE_TARBALL} ${PKI_MIGRATE_SOURCES_DIR}
+cd - > /dev/null 2>&1
+
+
+##
+## Always remove the PKI staging area
+##
+
+rm -rf ${PKI_MIGRATE_STAGING_DIR}
+
+
+##
+## Always generate a fresh 'pki-migrate' package script
+##
+
+rm -rf ${PKI_MIGRATE_PACKAGE_SCRIPT}
+printf "#!/bin/bash\n\n" > ${PKI_MIGRATE_PACKAGE_SCRIPT}
+printf "${PKI_MIGRATE_PACKAGE_COMMAND}\n\n" >> ${PKI_MIGRATE_PACKAGE_SCRIPT}
+chmod 775 ${PKI_MIGRATE_PACKAGE_SCRIPT}
+
+
+##
+## Automatically invoke RPM/SRPM creation
+##
+
+cd ${PKI_PACKAGES} ;
+script -c package_${PKI_MIGRATE} package_${PKI_MIGRATE}.log
+
diff --git a/pki/scripts/compose_pki_ocsp_packages b/pki/scripts/compose_pki_ocsp_packages
new file mode 100755
index 000000000..44f69bd3a
--- /dev/null
+++ b/pki/scripts/compose_pki_ocsp_packages
@@ -0,0 +1,201 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+## Always switch into the base directory three levels
+## above this shell script prior to executing it so
+## that all of its output is written to this directory
+
+cd `dirname $0`/../..
+
+
+##
+## Retrieve the name of this base directory
+##
+
+PKI_PWD=`pwd`
+
+
+##
+## Establish the 'pki-ocsp' name and version information
+##
+
+PKI_OCSP="pki-ocsp"
+PKI_OCSP_VERSION="9.0.0"
+
+
+##
+## Establish the SOURCE files/directories of the 'pki-ocsp' source directory
+##
+
+PKI_DIR="pki"
+PKI_BASE_DIR="${PKI_DIR}/base"
+PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_OCSP}.spec"
+PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
+PKI_CMAKE_DIR="cmake"
+PKI_BASE_MANIFEST="CMakeLists.txt"
+PKI_COMPONENT_LIST="ocsp"
+
+
+##
+## Establish the TARGET files/directories of the 'pki-ocsp' source/spec files
+##
+
+PKI_PACKAGES="${PKI_PWD}/packages"
+PKI_OCSP_BUILD_DIR="${PKI_PACKAGES}/BUILD"
+PKI_OCSP_RPMS_DIR="${PKI_PACKAGES}/RPMS"
+PKI_OCSP_SOURCES_DIR="${PKI_PACKAGES}/SOURCES"
+PKI_OCSP_SPECS_DIR="${PKI_PACKAGES}/SPECS"
+PKI_OCSP_SRPMS_DIR="${PKI_PACKAGES}/SRPMS"
+
+PKI_OCSP_TARBALL="${PKI_OCSP}-${PKI_OCSP_VERSION}.tar.gz"
+PKI_OCSP_SPEC_FILE="${PKI_OCSP_SPECS_DIR}/${PKI_OCSP}.spec"
+PKI_OCSP_PACKAGE_SCRIPT="${PKI_PACKAGES}/package_${PKI_OCSP}"
+PKI_OCSP_PACKAGE_COMMAND="rpmbuild --define \"_topdir \`pwd\`\" -ba SPECS/${PKI_OCSP}.spec"
+
+PKI_OCSP_STAGING_DIR="${PKI_PACKAGES}/staging"
+PKI_OCSP_DIR="${PKI_OCSP_STAGING_DIR}/${PKI_OCSP}-${PKI_OCSP_VERSION}"
+PKI_OCSP_BASE_DIR="${PKI_OCSP_DIR}/base"
+
+
+##
+## Always create a top-level 'packages' directory
+##
+
+mkdir -p ${PKI_PACKAGES}
+
+
+##
+## Always create 'pki-ocsp' package directories
+##
+
+mkdir -p ${PKI_OCSP_BUILD_DIR}
+mkdir -p ${PKI_OCSP_RPMS_DIR}
+mkdir -p ${PKI_OCSP_SOURCES_DIR}
+mkdir -p ${PKI_OCSP_SPECS_DIR}
+mkdir -p ${PKI_OCSP_SRPMS_DIR}
+
+
+##
+## Always start with new 'pki-ocsp' package files
+##
+
+rm -rf ${PKI_OCSP_BUILD_DIR}/${PKI_OCSP}-${PKI_OCSP_VERSION}
+rm -f ${PKI_OCSP_RPMS_DIR}/${PKI_OCSP}-${PKI_OCSP_VERSION}*.rpm
+rm -f ${PKI_OCSP_SOURCES_DIR}/${PKI_OCSP_TARBALL}
+rm -f ${PKI_OCSP_SPEC_FILE}
+rm -f ${PKI_OCSP_SRPMS_DIR}/${PKI_OCSP}-${PKI_OCSP_VERSION}*.rpm
+
+
+##
+## Copy a new 'pki-ocsp' spec file from the
+## current contents of the PKI working repository
+##
+
+cp -p ${PKI_SPECS_FILE} ${PKI_OCSP_SPECS_DIR}
+
+
+##
+## Always start with a new 'pki-ocsp' staging directory
+##
+
+rm -rf ${PKI_OCSP_STAGING_DIR}
+
+
+##
+## To generate the 'pki-ocsp' tarball, construct a staging area
+## consisting of the 'pki-ocsp' source components from the
+## current contents of the PKI working repository
+##
+
+mkdir -p ${PKI_OCSP_DIR}
+cd ${PKI_DIR}
+for file in "${PKI_FILE_LIST}" ;
+do
+ cp -p ${file} ${PKI_OCSP_DIR}
+done
+find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_OCSP_DIR} > /dev/null 2>&1
+cd - > /dev/null 2>&1
+
+mkdir -p ${PKI_OCSP_BASE_DIR}
+cd ${PKI_BASE_DIR}
+cp -p ${PKI_BASE_MANIFEST} ${PKI_OCSP_BASE_DIR}
+for component in "${PKI_COMPONENT_LIST}" ;
+do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_OCSP_BASE_DIR} > /dev/null 2>&1
+done
+cd - > /dev/null 2>&1
+
+
+##
+## Due to the following lower-level 'config' subdirectories,
+## INDEPENDENTLY remove ALL top-level 'config' directories:
+##
+## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-ocsp')
+## * ./tps/forms/tps/admin/console/config (N/A 'pki-ocsp')
+##
+
+rm -rf ${PKI_OCSP_BASE_DIR}/*/config
+
+
+##
+## Create the 'pki-ocsp' tarball
+##
+
+mkdir -p ${PKI_OCSP_SOURCES_DIR}
+cd ${PKI_OCSP_STAGING_DIR}
+gtar -zcvf ${PKI_OCSP_TARBALL} \
+ "${PKI_OCSP}-${PKI_OCSP_VERSION}" > /dev/null 2>&1
+mv ${PKI_OCSP_TARBALL} ${PKI_OCSP_SOURCES_DIR}
+cd - > /dev/null 2>&1
+
+
+##
+## Always remove the PKI staging area
+##
+
+rm -rf ${PKI_OCSP_STAGING_DIR}
+
+
+##
+## Always generate a fresh 'pki-ocsp' package script
+##
+
+rm -rf ${PKI_OCSP_PACKAGE_SCRIPT}
+printf "#!/bin/bash\n\n" > ${PKI_OCSP_PACKAGE_SCRIPT}
+printf "${PKI_OCSP_PACKAGE_COMMAND}\n\n" >> ${PKI_OCSP_PACKAGE_SCRIPT}
+chmod 775 ${PKI_OCSP_PACKAGE_SCRIPT}
+
+
+##
+## Automatically invoke RPM/SRPM creation
+##
+
+cd ${PKI_PACKAGES} ;
+script -c package_${PKI_OCSP} package_${PKI_OCSP}.log
+
diff --git a/pki/scripts/compose_pki_ra_packages b/pki/scripts/compose_pki_ra_packages
new file mode 100755
index 000000000..10fd1790c
--- /dev/null
+++ b/pki/scripts/compose_pki_ra_packages
@@ -0,0 +1,201 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+## Always switch into the base directory three levels
+## above this shell script prior to executing it so
+## that all of its output is written to this directory
+
+cd `dirname $0`/../..
+
+
+##
+## Retrieve the name of this base directory
+##
+
+PKI_PWD=`pwd`
+
+
+##
+## Establish the 'pki-ra' name and version information
+##
+
+PKI_RA="pki-ra"
+PKI_RA_VERSION="9.0.0"
+
+
+##
+## Establish the SOURCE files/directories of the 'pki-ra' source directory
+##
+
+PKI_DIR="pki"
+PKI_BASE_DIR="${PKI_DIR}/base"
+PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_RA}.spec"
+PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
+PKI_CMAKE_DIR="cmake"
+PKI_BASE_MANIFEST="CMakeLists.txt"
+PKI_COMPONENT_LIST="ra"
+
+
+##
+## Establish the TARGET files/directories of the 'pki-ra' source/spec files
+##
+
+PKI_PACKAGES="${PKI_PWD}/packages"
+PKI_RA_BUILD_DIR="${PKI_PACKAGES}/BUILD"
+PKI_RA_RPMS_DIR="${PKI_PACKAGES}/RPMS"
+PKI_RA_SOURCES_DIR="${PKI_PACKAGES}/SOURCES"
+PKI_RA_SPECS_DIR="${PKI_PACKAGES}/SPECS"
+PKI_RA_SRPMS_DIR="${PKI_PACKAGES}/SRPMS"
+
+PKI_RA_TARBALL="${PKI_RA}-${PKI_RA_VERSION}.tar.gz"
+PKI_RA_SPEC_FILE="${PKI_RA_SPECS_DIR}/${PKI_RA}.spec"
+PKI_RA_PACKAGE_SCRIPT="${PKI_PACKAGES}/package_${PKI_RA}"
+PKI_RA_PACKAGE_COMMAND="rpmbuild --define \"_topdir \`pwd\`\" -ba SPECS/${PKI_RA}.spec"
+
+PKI_RA_STAGING_DIR="${PKI_PACKAGES}/staging"
+PKI_RA_DIR="${PKI_RA_STAGING_DIR}/${PKI_RA}-${PKI_RA_VERSION}"
+PKI_RA_BASE_DIR="${PKI_RA_DIR}/base"
+
+
+##
+## Always create a top-level 'packages' directory
+##
+
+mkdir -p ${PKI_PACKAGES}
+
+
+##
+## Always create 'pki-ra' package directories
+##
+
+mkdir -p ${PKI_RA_BUILD_DIR}
+mkdir -p ${PKI_RA_RPMS_DIR}
+mkdir -p ${PKI_RA_SOURCES_DIR}
+mkdir -p ${PKI_RA_SPECS_DIR}
+mkdir -p ${PKI_RA_SRPMS_DIR}
+
+
+##
+## Always start with new 'pki-ra' package files
+##
+
+rm -rf ${PKI_RA_BUILD_DIR}/${PKI_RA}-${PKI_RA_VERSION}
+rm -f ${PKI_RA_RPMS_DIR}/${PKI_RA}-${PKI_RA_VERSION}*.rpm
+rm -f ${PKI_RA_SOURCES_DIR}/${PKI_RA_TARBALL}
+rm -f ${PKI_RA_SPEC_FILE}
+rm -f ${PKI_RA_SRPMS_DIR}/${PKI_RA}-${PKI_RA_VERSION}*.rpm
+
+
+##
+## Copy a new 'pki-ra' spec file from the
+## current contents of the PKI working repository
+##
+
+cp -p ${PKI_SPECS_FILE} ${PKI_RA_SPECS_DIR}
+
+
+##
+## Always start with a new 'pki-ra' staging directory
+##
+
+rm -rf ${PKI_RA_STAGING_DIR}
+
+
+##
+## To generate the 'pki-ra' tarball, construct a staging area
+## consisting of the 'pki-ra' source components from the
+## current contents of the PKI working repository
+##
+
+mkdir -p ${PKI_RA_DIR}
+cd ${PKI_DIR}
+for file in "${PKI_FILE_LIST}" ;
+do
+ cp -p ${file} ${PKI_RA_DIR}
+done
+find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_RA_DIR} > /dev/null 2>&1
+cd - > /dev/null 2>&1
+
+mkdir -p ${PKI_RA_BASE_DIR}
+cd ${PKI_BASE_DIR}
+cp -p ${PKI_BASE_MANIFEST} ${PKI_RA_BASE_DIR}
+for component in "${PKI_COMPONENT_LIST}" ;
+do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_RA_BASE_DIR} > /dev/null 2>&1
+done
+cd - > /dev/null 2>&1
+
+
+##
+## Due to the following lower-level 'config' subdirectories,
+## INDEPENDENTLY remove ALL top-level 'config' directories:
+##
+## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-ra')
+## * ./tps/forms/tps/admin/console/config (N/A 'pki-ra')
+##
+
+rm -rf ${PKI_RA_BASE_DIR}/*/config
+
+
+##
+## Create the 'pki-ra' tarball
+##
+
+mkdir -p ${PKI_RA_SOURCES_DIR}
+cd ${PKI_RA_STAGING_DIR}
+gtar -zcvf ${PKI_RA_TARBALL} \
+ "${PKI_RA}-${PKI_RA_VERSION}" > /dev/null 2>&1
+mv ${PKI_RA_TARBALL} ${PKI_RA_SOURCES_DIR}
+cd - > /dev/null 2>&1
+
+
+##
+## Always remove the PKI staging area
+##
+
+rm -rf ${PKI_RA_STAGING_DIR}
+
+
+##
+## Always generate a fresh 'pki-ra' package script
+##
+
+rm -rf ${PKI_RA_PACKAGE_SCRIPT}
+printf "#!/bin/bash\n\n" > ${PKI_RA_PACKAGE_SCRIPT}
+printf "${PKI_RA_PACKAGE_COMMAND}\n\n" >> ${PKI_RA_PACKAGE_SCRIPT}
+chmod 775 ${PKI_RA_PACKAGE_SCRIPT}
+
+
+##
+## Automatically invoke RPM/SRPM creation
+##
+
+cd ${PKI_PACKAGES} ;
+script -c package_${PKI_RA} package_${PKI_RA}.log
+
diff --git a/pki/scripts/compose_pki_tks_packages b/pki/scripts/compose_pki_tks_packages
new file mode 100755
index 000000000..c6e900b98
--- /dev/null
+++ b/pki/scripts/compose_pki_tks_packages
@@ -0,0 +1,201 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+## Always switch into the base directory three levels
+## above this shell script prior to executing it so
+## that all of its output is written to this directory
+
+cd `dirname $0`/../..
+
+
+##
+## Retrieve the name of this base directory
+##
+
+PKI_PWD=`pwd`
+
+
+##
+## Establish the 'pki-tks' name and version information
+##
+
+PKI_TKS="pki-tks"
+PKI_TKS_VERSION="9.0.0"
+
+
+##
+## Establish the SOURCE files/directories of the 'pki-tks' source directory
+##
+
+PKI_DIR="pki"
+PKI_BASE_DIR="${PKI_DIR}/base"
+PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_TKS}.spec"
+PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
+PKI_CMAKE_DIR="cmake"
+PKI_BASE_MANIFEST="CMakeLists.txt"
+PKI_COMPONENT_LIST="tks"
+
+
+##
+## Establish the TARGET files/directories of the 'pki-tks' source/spec files
+##
+
+PKI_PACKAGES="${PKI_PWD}/packages"
+PKI_TKS_BUILD_DIR="${PKI_PACKAGES}/BUILD"
+PKI_TKS_RPMS_DIR="${PKI_PACKAGES}/RPMS"
+PKI_TKS_SOURCES_DIR="${PKI_PACKAGES}/SOURCES"
+PKI_TKS_SPECS_DIR="${PKI_PACKAGES}/SPECS"
+PKI_TKS_SRPMS_DIR="${PKI_PACKAGES}/SRPMS"
+
+PKI_TKS_TARBALL="${PKI_TKS}-${PKI_TKS_VERSION}.tar.gz"
+PKI_TKS_SPEC_FILE="${PKI_TKS_SPECS_DIR}/${PKI_TKS}.spec"
+PKI_TKS_PACKAGE_SCRIPT="${PKI_PACKAGES}/package_${PKI_TKS}"
+PKI_TKS_PACKAGE_COMMAND="rpmbuild --define \"_topdir \`pwd\`\" -ba SPECS/${PKI_TKS}.spec"
+
+PKI_TKS_STAGING_DIR="${PKI_PACKAGES}/staging"
+PKI_TKS_DIR="${PKI_TKS_STAGING_DIR}/${PKI_TKS}-${PKI_TKS_VERSION}"
+PKI_TKS_BASE_DIR="${PKI_TKS_DIR}/base"
+
+
+##
+## Always create a top-level 'packages' directory
+##
+
+mkdir -p ${PKI_PACKAGES}
+
+
+##
+## Always create 'pki-tks' package directories
+##
+
+mkdir -p ${PKI_TKS_BUILD_DIR}
+mkdir -p ${PKI_TKS_RPMS_DIR}
+mkdir -p ${PKI_TKS_SOURCES_DIR}
+mkdir -p ${PKI_TKS_SPECS_DIR}
+mkdir -p ${PKI_TKS_SRPMS_DIR}
+
+
+##
+## Always start with new 'pki-tks' package files
+##
+
+rm -rf ${PKI_TKS_BUILD_DIR}/${PKI_TKS}-${PKI_TKS_VERSION}
+rm -f ${PKI_TKS_RPMS_DIR}/${PKI_TKS}-${PKI_TKS_VERSION}*.rpm
+rm -f ${PKI_TKS_SOURCES_DIR}/${PKI_TKS_TARBALL}
+rm -f ${PKI_TKS_SPEC_FILE}
+rm -f ${PKI_TKS_SRPMS_DIR}/${PKI_TKS}-${PKI_TKS_VERSION}*.rpm
+
+
+##
+## Copy a new 'pki-tks' spec file from the
+## current contents of the PKI working repository
+##
+
+cp -p ${PKI_SPECS_FILE} ${PKI_TKS_SPECS_DIR}
+
+
+##
+## Always start with a new 'pki-tks' staging directory
+##
+
+rm -rf ${PKI_TKS_STAGING_DIR}
+
+
+##
+## To generate the 'pki-tks' tarball, construct a staging area
+## consisting of the 'pki-tks' source components from the
+## current contents of the PKI working repository
+##
+
+mkdir -p ${PKI_TKS_DIR}
+cd ${PKI_DIR}
+for file in "${PKI_FILE_LIST}" ;
+do
+ cp -p ${file} ${PKI_TKS_DIR}
+done
+find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_TKS_DIR} > /dev/null 2>&1
+cd - > /dev/null 2>&1
+
+mkdir -p ${PKI_TKS_BASE_DIR}
+cd ${PKI_BASE_DIR}
+cp -p ${PKI_BASE_MANIFEST} ${PKI_TKS_BASE_DIR}
+for component in "${PKI_COMPONENT_LIST}" ;
+do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_TKS_BASE_DIR} > /dev/null 2>&1
+done
+cd - > /dev/null 2>&1
+
+
+##
+## Due to the following lower-level 'config' subdirectories,
+## INDEPENDENTLY remove ALL top-level 'config' directories:
+##
+## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-tks')
+## * ./tps/forms/tps/admin/console/config (N/A 'pki-tks')
+##
+
+rm -rf ${PKI_TKS_BASE_DIR}/*/config
+
+
+##
+## Create the 'pki-tks' tarball
+##
+
+mkdir -p ${PKI_TKS_SOURCES_DIR}
+cd ${PKI_TKS_STAGING_DIR}
+gtar -zcvf ${PKI_TKS_TARBALL} \
+ "${PKI_TKS}-${PKI_TKS_VERSION}" > /dev/null 2>&1
+mv ${PKI_TKS_TARBALL} ${PKI_TKS_SOURCES_DIR}
+cd - > /dev/null 2>&1
+
+
+##
+## Always remove the PKI staging area
+##
+
+rm -rf ${PKI_TKS_STAGING_DIR}
+
+
+##
+## Always generate a fresh 'pki-tks' package script
+##
+
+rm -rf ${PKI_TKS_PACKAGE_SCRIPT}
+printf "#!/bin/bash\n\n" > ${PKI_TKS_PACKAGE_SCRIPT}
+printf "${PKI_TKS_PACKAGE_COMMAND}\n\n" >> ${PKI_TKS_PACKAGE_SCRIPT}
+chmod 775 ${PKI_TKS_PACKAGE_SCRIPT}
+
+
+##
+## Automatically invoke RPM/SRPM creation
+##
+
+cd ${PKI_PACKAGES} ;
+script -c package_${PKI_TKS} package_${PKI_TKS}.log
+
diff --git a/pki/scripts/compose_pki_tps_packages b/pki/scripts/compose_pki_tps_packages
new file mode 100755
index 000000000..66dd30cd2
--- /dev/null
+++ b/pki/scripts/compose_pki_tps_packages
@@ -0,0 +1,201 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+## Always switch into the base directory three levels
+## above this shell script prior to executing it so
+## that all of its output is written to this directory
+
+cd `dirname $0`/../..
+
+
+##
+## Retrieve the name of this base directory
+##
+
+PKI_PWD=`pwd`
+
+
+##
+## Establish the 'pki-tps' name and version information
+##
+
+PKI_TPS="pki-tps"
+PKI_TPS_VERSION="9.0.0"
+
+
+##
+## Establish the SOURCE files/directories of the 'pki-tps' source directory
+##
+
+PKI_DIR="pki"
+PKI_BASE_DIR="${PKI_DIR}/base"
+PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_TPS}.spec"
+PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
+PKI_CMAKE_DIR="cmake"
+PKI_BASE_MANIFEST="CMakeLists.txt"
+PKI_COMPONENT_LIST="tps"
+
+
+##
+## Establish the TARGET files/directories of the 'pki-tps' source/spec files
+##
+
+PKI_PACKAGES="${PKI_PWD}/packages"
+PKI_TPS_BUILD_DIR="${PKI_PACKAGES}/BUILD"
+PKI_TPS_RPMS_DIR="${PKI_PACKAGES}/RPMS"
+PKI_TPS_SOURCES_DIR="${PKI_PACKAGES}/SOURCES"
+PKI_TPS_SPECS_DIR="${PKI_PACKAGES}/SPECS"
+PKI_TPS_SRPMS_DIR="${PKI_PACKAGES}/SRPMS"
+
+PKI_TPS_TARBALL="${PKI_TPS}-${PKI_TPS_VERSION}.tar.gz"
+PKI_TPS_SPEC_FILE="${PKI_TPS_SPECS_DIR}/${PKI_TPS}.spec"
+PKI_TPS_PACKAGE_SCRIPT="${PKI_PACKAGES}/package_${PKI_TPS}"
+PKI_TPS_PACKAGE_COMMAND="rpmbuild --define \"_topdir \`pwd\`\" -ba SPECS/${PKI_TPS}.spec"
+
+PKI_TPS_STAGING_DIR="${PKI_PACKAGES}/staging"
+PKI_TPS_DIR="${PKI_TPS_STAGING_DIR}/${PKI_TPS}-${PKI_TPS_VERSION}"
+PKI_TPS_BASE_DIR="${PKI_TPS_DIR}/base"
+
+
+##
+## Always create a top-level 'packages' directory
+##
+
+mkdir -p ${PKI_PACKAGES}
+
+
+##
+## Always create 'pki-tps' package directories
+##
+
+mkdir -p ${PKI_TPS_BUILD_DIR}
+mkdir -p ${PKI_TPS_RPMS_DIR}
+mkdir -p ${PKI_TPS_SOURCES_DIR}
+mkdir -p ${PKI_TPS_SPECS_DIR}
+mkdir -p ${PKI_TPS_SRPMS_DIR}
+
+
+##
+## Always start with new 'pki-tps' package files
+##
+
+rm -rf ${PKI_TPS_BUILD_DIR}/${PKI_TPS}-${PKI_TPS_VERSION}
+rm -f ${PKI_TPS_RPMS_DIR}/${PKI_TPS}-${PKI_TPS_VERSION}*.rpm
+rm -f ${PKI_TPS_SOURCES_DIR}/${PKI_TPS_TARBALL}
+rm -f ${PKI_TPS_SPEC_FILE}
+rm -f ${PKI_TPS_SRPMS_DIR}/${PKI_TPS}-${PKI_TPS_VERSION}*.rpm
+
+
+##
+## Copy a new 'pki-tps' spec file from the
+## current contents of the PKI working repository
+##
+
+cp -p ${PKI_SPECS_FILE} ${PKI_TPS_SPECS_DIR}
+
+
+##
+## Always start with a new 'pki-tps' staging directory
+##
+
+rm -rf ${PKI_TPS_STAGING_DIR}
+
+
+##
+## To generate the 'pki-tps' tarball, construct a staging area
+## consisting of the 'pki-tps' source components from the
+## current contents of the PKI working repository
+##
+
+mkdir -p ${PKI_TPS_DIR}
+cd ${PKI_DIR}
+for file in "${PKI_FILE_LIST}" ;
+do
+ cp -p ${file} ${PKI_TPS_DIR}
+done
+find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_TPS_DIR} > /dev/null 2>&1
+cd - > /dev/null 2>&1
+
+mkdir -p ${PKI_TPS_BASE_DIR}
+cd ${PKI_BASE_DIR}
+cp -p ${PKI_BASE_MANIFEST} ${PKI_TPS_BASE_DIR}
+for component in "${PKI_COMPONENT_LIST}" ;
+do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_TPS_BASE_DIR} > /dev/null 2>&1
+done
+cd - > /dev/null 2>&1
+
+
+##
+## Due to the following lower-level 'config' subdirectories,
+## INDEPENDENTLY remove ALL top-level 'config' directories:
+##
+## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-tps')
+## * ./tps/forms/tps/admin/console/config
+##
+
+rm -rf ${PKI_TPS_BASE_DIR}/*/config
+
+
+##
+## Create the 'pki-tps' tarball
+##
+
+mkdir -p ${PKI_TPS_SOURCES_DIR}
+cd ${PKI_TPS_STAGING_DIR}
+gtar -zcvf ${PKI_TPS_TARBALL} \
+ "${PKI_TPS}-${PKI_TPS_VERSION}" > /dev/null 2>&1
+mv ${PKI_TPS_TARBALL} ${PKI_TPS_SOURCES_DIR}
+cd - > /dev/null 2>&1
+
+
+##
+## Always remove the PKI staging area
+##
+
+rm -rf ${PKI_TPS_STAGING_DIR}
+
+
+##
+## Always generate a fresh 'pki-tps' package script
+##
+
+rm -rf ${PKI_TPS_PACKAGE_SCRIPT}
+printf "#!/bin/bash\n\n" > ${PKI_TPS_PACKAGE_SCRIPT}
+printf "${PKI_TPS_PACKAGE_COMMAND}\n\n" >> ${PKI_TPS_PACKAGE_SCRIPT}
+chmod 775 ${PKI_TPS_PACKAGE_SCRIPT}
+
+
+##
+## Automatically invoke RPM/SRPM creation
+##
+
+cd ${PKI_PACKAGES} ;
+script -c package_${PKI_TPS} package_${PKI_TPS}.log
+