Update package version to 2.10.3

This commit is contained in:
2025-05-10 11:14:46 +03:00
parent 035f4c5e07
commit 16f110777b
3 changed files with 20 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Github repository
REPO="cracklib/cracklib"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Get version number from tag name
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
# Trim 'v' character in VERSION variable
VERSION=$(echo "$VERSION" | tr -d 'v')
echo "$VERSION"
+2 -1
View File
@@ -1,7 +1,8 @@
name: cracklib name: cracklib
description: Password checking library description: Password checking library
version: 2.9.11 version: 2.10.3
url: https://github.com/cracklib/cracklib url: https://github.com/cracklib/cracklib
license: GPL license: GPL
architecture: any architecture: any
depends: ["glibc","zlib"]
type: source type: source
+3
View File
@@ -34,4 +34,7 @@ package() {
mkdir -p "$BPM_OUTPUT"/usr/share/dict/ mkdir -p "$BPM_OUTPUT"/usr/share/dict/
ln -sf /usr/share/cracklib/cracklib-small "$BPM_OUTPUT"/usr/share/dict/cracklib-small ln -sf /usr/share/cracklib/cracklib-small "$BPM_OUTPUT"/usr/share/dict/cracklib-small
sh ./util/cracklib-format dicts/cracklib-small | sh ./util/cracklib-packer "$BPM_OUTPUT"/usr/share/cracklib/pw_dict sh ./util/cracklib-format dicts/cracklib-small | sh ./util/cracklib-packer "$BPM_OUTPUT"/usr/share/cracklib/pw_dict
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/cracklib/COPYING.LIB
} }