From 4fbaf3c2c9931107a961d0ab44a9a1910ed1e2af Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Thu, 24 Oct 2024 23:22:59 +0800 Subject: [PATCH] cracklib 2.10.2-1 --- PKGBUILD | 39 ++++++++++++-------- cracklib.default.zh_CN.po | 78 +++++++++++++++++++++++++++++++++++++++ cracklib.install | 5 +-- 3 files changed, 103 insertions(+), 19 deletions(-) create mode 100644 cracklib.default.zh_CN.po diff --git a/PKGBUILD b/PKGBUILD index 55a0095..f583b20 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,34 +5,39 @@ # Maintainer: Future Linux Team pkgname=cracklib -pkgver=2.9.11 +pkgver=2.10.2 pkgrel=1 pkgdesc="Password Checking Library" arch=('x86_64') url="https://github.com/cracklib/cracklib" -license=('GPL') -depends=('glibc' 'zlib') -makedepends=('python') +license=('GPL-2.0-or-later') +depends=('glibc' 'zlib' 'bzip2') install=${pkgname}.install -source=(https://github.com/cracklib/cracklib/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz - https://github.com/cracklib/cracklib/releases/download/v${pkgver}/${pkgname}-words-${pkgver}.xz) -sha256sums=(2c83a91dd21d035eab98bded764eb4579b73fd837b683e1a447b11ef604ee130 - b3d1e0e0ae9bc7ffed65c0042d7c68bdb903368aa6b918f94572453c6ea874dc) +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}.bz2 + cracklib.default.zh_CN.po) +sha256sums=(e157c78e6f26a97d05e04b6fe9ced468e91fa015cc2b2b7584889d667a958887 + ec25ac4a474588c58d901715512d8902b276542b27b8dd197e9c2ad373739ec4 + a976bdb6884fa50244373624f89a143275eac4bf3183e044a9b83521ae3d6c9b) prepare() { cd ${pkgname}-${pkgver} + install -p -m 644 ${srcdir}/cracklib.default.zh_CN.po po/zh_CN.po + autoreconf -fiv } build() { cd ${pkgname}-${pkgver} - PYTHON=python3 \ ${CONFIGURE} \ - --disable-static \ - --with-default-dict=/usr/share/cracklib/pw_dict + --with-pic \ + --without-python \ + --disable-static \ + --with-default-dict=/usr/share/cracklib/pw_dict + make -C po update-gmo make } @@ -41,11 +46,13 @@ package() { 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 - 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 + #install -vdm755 ${pkgdir}/usr/share/cracklib } diff --git a/cracklib.default.zh_CN.po b/cracklib.default.zh_CN.po new file mode 100644 index 0000000..e080d6c --- /dev/null +++ b/cracklib.default.zh_CN.po @@ -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 , 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 \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 "它基于(颠倒的)字典单词" + diff --git a/cracklib.install b/cracklib.install index 468d91e..893d169 100644 --- a/cracklib.install +++ b/cracklib.install @@ -3,8 +3,7 @@ # you don't need (and this header). post_install() { - echo $(hostname) >> /usr/share/dict/cracklib-extra-words - /usr/sbin/create-cracklib-dict /usr/share/dict/cracklib-words /usr/share/dict/cracklib-extra-words + /usr/sbin/create-cracklib-dict -o /usr/share/cracklib/pw_dict /usr/share/cracklib/cracklib-words } pre_upgrade() { @@ -16,6 +15,6 @@ post_upgrade() { } pre_remove() { - rm -rf /usr/share/cracklib/* + rm -rf /usr/share/cracklib }