[pki-ocsp] Bugzilla Bug #749945 - Installation error reported during CA, DRM, OCSP, and TKS package installatio

kwright kwright at fedoraproject.org
Sun Oct 30 23:59:40 UTC 2011


commit ce011f1eec4af8ccc0ae90a4cb0c9268190b3b25
Author: Kevin Wright <kwright at redhat.com>
Date:   Sun Oct 30 16:59:37 2011 -0700

    Bugzilla Bug #749945 - Installation error reported during CA, DRM,
    OCSP, and TKS package installation . . .

 .gitignore    |    1 +
 clog          |    4 +-
 pki-ocsp.spec |   84 +++++++++++++++++++++++++++++++++++++++-----------------
 sources       |    2 +-
 4 files changed, 62 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6d56f77..53b1f27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ pki-ocsp-1.3.3.tar.gz
 /pki-ocsp-9.0.2.tar.gz
 /pki-ocsp-9.0.3.tar.gz
 /pki-ocsp-9.0.6.tar.gz
+/pki-ocsp-9.0.8.tar.gz
diff --git a/clog b/clog
index 77317ae..db82499 100644
--- a/clog
+++ b/clog
@@ -1,2 +1,2 @@
-Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . .
-Bugzilla Bug #699809 - Convert CS to use systemd (alee)
+Bugzilla Bug #749945 - Installation error reported during CA, DRM,
+OCSP, and TKS package installation . . .
diff --git a/pki-ocsp.spec b/pki-ocsp.spec
index 9693a78..2eaffb3 100644
--- a/pki-ocsp.spec
+++ b/pki-ocsp.spec
@@ -1,5 +1,5 @@
 Name:             pki-ocsp
-Version:          9.0.6
+Version:          9.0.8
 Release:          1%{?dist}
 Summary:          Certificate System - Online Certificate Status Protocol Manager
 URL:              http://pki.fedoraproject.org/
@@ -10,45 +10,58 @@ BuildArch:        noarch
 
 BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+# specify '_unitdir' macro for platforms that don't use 'systemd'
+%if 0%{?rhel} || 0%{?fedora} < 16
+%define           _unitdir /lib/systemd/system
+%endif
+
 BuildRequires:    cmake
 BuildRequires:    java-devel >= 1:1.6.0
+BuildRequires:    nspr-devel
+BuildRequires:    nss-devel
 %if 0%{?fedora} >= 16
 BuildRequires:    jpackage-utils >= 0:1.7.5-10
+BuildRequires:    jss >= 4.2.6-19.1
+BuildRequires:    pki-common >= 9.0.15
+BuildRequires:    pki-util >= 9.0.15
+BuildRequires:    systemd-units
 %else
 BuildRequires:    jpackage-utils
-%endif
 BuildRequires:    jss >= 4.2.6-17
-BuildRequires:    nspr-devel
-BuildRequires:    nss-devel
 BuildRequires:    pki-common
 BuildRequires:    pki-util
-%if 0%{?fedora} >= 16
-BuildRequires:    systemd-units
 %endif
 
 Requires:         java >= 1:1.6.0
-Requires:         pki-common
-Requires:         pki-ocsp-theme
-Requires:         pki-selinux
-
+Requires:         pki-ocsp-theme >= 9.0.0
 %if 0%{?fedora} >= 16
+Requires:         pki-common >= 9.0.15
+Requires:         pki-selinux >= 9.0.15
 Requires(post):   systemd-units
 Requires(preun):  systemd-units
 Requires(postun): systemd-units
-%else 
+%else
+%if 0%{?fedora} >= 15
+Requires:         pki-common
+Requires:         pki-selinux
 Requires(post):   chkconfig
 Requires(preun):  chkconfig
 Requires(preun):  initscripts
 Requires(postun): initscripts
-%endif
-
-%if 0%{?fedora} >= 15
 # Details:
 #
 #     * https://fedoraproject.org/wiki/Features/var-run-tmpfs
 #     * https://fedoraproject.org/wiki/Tmpfiles.d_packaging_draft
 #
 Requires:         initscripts
