Commit 98f379ee authored by Leonardo Arena's avatar Leonardo Arena

main/cracklib: security upgrade to 2.9.7 (CVE-2016-6318)

Modernize APKBUILD, add check(), update project url
parent 7944951d
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=cracklib
pkgver=2.9.6
pkgver=2.9.7
pkgrel=0
pkgdesc="A library used to enforce strong passwords"
url="https://sourceforge.net/projects/cracklib"
url="https://github.com/cracklib/cracklib"
arch="all"
license="LGPL-2.0-or-later"
depends=""
makedepends=""
install=
subpackages="$pkgname-dev"
source="https://github.com/cracklib/cracklib/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
source="https://github.com/cracklib/cracklib/releases/download/v$pkgver/cracklib-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver
# secfixes:
# 2.9.7-r0:
# - CVE-2016-6318
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -34,17 +26,18 @@ build() {
--infodir=/usr/share/info \
--without-python \
--disable-nls \
--with-default-dict \
|| return 1
make -j1 all || return 1
--with-default-dict
make -j1 all
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
}
md5sums="c52f463585d85924b28cdc1e373ae06d cracklib-2.9.6.tar.gz"
sha256sums="17cf76943de272fd579ed831a1fd85339b393f8d00bf9e0d17c91e972f583343 cracklib-2.9.6.tar.gz"
sha512sums="2b09672e5b412d670e7ed911ebf0c0023fe2901ea05c9c02eefb7a58a13cddbc27a65d75bb20be9f8cebf4c90a9a56dfe1a3b656dff62b1d6048f5376e671786 cracklib-2.9.6.tar.gz"
sha512sums="f6bf65ac092ba46ff78ddbc115692260fb76dc71219cd679d2ea935ebfb9e709fbb30259a7406743ed00dbdc415335b3ac9d9fcba1d204ea36d5eb96bf1333a2 cracklib-2.9.7.tar.bz2"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment