Version 1.54 of the Bouncy Castle Crypto APIs.
The FreeBSD Ports Collection already has 1.45 version of the Bouncy Castle and this new port is based on java/bouncycastle. Newer versions are not API-compatible with that older one. Some say they should be given 2.x version numbers. So, this new version comes as distinct port java/bouncycastle15 instead of update for existing java/bouncycastle15 to keep old API version available. This is neccessary dependency for other port updates, e.g. newer version of iText PDF (devel/itext) requires new API of modern Bouncy Castle versions. PR: 211316 Submitted by: Eugen Grosbein <eugen=at=grosbein.net>
This commit is contained in:
parent
7af1dda923
commit
be6a98c4e8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419237
5 changed files with 100 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
SUBDIR += bluej
|
||||
SUBDIR += bootstrap-openjdk
|
||||
SUBDIR += bouncycastle
|
||||
SUBDIR += bouncycastle15
|
||||
SUBDIR += cacao
|
||||
SUBDIR += castor
|
||||
SUBDIR += classpath
|
||||
|
|
68
java/bouncycastle15/Makefile
Normal file
68
java/bouncycastle15/Makefile
Normal file
|
@ -0,0 +1,68 @@
|
|||
# Created by: Eugene Grosbein <ports@grosbein.net>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bouncycastle
|
||||
PORTVERSION= 1.54
|
||||
CATEGORIES= java security
|
||||
MASTER_SITES= http://downloads.bouncycastle.org/java/ \
|
||||
http://polydistortion.net/bc/download/ \
|
||||
http://bouncycastle.gva.es/download/
|
||||
PKGNAMESUFFIX= 15
|
||||
DISTNAME= crypto-${DVERSION}
|
||||
|
||||
MAINTAINER= ports@grosbein.net
|
||||
COMMENT= Cleanroom build of Java Cryptography Extensions
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
BUILD_DEPENDS= ${JAVALIBDIR}/activation.jar:java/jaf \
|
||||
${JAVALIBDIR}/mail.jar:java/javamail \
|
||||
${JAVALIBDIR}/junit.jar:java/junit
|
||||
RUN_DEPENDS= ${JAVALIBDIR}/activation.jar:java/jaf \
|
||||
${JAVALIBDIR}/mail.jar:java/javamail
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
CONFLICTS_INSTALL= bouncycastle-1.4*
|
||||
DVERSION= ${PORTVERSION:S/.//}
|
||||
NO_ARCH= yes
|
||||
CPE_PRODUCT= legion-of-the-bouncy-castle-java-crytography-api
|
||||
CPE_VENDOR= ${PORTNAME}
|
||||
USE_JAVA= yes
|
||||
USES= cpe
|
||||
JAVA_VERSION= 1.6+
|
||||
JDKMVERSION= 1.5
|
||||
JDKNVERSION= 15
|
||||
USE_ANT= yes
|
||||
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
|
||||
MAKE_ARGS= -f ant/jdk${JDKNVERSION}+.xml
|
||||
ALL_TARGET= build-provider build zip-src
|
||||
|
||||
JARS_SRC= bcmail bcpkix bcprov bcpg
|
||||
JARS_DOCS= ${JARS_SRC} bctest
|
||||
JARS= ${JARS_DOCS} bcprov-ext
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
.for jar in ${JARS}
|
||||
${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/jars/${jar}-jdk${JDKNVERSION}on-${DVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${jar}.jar
|
||||
.endfor
|
||||
.for jar in ${JARS_SRC}
|
||||
${INSTALL_DATA} ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}on-${DVERSION}/src.zip \
|
||||
${STAGEDIR}${DATADIR}/${jar}-src.zip
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/jars/bcprov-jdk${JDKNVERSION}on-${DVERSION}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/bcprov.jar
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
|
||||
.for jar in ${JARS_DOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/${jar}
|
||||
@cd ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}/${jar}-jdk${JDKNVERSION}on-${DVERSION}/docs/ && \
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${jar}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
3
java/bouncycastle15/distinfo
Normal file
3
java/bouncycastle15/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1467740611
|
||||
SHA256 (crypto-154.tar.gz) = b1371a91d1a87ad801ed7d7764a03310ad870e87bc1f75acf4b8feddc6eb0f98
|
||||
SIZE (crypto-154.tar.gz) = 123800176
|
18
java/bouncycastle15/pkg-descr
Normal file
18
java/bouncycastle15/pkg-descr
Normal file
|
@ -0,0 +1,18 @@
|
|||
The Bouncy Castle Crypto APIs consist of the following:
|
||||
|
||||
. A lightweight cryptography API in Java.
|
||||
. A provider for the JCE and JCA.
|
||||
. A clean room implementation of the JCE 1.2.1.
|
||||
. A library for reading and writing encoded ASN.1 objects.
|
||||
. Generators for Version 1 and Version 3 X.509 certificates, Version 2 CRLs,
|
||||
and PKCS12 files.
|
||||
. Generators for Version 2 X.509 attribute certificates.
|
||||
. Generators/Processors for S/MIME and CMS (PKCS7).
|
||||
. Generators/Processors for OCSP (RFC 2560).
|
||||
. Generators/Processors for TSP (RFC 3161).
|
||||
. Generators/Processors for OpenPGP (RFC 2440).
|
||||
. A signed jar version suitable for JDK 1.4/1.5 and the Sun JCE.
|
||||
|
||||
It's distributed under a modified X license.
|
||||
|
||||
WWW: http://www.bouncycastle.org/
|
10
java/bouncycastle15/pkg-plist
Normal file
10
java/bouncycastle15/pkg-plist
Normal file
|
@ -0,0 +1,10 @@
|
|||
%%JAVAJARDIR%%/bcmail.jar
|
||||
%%JAVAJARDIR%%/bcpg.jar
|
||||
%%JAVAJARDIR%%/bcpkix.jar
|
||||
%%JAVAJARDIR%%/bcprov.jar
|
||||
%%JAVAJARDIR%%/bcprov-ext.jar
|
||||
%%JAVAJARDIR%%/bctest.jar
|
||||
%%DATADIR%%/bcmail-src.zip
|
||||
%%DATADIR%%/bcpg-src.zip
|
||||
%%DATADIR%%/bcpkix-src.zip
|
||||
%%DATADIR%%/bcprov-src.zip
|
Loading…
Reference in a new issue