john: switch to libressl.
This commit is contained in:
parent
4a0d1ff645
commit
a7282ee47f
|
@ -2,10 +2,10 @@
|
||||||
pkgname=john
|
pkgname=john
|
||||||
version=1.7.9
|
version=1.7.9
|
||||||
_jumbover=5
|
_jumbover=5
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="${pkgname}-${version}-jumbo-${_jumbover}"
|
wrksrc="${pkgname}-${version}-jumbo-${_jumbover}"
|
||||||
hostmakedepends="libgomp-devel"
|
hostmakedepends="libgomp-devel"
|
||||||
makedepends="libgomp-devel openssl-devel"
|
makedepends="zlib-devel libgomp-devel libressl-devel"
|
||||||
conf_files="/etc/john/john.conf"
|
conf_files="/etc/john/john.conf"
|
||||||
short_desc="John the Ripper password cracker (jumbo-${_jumbover} patch included)"
|
short_desc="John the Ripper password cracker (jumbo-${_jumbover} patch included)"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -16,20 +16,21 @@ checksum=4007aec40d2fedb1ce3287c62f23f8a1a8b8029d22cd3cbc60bb1a42f56c1a7f
|
||||||
|
|
||||||
only_for_archs="i686 x86_64"
|
only_for_archs="i686 x86_64"
|
||||||
|
|
||||||
do_build() {
|
do_configure() {
|
||||||
sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS += -c -Wall -DJOHN_SYSTEMWIDE=1|' src/Makefile
|
sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS += -c -Wall -DJOHN_SYSTEMWIDE=1|' src/Makefile
|
||||||
sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS +=\1 -lm|' src/Makefile
|
sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS +=\1 -lm|' src/Makefile
|
||||||
sed -i 's|-m486||g' src/Makefile
|
sed -i 's|-m486||g' src/Makefile
|
||||||
sed -i 's|-msse2||g' src/Makefile
|
sed -i 's|-msse2||g' src/Makefile
|
||||||
sed -i 's|#OMPFLAGS = -fopenmp|OMPFLAGS = -fopenmp|' src/Makefile
|
sed -i 's|#OMPFLAGS = -fopenmp|OMPFLAGS = -fopenmp|' src/Makefile
|
||||||
|
sed -i 's|des_|DES_|g' src/KRB4*.c
|
||||||
|
}
|
||||||
|
do_build() {
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
make ${makejobs} -C src linux-x86-64
|
make ${makejobs} -C src linux-x86-64
|
||||||
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||||
make ${makejobs} -C src linux-x86-mmx
|
make ${makejobs} -C src linux-x86-mmx
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
# config file
|
# config file
|
||||||
sed -i 's|$JOHN|/usr/share/john|g' run/john.conf
|
sed -i 's|$JOHN|/usr/share/john|g' run/john.conf
|
||||||
|
|
Loading…
Reference in New Issue