summaryrefslogblamecommitdiff
path: root/user/cracklib/APKBUILD
blob: ebc721a799c4d9c874cc3c1798f7a7db6fc3a897 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                  
            








                                                                 
                                                                                                


                        


                   

         










                                         



                 



                                                                                     
                                                                                                                                                                    
                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=cracklib
pkgver=2.9.7
pkgrel=0
pkgdesc="Library for checking passwords against dictionary words"
url=" "
arch="all"
license="LGPL-2.0+"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-lang"
triggers="$pkgname.trigger=/usr/share/dict"
source="https://github.com/cracklib/cracklib/releases/download/v$pkgver/cracklib-$pkgver.tar.bz2
	$pkgname.trigger
	"

# secfixes:
#   2.9.7-r0:
#   - CVE-2016-6318

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	install -D -m644 dicts/cracklib-small "$pkgdir"/usr/share/dict/cracklib-small
}

sha512sums="f6bf65ac092ba46ff78ddbc115692260fb76dc71219cd679d2ea935ebfb9e709fbb30259a7406743ed00dbdc415335b3ac9d9fcba1d204ea36d5eb96bf1333a2  cracklib-2.9.7.tar.bz2
deef4710a3bf78348adfe699ff995acc21a7671ab03c4dd28da7f38f4a83008af4c97c9c1d4e1e98a47c0148c84146b36477f41f98fb0ee028cc0fadebb85ab9  cracklib.trigger"