Commit graph

112 commits

Author SHA1 Message Date
Piotr Kubaj
ac6ca878ab security/john: fix build on powerpc
Disable simd code, it seems it's written specifically for 64-bits.
2022-01-22 13:33:26 +00:00
Piotr Kubaj
1e6670382f security/john: fix build on powerpc64*
cc -DAC_BUILT  -maltivec -mvsx -mpower8-vector -DJOHN_ALTIVEC -c -m64 -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -I/usr/include -DARCH_LITTLE_ENDIAN=1 -DJOHN_SYSTEMWIDE -DJOHN_SYSTEMWIDE_EXEC='"/usr/local/bin"' -DJOHN_SYSTEMWIDE_HOME='"/usr/local/share/john"'  -DJOHN_SYSTEMWIDE=1 -Wall -Wno-tautological-constant-out-of-range-compare -fno-omit-frame-pointer -Wno-deprecated-declarations -Wformat-extra-args -Qunused-arguments -std=gnu89 -Wdate-time -D__BSD_VISIBLE -I/usr/include -fopenmp  -D_THREAD_SAFE -pthread -I/usr/local/include -DCL_SILENCE_DEPRECATION -finline-functions -fno-strict-aliasing -maltivec DES_bs_b.c
In file included from DES_bs_b.c:620:
./sboxes-s.c:59:2: warning: implicit declaration of function 'vec_sel' [-Wimplicit-function-declaration]
        vsel(x0F0F3333, a3, a2, a5);
        ^
DES_bs_b.c:117:10: note: expanded from macro 'vsel'
        (dst) = vec_sel((a), (b), (vector bool int)(c))
                ^
In file included from DES_bs_b.c:620:
./sboxes-s.c:59:2: error: assigning to 'vtype' (vector of 4 'int' values) from incompatible type 'int'
        vsel(x0F0F3333, a3, a2, a5);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
DES_bs_b.c:117:8: note: expanded from macro 'vsel'
        (dst) = vec_sel((a), (b), (vector bool int)(c))
              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-12-12 23:28:35 +00:00
Alexey Dokuchaev
4b7f7b97f1 security/john: belatedly update JtR to version 1.9.0-jumbo-1
Despite what Solar Designer had said earlier, community enhancements
were not offered as separate patch, so the top comment about JUMBO
option still stands.

Because supported SIMD features are detected during configure, force
SSE2 for x86 packages as reasonable default which most modern CPUs
should support these days.  Ideally we should probably do several build
rounds and produce binaries targeting different SIMD features (e.g.
like Arch Linux is doing this), but that's the task for another day.

Actualize the lists of binaries and symlinks (some programs had become
standalone, others had been converted to scripts offered as extras).

Drop BROKEN_mips64: it was added in r425682 five years ago for a
different version, since then similar breakage for aarch64 had been
fixed, and looking at the configure script, mips64 should be supported
(even if it's really not, that particular error message is no longer
accurate per grepping the sources).

Adjust LICENSE (GPLv2 or later) and fix the build with OpenCL support.

PR:	247229, 254922
2021-11-26 07:34:25 +00:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Gerald Pfeifer
ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00
Mark Linimon
922dee671e These ports now build on aarch64.
Where necessary, pet portlint.

Approved by:	portmgr
Obtained from:	aarch64 TRYBROKEN run
2019-05-03 21:06:51 +00:00
Alexey Dokuchaev
5d1ae4f258 Do a little spring cleaning:
- Drop the note that we prefer -jumbo (community-enhanced) versions
  instead of vanilla JtR releases and accompanying PORTSCOUT knob,
  add a nota bene to handle this with next JtR version update
- Remove broken mirror (gd.tuwien.ac.at) from the MASTER_SITES
- Remove BROKEN_SSL knob, it should build fine after recent changes
- Shorten BROKEN_$arch messages and fix a minor typo there
- While Solar Designer recommends to pass JOHN_SYSTEMWIDE_HOME and
  JOHN_SYSTEMWIDE_EXEC overrides via command line, in practice it
  is easier and cleaner (avoids plenty of those ``warning: missing
  terminating '"' character [-Winvalid-pp-token]'' messages during
  configure stage) to patch `params.h' file in place, so do it
- For JOHN_SYSTEMWIDE=1, pass it via environment (as CFLAGS_EXTRA)
  instead of appending to global CFLAGS value
- GC `pfx2john' symlink (should've been part of r494924)
2019-03-08 12:12:57 +00:00
Alexey Dokuchaev
e45ef3e5e0 Drop the raw SHA-0 format, it's unlikely anyone will ever need it.
Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/40f0aae
2019-03-08 08:59:20 +00:00
Alexey Dokuchaev
bbb8ccee21 Drop OpenSSL dependency from WPA-PSK format support code.
Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/a286ca6
2019-03-07 15:02:36 +00:00
Alexey Dokuchaev
30d313d665 Stop using (old) OpenSSL EVP in RAR3 format support code.
Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/6fcc147
2019-03-07 14:21:40 +00:00
Alexey Dokuchaev
e4e9ed9f35 Unbreak GPG format plugin against newer versions of OpenSSL.
Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/c0557e7
2019-03-07 14:09:35 +00:00
Alexey Dokuchaev
12ce366573 - Replace OpenSSL HMAC-SHA1 code with JtR own code
- Remove use of EVP in favor of the low-level API
- Add generic check_pkcs_pad() function in jumbo.c

Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/f837171
		https://github.com/magnumripper/JohnTheRipper/commit/04d2b35
