Initialize for cracklib-dict-full

This commit is contained in:
zyppe 2024-02-06 16:52:51 +08:00
commit 2e6082ff3c
4 changed files with 175 additions and 0 deletions

View file

@ -0,0 +1,32 @@
21181be0343800a4a175502f1e2c7acbf63306b0b69ab3a1f278d58c67e45c96 ASSurnames.gz
d8d8c6b757f5c0af8753736fc42c635ada695d3516364a2c345e1a76c8feb98c cartoon.gz
2796034d26517fd17cd5564fadf68641bb0065c3948622fea34d6c49d0691971 common-passwords.txt.gz
922a5983595220afb52d0625229f30bcb10e19c9a480bb0d70c455f91bcfc795 Congress.gz
1566e9a7d73d53ad1f562e1d7b4e51a9054a2d14313823205cb4d5293cdb3062 cracklib-words-20080507.gz
09d781c7d1e84b1c0f09b1f872004e2368394989b4fdcb4ff337d2b04095cd06 Domains.gz
5afffcd26bdb4836ded68a6be24bd87b7629890cd91bb0c139d89feeffc44160 Dosref.gz
b78e8844cd52e7fc33958e8b8804fd2c02b0225d105fff899634e6d7579555e1 es-wordlist.gz
f481c3593ef2e8faf1777ab49bb3ecfe3ba3045bccd75b36c9734353f6315457 etc-hosts.gz
44b5bae8c183d0b844859b130aed5df5afbbde14d7024638137822c6a43e2a93 Family-Names.gz
72b43933d5dc4b0ec87efa1eaa4df15c3b1b6ccf171a62aa47736d1c49e2e8bf famous.gz
580c0ec2e3676d5b36e856098d77542f36b0821d96567346b2296b2ff994f6c3 fast-names.gz
be5c7fc8131d8658a5d11d440e7b79c47a28cc54e49c31251c2171490da6e0ca female-names.gz
bcf3e624e8109748bb200f648e2880b397998e15f32bc07f6e9cf1a7c9836a71 Ftpsites.gz
e163808df397f653ef56e9b1565aafefd5fa92aa376eb86830203f1ede075ab9 germanl.gz
5bd718873a8ffbf3afc6f3bbf356691142044210772c0dedfae6d0cacfb88bf1 Given-Names.gz
3421f3a7d08cbc6c2e4597d6689e542292a546945b3e073f37a4aab25f2f4be7 Jargon.gz
93502a79d5f25c8b0cbdea2724cf110cf9a2ddd3d5812c20f8c19038015226a8 LCarrol.gz
74d71f4191493a6a6a0b6c6d965a9b4d616df5710a20b02db666810a2a20e47e male-names.gz
dd27a15f483d124b3f972a7eea3ee1a49f88a670dc3d5ad1a21f7b5f0ee87a24 Movies.gz
3446003be0df477c7ab9b048d48e98ddf1c54b40e319afb5d2378c8ef0350353 myths-legends.gz
9265c435c594c061f63360573f394871a415996c8e0eed6b34db7ed91eaaea91 names.french.gz
62d8d0ce2e21bb3e5bc87f6c39c3fba98f3c25ad37ed57dda8a52be2c447dd9f names.hp.gz
87d116956cd016be213e3b28e3b5832befb6f854daefac3d68f2c626402bb381 other-names.gz
ed6b29d5e2a50e12278afce1a19179d6eae910116babc38cb7b03a3680a69465 Paradise.Lost.gz
12363c4e3eaf1d722df0f2beed35431e760877c2dc5aadda384cbfa93df81a4d pt_BR-wordlist.gz
55467ecc3976ebae3a0856fc8cae11c8ead2b5960476ec6ce7e7f63ba8891816 Python.gz
dce357a8bdee5b2092bec84822718ebcf8c8d89960f5048380e4d07b436507da sf.gz
0d416d8535e13a30f63e90f2be9e9fa3744e01f25d99793cc9307549c0e964fa shakespeare.gz
c3480b885d62b0308c1fa148696a5bd01b7523c07ba5085a7d42e4c71c57a57b surnames.finnish.gz
3e00d6ad08e478ef5b02b66a6f9c6c439fcbaa348d8cfe60813a4b1793dc7d45 Trek.gz
5bdb20f391c9e26ab816060ee392059f69f279f7a8003daf309a5d1ab944193c words.german.gz

32
.gitignore vendored Normal file
View file

