From 2a36503bf09bdf42f37e7a972252e73da522566b Mon Sep 17 00:00:00 2001 From: Bryan Kowal Date: Wed, 30 Oct 2013 09:23:08 -0500 Subject: [PATCH] Issue #2297 - cleanup rpm directory structure; removing files that are no longer needed Former-commit-id: d2bd276fee74a1af342c14024f09856d9321e0e9 [formerly e4e2c8c79681199ea325b1bbbc61e9aee29a3b63] [formerly eb4c27003f48d9e1c02ebf04c2de1e22a3710846] [formerly b082ea89c53f4e99bc23ad963dbd1a53073f3f73 [formerly eb4c27003f48d9e1c02ebf04c2de1e22a3710846 [formerly d6c5bd5476a039058d5251f4457119fb10806b2e]]] Former-commit-id: b082ea89c53f4e99bc23ad963dbd1a53073f3f73 Former-commit-id: 67b06516357f8371d7d025ab695b2a9be1b02fc1 [formerly 428dd993d97a70d01020b61cec84c22dc7521094] Former-commit-id: 63324cda6ac2145275fa6bb069f7a899f95eef08 --- .../awips2-cave/conf/localization.prefs | 5 - rpms/common/functions/rpmBuild.sh | 281 ---------- rpms/common/yum/arch.x86/comps.xml | 479 ------------------ rpms/common/yum/arch.x86_64/comps.xml | 223 -------- rpms/delta/setup/createUpdateRegistry.sh | 31 -- rpms/delta/setup/updateManager.sh | 163 ------ rpms/delta/setup/updateSetup.sh | 70 --- rpms/delta/template/template.sh | 24 - rpms/version.txt | 1 - 9 files changed, 1277 deletions(-) delete mode 100644 rpms/common/environment/awips2-cave/conf/localization.prefs delete mode 100644 rpms/common/functions/rpmBuild.sh delete mode 100644 rpms/common/yum/arch.x86/comps.xml delete mode 100644 rpms/common/yum/arch.x86_64/comps.xml delete mode 100644 rpms/delta/setup/createUpdateRegistry.sh delete mode 100644 rpms/delta/setup/updateManager.sh delete mode 100644 rpms/delta/setup/updateSetup.sh delete mode 100644 rpms/delta/template/template.sh delete mode 100644 rpms/version.txt diff --git a/rpms/common/environment/awips2-cave/conf/localization.prefs b/rpms/common/environment/awips2-cave/conf/localization.prefs deleted file mode 100644 index 30bb75ac6b..0000000000 --- a/rpms/common/environment/awips2-cave/conf/localization.prefs +++ /dev/null @@ -1,5 +0,0 @@ -#Wed Jun 06 17:14:31 CDT 2007 -eclipse.preferences.version=1 -userName=user -httpServerAddress=http\://localhost\:9581/services -siteName=OAX diff --git a/rpms/common/functions/rpmBuild.sh b/rpms/common/functions/rpmBuild.sh deleted file mode 100644 index 49aa144387..0000000000 --- a/rpms/common/functions/rpmBuild.sh +++ /dev/null @@ -1,281 +0,0 @@ -#!/bin/bash - -# Environment -# public -function prepareEnvironment() -{ - if [ "${WORKSPACE}" = "" ]; then - determineWorkspaceLocation - fi - - if [ "${AWIPSII_VERSION}" = "" ]; then - setVersion - fi - - if [ "${AWIPSII_RELEASE}" = "" ]; then - setRelease - fi - - if [ "${AWIPSII_BASELINE_STATIC}" = "" ]; then - setBaselineStatic - fi - - if [ "${AWIPSII_PYTHON_EXECUTABLE}" = "" ]; then - setPythonExecutable - fi - - if [ "${AWIPSII_ANT_EXECUTABLE}" = "" ]; then - setAntExecutable - fi - - if [ "${AWIPSII_UFRAME_ECLIPSE}" = "" ]; then - setUframeEclipse - fi - - setBuildRoot - setTopDir -} - -# private -function setVersion() -{ - export AWIPSII_VERSION=`cat ${WORKSPACE}/Installer.rpm/version.txt` -} - -# private -function setRelease() -{ - # The Current Date. - export AWIPSII_RELEASE=`date +"%Y%m%d"` -} - -# private -function setBaselineStatic() -{ - export AWIPSII_BASELINE_STATIC="/share1" -} - -# private -function setBuildRoot() -{ - export AWIPSII_BUILD_ROOT="${WORKSPACE}/Installer.rpm/rpmbuild/awips2-component" -} - -# private -function setTopDir() -{ - export AWIPSII_TOP_DIR="${WORKSPACE}/Installer.rpm/rpmbuild" -} - -# private -function setPythonExecutable() -{ - if [ ! -f /awips2/python/bin/python ]; then - echo "WARNING: The default AWIPS II Python Executable was not found." - export AWIPSII_PYTHON_EXECUTABLE="" - fi - export AWIPSII_PYTHON_EXECUTABLE="/awips2/python/bin/python" -} - -# private -function setAntExecutable() -{ - if [ ! -f /awips2/ant/bin/ant ]; then - echo "WARNING: The default AWIPS II Ant Executable was not found." - export AWIPSII_ANT_EXECUTABLE="" - fi - export AWIPSII_ANT_EXECUTABLE="/awips2/ant/bin/ant" -} - -# private -function setUframeEclipse() -{ - if [ ! -f /opt/uframe-eclipse/eclipse ]; then - echo "WARNING: The default Uframe-Eclipse was not found." - export AWIPSII_UFRAME_ECLIPSE="" - fi - export AWIPSII_UFRAME_ECLIPSE="/opt/uframe-eclipse" -} - -# private -function determineWorkspaceLocation() -{ - local SCRIPT_DIR=`dirname $_` - export WORKSPACE=`cd ${SCRIPT_DIR}/../../../; pwd;` - - return 0 -} - -# Baseline Project Build -# private -function pdeBuild() -{ - time ./build.sh -eclipse=${AWIPSII_UFRAME_ECLIPSE} - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi -} - -# private -function buildCAVEAndAlertViz() -{ - pushd . > /dev/null - cd ${WORKSPACE}/build - pdeBuild - RC=$? - popd > /dev/null - if [ ${RC} -ne 0 ]; then - return 1 - fi -} - -function buildCAVEP2() -{ - pushd . > /dev/null - cd ${WORKSPACE}/build - time ant -f p2-build.xml \ - -Dbuild.version=${AWIPSII_VERSION} \ - -Declipse.dir=${AWIPSII_UFRAME_ECLIPSE} - RC=$? - popd > /dev/null - if [ ${RC} -ne 0 ]; then - exit 1 - fi -} - -# private -function buildEDEX() -{ - pushd . > /dev/null - cd ${WORKSPACE}/build.edex - pdeBuild - RC=$? - popd > /dev/null - if [ ${RC} -ne 0 ]; then - return 1 - fi -} - -# private -function buildRCM() -{ - pushd . > /dev/null - cd ${WORKSPACE}/build.rcm - pdeBuild - RC=$? - popd > /dev/null - if [ ${RC} -ne 0 ]; then - return 1 - fi -} - -# public -function buildBaselineProjects() -{ - if [ "${BUILD_CAVE}" = "true" ]; then - buildCAVEAndAlertViz - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi - buildCAVEP2 - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi - fi - - if [ "${BUILD_EDEX}" = "true" ]; then - buildEDEX - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi - fi - - if [ "${BUILD_CORE}" = "true" ]; then - buildRCM - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi - fi - - if [ "${BUILD_CORE}" = "true" ] && - [ "${BUILD_CAVE}" = "false" ]; then - buildCAVEAndAlertViz - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi - fi -} - -# RPM Build -# public -function execute() -{ - pushd . - cd ${SCRIPT_DIR}/../ - preBuild - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi - - for directory in `ls -1d Installer.*`; - do - buildRPM "${directory}/component.spec" - RC=$? - if [ ${RC} -ne 0 ]; then - return 1 - fi - done - - postBuild - popd - - return 0 -} - -# public -function buildRPM() -{ - # ${1} = the specs file - export SPECS="${1}" - - preRPMBuild - RC=$? - if [ ${RC} -ne 0 ]; then - return 0 - fi - - if [ ! -f ${SPECS} ]; then - file ${SPECS} - return 1 - fi - - if [ -f ${AWIPSII_TOP_DIR}/BUILD/component-files.txt ]; then - rm -f ${AWIPSII_TOP_DIR}/BUILD/component-files.txt - fi - rpmbuild -ba --target=i386 \ - --define '_topdir %(echo ${AWIPSII_TOP_DIR})' \ - --define '_component_version %(echo ${AWIPSII_VERSION})' \ - --define '_component_release %(echo ${AWIPSII_RELEASE})' \ - --define '_baseline_workspace %(echo ${WORKSPACE})' \ - --define '_baseline_static %(echo ${AWIPSII_BASELINE_STATIC})' \ - --define '_python_exe %(echo ${AWIPSII_PYTHON_EXECUTABLE})' \ - --define '_ant_exe %(echo ${AWIPSII_ANT_EXECUTABLE})' \ - --define '_build_root %(echo ${AWIPSII_BUILD_ROOT})' \ - --define '_uframe_eclipse %(echo ${AWIPSII_UFRAME_ECLIPSE})' \ - ${SPECS} - RC=$? - - postRPMBuild ${SPECS} - if [ ${RC} -ne 0 ]; then - return 1 - fi - - return 0 -} diff --git a/rpms/common/yum/arch.x86/comps.xml b/rpms/common/yum/arch.x86/comps.xml deleted file mode 100644 index 60b08cb3c5..0000000000 --- a/rpms/common/yum/arch.x86/comps.xml +++ /dev/null @@ -1,479 +0,0 @@ - - - - - - awips2-standalone - AWIPS II Standalone - true - This Will Install All Of The AWIPS II Components That Are Required For A Standalone / ADAM Environment. - true - - awips2 - awips2-cli - awips2-database - awips2-maps-database - awips2-ncep-database - awips2-database-standalone-configuration - - awips2-edex-base - awips2-edex-binlightning - awips2-edex-bufr - awips2-edex-common-core - awips2-edex-core - awips2-edex-cots - awips2-edex-dat - awips2-edex-dataplugins - awips2-edex-gfe - awips2-edex-grib - awips2-edex-hydro - awips2-edex-native - awips2-edex-ost - awips2-edex-radar - awips2-edex-satellite - awips2-edex-text - awips2-edex-shapefiles - awips2-edex-configuration - awips2-edex-npp - awips2-edex-ncep - awips2-edex-datadelivery - awips2-gfesuite-server - - awips2-httpd-pypies - awips2-adapt-native - awips2-hydroapps-shared - awips2-java - awips2-notification - awips2-postgresql - awips2-psql - awips2-pypies - awips2-python - awips2-qpid-client - awips2-qpid-server - awips2-qpid-server-store - awips2-rcm - awips2-tools - awips2-data.hdf5-topo - awips2-data.hdf5-gfe.climo - awips2-data.gfe - awips2-aviation-shared - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - awips2-python-pygtk - awips2-python-pycairo - netcdf - netcdf-devel - netcdf-AWIPS - awips2-localapps-environment - - - - - awips2-visualize - AWIPS II Visualize - true - This Will Install The AWIPS II Visualization Environment Including: CAVE, AlertViz, ... - true - - awips2 - awips2-java - awips2-python - awips2-psql - awips2-cave - awips2-cave-etc - awips2-cave-viz-avnfps - awips2-cave-viz-common-core - awips2-cave-viz-core - awips2-cave-viz-core-maps - awips2-cave-viz-cots - awips2-cave-viz-d2d-core - awips2-cave-viz-d2d-gfe - awips2-cave-viz-d2d-nsharp - awips2-cave-viz-d2d-skewt - awips2-cave-viz-d2d-xy - awips2-cave-viz-dat - awips2-cave-viz-dataplugin-obs - awips2-cave-viz-dataplugins - awips2-cave-viz-displays - awips2-cave-viz-gfe - awips2-cave-viz-grib - awips2-cave-viz-hydro - awips2-cave-viz-localization-perspective - awips2-cave-viz-ncep-core - awips2-cave-viz-ncep-dataplugins - awips2-cave-viz-ncep-displays - awips2-cave-viz-ncep-nsharp - awips2-cave-viz-ncep-perspective - awips2-cave-viz-radar - awips2-cave-viz-satellite - awips2-cave-viz-sounding - awips2-cave-viz-text - awips2-cave-viz-volumebrowser - awips2-cave-viz-warngen - awips2-cave-viz-nwsauth - awips2-cave-viz-thinclient - awips2-cave-viz-npp - awips2-cave-viz-kml-export - awips2-cave-viz-collaboration - awips2-cave-viz-kml-export - awips2-cave-viz-datadelivery - awips2-gfesuite-client - - awips2-alertviz - awips2-cli - awips2-notification - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - awips2-python-pygtk - awips2-python-pycairo - awips2-python-jimporter - netcdf - netcdf-devel - netcdf-AWIPS - awips2-localapps-environment - - - - - awips2-processing-server - AWIPS II Processing Server - true - This Will Install The AWIPS II Processing Server Including: Edex, ... - true - - awips2 - awips2-java - awips2-python - awips2-psql - - awips2-edex-base - awips2-edex-binlightning - awips2-edex-bufr - awips2-edex-common-core - awips2-edex-configuration - awips2-edex-core - awips2-edex-cots - awips2-edex-dat - awips2-edex-dataplugins - awips2-edex-gfe - awips2-edex-grib - awips2-edex-hydro - awips2-edex-native - awips2-edex-ost - awips2-edex-radar - awips2-edex-satellite - awips2-edex-shapefiles - awips2-edex-text - awips2-edex-ncep - awips2-edex-npp - awips2-edex-datadelivery - awips2-gfesuite-server - - awips2-hydroapps-shared - awips2-adapt-native - awips2-qpid-client - awips2-cli - awips2-notification - awips2-tools - awips2-aviation-shared - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - awips2-python-pygtk - awips2-python-pycairo - netcdf - netcdf-devel - netcdf-AWIPS - awips2-localapps-environment - awips2-data.gfe - - - - - awips2-database-server - AWIPS II Database Server - true - This Will Install The AWIPS II Database Server And Create The Required AWIPS II Database Tables. - true - - awips2 - awips2-java - awips2-python - awips2-psql - awips2-postgresql - awips2-database - awips2-database-server-configuration - awips2-maps-database - awips2-ncep-database - awips2-rcm - awips2-cli - awips2-notification - awips2-tools - awips2-httpd-pypies - awips2-pypies - awips2-data.hdf5-topo - awips2-data.hdf5-gfe.climo - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - netcdf - netcdf-devel - netcdf-AWIPS - awips2-localapps-environment - - - - - awips2-backup-database-server - AWIPS II Backup Database Server - true - This Will Install The AWIPS II Database Server. This Server Is Only A Backup And Is Designed To Work With 'awips2-database-server'. - true - - awips2 - awips2-java - awips2-python - awips2-psql - awips2-postgresql - awips2-rcm - awips2-cli - awips2-notification - awips2-tools - awips2-httpd-pypies - awips2-pypies - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - netcdf - netcdf-devel - netcdf-AWIPS - awips2-localapps-environment - - - - - awips2-message-broker-server - AWIPS II Message Broker Server - true - This Will Install The AWIPS II Message Broker Server. - true - - awips2 - awips2-python - awips2-java - awips2-qpid-client - awips2-qpid-server - awips2-qpid-server-store - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - netcdf - netcdf-devel - netcdf-AWIPS - awips2-localapps-environment - - - - - awips2-ldm-server - AWIPS II LDM Server - true - This Will Install The AWIPS II LDM Server. - true - - awips2 - awips2-python - awips2-java - awips2-psql - awips2-ldm - awips2-cli - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - netcdf - netcdf-devel - netcdf-AWIPS - awips2-localapps-environment - - - - - awips2-rehost-server - AWIPS II Rehost Server - true - This Will Install The AWIPS II Rehost Server. - true - - awips2 - awips2-python - awips2-java - awips2-psql - - awips2-cli - awips2-notification - awips2-tools - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - awips2-python-pygtk - awips2-python-pycairo - netcdf - netcdf-devel - netcdf-AWIPS - - awips2-cave - awips2-cave-etc - awips2-cave-viz-avnfps - awips2-cave-viz-common-core - awips2-cave-viz-core - awips2-cave-viz-core-maps - awips2-cave-viz-cots - awips2-cave-viz-d2d-core - awips2-cave-viz-d2d-gfe - awips2-cave-viz-d2d-nsharp - awips2-cave-viz-d2d-skewt - awips2-cave-viz-d2d-xy - awips2-cave-viz-dat - awips2-cave-viz-dataplugin-obs - awips2-cave-viz-dataplugins - awips2-cave-viz-displays - awips2-cave-viz-gfe - awips2-cave-viz-grib - awips2-cave-viz-hydro - awips2-cave-viz-localization-perspective - awips2-cave-viz-ncep-core - awips2-cave-viz-ncep-dataplugins - awips2-cave-viz-ncep-displays - awips2-cave-viz-ncep-nsharp - awips2-cave-viz-ncep-perspective - awips2-cave-viz-radar - awips2-cave-viz-satellite - awips2-cave-viz-sounding - awips2-cave-viz-text - awips2-cave-viz-volumebrowser - awips2-cave-viz-warngen - awips2-cave-viz-nwsauth - awips2-cave-viz-thinclient - awips2-cave-viz-npp - awips2-cave-viz-kml-export - awips2-cave-viz-collaboration - awips2-cave-viz-kml-export - awips2-cave-viz-datadelivery - awips2-localapps-environment - - - diff --git a/rpms/common/yum/arch.x86_64/comps.xml b/rpms/common/yum/arch.x86_64/comps.xml deleted file mode 100644 index f6b4f6c05c..0000000000 --- a/rpms/common/yum/arch.x86_64/comps.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - awips2-standalone - AWIPS II Standalone - true - This Will Install All Of The AWIPS II Components That Are Required For A Standalone / ADAM Environment. - true - - awips2 - awips2-cli - awips2-database - awips2-maps-database - awips2-database-standalone-configuration - - awips2-edex-base - awips2-edex-bufr - awips2-edex-common-core - awips2-edex-core - awips2-edex-cots - awips2-edex-dat - awips2-edex-dataplugins - awips2-edex-gfe - awips2-edex-grib - awips2-edex-hydro - awips2-edex-native - awips2-edex-radar - awips2-edex-satellite - awips2-edex-text - awips2-edex-shapefiles - awips2-edex-configuration - awips2-edex-ncep-nsharp - awips2-edex-npp - awips2-edex-ncep - awips2-gfesuite-server - - awips2-httpd-pypies - awips2-adapt-native - awips2-hydroapps-shared - awips2-java - awips2-notification - awips2-postgresql - awips2-psql - awips2-pypies - awips2-python - awips2-qpid-client - awips2-qpid-server - awips2-qpid-server-store - awips2-rcm - awips2-tools - awips2-data.hdf5-topo - awips2-data.hdf5-gfe.climo - awips2-aviation-shared - - awips2-python-cherrypy - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - awips2-python-pygtk - awips2-python-pycairo - awips2-python-jimporter - awips2-localapps-environment - - - - - awips2-visualize - AWIPS II Visualize - true - This Will Install The AWIPS II Visualization Environment Including: CAVE, AlertViz, ... - true - - awips2 - awips2-java - awips2-python - awips2-psql - awips2-cave - awips2-cave-etc - awips2-cave-viz-avnfps - awips2-cave-viz-common-core - awips2-cave-viz-core - awips2-cave-viz-core-maps - awips2-cave-viz-cots - awips2-cave-viz-d2d-core - awips2-cave-viz-d2d-gfe - awips2-cave-viz-d2d-nsharp - awips2-cave-viz-d2d-skewt - awips2-cave-viz-d2d-xy - awips2-cave-viz-dat - awips2-cave-viz-dataplugin-obs - awips2-cave-viz-dataplugins - awips2-cave-viz-displays - awips2-cave-viz-gfe - awips2-cave-viz-grib - awips2-cave-viz-hydro - awips2-cave-viz-localization-perspective - awips2-cave-viz-ncep-core - awips2-cave-viz-ncep-dataplugins - awips2-cave-viz-ncep-displays - awips2-cave-viz-ncep-nsharp - awips2-cave-viz-ncep-perspective - awips2-cave-viz-radar - awips2-cave-viz-satellite - awips2-cave-viz-sounding - awips2-cave-viz-text - awips2-cave-viz-volumebrowser - awips2-cave-viz-warngen - awips2-cave-viz-nwsauth - awips2-cave-viz-thinclient - awips2-cave-viz-npp - awips2-cave-viz-kml-export - awips2-cave-viz-collaboration - awips2-cave-viz-datadelivery - awips2-gfesuite-client - - awips2-alertviz - awips2-cli - awips2-notification - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - awips2-python-jimporter - awips2-python-pygtk - awips2-python-pycairo - awips2-localapps-environment - netcdf - netcdf-devel - - - - - awips2-processing-server - AWIPS II Processing Server - true - This Will Install The AWIPS II Processing Server Including: Edex, ... - true - - awips2 - awips2-java - awips2-python - awips2-psql - - awips2-edex-base - awips2-edex-bufr - awips2-edex-common-core - awips2-edex-configuration - awips2-edex-core - awips2-edex-cots - awips2-edex-dat - awips2-edex-dataplugins - awips2-edex-gfe - awips2-edex-grib - awips2-edex-hydro - awips2-edex-native - awips2-edex-radar - awips2-edex-satellite - awips2-edex-shapefiles - awips2-edex-text - awips2-edex-ncep - awips2-edex-ncep-nsharp - awips2-edex-npp - awips2-gfesuite-server - - awips2-hydroapps-shared - awips2-adapt-native - awips2-qpid-client - awips2-cli - awips2-notification - awips2-tools - awips2-aviation-shared - - awips2-python-dynamicserialize - awips2-python-h5py - awips2-python-matplotlib - awips2-python-nose - awips2-python-numpy - awips2-python-pil - awips2-python-pmw - awips2-python-pupynere - awips2-python-qpid - awips2-python-scientific - awips2-python-scipy - awips2-python-tables - awips2-python-thrift - awips2-python-tpg - awips2-python-ufpy - awips2-python-werkzeug - awips2-python-pygtk - awips2-python-pycairo - awips2-python-jimporter - awips2-localapps-environment - - - diff --git a/rpms/delta/setup/createUpdateRegistry.sh b/rpms/delta/setup/createUpdateRegistry.sh deleted file mode 100644 index e78d3ddff5..0000000000 --- a/rpms/delta/setup/createUpdateRegistry.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -# Schema -# ------ -# awips2_delta_registry -# { -# 'deltaBuild' : varchar(10) -# 'deltaID' : varchar(20) -# 'deltaDesc' : varchar(255) -# 'dateApplied' : int -# 'timeApplied' : int -# } - -# Variables -CONST_CREATE_SQL="CREATE TABLE awips2_delta_registry(" -CONST_CREATE_SQL="${CONST_CREATE_SQL} deltaBuild varchar(10), " -CONST_CREATE_SQL="${CONST_CREATE_SQL} deltaID varchar(20), " -CONST_CREATE_SQL="${CONST_CREATE_SQL} deltaDesc varchar(255), " -CONST_CREATE_SQL="${CONST_CREATE_SQL} dateApplied int, " -CONST_CREATE_SQL="${CONST_CREATE_SQL} timeApplied int);" - -# Create The Directory If Necessary. -if [ ! -d ${CONST_REGISTRY_DIR} ]; then - mkdir -p ${CONST_REGISTRY_DIR} -fi - -# Create Our Empty DB File. -touch ${CONST_REGISTRY_DIR}/${CONST_REGISTRY_DB_FILE} - -# Create The Table. -echo ${CONST_CREATE_SQL} | sqlite3 ${CONST_REGISTRY_DIR}/${CONST_REGISTRY_DB_FILE} diff --git a/rpms/delta/setup/updateManager.sh b/rpms/delta/setup/updateManager.sh deleted file mode 100644 index 440f7026cc..0000000000 --- a/rpms/delta/setup/updateManager.sh +++ /dev/null @@ -1,163 +0,0 @@ -#!/bin/bash - -# 1) Ensure that the Update Registry exists. -# 2) Determine how many updates, if any, need to be applied for this build. -# 3) Step through the list of update scripts ... -# 3.1) source the script. -# 3.2) examine the build and the id; check the registry to determine if -# the update has been made. -# 3.3) skip the script if the update has already been made. -# 3.4) run the script if the update was not completed. -# 3.5) check the return code after the execution to determine -# if the update was successful or not. -# 3.6) if the update was successful, update the registry. - -# Version: 1.0 - -# Variables -export CONST_REGISTRY_DIR="/usr/share/doc/awips2/delta" -export CONST_REGISTRY_DB_FILE="deltaRegistry.db" -CONST_REGISTRY_CREATION_SCRIPT="createUpdateRegistry.sh" -CONST_FUNCTION_TYPE="function" - -UPDATE_SCRIPT= -VALID_UPDATE_IND= -UPDATE_REQUIRED_IND= -UPDATE_SUCCESS_IND= - -# Arguments: -# ${1} == the component that we may be updating. - -COMPONENT="${1}" - -# Ensure That The Update Registry Exists. -if [ ! -f ${CONST_REGISTRY_DIR}/${CONST_REGISTRY_DB_FILE} ]; then - # Create The Update Registry Before Proceeding. - /bin/bash ${CONST_REGISTRY_CREATION_SCRIPT} -fi - -function validateUpdate() -{ - # Verify A Delta Build Has Been Specified. - if [ "${DELTA_BUILD}" = "" ]; then - VALID_UPDATE_IND="N" - return - fi - - # Verify A Delta ID Has Been Specified. - if [ "${DELTA_ID}" = "" ]; then - VALID_UPDATE_IND="N" - return - fi - - # Verify A Delta Description Has Been Specified. - if [ "${DELTA_DESC}" = "" ]; then - VALID_UPDATE_IND="N" - return - fi - - # Verify A 'runUpdate' Function Exists. - local EVAL_TYPE=`type -t runUpdate` - if [ ! "${EVAL_TYPE}" = "${CONST_FUNCTION_TYPE}" ]; then - VALID_UPDATE_IND="N" - return - fi -} - -function checkIfUpdateIsNecessary() -{ - local SQL="SELECT COUNT(*) FROM awips2_delta_registry WHERE " - SQL="${SQL} deltaBuild=\"${DELTA_BUILD}\" AND " - SQL="${SQL} deltaID=\"${DELTA_ID}\";" - - local COUNT=`echo ${SQL} | sqlite3 ${CONST_REGISTRY_DIR}/${CONST_REGISTRY_DB_FILE}` - if [ ! "${COUNT}" = "0" ]; then - UPDATE_REQUIRED_IND="N" - fi -} - -function applyUpdate() -{ - if [ ! "${DELTA_RUN_USER}" = "" ]; then - su ${DELTA_RUN_USER} -c "source ${UPDATE_SCRIPT}; runUpdate" - else - runUpdate - fi - - local RC="$?" - if [ ! "${RC}" = "0" ]; then - UPDATE_SUCCESS_IND="N" - fi -} - -function logUpdate() -{ - DATE_APPLIED=`date +"%Y%m%d"` - TIME_APPLIED=`date +"%H%M%S"` - - local SQL="INSERT INTO awips2_delta_registry VALUES(" - SQL="${SQL}\"${DELTA_BUILD}\", " - SQL="${SQL}\"${DELTA_ID}\", " - SQL="${SQL}\"${DELTA_DESC}\", ${DATE_APPLIED}, ${TIME_APPLIED});" - - echo ${SQL} | sqlite3 ${CONST_REGISTRY_DIR}/${CONST_REGISTRY_DB_FILE} -} - -function update() -{ - local RES_COL=70 - local MOVE_TO_COL="echo -en \\033[${RES_COL}G" - local SETCOLOR_SUCCESS="echo -en \\033[1;32m" - local SETCOLOR_FAILURE="echo -en \\033[1;31m" - local SETCOLOR_NORMAL="echo -en \\033[0;39m" - - source ${UPDATE_SCRIPT} - - VALID_UPDATE_IND="Y" - validateUpdate - - if [ ! "${VALID_UPDATE_IND}" = "Y" ]; then - return - fi - - UPDATE_REQUIRED_IND="Y" - checkIfUpdateIsNecessary - - if [ ! "${UPDATE_REQUIRED_IND}" = "Y" ]; then - return - fi - - UPDATE_SUCCESS_IND="Y" - - echo -n "Applying Update ... ${DELTA_ID}" - - applyUpdate - sleep 10 - - ${MOVE_TO_COL} - echo -n "[" - if [ ! "${UPDATE_SUCCESS_IND}" = "Y" ]; then - ${SETCOLOR_FAILURE} - echo -n "FAILURE" - ${SETCOLOR_NORMAL} - echo -n "]" - echo "" - return - fi - - ${SETCOLOR_SUCCESS} - echo -n "SUCCESS" - ${SETCOLOR_NORMAL} - echo -n "]" - echo "" - logUpdate -} - -# Get a list of update scripts. -for script in ${COMPONENT}/*; -do - UPDATE_SCRIPT="${script}" - - # Start The Update. - update -done diff --git a/rpms/delta/setup/updateSetup.sh b/rpms/delta/setup/updateSetup.sh deleted file mode 100644 index 920a454595..0000000000 --- a/rpms/delta/setup/updateSetup.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -# This script will determine if any delta scripts need to be included in the -# rpm that is being built based on the build. - -# This file contains the current build information. -CONST_VERSION_TXT="Installer.rpm/version.txt" -CONST_SETUP_CORE_DIR="Installer.rpm/delta/setup" - -function copySetupCore() -{ - # Arguments: - # ${1} == the current build root. - # ${2} == the default rpm prefix. - - local BUILD_ROOT="${1}" - local RPM_DEFAULT_PREFIX="${2}" - - updateScripts=( 'createUpdateRegistry.sh' 'updateManager.sh' ) - - if [ ! -d ${BUILD_ROOT}/${RPM_DEFAULT_PREFIX}/delta ]; then - mkdir -p ${BUILD_ROOT}/${RPM_DEFAULT_PREFIX}/delta - fi - - # Copy the update scripts. - for script in ${updateScripts[*]}; - do - cp ${WORKSPACE_DIR}/${CONST_SETUP_CORE_DIR}/${script} \ - ${BUILD_ROOT}/${RPM_DEFAULT_PREFIX}/delta - done -} - -function copyApplicableDeltas() -{ - # Arguments: - # ${1} == the current build root. - # ${2} == the component name. - # ${3} == the component project directory. - # ${4} == the default rpm prefix. - - local BUILD_ROOT="${1}" - local COMPONENT_NAME="${2}" - local COMPONENT_PROJECT_DIR="${3}" - local RPM_DEFAULT_PREFIX="${4}" - - local CURRENT_BUILD=`cat ${WORKSPACE_DIR}/${CONST_VERSION_TXT}` - - # Determine if a delta directory exists for the component for the current build. - EXPECTED_DIR="${WORKSPACE_DIR}/Installer.rpm/${COMPONENT_PROJECT_DIR}" - EXPECTED_DIR="${EXPECTED_DIR}/delta/B${CURRENT_BUILD}" - - # Create The Delta Script Directory. - if [ ! -d ${BUILD_ROOT}/${RPM_DEFAULT_PREFIX}/delta/${COMPONENT_NAME} ]; then - mkdir -p ${BUILD_ROOT}/${RPM_DEFAULT_PREFIX}/delta/${COMPONENT_NAME} - fi - - if [ ! -d ${EXPECTED_DIR} ]; then - return - fi - - # Determine How Many Delta Scripts There Are. - COUNT=`ls -1 ${EXPECTED_DIR} | wc -l` - - if [ ${COUNT} -le 0 ]; then - return - fi - - cp ${EXPECTED_DIR}/* \ - ${BUILD_ROOT}/${RPM_DEFAULT_PREFIX}/delta/${COMPONENT_NAME} -} diff --git a/rpms/delta/template/template.sh b/rpms/delta/template/template.sh deleted file mode 100644 index 215b4c6aa1..0000000000 --- a/rpms/delta/template/template.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -# The Build The Update Needs To Be Applied In. -# (MAX LENGTH = 10) -export DELTA_BUILD= -# The DR # Or Some Other Unique Identifier. -# (MAX LENGTH = 20) -export DELTA_ID= -# A Short Description About The Changes That Were Made. -# (MAX LENGTH = 255) -export DELTA_DESC= - -# [OPTIONAL] The User That Should Be Used To Run The Script. -# The Update Manager Will "su" To Become The User If -# Necessary. -export DELTA_RUN_USER= - -# Insert The Logic For The Update Here. Perform Checks To -# Ensure That The Update Commands Are Successful. Return "0" -# At The End If The Update Succeeds Or "1" If Any Part Of -# The Update Fails. -function runUpdate() -{ -} diff --git a/rpms/version.txt b/rpms/version.txt deleted file mode 100644 index 6b3621dbd7..0000000000 --- a/rpms/version.txt +++ /dev/null @@ -1 +0,0 @@ -11.9.0 \ No newline at end of file