add -V to fetch crl help info

(cherry picked from commit 3c742cae29baa9a1f33b1ff490d4378e1d6829bd)
This commit is contained in:
caodongxia 2021-09-29 11:52:24 +08:00 committed by openeuler-sync-bot
parent b8b453e554
commit f3c3e0441d
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,34 @@
From d9a0c2cf7979ad6bca2168d8a3ca621cfe57515f Mon Sep 17 00:00:00 2001
From: caodongxia <315816521@qq.com>
Date: Wed, 29 Sep 2021 11:36:49 +0800
Subject: [PATCH] add -V to fetch-crl-help info
---
fetch-crl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fetch-crl b/fetch-crl
index 1d60a1f..9a56ac5 100755
--- a/fetch-crl
+++ b/fetch-crl
@@ -303,7 +303,7 @@ Usage: $name [-c|--config configfile] [-l|--infodir path]
[--cadir path] [-s|--statedir path] [-o|--output path] [--format \@formats]
[-T|--httptimeout seconds] [-p|--parallelism n] [--nosymlinks]
[-a|--agingtolerance hours] [-r|--randomwait seconds]
- [-v|--verbose] [-h|--help] [-q|--quiet] [-d|--debug level]
+ [-v|--verbose] [-h|--help] [-q|--quiet] [-d|--debug level] [-V|--version]
Options:
-c | --config path
@@ -335,6 +335,8 @@ Options:
-r | --randomwait seconds
Introduce a random delay of up to seconds seconds before starting
any retrieval processes
+ -V | --version
+ show a version number
-h | --help
This help text
--
2.27.0

View File

@ -1,12 +1,13 @@
Name: fetch-crl
Version: 3.0.21
Release: 1
Release: 2
Summary: Downloads Certificate Revocation Lists
License: ASL 2.0
URL: https://wiki.nikhef.nl/grid/FetchCRL3
Source0: https://dist.eugridpma.info/distribution/util/fetch-crl3/fetch-crl-%{version}.tar.gz
Source1: fetch-crl.service
Source2: fetch-crl.timer
Patch0000: add-V-to-fetch-crl-help-info.patch
BuildArch: noarch
Requires: openssl
%if 0%{?el7}
@ -26,6 +27,7 @@ It assumes that the installed CA files follow the hash.crl_url convention.
%prep
%setup -q
%patch0 -p1
cp -p %{SOURCE1} fetch-crl.service
cp -p %{SOURCE2} fetch-crl.timer
cat << \EOF > %{name}-req
@ -77,5 +79,8 @@ rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
%license LICENSE
%changelog
* Wed Sep 29 2021 caodongxia <caodongxia@huawei.com> - 3.0.21-2
- add -V to fetch crl help info
* Mon Sep 6 2021 wulei <wulei80@huawei.com> - 3.0.21-1
- package init