2019-03-07 13:46:10 +00:00
Alexey Dokuchaev
37c54dcdd6 - Replace OpenSSL HMAC-SHA1 code with JtR code
- Fix the build against newer OpenSSL versions

Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/9a5c84c
		https://github.com/magnumripper/JohnTheRipper/commit/aaeff8b
2019-03-07 12:03:20 +00:00
Alexey Dokuchaev
66ffc2ce73 - Drop PFX support code: incompatible with newer OpenSSL versions
- Remove `ssh_fmt_plug.c' file (should've been part of r494696)

Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/12e8d57
2019-03-07 11:37:55 +00:00
Alexey Dokuchaev
b2d10add78 Drop OpenSSL EVP high-level crap in favor of their own AES implementation
in Bitcoin format converter.

Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/0e2beec
2019-03-05 13:44:23 +00:00
Alexey Dokuchaev
da9b853bee - Remove SSH private keys format converter which is dead upstream, users
should use `sshng2john.py' script instead
- Add a comment about how we should handle -jumbo versions in the future

Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/7a71705
2019-03-05 12:33:01 +00:00
Gerald Pfeifer
a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00
Mathieu Arnold
35326f1a97 security/openssl-devel was removed, but there is a security/openssl111 now. 2018-11-10 10:09:48 +00:00
Gerald Pfeifer
09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00
Gerald Pfeifer
b02c316bb4 - Simplify reference to ibiblio.org MASTER_SITE.
- Fully sort pkg-plist.

Approved by:	danfe (maintainer)
2018-03-24 14:15:56 +00:00
Sunpoet Po-Chuan Hsieh
1bc7cb9cad Use BROKEN_SSL
Approved by:	portmgr (blanket)
2018-02-17 12:00:53 +00:00
Gerald Pfeifer
e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00
Gerald Pfeifer
04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00
Dmitry Marakasov
9c8a649e64 Remove always-true/false conditions after 9.x, 10.[12] EOL
While here, couple minor fixes

portmgr blanket
2017-01-05 11:00:49 +00:00
Mathieu Arnold
703ff6d361 Mark some ports as not openssl-devel ready.
Sponsored by:	Absolight
2016-11-29 18:46:21 +00:00
Gerald Pfeifer
89f8b05214 Bump PORTREVISIONS for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

In particular that is ports with USE_GCC=yes, USE_GCC=any, or one of
gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang,
c++11-lang, c++0x, c11 requested via USES=compiler.
2016-11-20 09:38:08 +00:00
Alexey Dokuchaev
571d2ed220 - Fix the build against LibreSSL: put back safety belts added in r382632,
expanding them to cover newly added files, and augment OPENSSL_NO_SHA0
  patch to avoid linking error
- Restore `-flax-vector-conversions' option required on pre-Clang systems
  that was erroneously removed in r425958

PR:	214459
2016-11-14 06:41:47 +00:00
Alexey Dokuchaev
409c6f1b3e - Update `security/john' to 1.8.0-jumbo-1 (long overdue)
- Remove no longer needed build-related logic since they moved to GNU
  autotools' based build
- Disable OPENMP option for the moment; it will be reintroduced with
  others (e.g. OpenCL) in a separate commit
- Add upstream patch to fix the build on non-x86 architectures [2]
- Do not define _POSIX_SOURCE when compiling wordlist.c: this results
  in broken JtR binary at least on i386
- Define JOHN_SYSTEMWIDE_EXEC for the future when we start to provide
  fall-back binaries
- Stop moving john.conf to /etc.  We're not doing it for other *.conf
  files anyway (the include files); JtR is smart enough to locate its
  configuration files properly when built in system-wide mode [1]
