void-packages/srcpkgs/john/template

58 lines
1.7 KiB
Text
Raw Normal View History

# Template file for 'john'
pkgname=john
2015-02-02 15:50:25 +00:00
version=1.8.0
_jumbover=1
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"
makedepends="zlib-devel libgomp-devel libressl-devel>=2.1.4 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 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
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"
}
2015-02-02 15:50:25 +00:00
do_install() {
2015-02-02 15:50:25 +00: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 13:30:18 +00:00
vmkdir usr/share/licenses/john
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
# 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
# install binaries
2015-02-02 15:50:25 +00: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 15:50:25 +00:00
ln -s john gpg2john
ln -s john pdf2john
ln -s john rar2john
ln -s john ssh2john
ln -s john zip2john
}