Merge review fixes.

This commit is contained in:
Jon Ciesla 2013-02-07 10:23:46 -06:00
parent 34b4cdd610
commit 8d6f3c4dae
9 changed files with 21 additions and 16 deletions

0
SECerrs.h Executable file → Normal file
View File

0
certext.c Executable file → Normal file
View File

0
copying Executable file → Normal file
View File

View File

@ -4,10 +4,10 @@
Summary: SSL certificate and key management utilities Summary: SSL certificate and key management utilities
Name: crypto-utils Name: crypto-utils
Version: 2.4.1 Version: 2.4.1
Release: 37%{?dist} Release: 38%{?dist}
Group: Applications/System Group: Applications/System
License: MIT and GPLv2+ License: MIT and GPLv2+ and MPLv1.0
Source: crypto-rand-%{crver}.tar.gz Source: crypto-rand-%{crver}.tar.gz
Source1: genkey.pl Source1: genkey.pl
@ -45,24 +45,26 @@ SSL certificates and keys.
make -C librand make -C librand
cc $RPM_OPT_FLAGS -Wall -Werror -I/usr/include/nspr4 -I/usr/include/nss3 \ cc $RPM_OPT_FLAGS -Wall -Werror -I/usr/include/nspr4 -I/usr/include/nss3 \
$RPM_SOURCE_DIR/certwatch.c $RPM_SOURCE_DIR/pemutil.c \ %{SOURCE2} %{SOURCE9} \
-o certwatch -lnspr4 -lnss3 -o certwatch -lnspr4 -lnss3
cc $RPM_OPT_FLAGS -Wall -Werror -I/usr/include/nspr4 -I/usr/include/nss3 \ cc $RPM_OPT_FLAGS -Wall -Werror -I/usr/include/nspr4 -I/usr/include/nss3 \
$RPM_SOURCE_DIR/keyutil.c \ %{SOURCE10} \
$RPM_SOURCE_DIR/certext.c \ %{SOURCE11} \
$RPM_SOURCE_DIR/secutil.c \ %{SOURCE12} \
-o keyutil -lplc4 -lnspr4 -lnss3 -o keyutil -lplc4 -lnspr4 -lnss3
cc $RPM_OPT_FLAGS -Wall -Werror \ cc $RPM_OPT_FLAGS -Wall -Werror \
$RPM_SOURCE_DIR/keyrand.c -o keyrand -lnewt -lslang %{SOURCE6} -o keyrand -lnewt -lslang
date +"%e %B %Y" | tr -d '\n' > date.xml date +"%e %B %Y" | tr -d '\n' > date.xml
echo -n %{version} > version.xml echo -n %{version} > version.xml
for m in %{SOURCE4} %{SOURCE5} %{SOURCE8}; do
cp ${m} .
done
for m in certwatch.xml genkey.xml keyrand.xml; do for m in certwatch.xml genkey.xml keyrand.xml; do
cp $RPM_SOURCE_DIR/${m} . xmlto man ${m}
xmlto man ${m}
done done
pushd Makerand pushd Makerand
@ -73,7 +75,7 @@ popd
%install %install
sed -n '1,/^ \*\/$/p' librand/qshs.c > LICENSE.librand sed -n '1,/^ \*\/$/p' librand/qshs.c > LICENSE.librand
cp -p $RPM_SOURCE_DIR/COPYING . cp -p %{SOURCE7} .
pushd Makerand pushd Makerand
make install make install
@ -94,7 +96,7 @@ install -c -m 755 keyrand $RPM_BUILD_ROOT%{_bindir}/keyrand
# install certwatch # install certwatch
install -c -m 755 certwatch $RPM_BUILD_ROOT%{_bindir}/certwatch install -c -m 755 certwatch $RPM_BUILD_ROOT%{_bindir}/certwatch
install -c -m 755 $RPM_SOURCE_DIR/certwatch.cron \ install -c -m 755 %{SOURCE3} \
$RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/certwatch $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/certwatch
for f in certwatch genkey keyrand; do for f in certwatch genkey keyrand; do
install -c -m 644 ${f}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${f}.1 install -c -m 644 ${f}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${f}.1
@ -111,7 +113,7 @@ sed -e "s|^\$bindir.*$|\$bindir = \"%{_bindir}\";|" \
-e "1s|.*|\#\!/usr/bin/perl|g" \ -e "1s|.*|\#\!/usr/bin/perl|g" \
-e "s/'Challenge',/'Email','Challenge',/g" \ -e "s/'Challenge',/'Email','Challenge',/g" \
-e "/@EXTRA@/d" \ -e "/@EXTRA@/d" \
< $RPM_SOURCE_DIR/genkey.pl > $RPM_BUILD_ROOT%{_bindir}/genkey < %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/genkey
chmod -R u+w $RPM_BUILD_ROOT chmod -R u+w $RPM_BUILD_ROOT
@ -125,6 +127,9 @@ chmod -R u+w $RPM_BUILD_ROOT
%{perl_vendorarch}/auto/Crypt %{perl_vendorarch}/auto/Crypt
%changelog %changelog
* Thu Feb 07 2013 Jon Ciesla <limburgher@gmail.com> - 2.4.1-38
- Merge review fixes, BZ 225666.
* Thu Jan 17 2013 Elio Maldonado <emaldona@redhat.com> - 2.4.1-37 * Thu Jan 17 2013 Elio Maldonado <emaldona@redhat.com> - 2.4.1-37
- Fix Bug 883618 - certwatch cron job library path - multilib - Fix Bug 883618 - certwatch cron job library path - multilib
@ -200,7 +205,7 @@ chmod -R u+w $RPM_BUILD_ROOT
* Mon Jan 05 2009 Elio Maldonado <emaldona@redhat.com> - 2.4.1-6 * Mon Jan 05 2009 Elio Maldonado <emaldona@redhat.com> - 2.4.1-6
- genkey: fix ca key name extension - genkey: fix ca key name extension
* Wed Dec 28 2008 Elio Maldonado <emaldona@redhat.com> - 2.4.1-5 * Sun Dec 28 2008 Elio Maldonado <emaldona@redhat.com> - 2.4.1-5
- genkey: fix server key name extension - genkey: fix server key name extension
- certwatch: code cleanup - certwatch: code cleanup
@ -379,12 +384,12 @@ chmod -R u+w $RPM_BUILD_ROOT
* Thu May 17 2001 Joe Orton <jorton@redhat.com> * Thu May 17 2001 Joe Orton <jorton@redhat.com>
- Redone for Red Hat Linux. - Redone for Red Hat Linux.
* Mon Mar 20 2001 Mark Cox <mjc@redhat.com> * Tue Mar 20 2001 Mark Cox <mjc@redhat.com>
- Changes to make genkey a perl script - Changes to make genkey a perl script
* Mon Dec 04 2000 Joe Orton <jorton@redhat.com> * Mon Dec 04 2000 Joe Orton <jorton@redhat.com>
- Put the stronghold/bin -> stronghold/ssl/bin symlink in the %files section - Put the stronghold/bin -> stronghold/ssl/bin symlink in the %%files section
rather than creating it in %post. rather than creating it in %%post.
* Fri Nov 24 2000 Mark Cox <mjc@redhat.com> * Fri Nov 24 2000 Mark Cox <mjc@redhat.com>
- No need for .configure scripts, do the substitution ourselves - No need for .configure scripts, do the substitution ourselves

0
keyutil.c Executable file → Normal file
View File

0
keyutil.h Executable file → Normal file
View File

0
pemutil.c Executable file → Normal file
View File

0
secutil.c Executable file → Normal file
View File

0
secutil.h Executable file → Normal file
View File