- Install full set of documentation files included with -jumbo
- Remove `xtract' symlink which hasn't been part of JtR for more than
  a decade; install more useful symlinks (unafs, unique, other un* and
  *2john) that were added in -jumbo instead
- Previously *.pl, *.rb, and *.py scripts were installed into DATADIR;
  Alexander wanted to see them along with the documentation, but that
  goes a bit too far; put them in ${DATADIR}/extra for the time being

PR:		197172 [1]
Obtained from:	http://www.openwall.com/lists/john-dev/2014/12/18/21 [2]
2016-11-12 15:16:56 +00:00
Mark Linimon
17e48e339b The 64-bit arm arch is actually spelled 'aarch64', not 'arm64'. 2016-11-08 19:29:56 +00:00
Mark Linimon
1e11965e5b Mark broken on arm64 and mips64.
Approved by:	portmgr (tier-2 blanket)
2016-11-08 04:15:49 +00:00
Mark Linimon
170f09c5df Now builds on sparc64.
Approved by:	portmgr (tier-2 blanket)
2016-11-03 16:34:21 +00:00
John Marino
f32fb89f58 security/john: Handle SLL libraries without SHA0 (e.g. LibreSSL)
Approved by:	SSL blanket
2016-09-12 05:05:32 +00:00
Baptiste Daroussin
892abe2b7e Convert to @sample 2016-04-10 09:41:20 +00:00
Kurt Jaeger
a31003662f security/john: Fix OPENMP option having no effect
PR:		204903
Submitted by:	John W. O'Brien <john@saltant.com>, w.schwarzenfeld@aon.at
Approved by:	danfe (maintainer timeout)
2016-01-16 19:25:48 +00:00
Alexey Dokuchaev
f403896561 Replace methods and types that were marked deprecated by OpenSSL 0.9.7
and will be removed in OpenSSL 1.1.0.

PR:		198348, 198352
Submitted by:	Bernard Spil
2015-03-30 03:04:24 +00:00
Alex Kozlov
34ae7a3272 - Remove vestiges of alpha support
Approved by: portmgr (erwin)
2015-01-15 20:00:09 +00:00
Tijl Coosemans
c88aaf5c89 Add missing USE_OPENSSL=yes
PR:		195796
2015-01-15 09:05:37 +00:00
Antoine Brodin
698f4644c4 Cleanup plist 2014-11-13 09:02:57 +00:00
Adam Weinberger
bbc8c4d740 Convert a bunch of USE_BZIP2 to USES=tar:bzip2
Approved by:	portmgr (not really, but touches unstaged ports)
2014-07-29 18:41:15 +00:00
John Marino
fbd6d1a109 Replace "${OPSYS:tl}" with "freebsd" on 4 ports
The following 4 ports will not build correctly if certain variables
are not defined as "freebsd".  Defining them as "${OPSYS:tl}" caused
breakage on DragonFly for various reasons.  Harding the variables are
a no-op for FreeBSD but fixes the ports on DragonFly.

* games/ioquake3
* graphics/opendx
* science/cdf
* security/john

approved by:	portmgr (bapt)
2014-05-05 15:04:38 +00:00
Baptiste Daroussin
4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00
Mathieu Arnold
b87b59b1ce - Update from 1.7.9-jumbo-5 to 1.7.9-jumbo-7 [1]
- Support staging
- Minor fixes

maintainer timeout [1]

PR:		ports/180794, ports/185246 [1]
Submitted by:	Hung-Yi Chen, Royce Williams [1]
2013-12-31 10:45:48 +00:00
Baptiste Daroussin
a65ed2e51b Add NO_STAGE all over the place in preparation for the staging support (cat: security) 2013-09-20 22:55:24 +00:00
Bryan Drewery
d9a8137979 Fix build 2013-04-29 11:31:38 +00:00
Baptiste Daroussin
0b881b0ece Convert security to new options framework 2013-04-28 21:02:39 +00:00
Alexey Dokuchaev
1abafe5709 - Update to version 1.7.9-jumbo-5
- Add an OPTION to build with OpenMP support (disabled by default)
- Adjust `pre-build' target message to mention OpenMP support (with/without)
- Fix overly aggressive CFLAGS patching via REINPLACE_CMD
- Remove unneeded global modifiers from sed(1) expressions and kill one
  superfluous empty line while I am here
2012-01-08 11:21:17 +00:00
Alexey Dokuchaev
1c88fd5a37 Expand 11 (number) into `eleven' (word) to make port description look better. 2012-01-08 11:16:08 +00:00
Alexey Dokuchaev
72fd1ce002 Limit PORTSCOUT version check to -jumbo releases and explain why. 2011-12-17 17:27:12 +00:00
Alexey Dokuchaev
72350e5f49 Update to shiny new version 1.7.8-jumbo-8, most notably featuring optional
OpenMP to parallelize MD5-based crypt(3) and Apache $apr1$ when using SSE2,
as announced here: http://www.openwall.com/lists/john-users/2011/11/09/1

Submitted by:	Royce Williams
2011-11-10 02:00:43 +00:00
Alexey Dokuchaev
10ad4fb2d4 Mention number of extra hash and cipher types of community-enhanced version. 2011-10-11 14:52:07 +00:00