Commit graph

74 commits

Author SHA1 Message Date
Jason E. Hale
4c0895d82f security/cryptopp: Update to 8.6.0
Changes:	https://www.cryptopp.com/release860.html

Security:	7695b0af-958f-11ec-9aa3-4ccc6adda413
2022-02-24 20:37:46 -05:00
Piotr Kubaj
4181b0995f security/cryptopp: enable SIMD by default on powerpc and powerpc64
Upstream can now check at runtime for SIMD availaibility. Merge upstream commits 91173a287e and 21a40abc5c to implement it.

Local patch is used because upstream patch doesn't apply.

Remove -maltivec and -mvsx, upstream now properly sets those flags on their own.
2021-04-25 16:43:31 +00:00
Piotr Kubaj
a131fc63e9 security/cryptopp: enable SIMD on powerpc64le by default
No point in disabling AltiVec and VSX since both POWER8 and POWER9 have it.
2021-04-25 13:36:35 +00:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Jason E. Hale
d6b22148c7 security/cryptopp: Update to 8.5.0
Relnotes:	https://www.cryptopp.com/release850.html
2021-03-13 15:13:58 +00:00
Jason E. Hale
5455755643 security/cryptopp: Update to 8.4.0
Bump PORTREVSION on all consumers. ABI-breaking changes were introduced and
recompile of consumers is necessary.

Remove unused cryptopp dependency from devel/xeus. Upstream migrated to OpenSSL
several releases ago. [1]

[1] c98c44c174

Changes:	https://www.cryptopp.com/release840.html
2021-01-19 04:26:12 +00:00
Mark Linimon
5e0c88b744 Set flags on powerpc64le the same as on powerpc64.
Approved by:	portmgr (tier-2 blanket)
2020-09-27 20:35:24 +00:00
Jason E. Hale
692da6425d Update security/cryptopp to 8.2.0
Remove THREADS option - upstream recommends building with threads and the
build system now adds the appropriate flags automatically

Bump PORTREVISION on consumers due to shared lib version increase

PR:		241132
Submitted by:	Farid Hajji <farid@hajji.name>
2019-12-10 03:38:48 +00:00
Dmitry Marakasov
7de281d08b - Update WWW
Approved by:	portmgr blanket
2019-08-12 09:02:31 +00: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
9400c25494 Add support for building with AltiVec extensions. Note that because
MACHINE_CPU is not defined on powerpc*, we rely only on ARCH.

Because of this we choose to optimize using instructions available in
POWER8 and newer, so this port built with SIMD option won't work on older
POWER CPUs (we could however add additional options for that, to support
AltiVec in older POWER, if desired).

While here, also remove BROKEN on powerpc.

PR:		234953
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
2019-01-16 05:38:28 +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
Jason E. Hale
bce536374e security/cryptopp: Fix linking with net-p2p/amule on powerpc64
PR:		232873
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
Sponsored by:	IntegriCloud
2018-10-31 23:36:03 +00:00
Jason E. Hale
edf512ca2e Update security/cryptopp to 7.0.0
We now install a pkgconfig file which will allow ports to check whether
cryptopp was built with assembly instructions enabled or not. There are
a few functions that will be undefined if built without assembly and
-DCRYPTOPP_DISABLE_ASM needs to be passed to the compiler in that case
to avoid build failures. This is not new, but the pkgconf file should
make it easier to determine if the flag is needed or not.

Fix several ports due to API changes and to use the new pkgconf file
to determine cryptopp location and build flags. Special cases below.

deskutils/cdcat
- Use cryptopp shared library instead of static, detect with pkgconf

devel/xeus
- Fix dependencies and remove header-only libraries from RUN_DEPENDS
- Rework to use the cryptopp pkgconf file
- net/cppzmq CMake files were fixed in r477649, remove hacks for that
  as they were seemingly causing devel/xeus-cling to link to cryptopp
  unnecessarily
- Remove C++17 code from cryptopp checks for compatibility

devel/xeus-cling
- Fix dependencies
- Remove hacks for previously broken cppzmq CMake files and no longer
  needed cryptopp dependency

