cracklib 2.10.2-1

This commit is contained in:
xhaa123 2024-10-24 23:22:59 +08:00
parent 090df11267
commit 4fbaf3c2c9
3 changed files with 103 additions and 19 deletions

View File

@ -5,34 +5,39 @@
# Maintainer: Future Linux Team <future_linux@163.com> # Maintainer: Future Linux Team <future_linux@163.com>
pkgname=cracklib pkgname=cracklib
pkgver=2.9.11 pkgver=2.10.2
pkgrel=1 pkgrel=1
pkgdesc="Password Checking Library" pkgdesc="Password Checking Library"
arch=('x86_64') arch=('x86_64')
url="https://github.com/cracklib/cracklib" url="https://github.com/cracklib/cracklib"
license=('GPL') license=('GPL-2.0-or-later')
depends=('glibc' 'zlib') depends=('glibc' 'zlib' 'bzip2')
makedepends=('python')
install=${pkgname}.install install=${pkgname}.install
source=(https://github.com/cracklib/cracklib/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz source=(https://github.com/cracklib/cracklib/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2
https://github.com/cracklib/cracklib/releases/download/v${pkgver}/${pkgname}-words-${pkgver}.xz) https://github.com/cracklib/cracklib/releases/download/v${pkgver}/${pkgname}-words-${pkgver}.bz2
sha256sums=(2c83a91dd21d035eab98bded764eb4579b73fd837b683e1a447b11ef604ee130 cracklib.default.zh_CN.po)
b3d1e0e0ae9bc7ffed65c0042d7c68bdb903368aa6b918f94572453c6ea874dc) sha256sums=(e157c78e6f26a97d05e04b6fe9ced468e91fa015cc2b2b7584889d667a958887
ec25ac4a474588c58d901715512d8902b276542b27b8dd197e9c2ad373739ec4
a976bdb6884fa50244373624f89a143275eac4bf3183e044a9b83521ae3d6c9b)
prepare() { prepare() {
cd ${pkgname}-${pkgver} cd ${pkgname}-${pkgver}
install -p -m 644 ${srcdir}/cracklib.default.zh_CN.po po/zh_CN.po
autoreconf -fiv autoreconf -fiv
} }
build() { build() {
cd ${pkgname}-${pkgver} cd ${pkgname}-${pkgver}
PYTHON=python3 \
${CONFIGURE} \ ${CONFIGURE} \
--disable-static \ --with-pic \
--with-default-dict=/usr/share/cracklib/pw_dict --without-python \
--disable-static \
--with-default-dict=/usr/share/cracklib/pw_dict
make -C po update-gmo
make make
} }
@ -41,11 +46,13 @@ package() {
make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} install
install -vDm644 ${srcdir}/${pkgname}-words-${pkgver}.xz ${pkgdir}/usr/share/dict/cracklib-words.xz bunzip2 -dc ${srcdir}/${pkgname}-words-${pkgver}.bz2 > cracklib-words
install -vdm755 ${pkgdir}/usr/share/dict
install -vDm644 cracklib-words ${pkgdir}/usr/share/cracklib/cracklib-words
ln -s /usr/share/cracklib/cracklib-words ${pkgdir}/usr/share/dict/cracklib-words
ln -s /usr/share/cracklib/cracklib-words ${pkgdir}/usr/share/dict/words
ln -s /usr/share/cracklib/cracklib-small ${pkgdir}/usr/share/dict/cracklib-small
unxz -v ${pkgdir}/usr/share/dict/cracklib-words.xz #install -vdm755 ${pkgdir}/usr/share/cracklib
ln -v -sf cracklib-words ${pkgdir}/usr/share/dict/words
echo futurelinux >> ${pkgdir}/usr/share/dict/cracklib-extra-words
install -v -m755 -d ${pkgdir}/usr/share/cracklib
} }

78
cracklib.default.zh_CN.po Normal file
View File

@ -0,0 +1,78 @@
# translation of cracklib.default.po to Wei Liu
# Copyright (C) 2010 Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
#
# Leah Liu <lliu@redhat.com>, 2010.
msgid ""
msgstr ""
"Project-Id-Version: cracklib.default\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-03-02 21:00-0600\n"
"PO-Revision-Date: 2010-09-07 23:42+1000\n"
"Last-Translator: Leah Liu <lliu@redhat.com>\n"
"Language-Team: Wei Liu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
#: lib/fascist.c:550
msgid "you are not registered in the password file"
msgstr "尚未在口令文件中注册"
#: lib/fascist.c:564
msgid "it is based on your username"
msgstr "它基于用户名"
#: lib/fascist.c:629
msgid "it is based upon your password entry"
msgstr "它基于输入的口令"
#: lib/fascist.c:649
msgid "it is derived from your password entry"
msgstr "它派生自输入的口令"
#: lib/fascist.c:662
msgid "it's derived from your password entry"
msgstr "它派生自输入的口令"
#: lib/fascist.c:676
msgid "it is derivable from your password entry"
msgstr "可从输入的口令推断"
#: lib/fascist.c:690
msgid "it's derivable from your password entry"
msgstr "可从输入的口令推断"
#: lib/fascist.c:726
msgid "it is WAY too short"
msgstr "WAY 过短"
#: lib/fascist.c:731
msgid "it is too short"
msgstr "过短"
#: lib/fascist.c:748
msgid "it does not contain enough DIFFERENT characters"
msgstr "它没有包含足够的不同字符"
#: lib/fascist.c:762
msgid "it is all whitespace"
msgstr "全是空格"
#: lib/fascist.c:781
msgid "it is too simplistic/systematic"
msgstr "过于简单化/系统化"
#: lib/fascist.c:786
msgid "it looks like a National Insurance number."
msgstr "看起来像国家保险号码。"
#: lib/fascist.c:813
msgid "it is based on a dictionary word"
msgstr "它基于字典单词"
#: lib/fascist.c:832
msgid "it is based on a (reversed) dictionary word"
msgstr "它基于(颠倒的)字典单词"

View File

@ -3,8 +3,7 @@
# you don't need (and this header). # you don't need (and this header).
post_install() { post_install() {
echo $(hostname) >> /usr/share/dict/cracklib-extra-words /usr/sbin/create-cracklib-dict -o /usr/share/cracklib/pw_dict /usr/share/cracklib/cracklib-words
/usr/sbin/create-cracklib-dict /usr/share/dict/cracklib-words /usr/share/dict/cracklib-extra-words
} }
pre_upgrade() { pre_upgrade() {
@ -16,6 +15,6 @@ post_upgrade() {
} }
pre_remove() { pre_remove() {
rm -rf /usr/share/cracklib/* rm -rf /usr/share/cracklib
} }