mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 04:04:37 +08:00
33 lines
1018 B
Bash
33 lines
1018 B
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
# This package has a corresponding lib32 package (lib32-cracklib).
|
|
|
|
pkgname=cracklib
|
|
pkgver=2.9.6
|
|
pkgrel=1
|
|
pkgdesc="Password Checking Library"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
url="http://sourceforge.net/projects/cracklib"
|
|
depends=('glibc' 'zlib')
|
|
options=('!libtool')
|
|
source=(https://github.com/cracklib/cracklib/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
|
md5sums=('c52f463585d85924b28cdc1e373ae06d')
|
|
|
|
build() {
|
|
cd ${srcdir}/$pkgname-$pkgver
|
|
./configure --prefix=/usr --without-python
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/$pkgname-$pkgver
|
|
make DESTDIR=$pkgdir install
|
|
install -Dm644 dicts/cracklib-small $pkgdir/usr/share/dict/cracklib-small
|
|
sh ./util/cracklib-format dicts/cracklib-small \
|
|
| sh ./util/cracklib-packer $pkgdir/usr/share/cracklib/pw_dict
|
|
}
|