Changes:	https://www.cryptopp.com/#news
PR:		230579 (original patch, not used)
Submitted by:	yuri
2018-08-24 17:22:01 +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
Mathieu Arnold
b4b1816b21 Only sleep in ports if BATCH/PACKAGE_BUILDING are not defined.
Sponsored by:	Absolight
2018-04-25 22:00:04 +00:00
Jason E. Hale
a47a67e9fb Reinstate the cryptest binary removed in r428022 as it may be useful to some
people. Since it was installed by default before, so it shall be now. It can
be toggled with the TOOLS option. For the regression tests to run, it must be
toggled OFF due to environment restrictions.

While here:
- Switch to plain USES=zip, it extracts fine with base unzip
- Clean up whitespace
- Fix portlint warnings
- Rename LIBVERSION variable to SOVERSION

PR:		222930
Submitted by:	Roberto Fernandez Cueto <roberfern@gmail.com>
2018-03-11 16:10:19 +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
Jason E. Hale
0ec7f60286 - Update security/cryptopp to 5.6.5
- Add LICENSE (BSL)
- Add CPE data
- Remove STATIC option and always install the shared library;
  no reason not to.
- Remove GCC option and use USES=compiler framework
- Add FULL_DEBUG option to address CVE-2016-7420 and add a warning if trying
  to use it. It will allow the asserts to be enabled which could be a
  security risk. The standard DEBUG option is now safe to use.
- Add SIMD option for i386 and amd64 - requires a recent clang or gcc
- Don't install the cryptest binary; it is really only used for regression
  testing, so only build it for the TEST_TARGET. It is useless without the
  data files anyways.
- Take maintainership
- Bump PORTREVISON on dependent ports due to shared library bump

PR:		215015
Reported by:	<fcsk.aim@gmail.com>
MFH:		2016Q4
Security:	eab68cff-bc0c-11e6-b2ca-001b3856973b
2016-12-07 01:00:11 +00:00
Pawel Pekala
428986fcb6 Set library SONAME, this makes pkg correctly detect provided package
functionality and fixes pkg check -d.

PR:		214857
Submitted by:	myself
Approved by:	delphij no longer maintainer
2016-12-01 09:07:15 +00:00
Xin LI
be8dd6f4ff Release this back to pool. 2016-11-28 05:10:48 +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
Mark Linimon
74d0a0ba36 Now builds on sparc64.
Approved by:	portmgr (tier-2 blanket)
2016-11-03 16:33:00 +00:00
Dmitry Marakasov
1f8b48b772 - Fix trailing whitespace in pkg-descrs, categories [p-x]*
Approved by:	portmgr blanket
2016-05-19 10:53:05 +00:00
Gerald Pfeifer
242073ad09 Add GCC_DESC to Mk/bsd.options.desc.mk. Use this in a number of ports
instead of their own respective settings.
2015-11-16 00:30:00 +00:00
John Marino
c55ac89dcd security category: Remove $PTHREAD_LIBS
approved by:	PTHREAD blanket
2015-03-25 08:30:27 +00:00
Antoine Brodin
698f4644c4 Cleanup plist 2014-11-13 09:02:57 +00:00
John Marino
24412ff96d security/cryptopp: Add patch from pkgsrc
The definition of CRYPTOPP_BOOL_ALIGN16_ENABLED was incorrect for i386.
For NetBSD, this resulted in the inability to build cryptopp on i386.
On FreeBSD, it built, but deskutils/cdcat choked on it while building on
FreeBSD 10/i386 and FreeBSD 11/i386.

PR:		192199
Fix from:	pkgsrc security/crypto++
Discussed:	NetBSD GNATS 48134
Approved by:	delphi@
2014-07-30 07:07:16 +00:00
Michael Gmelin
4b08b8193b Build shared library by default
PR:		191028
Reviewed by:	bapt
Approved by:	bapt
2014-06-20 13:01:43 +00:00
Antoine Brodin
9621e6ec1b Unbreak 2014-03-11 06:20:18 +00:00
Baptiste Daroussin
8a7c77fbbd Convert s* to USES=zip 2014-03-10 17:01:36 +00:00
Eitan Adler
e376724077 - Modernize port:
- Stagify
  - USES=gmake instead of USE_GMAKE
- Don't build with -march=native as the build box may not be identical to the
  run box.
2014-02-05 19:32:00 +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
Gerald Pfeifer
41e60477bd Replace USE_GCC=4.6+ and USE_GCC=4.4+ by USE_GCC=yes.
Right now this is a noop in the former case and a noop in the latter
case unless lang/gcc44 has been installed explicitly.