+%else 
+Requires:         pki-common
+Requires:         pki-selinux
+Requires(post):   chkconfig
+Requires(preun):  chkconfig
+Requires(preun):  initscripts
+Requires(postun): initscripts
+%endif
 %endif
 
 Source0:          http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
@@ -167,19 +180,29 @@ fi
 %else 
 %post 
 # Attempt to update ALL old "OCSP" instances to "systemd"
-#for inst in `ls /etc/sysconfig/pki/ocsp`; do
-#    if [ ! -e "/etc/systemd/system/pki-ocspd.target.wants/pki-ocspd@${inst}.service" ]; then
-#        ln -s "/lib/systemd/system/pki-ocspd at .service"   "/etc/systemd/system/pki-ocspd.target.wants/pki-ocspd@${inst}.service"
-#        [ -e /var/lib/${inst}/${inst} ] && unlink /var/lib/${inst}/${inst}
-#        ln -s /usr/sbin/tomcat6-sysd /var/lib/${inst}/${inst}
-#        echo "pkicreate.systemd.servicename=pki-ocspd@${inst}.service" >> /var/lib/${inst}/conf/CS.cfg
-#    fi
-#done
+if [ -d /etc/sysconfig/pki/ocsp ]; then
+    for inst in `ls /etc/sysconfig/pki/ocsp`; do
+        if [ ! -e "/etc/systemd/system/pki-ocspd.target.wants/pki-ocspd@${inst}.service" ]; then
+            ln -s "/lib/systemd/system/pki-ocspd at .service" \
+                  "/etc/systemd/system/pki-ocspd.target.wants/pki-ocspd@${inst}.service"
+            [ -L /var/lib/${inst}/${inst} ] && unlink /var/lib/${inst}/${inst}
+            ln -s /usr/sbin/tomcat6-sysd /var/lib/${inst}/${inst}
+
+            if [ -e /var/run/${inst}.pid ]; then
+                kill -9 `cat /var/run/${inst}.pid` || :
+                rm -f /var/run/${inst}.pid
+                echo "pkicreate.systemd.servicename=pki-ocspd@${inst}.service" >> \
+                     /var/lib/${inst}/conf/CS.cfg || :
+                /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+                /bin/systemctl restart pki-ocspd@${inst}.service || :
+            else 
+                echo "pkicreate.systemd.servicename=pki-ocspd@${inst}.service" >> \
+                     /var/lib/${inst}/conf/CS.cfg || :
+            fi
+        fi
+    done
+fi
 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-# Attempt to restart ALL updated "OCSP" instances
-#if [ $1 = 2 ] ; then
-#    /bin/systemctl try-restart pki-ocspd.target >/dev/null 2>&1 || :
-#fi
  
 %preun 
 if [ $1 = 0 ] ; then
@@ -225,6 +248,15 @@ fi
 
 
 %changelog
+* Fri Oct 28 2011 Matthew Harmsen <mharmsen at redhat.com> 9.0.8-1
+- Bugzilla Bug #749945 - Installation error reported during CA, DRM,
+  OCSP, and TKS package installation . . .
+
+* Thu Sep 22 2011 Matthew Harmsen <mharmsen at redhat.com> 9.0.7-1
+- Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . . (mharmsen)
+- Bugzilla Bug #699809 - Convert CS to use systemd (alee)
+- Bugzilla Bug #730146 - SSL handshake picks non-FIPS ciphers in FIPS mode (cfu)
+
 * Mon Sep 12 2011 Matthew Harmsen <mharmsen at redhat.com> 9.0.6-1
 - Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . .
 - Bugzilla Bug #699809 - Convert CS to use systemd (alee)
diff --git a/sources b/sources
index fee2e2b..4a62776 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-40e6539a1e4740464265a2ddaf3df549  pki-ocsp-9.0.6.tar.gz
+65d69266cfaa103cc4b951606a1d3676  pki-ocsp-9.0.8.tar.gz


More information about the scm-commits mailing list