1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
3 # Contributor: Michal Krenek <mikos@sg1.cz>
8 pkgdesc="Password cracker based on the faster time-memory trade-off. With MySQL and Cisco PIX Algorithm patches"
10 url="http://project-rainbowcrack.com/"
13 source=("$pkgname-$pkgver-src.tar.xz"
14 "http://www.oxid.it/downloads/rc_patch_mysql_pix.zip")
15 md5sums=('60137c06b727d6d3ca50340ff2c68292'
16 '71845ac352ff888a9cfcff6c1ea4184b')
19 cd "$srcdir/$pkgname-$pkgver-src/src"
21 # MySQL and Cisco PIX Algorithm patches
22 install -Dm644 ${srcdir}/*.{h,cpp} .
25 sed -i "11i#include <stdlib.h>\n#include <string.h>" Public.h
27 # DSO link fix for crypto
28 sed -i "s/-lssl/& -lcrypto/" makefile.linux
30 make -f makefile.linux
34 cd "$srcdir/$pkgname-$pkgver-src/src"
37 install -d "$pkgdir/usr/bin"
38 install -Dm755 r{t,c}* "$pkgdir/usr/bin"
41 install -Dm644 "$srcdir/readme.txt" \
42 "$pkgdir/usr/share/$pkgname/patches.txt"
43 install -Dm644 charset.txt ../readme.txt \
44 "$pkgdir/usr/share/$pkgname"
47 install -d "$pkgdir/usr/share/doc/$pkgname"
48 install -Dm644 ../doc/* \
49 "$pkgdir/usr/share/doc/$pkgname"
52 install -Dm644 ../disclaimer.txt \
53 "$pkgdir/usr/share/licenses/$pkgname/LICENCE"