Date: Monday, November 14, 2022 @ 07:43:28
Author: eworm
Revision: 461550
archrelease: copy trunk to testing-x86_64
Added:
libxcrypt/repos/testing-x86_64/
libxcrypt/repos/testing-x86_64/PKGBUILD
(from rev 461549, libxcrypt/trunk/PKGBUILD)
libxcrypt/repos/testing-x86_64/keys/
libxcrypt/repos/testing-x86_64/libxcrypt.install
(from rev 461549, libxcrypt/trunk/libxcrypt.install)
-------------------+
PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
libxcrypt.install | 15 ++++++++++++
2 files changed, 78 insertions(+)
Copied: libxcrypt/repos/testing-x86_64/PKGBUILD (from rev 461549,
libxcrypt/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-11-14 07:43:28 UTC (rev 461550)
@@ -0,0 +1,63 @@
+# Maintainer: Christian Hesse <[email protected]>
+
+pkgbase=libxcrypt
+pkgname=(libxcrypt libxcrypt-compat)
+pkgver=4.4.31
+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')
+options=('debug')
+install=libxcrypt.install
+validpgpkeys=('678CE3FEE430311596DB8C16F52E98007594C21D') # Björn 'besser82'
Esser
+source=("${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz"{,.asc})
+sha256sums=('c0181b6a8eea83850cfe7783119bf71fddbde69adddda1d15747ba433d5c57ba'
+ 'SKIP')
+
+build() {
+ mkdir build-libxcrypt build-libxcrypt-compat
+
+ cd "${srcdir}/build-libxcrypt/"
+ "${srcdir}/${pkgbase}-${pkgver}"/configure \
+ --prefix=/usr \
+ --disable-static \
+ --enable-hashes=strong,glibc \
+ --enable-obsolete-api=no \
+ --disable-failure-tokens
+ make
+
+ cd "${srcdir}/build-libxcrypt-compat/"
+ "${srcdir}/${pkgbase}-${pkgver}"/configure \
+ --prefix=/usr \
+ --disable-static \
+ --enable-hashes=strong,glibc \
+ --enable-obsolete-api=glibc \
+ --disable-failure-tokens
+ make
+}
+
+check() {
+ cd build-libxcrypt/
+
+ make check
+}
+
+package_libxcrypt() {
+ cd build-libxcrypt/
+
+ make DESTDIR="${pkgdir}" install
+}
+
+package_libxcrypt-compat() {
+ pkgdesc='Modern library for one-way hashing of passwords - legacy API
functions'
+ depends=('libxcrypt')
+
+ cd build-libxcrypt-compat/
+
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,lib/{lib*.so,pkgconfig},share}
+}
Copied: libxcrypt/repos/testing-x86_64/libxcrypt.install (from rev 461549,
libxcrypt/trunk/libxcrypt.install)
===================================================================
--- testing-x86_64/libxcrypt.install (rev 0)
+++ testing-x86_64/libxcrypt.install 2022-11-14 07:43:28 UTC (rev 461550)
@@ -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
+}