@ -0,0 +1,32 @@
ASSurnames.gz
cartoon.gz
common-passwords.txt.gz
Congress.gz
cracklib-words-20080507.gz
Domains.gz
Dosref.gz
es-wordlist.gz
etc-hosts.gz
Family-Names.gz
famous.gz
fast-names.gz
female-names.gz
Ftpsites.gz
germanl.gz
Given-Names.gz
Jargon.gz
LCarrol.gz
male-names.gz
Movies.gz
myths-legends.gz
names.french.gz
names.hp.gz
other-names.gz
Paradise.Lost.gz
pt_BR-wordlist.gz
Python.gz
sf.gz
shakespeare.gz
surnames.finnish.gz
Trek.gz
words.german.gz

View file

@ -0,0 +1,15 @@
* Thu Aug 9 2012 mc@suse.de
- correct License to LGPL-2.1
* Sun Sep 18 2011 jengelh@medozas.de
- Remove redundant tags/sections from specfile
* Mon Sep 1 2008 mc@suse.de
- do not zip the dict by default. A check takes too long.
* Fri Jun 27 2008 mc@suse.de
- update wordlist
- add german wordlists
* Fri Jun 20 2008 mc@suse.de
- compress password database
* Tue Feb 12 2008 mc@suse.de
- update common password files
* Mon Apr 23 2007 mc@suse.de
- full cracklib dictionary - splitted out from cracklib

96
cracklib-dict-full.spec Normal file
View file

@ -0,0 +1,96 @@
#
# spec file for package cracklib-dict-full
#
# Copyright (c) 2022-2023 ZhuningOS
#
Name: cracklib-dict-full
BuildRequires: cracklib
BuildRequires: gzip
Url: http://sourceforge.net/projects/cracklib
Version: 2.8.12
Release: 1.22
Provides: cracklib-dict
Provides: cracklib:/usr/share/cracklib/pw_dict.pwd
Conflicts: cracklib-dict-small
Summary: A Password-Checking Library
License: LGPL-2.1
Group: System/Libraries
Source1: http://prdownloads.sourceforge.net/cracklib/cracklib-words-20080507.gz
Source10: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Domains.gz
Source11: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Dosref.gz
Source12: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Ftpsites.gz
Source13: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Jargon.gz
Source14: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/common-passwords.txt.gz
Source15: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/etc-hosts.gz
Source16: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Movies.gz
Source17: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Python.gz
Source18: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Trek.gz
Source19: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/LCarrol.gz
Source20: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/Paradise.Lost.gz
Source21: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/cartoon.gz
Source22: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/myths-legends.gz
Source23: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/sf.gz
Source24: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/shakespeare.gz
Source25: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/ASSurnames.gz
Source26: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Congress.gz
Source27: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Family-Names.gz
Source28: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Given-Names.gz
Source29: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/famous.gz
Source30: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/fast-names.gz
Source31: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/female-names.gz
Source32: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/male-names.gz
Source33: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.french.gz
Source34: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.hp.gz
Source35: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/other-names.gz
Source36: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/surnames.finnish.gz
Source37: pt_BR-wordlist.gz
Source38: es-wordlist.gz
Source39: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/german/germanl.gz
Source40: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/german/words.german.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# don't build as noarch for now
# probably little/big-endian dependent (x86 and x86_64 are the same)
# need to investigate further
# BuildArch: noarch
%description
CrackLib tests passwords to determine whether they match certain
security-oriented characteristics. You can use CrackLib to stop users
from choosing passwords that are easy to guess.
%prep
mkdir cracklib-dicts
cp -f %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
%{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} \
%{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \
%{SOURCE25} %{SOURCE26} %{SOURCE27} %{SOURCE28} %{SOURCE29} \
%{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} \
%{SOURCE35} %{SOURCE36} %{SOURCE37} %{SOURCE38} %{SOURCE1} \
%{SOURCE39} %{SOURCE40} \
cracklib-dicts/
gunzip cracklib-dicts/*
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/cracklib/
/usr/sbin/cracklib-format cracklib-dicts/* | \
/usr/sbin/cracklib-packer $RPM_BUILD_ROOT/%{_datadir}/cracklib/pw_dict
#
# using zip'ed dict takes too long for a check. But the support
# for this is still in the lib.
#
#gzip $RPM_BUILD_ROOT/%{_datadir}/cracklib/pw_dict.pwd
%files
%defattr(-,root,root)
%dir %{_datadir}/cracklib
%{_datadir}/cracklib/pw_dict.hwm
%{_datadir}/cracklib/pw_dict.pwd
%{_datadir}/cracklib/pw_dict.pwi
%changelog