2011-12-19 15:00:51 +01:00
|
|
|
# Template file for 'john'
|
|
|
|
pkgname=john
|
2015-02-02 16:50:25 +01:00
|
|
|
version=1.8.0
|
|
|
|
_jumbover=1
|
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname}-${version}-jumbo-${_jumbover}/src"
|
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="libgomp-devel pkg-config"
|
|
|
|
makedepends="zlib-devel libgomp-devel libressl-devel>=2.1.3 libpcap-devel gmp-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/john/john.conf"
|
2011-12-19 15:00:51 +01:00
|
|
|
short_desc="John the Ripper password cracker (jumbo-${_jumbover} patch included)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
2012-06-04 15:45:06 +02:00
|
|
|
homepage="http://www.openwall.com/john/"
|
2015-02-02 16:50:25 +01:00
|
|
|
distfiles="$homepage/j/$pkgname-${version}-jumbo-${_jumbover}.tar.xz"
|
|
|
|
checksum=bac93d025995a051f055adbd7ce2f1975676cac6c74a6c7a3ee4cfdd9c160923
|
2011-12-19 15:00:51 +01:00
|
|
|
|
2015-02-02 16:50:25 +01:00
|
|
|
pre_configure() {
|
|
|
|
sed -i 's|des_|DES_|g' KRB4*.c
|
|
|
|
export AS= LD=
|
|
|
|
export OPENSSL_LIBS="-lssl -lcrypto"
|
|
|
|
CFLAGS+=" -DJOHN_SYSTEMWIDE=1"
|
2011-12-19 15:00:51 +01:00
|
|
|
}
|
2015-02-02 16:50:25 +01:00
|
|
|
|
2011-12-19 15:00:51 +01:00
|
|
|
do_install() {
|
2015-02-02 16:50:25 +01:00
|
|
|
cd ..
|
|
|
|
|
2011-12-19 15:00:51 +01:00
|
|
|
# config file
|
|
|
|
sed -i 's|$JOHN|/usr/share/john|g' run/john.conf
|
|
|
|
install -Dm644 run/john.conf ${DESTDIR}/etc/john/john.conf
|
|
|
|
# docs
|
|
|
|
vmkdir usr/share/doc/john
|
2014-02-20 14:30:18 +01:00
|
|
|
vmkdir usr/share/licenses/john
|
2011-12-19 15:00:51 +01:00
|
|
|
install -m644 doc/* ${DESTDIR}/usr/share/doc/john
|
|
|
|
vmkdir usr/share/john
|
2014-02-20 14:30:18 +01:00
|
|
|
mv ${DESTDIR}/usr/share/doc/$pkgname/LICENSE ${DESTDIR}/usr/share/licenses/$pkgname
|
2011-12-19 15:00:51 +01:00
|
|
|
# install password list and charset files
|
2015-02-02 16:50:25 +01:00
|
|
|
install -m644 run/*.chr run/*.lst ${DESTDIR}/usr/share/john
|
|
|
|
install -m644 run/*.conf ${DESTDIR}/usr/share/john
|
2011-12-19 15:00:51 +01:00
|
|
|
# install binaries
|
2015-02-02 16:50:25 +01:00
|
|
|
vbin run/john
|
|
|
|
vbin run/mailer john-mailer
|
|
|
|
vbin run/vncpcap2john
|
|
|
|
vbin run/luks2john
|
2011-12-19 15:00:51 +01:00
|
|
|
|
|
|
|
cd ${DESTDIR}/usr/bin
|
|
|
|
ln -s john unafs
|
|
|
|
ln -s john unique
|
|
|
|
ln -s john unshadow
|
|
|
|
ln -s john undrop
|
2015-02-02 16:50:25 +01:00
|
|
|
ln -s john gpg2john
|
2011-12-19 15:00:51 +01:00
|
|
|
ln -s john pdf2john
|
|
|
|
ln -s john rar2john
|
|
|
|
ln -s john ssh2john
|
|
|
|
ln -s john zip2john
|
|
|
|
}
|