This puts a bit more emphasis on standardizing on a canonical version
"current" GCC and makes it easier to update that canonical version
by changing the default in Mk/bsd.gcc.mk and updating the lang/gcc port.

That is, USE_GCC=yes means "use a decent/modern version of GCC" without
having to worry about details.

Approved by:	portmgr (bdrewery)
2013-08-17 16:27:24 +00:00
Alex Kozlov
d4041784dc - Remove MAKE_JOBS_SAFE variable
Approved by:	portmgr (bdrewery)
2013-08-14 22:35:50 +00:00
Xin LI
38fdae7228 Update to 5.6.2. 2013-05-22 22:51:57 +00:00
Xin LI
4fa5971018 This changeset fixes two issues with crypto++ library:
* patch-misc.h

   This fixes a warning triggered by testing an unsigned parameter against
   0.  The patch solves this by creating a different template for signed
   case.

 * patch-nbtheory.cpp

   This is a workaround for a bug with the current version of libc++ shipped
   with FreeBSD 9.x, which causes an infinite loop when generating RSA key,
   possibly also other operations.

PR:		ports/178827
Submitted by:	Michael Gmelin <freebsd grem de>
2013-05-22 22:41:42 +00:00
Carlo Strub
f87124df63 - Remove A/An in COMMENT
- Trim Header where applicable
2013-03-29 19:33:41 +00:00
Xin LI
f5f555fb36 Add a few casts to initializer of int array when the constant is greater
than 0x7fffffff, as they have exceeded the range of standard int.  This
makes the code to compile when -std=c++11.

The resulting binary was not changed by this commit.  PORTREVISION
not bumped intentionally as this is a build fix.

While I'm there, also convert the header to new style.

PR:		ports/171525
Submitted by:	Michael Gmelin <freebsd grem de>
2012-10-08 21:55:37 +00:00
Xin LI
a6cc38da50 Make it possible to build and install shared library of crypto++, and
convert to use OPTIONSng [1].

While I'm there, also add an option to build with GCC 4.6.x and newer
binutils, which enables use of AES-NI.

PR:		ports/170045
Submitted by:	Michael Gmelin <freebsd grem.de>
2012-07-23 22:44:33 +00:00
Mark Linimon
7d8608ab13 Mark broken on powerpc as well as sparc64. (In fact, on all the tier-2s.)
Hat:		portmgr
2011-11-10 05:38:32 +00:00
Doug Barton
2b1dacc826 Remove more tags from pkg-descr files fo the form:
- Name
em@i.l

or variations thereof. While I'm here also fix some whitespace and other
formatting errors, including moving WWW: to the last line in the file.
2011-10-24 04:17:37 +00:00
Xin LI
549f67f58a Fix clang build.
PR:		ports/160509
Submitted by:	h h <aakuusta gmail.com>
2011-09-06 20:01:05 +00:00
Mark Linimon
a799df6e74 Does not compile on sparc64: unrecognized C++ options. 2011-07-16 05:39:43 +00:00
Xin LI
7e4d1a3af0 crypto++ assumes that the as(1) in PATH is the one used by c++(1),
which is not always true.  When PATH is being configured to a
non-standard sequence, we may found an as(1) newer than the base
one and draw wrong conclusion which leads to failed builds.

Use the result given by c++.  This is also accepted to upstream.

PR:			ports/154325
Submitted by:		swell.k gmail.com
Feature safe:		yes
2011-01-27 20:47:30 +00:00
Xin LI
fdf1d0d2a4 Update to 5.6.1.
Submitted by:	Michael Richards <hackish gmail.com>
Feature safe:	yes
2011-01-22 23:21:52 +00:00
Xin LI
f606d8f659 Apply a vendor fix to sha256 which prevents cryptopp from generating
correct hash if input is not properly aligned. (r470).
2010-01-30 02:56:46 +00:00
Xin LI
18409dbbc8 Pet portlint.
Pointy hat to:	amdmi3
2010-01-30 02:55:37 +00:00
Dmitry Marakasov
3eb168f46b - Switch SourceForge ports to the new File Release System: categories starting with P,R,S 2009-08-22 00:35:32 +00:00