blob: a8e76ef0b856118bdec008266d9f03890c50ef75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jce-bin/sun-jce-bin-1.5.0.ebuild,v 1.7 2008/06/15 20:50:15 serkan Exp $
jcefile="jce_policy-1_5_0.zip"
S="${WORKDIR}/jdk${MY_PVL}"
DESCRIPTION="Sun's J2SE Cryptographic extensions, version ${PV}"
HOMEPAGE="http://java.sun.com/j2se/1.5.0/"
SRC_URI="${jcefile}"
SLOT="1.5"
LICENSE="sun-bcla-java-vm"
KEYWORDS="amd64 x86 ~x86-fbsd"
RESTRICT="fetch"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND=""
FETCH_JCE="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jce_policy-1.5.0-oth-JPR@CDS-CDS_Developer"
pkg_nofetch() {
einfo "Please download ${jcefile} from:"
einfo ${FETCH_JCE}
einfo "Java(TM) Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files"
einfo "and move it to ${DISTDIR}"
}
src_unpack() {
if [ ! -r "${DISTDIR}"/${jcefile} ]; then
die "cannot read ${jcefile}. Please check the permission and try again."
fi
}
src_install() {
dodir /opt/${P}/jre/lib/security
cd "${D}"/opt/${P}/jre/lib/security
unzip "${DISTDIR}"/${jcefile} || die "failed to unzip jce"
mv jce unlimited-jce
dodir /opt/${P}/jre/lib/security/strong-jce
}
|