void-packages/srcpkgs/john/template

58 lines
1.7 KiB
Plaintext
Raw Normal View History

# Template file for 'john'
pkgname=john
2015-02-02 16:50:25 +01:00
version=1.8.0
_jumbover=1
2015-02-02 16:59:36 +01:00
revision=2
2015-02-02 16:50:25 +01:00
wrksrc="${pkgname}-${version}-jumbo-${_jumbover}/src"
build_style=gnu-configure
2015-02-02 16:59:36 +01:00
configure_args="--disable-native-tests --disable-native-macro"
2015-02-02 16:50:25 +01:00
hostmakedepends="libgomp-devel pkg-config"
makedepends="zlib-devel libgomp-devel libressl-devel>=2.1.3 libpcap-devel gmp-devel"
conf_files="/etc/john/john.conf"
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
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"
}
2015-02-02 16:50:25 +01:00
do_install() {
2015-02-02 16:50:25 +01:00
cd ..
# 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
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
# 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
# install binaries
2015-02-02 16:50:25 +01:00
vbin run/john
vbin run/mailer john-mailer
vbin run/vncpcap2john
vbin run/luks2john
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
ln -s john pdf2john
ln -s john rar2john
ln -s john ssh2john
ln -s john zip2john
}