aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-04-21 16:33:21 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-04-21 17:02:40 +0000
commit588374620c60d71ba8d734fe651a262faac24ad1 (patch)
treeed94cb9a6096d8137fa2c74e4695aa39de67e33a
parent9b53b4466517498e449a7bbd3b14ba88539347c2 (diff)
downloadaports-588374620c60d71ba8d734fe651a262faac24ad1.tar.gz
aports-588374620c60d71ba8d734fe651a262faac24ad1.tar.bz2
aports-588374620c60d71ba8d734fe651a262faac24ad1.tar.xz
main/cracklib: install dicts compressed as GZip
The cracklib-format script expects it to be an GZip archive. closes #11396
-rw-r--r--main/cracklib/APKBUILD10
-rw-r--r--main/cracklib/cracklib.trigger2
2 files changed, 8 insertions, 4 deletions
diff --git a/main/cracklib/APKBUILD b/main/cracklib/APKBUILD
index d3d7c9a0d2..ce595e25f5 100644
--- a/main/cracklib/APKBUILD
+++ b/main/cracklib/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=cracklib
pkgver=2.9.7
-pkgrel=1
+pkgrel=2
pkgdesc="A library used to enforce strong passwords"
url="https://github.com/cracklib/cracklib"
arch="all"
@@ -36,6 +36,11 @@ package() {
# Remove static lib
rm "$pkgdir"/usr/lib/libcrack.a
+
+ for x in "$pkgdir"/usr/share/cracklib/*; do
+ gzip -c "$x" > "$x".gz
+ rm "$x"
+ done
}
words() {
@@ -44,8 +49,7 @@ words() {
depends=""
cd "$srcdir"
- gunzip "$pkgname-words-$pkgver.gz"
- install -m644 -D "$pkgname-words-$pkgver" "$subpkgdir"/usr/share/cracklib/$pkgname-words
+ install -m644 -D $pkgname-words-$pkgver.gz "$subpkgdir"/usr/share/cracklib/$pkgname-words.gz
}
sha512sums="f6bf65ac092ba46ff78ddbc115692260fb76dc71219cd679d2ea935ebfb9e709fbb30259a7406743ed00dbdc415335b3ac9d9fcba1d204ea36d5eb96bf1333a2 cracklib-2.9.7.tar.bz2
diff --git a/main/cracklib/cracklib.trigger b/main/cracklib/cracklib.trigger
index 88425e858a..4aa0da2104 100644
--- a/main/cracklib/cracklib.trigger
+++ b/main/cracklib/cracklib.trigger
@@ -1,3 +1,3 @@
#!/bin/sh
-create-cracklib-dict /usr/share/cracklib/*
+create-cracklib-dict /usr/share/cracklib/*.gz