Skip to content

Commit

Permalink
dev-libs/corecrypto: new package
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Udvare <[email protected]>
  • Loading branch information
Tatsh committed Jun 29, 2024
1 parent 00894f2 commit 162116c
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-libs/corecrypto/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DIST corecrypto-2023.zip 48331326 BLAKE2B 3b73323dd6eb31024b313193d81561b27008d4e4cd746ca9114b8629a08be53c6934625e70cad25a48cf2aab6c2845afa17e5123879d5067995bfff65242ff24 SHA512 b1fc392e88922db3df47be2c978ef613934945effb84dceabadd9d922971ab2dabbc76cbe0ece86cb10244a5ecb8e46b332c81f73b55caa5d3aead64df0c6ce0
EBUILD corecrypto-2023.ebuild 938 BLAKE2B f2f239f5d61cda8449895c4349510e2c74e2d39ddd22607aa9998cc522098f7a14d5a4c8e54804cd19f40dce9c9e224df7ac5dfc208533cf2cf2c1d4df283e61 SHA512 2ea2047d1b082e14fcd58d29a264fef9179a0b225db7d2a5c9640be04c1b6ba296be27df6ccaafca3617621b7160770f34b01b0de2766b9674b87f2a51290dad
MISC metadata.xml 246 BLAKE2B 719b651fc01707ec3d9e366f618d27c931b4c5f912fdfb5c2d85434a0e798b9ee0d0ea6925cb62e693c745953abaf666009d03696da5496fd93c9045bbe893d2 SHA512 f517e1837b4773afe57afb34d82308adc22f72aeeaabf5664c3caecf1c6d9204e783e32010cae416245213f5558d333edb8e60e05c7388824a2902473483af6f
33 changes: 33 additions & 0 deletions dev-libs/corecrypto/corecrypto-2023.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Low-level cryptographic primitives from Apple."
HOMEPAGE="https://developer.apple.com/security/"
SRC_URI="corecrypto-2023.zip"
RESTRICT="fetch"

LICENSE="corecrypto"
SLOT="0"
KEYWORDS="~amd64"

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""

pkg_nofetch() {
elog "Download '${PN}.zip' from https://developer.apple.com/security/ or use the following command:"
elog
elog " curl 'https://developer.apple.com/file/?file=security&agree=Yes' -H 'Referer: https://developer.apple.com/security/' -o corecrypto.zip"
elog
elog "Place it into your DISTDIR directory renamed to 'corecrypto-2023.zip'."
}

src_prepare() {
sed -re '1s/(.*)/# \1/' -e '/.*scripts\/code-coverage.cmake.*/d' -i CMakeLists.txt || die
sed -re '/ccsha2\/src\/ccsha256_trng_di\.c/d' -i CoreCryptoSources.cmake || die
cmake_src_prepare
}
8 changes: 8 additions & 0 deletions dev-libs/corecrypto/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Andrew Udvare</name>
</maintainer>
</pkgmetadata>
67 changes: 67 additions & 0 deletions licenses/corecrypto
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
APPLE INC.

CORECRYPTO INTERNAL USE LICENSE AGREEMENT

PLEASE READ THE FOLLOWING CORECRYPTO INTERNAL USE LICENSE AGREEMENT (“AGREEMENT”)
CAREFULLY BEFORE DOWNLOADING OR USING THE APPLE SOFTWARE (AS DEFINED BELOW). THESE
TERMS AND CONDITIONS CONSTITUTE A LEGAL AGREEMENT BETWEEN YOU AND APPLE.

IMPORTANT NOTE: BY DOWNLOADING OR USING THE APPLE SOFTWARE, YOU ARE AGREEING ON YOUR
OWN BEHALF AND/OR ON BEHALF OF YOUR COMPANY OR ORGANIZATION TO THE TERMS OF THIS
AGREEMENT.

1. As used in this Agreement, the term “Apple Software” collectively means and
includes all of the Apple corecrypto materials provided by Apple here, including but
not limited to the Apple corecrypto software, frameworks, libraries, documentation
and other Apple-created materials. In consideration for your agreement to abide by
the following terms, conditioned upon your compliance with these terms and subject to
these terms, Apple grants you, for a period of ninety (90) days from the date you
download the Apple Software, a limited, non-exclusive, non-sublicensable license
under Apple’s copyrights in the Apple Software to make a reasonable number of copies
of, compile, and run the Apple Software internally within your organization only on
devices and computers you own or control, for the sole purpose of verifying the
security characteristics and correct functioning of the Apple Software; provided that
you must retain this notice and the following text and disclaimers with all copies of
the Apple Software that you make. You may not, directly or indirectly, redistribute
the Apple Software or any portions thereof. The Apple Software is only licensed and
intended for use as expressly stated above and may not be used for other purposes or
in other contexts without Apple's prior written permission. Except as expressly
stated in this notice, no other rights or licenses, express or implied, are granted
by Apple herein.

2. The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES
OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING
THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR
PRODUCTS, SYSTEMS, OR SERVICES. APPLE DOES NOT WARRANT THAT THE APPLE SOFTWARE WILL
MEET YOUR REQUIREMENTS, THAT THE OPERATION OF THE APPLE SOFTWARE WILL BE
UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS IN THE APPLE SOFTWARE WILL BE CORRECTED, OR
THAT THE APPLE SOFTWARE WILL BE COMPATIBLE WITH FUTURE APPLE PRODUCTS, SOFTWARE OR
SERVICES. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY APPLE OR AN APPLE
AUTHORIZED REPRESENTATIVE WILL CREATE A WARRANTY.

3. IN NO EVENT SHALL APPLE BE LIABLE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY
WAY OUT OF THE USE, REPRODUCTION, COMPILATION OR OPERATION OF THE APPLE SOFTWARE,
HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

4. This Agreement is effective until terminated. Your rights under this Agreement
will terminate automatically without notice from Apple if you fail to comply with any
term(s) of this Agreement. Upon termination, you agree to cease all use of the Apple
Software and destroy all copies, full or partial, of the Apple Software. This
Agreement constitutes the entire understanding of the parties with respect to the
subject matter contained herein, and supersedes all prior negotiations,
representations, or understandings, written or oral. This Agreement will be governed
and construed in accordance with the laws of the State of California, without regard
to its choice of law rules.

You may report security issues about Apple products to [email protected], as
described here: https://www.apple.com/support/security/. Non-security bugs and
enhancement requests can be made via https://bugreport.apple.com as described here:
https://developer.apple.com/bug-reporting/

EA1833
03/13/2023

0 comments on commit 162116c

Please sign in to comment.