2011-12-19 14:00:51 +00:00
|
|
|
# Template file for 'john'
|
|
|
|
pkgname=john
|
2015-02-02 15:50:25 +00:00
|
|
|
version=1.8.0
|
|
|
|
_jumbover=1
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=3
|
2015-02-02 15:50:25 +00:00
|
|
|
wrksrc="${pkgname}-${version}-jumbo-${_jumbover}/src"
|
|
|
|
build_style=gnu-configure
|
2015-02-02 15:59:36 +00:00
|
|
|
configure_args="--disable-native-tests --disable-native-macro"
|
2015-02-02 15:50:25 +00:00
|
|
|
hostmakedepends="libgomp-devel pkg-config"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="zlib-devel libgomp-devel libressl-devel libpcap-devel gmp-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/john/john.conf"
|
2011-12-19 14:00:51 +00:00
|
|
|
short_desc="John the Ripper password cracker (jumbo-${_jumbover} patch included)"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-12-19 14:00:51 +00:00
|
|
|
license="GPL-2"
|
2012-06-04 13:45:06 +00:00
|
|
|
homepage="http://www.openwall.com/john/"
|
2015-02-02 15:50:25 +00:00
|
|
|
distfiles="$homepage/j/$pkgname-${version}-jumbo-${_jumbover}.tar.xz"
|
|
|
|
checksum=bac93d025995a051f055adbd7ce2f1975676cac6c74a6c7a3ee4cfdd9c160923
|
2011-12-19 14:00:51 +00:00
|
|
|
|
2015-02-02 15:50:25 +00: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 14:00:51 +00:00
|
|
|
}
|
2015-02-02 15:50:25 +00:00
|
|
|
|
2011-12-19 14:00:51 +00:00
|
|
|
do_install() {
|
2015-02-02 15:50:25 +00:00
|
|
|
cd ..
|
|
|
|
|
2011-12-19 14:00:51 +00: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 13:30:18 +00:00
|
|
|
vmkdir usr/share/licenses/john
|
2011-12-19 14:00:51 +00:00
|
|
|
install -m644 doc/* ${DESTDIR}/usr/share/doc/john
|
|
|
|
vmkdir usr/share/john
|
2014-02-20 13:30:18 +00:00
|
|
|
mv ${DESTDIR}/usr/share/doc/$pkgname/LICENSE ${DESTDIR}/usr/share/licenses/$pkgname
|
2011-12-19 14:00:51 +00:00
|
|
|
# install password list and charset files
|
2015-02-02 15:50:25 +00:00
|
|
|
install -m644 run/*.chr run/*.lst ${DESTDIR}/usr/share/john
|
|
|
|
install -m644 run/*.conf ${DESTDIR}/usr/share/john
|
2011-12-19 14:00:51 +00:00
|
|
|
# install binaries
|
2015-02-02 15:50:25 +00:00
|
|
|
vbin run/john
|
|
|
|
vbin run/mailer john-mailer
|
|
|
|
vbin run/vncpcap2john
|
|
|
|
vbin run/luks2john
|
2011-12-19 14:00:51 +00:00
|
|
|
|
|
|
|
cd ${DESTDIR}/usr/bin
|
|
|
|
ln -s john unafs
|
|
|
|
ln -s john unique
|
|
|
|
ln -s john unshadow
|
|
|
|
ln -s john undrop
|
2015-02-02 15:50:25 +00:00
|
|
|
ln -s john gpg2john
|
2011-12-19 14:00:51 +00:00
|
|
|
ln -s john pdf2john
|
|
|
|
ln -s john rar2john
|
|
|
|
ln -s john ssh2john
|
|
|
|
ln -s john zip2john
|
|
|
|
}
|