Compare commits
No commits in common. "455f917dd1ace72a46c339715013ad5f4d7909e5" and "cfc5769da7e358a47433069e7c97092aae11f764" have entirely different histories.
455f917dd1
...
cfc5769da7
Binary file not shown.
BIN
cracklib-2.9.7.tar.gz
Normal file
BIN
cracklib-2.9.7.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,28 +1,30 @@
|
|||||||
|
%bcond_without python3
|
||||||
|
|
||||||
%define dictdir %{_datadir}/cracklib
|
%define dictdir %{_datadir}/cracklib
|
||||||
%define dictpath %{dictdir}/pw_dict
|
%define dictpath %{dictdir}/pw_dict
|
||||||
|
|
||||||
Name: cracklib
|
Name: cracklib
|
||||||
Version: 2.9.11
|
Version: 2.9.7
|
||||||
Release: 1
|
Release: 6
|
||||||
Summary: A password-checking library
|
Summary: A password-checking library
|
||||||
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://sourceforge.net/projects/cracklib/
|
URL: http://sourceforge.net/projects/cracklib/
|
||||||
Source0: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-%{version}.tar.gz
|
Source0: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-%{version}.tar.gz
|
||||||
Source1: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-words-%{version}.gz
|
Source1: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-words-%{version}.gz
|
||||||
|
Patch9000: fix-problem-of-error-message-about-simplistic-passwo.patch
|
||||||
Patch0: fix-problem-of-error-message-about-simplistic-passwo.patch
|
|
||||||
Patch1: fix-error-length-about-simplistic-password.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc, words, gettext, gettext-autopoint, zlib-devel
|
BuildRequires: gcc, words, gettext, gettext-autopoint, zlib-devel
|
||||||
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
%endif
|
||||||
Conflicts: cracklib-dicts < 2.8
|
Conflicts: cracklib-dicts < 2.8
|
||||||
Requires: gzip
|
Requires: gzip
|
||||||
|
|
||||||
Provides: cracklib-dicts = %{version}-%{release}
|
Provides: cracklib-dicts
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
Provides: %{name}-python = %{version}-%{release}
|
||||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
||||||
Obsoletes: cracklib-dicts < %{version}-%{release}
|
Obsoletes: cracklib-dicts
|
||||||
Obsoletes: %{name}-python < %{version}-%{release}
|
Obsoletes: %{name}-python < %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -44,6 +46,7 @@ for compiling applications which use cracklib.
|
|||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
%package -n python3-cracklib
|
%package -n python3-cracklib
|
||||||
Summary: Python 3 bindings for applications which use cracklib
|
Summary: Python 3 bindings for applications which use cracklib
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -51,6 +54,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description -n python3-cracklib
|
%description -n python3-cracklib
|
||||||
The python3-cracklib package contains a module which permits applications
|
The python3-cracklib package contains a module which permits applications
|
||||||
written in the Python 3 programming language to use cracklib.
|
written in the Python 3 programming language to use cracklib.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
@ -63,6 +67,7 @@ done
|
|||||||
chmod +x util/cracklib-format
|
chmod +x util/cracklib-format
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with python3}
|
||||||
sed -i 's,util/cracklib-check <,util/cracklib-check $(DESTDIR)/$(DEFAULT_CRACKLIB_DICT) <,' Makefile.in
|
sed -i 's,util/cracklib-check <,util/cracklib-check $(DESTDIR)/$(DEFAULT_CRACKLIB_DICT) <,' Makefile.in
|
||||||
py3include=`python3-config --includes | awk -F' ' '{print $1;}'`
|
py3include=`python3-config --includes | awk -F' ' '{print $1;}'`
|
||||||
export PYTHON=%{__python3}
|
export PYTHON=%{__python3}
|
||||||
@ -77,10 +82,13 @@ py_version="%{python3_version}$abiflags"
|
|||||||
--with-default-dict=%{dictpath}
|
--with-default-dict=%{dictpath}
|
||||||
make -C po update-gmo
|
make -C po update-gmo
|
||||||
make
|
make
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
%if %{with python3}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT 'pythondir=${pyexecdir}'
|
make install DESTDIR=$RPM_BUILD_ROOT 'pythondir=${pyexecdir}'
|
||||||
|
%endif
|
||||||
|
|
||||||
./util/cracklib-format cracklib-dicts/* | \
|
./util/cracklib-format cracklib-dicts/* | \
|
||||||
./util/cracklib-packer $RPM_BUILD_ROOT/%{dictpath}
|
./util/cracklib-packer $RPM_BUILD_ROOT/%{dictpath}
|
||||||
@ -133,31 +141,15 @@ make test
|
|||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc README README-WORDS NEWS
|
%doc README README-WORDS NEWS
|
||||||
%{_mandir}/man3/*
|
|
||||||
%{_mandir}/man8/*
|
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
%files -n python3-cracklib
|
%files -n python3-cracklib
|
||||||
%{_libdir}/python3*/site-packages/_cracklib*.so
|
%{_libdir}/python3*/site-packages/_cracklib*.so
|
||||||
%{_libdir}/python3*/site-packages/*.py*
|
%{_libdir}/python3*/site-packages/*.py*
|
||||||
%{_libdir}/python3*/site-packages/__pycache__/*
|
%{_libdir}/python3*/site-packages/__pycache__/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jul 14 2023 yixiangzhike <yixiangzhike007@163.com> - 2.9.11-1
|
|
||||||
- update to 2.9.11
|
|
||||||
|
|
||||||
* Wed Apr 26 2023 yixiangzhike <yixiangzhike007@163.com> - 2.9.8-2
|
|
||||||
- add version for the symbol cracklib-dicts
|
|
||||||
|
|
||||||
* Fri Oct 21 2022 yixiangzhike <yixiangzhike007@163.com> - 2.9.8-1
|
|
||||||
- update to 2.9.8
|
|
||||||
|
|
||||||
* Sat Aug 13 2022 yixiangzhike <yixiangzhike007@163.com> - 2.9.7-8
|
|
||||||
- fix issue of truncating dict file without input data
|
|
||||||
- fix error length about simplistic password
|
|
||||||
|
|
||||||
* Mon Dec 6 2021 yixiangzhike <yixiangzhike007@163.com> - 2.9.7-7
|
|
||||||
- fix lookup for word in FindPW()
|
|
||||||
|
|
||||||
* Mon May 24 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.9.7-6
|
* Mon May 24 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.9.7-6
|
||||||
- add %%config(noreplace) for pw_dict
|
- add %%config(noreplace) for pw_dict
|
||||||
|
|
||||||
|
|||||||
@ -1,25 +0,0 @@
|
|||||||
From 7d4b42752a11b12088baad881a6e2cac3da638e7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: yixiangzhike <yixiangzhike007@163.com>
|
|
||||||
Date: Sat, 13 Aug 2022 13:04:17 +0800
|
|
||||||
Subject: [PATCH] fix error length about simplistic password
|
|
||||||
|
|
||||||
---
|
|
||||||
util/cracklib-format | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/util/cracklib-format b/util/cracklib-format
|
|
||||||
index 360d109..2c1f61f 100755
|
|
||||||
--- a/util/cracklib-format
|
|
||||||
+++ b/util/cracklib-format
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
LC_ALL=C
|
|
||||||
export LC_ALL
|
|
||||||
gzip -cdf "$@" |
|
|
||||||
- grep -a -E -v '^.{30,}$' |
|
|
||||||
+ grep -a -E -v '^.{32,}$' |
|
|
||||||
tr '[:upper:]' '[:lower:]' |
|
|
||||||
sed s/[[:space:]]//g |
|
|
||||||
sort -u
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
@ -6,8 +6,8 @@ Subject: [PATCH] fix problem of error message about simplistic password
|
|||||||
Signed-off-by: openEuler Buildteam <buildteam@openeuler.org>
|
Signed-off-by: openEuler Buildteam <buildteam@openeuler.org>
|
||||||
---
|
---
|
||||||
lib/fascist.c | 33 ++++++++++++++++++++++++++++-----
|
lib/fascist.c | 33 ++++++++++++++++++++++++++++-----
|
||||||
util/cracklib-format | 19 ++++++----
|
util/cracklib-format | 10 ++++++----
|
||||||
2 files changed, 34 insertions(+), 18 deletions(-)
|
2 files changed, 34 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
diff --git a/lib/fascist.c b/lib/fascist.c
|
diff --git a/lib/fascist.c b/lib/fascist.c
|
||||||
index c5a018c..a1a8564 100644
|
index c5a018c..a1a8564 100644
|
||||||
@ -103,28 +103,19 @@ index c5a018c..a1a8564 100644
|
|||||||
printf("%-16s (reversed dict)\n", a);
|
printf("%-16s (reversed dict)\n", a);
|
||||||
#endif
|
#endif
|
||||||
diff --git a/util/cracklib-format b/util/cracklib-format
|
diff --git a/util/cracklib-format b/util/cracklib-format
|
||||||
index c133d75..360d109 100755
|
index 1d7be5b..360d109 100755
|
||||||
--- a/util/cracklib-format
|
--- a/util/cracklib-format
|
||||||
+++ b/util/cracklib-format
|
+++ b/util/cracklib-format
|
||||||
@@ -3,17 +3,10 @@
|
@@ -3,8 +3,10 @@
|
||||||
# This preprocesses a set of word lists into a suitable form for input
|
# This preprocesses a set of word lists into a suitable form for input
|
||||||
# into cracklib-packer
|
# into cracklib-packer
|
||||||
#
|
#
|
||||||
-# Truncates lines longer than 1022 characters long as cracklib-packer
|
|
||||||
-# does not handle them correctly.
|
|
||||||
-#
|
|
||||||
-# The last part of the pipeline uses 'grep -v' to remove any blank
|
|
||||||
-# lines (possibly introduced by earlier parts of the pipeline) as
|
|
||||||
-# cracklib-packer will generate "skipping line" warnings otherwise.
|
|
||||||
-#
|
|
||||||
+LC_ALL=C
|
+LC_ALL=C
|
||||||
+export LC_ALL
|
+export LC_ALL
|
||||||
gzip -cdf "$@" |
|
gzip -cdf "$@" |
|
||||||
- grep -a -v '^#' |
|
- grep -v '^\(#\|$\)' |
|
||||||
- tr '[A-Z]' '[a-z]' |
|
- tr '[A-Z]' '[a-z]' |
|
||||||
- tr -cd '\012[a-z][0-9]' |
|
- tr -cd '\012[a-z][0-9]' |
|
||||||
- cut -c 1-1022 |
|
|
||||||
- grep -v '^$' |
|
|
||||||
- env LC_ALL=C sort -u
|
- env LC_ALL=C sort -u
|
||||||
+ grep -a -E -v '^.{30,}$' |
|
+ grep -a -E -v '^.{30,}$' |
|
||||||
+ tr '[:upper:]' '[:lower:]' |
|
+ tr '[:upper:]' '[:lower:]' |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user