[arch-commits] Commit in libxcrypt/repos (3 files)

Christian Hesse eworm at gemini.archlinux.org
Fri Dec 17 19:55:30 UTC 2021


    Date: Friday, December 17, 2021 @ 19:55:30
  Author: eworm
Revision: 432717

archrelease: copy trunk to testing-x86_64

Added:
  libxcrypt/repos/testing-x86_64/
  libxcrypt/repos/testing-x86_64/PKGBUILD
    (from rev 432716, libxcrypt/trunk/PKGBUILD)
  libxcrypt/repos/testing-x86_64/libxcrypt.install
    (from rev 432716, libxcrypt/trunk/libxcrypt.install)

-------------------+
 PKGBUILD          |   40 ++++++++++++++++++++++++++++++++++++++++
 libxcrypt.install |   15 +++++++++++++++
 2 files changed, 55 insertions(+)

Copied: libxcrypt/repos/testing-x86_64/PKGBUILD (from rev 432716, libxcrypt/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-12-17 19:55:30 UTC (rev 432717)
@@ -0,0 +1,40 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=libxcrypt
+pkgver=4.4.27
+pkgrel=1
+pkgdesc='Modern library for one-way hashing of passwords'
+arch=('x86_64')
+url='https://github.com/besser82/libxcrypt/'
+license=('GPL')
+depends=('glibc')
+provides=('libcrypt.so')
+install=libxcrypt.install
+validpgpkeys=('678CE3FEE430311596DB8C16F52E98007594C21D') # Björn 'besser82' Esser
+source=("${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
+sha256sums=('500898e80dc0d027ddaadb5637fa2bf1baffb9ccd73cd3ab51d92ef5b8a1f420'
+            'SKIP')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+
+  ./configure \
+    --prefix=/usr \
+    --disable-static \
+    --enable-hashes=strong,glibc \
+    --enable-obsolete-api=no \
+    --disable-failure-tokens
+  make
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+
+  make check 
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: libxcrypt/repos/testing-x86_64/libxcrypt.install (from rev 432716, libxcrypt/trunk/libxcrypt.install)
===================================================================
--- testing-x86_64/libxcrypt.install	                        (rev 0)
+++ testing-x86_64/libxcrypt.install	2021-12-17 19:55:30 UTC (rev 432717)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+post_upgrade() {
+  # return if old package version greater 4.4.21...
+  (( $(vercmp $2 '4.4.21') > 0 )) && return
+
+  cat <<EOM
+ > Starting with 'libxcrypt' 4.4.21, weak password hashes (such as MD5 and SHA1)
+ > are no longer accepted for new passwords. Users that still have their
+ > passwords stored with a weak hash will be asked to update their password on
+ > their next login.
+ > If the login just fails (for example from display manager) switch to a
+ > virtual terminal ('Ctrl-Alt-F2') and log in there once.
+EOM
+}



More information about the arch-commits mailing list