* Tue Jun 12 2012 Paul Wouters <pwouters@redhat.com> - 1.4.0-0.a2.1

- Updated to 1.4.0a2
- ksm-utils patch for ods-ksmutil to die sooner when it can't lock
  the HSM.
This commit is contained in:
Paul Wouters 2012-06-12 17:42:56 -04:00
parent f49c13480c
commit 9b8ffb6040
4 changed files with 46 additions and 5 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/opendnssec-1.4.0a1.tar.gz
/opendnssec-1.4.0a2.tar.gz

View File

@ -0,0 +1,31 @@
diff -Naur opendnssec-1.4.0a2-orig/enforcer/utils/ksmutil.c opendnssec-1.4.0a2/enforcer/utils/ksmutil.c
--- opendnssec-1.4.0a2-orig/enforcer/utils/ksmutil.c 2012-05-24 12:38:04.000000000 -0400
+++ opendnssec-1.4.0a2/enforcer/utils/ksmutil.c 2012-06-12 16:01:32.090442282 -0400
@@ -4063,6 +4063,7 @@
{
struct flock fl;
struct timeval tv;
+ int retry = 0;
if (lock_fd == NULL) {
printf("%s could not be opened\n", lock_filename);
@@ -4075,6 +4076,10 @@
fl.l_pid = getpid();
while (fcntl(fileno(lock_fd), F_SETLK, &fl) == -1) {
+ if (retry >= 3) {
+ printf("couldn't get lock on %s; %s\n", lock_filename, strerror(errno));
+ return 1;
+ }
if (errno == EACCES || errno == EAGAIN) {
printf("%s already locked, sleep\n", lock_filename);
@@ -4083,6 +4088,8 @@
tv.tv_usec = 0;
select(0, NULL, NULL, NULL, &tv);
+ retry++;
+
} else {
printf("couldn't get lock on %s; %s\n", lock_filename, strerror(errno));
return 1;

View File

@ -1,17 +1,17 @@
Summary: DNSSEC key and zone management software
Name: opendnssec
Version: 1.4.0
Release: 0.a1%{?dist}.2
Release: 0.a2%{?dist}.1
License: BSD
Url: http://www.opendnssec.org/
#Source: http://www.opendnssec.org/files/source/% {name}-% {version}a1.tar.gz
Source: http://www.opendnssec.org/files/source/testing/%{name}-%{version}a1.tar.gz
Source: http://www.opendnssec.org/files/source/testing/%{name}-%{version}a2.tar.gz
Source1: ods-enforcerd.service
Source2: ods-signerd.service
Source3: ods.sysconfig
Source4: conf.xml
Source5: tmpfiles-opendnssec.conf
Source6: opendnssec-LICENSE
Patch1: opendnssec-1.4.0-ksmutil.patch
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: opencryptoki, softhsm, systemd-units
@ -29,12 +29,15 @@ It secures zone data just before it is published in an authoritative
name server. It requires a PKCS#11 crypto module library, such as softhsm
%prep
%setup -q -n %{name}-%{version}a1
%setup -q -n %{name}-%{version}a2
%patch1 -p1 -b .ksmutil
%build
# for snapshots enable below
sh ./autogen.sh
%configure --with-ldns=%{_libdir}
make %{?_smp_mflags}
cp %{SOURCE6} LICENSE
%check
# Requires sample db not shipped with upstream
@ -118,6 +121,11 @@ if [ $1 -ge 1 ] ; then
fi
%changelog
* Tue Jun 12 2012 Paul Wouters <pwouters@redhat.com> - 1.4.0-0.a2.1
- Updated to 1.4.0a2
- ksm-utils patch for ods-ksmutil to die sooner when it can't lock
the HSM.
* Mon Mar 26 2012 Paul Wouters <pwouters@redhat.com> - 1.4.0-0.a1.2
- Added opendnssec LICENSE file from trunk (Thanks Jakob!)

View File

@ -1 +1,2 @@
c7e00424dbbf87ccf4667f3b397b0aa1 opendnssec-1.4.0a1.tar.gz
52c7fc307a0db647e2f74adb939b75cb opendnssec-1.4.0a2.tar.gz