45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Copyright 1999-2011 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.6.0.ebuild,v 1.5 2011/09/08 12:02:23 caster Exp $
|
|
|
|
jcefile="jce_policy-6.zip"
|
|
|
|
DESCRIPTION="Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files ${PV}"
|
|
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/overview/index-jsp-136246.html"
|
|
SRC_URI="${jcefile}"
|
|
SLOT="1.6"
|
|
LICENSE="Oracle-BCLA-JavaSE"
|
|
KEYWORDS="amd64 x86 ~x86-fbsd"
|
|
RESTRICT="fetch"
|
|
IUSE=""
|
|
|
|
DEPEND="app-arch/unzip"
|
|
RDEPEND=""
|
|
|
|
S="${WORKDIR}/jce"
|
|
|
|
FETCH_JCE="http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html"
|
|
|
|
pkg_nofetch() {
|
|
einfo "Please download ${jcefile} from:"
|
|
einfo ${FETCH_JCE}
|
|
einfo "(JCE Unlimited Strength Jurisdiction Policy Files 6)"
|
|
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
|
|
|
|
unpack ${A}
|
|
}
|
|
|
|
src_install() {
|
|
dodir /opt/${P}/jre/lib/security/unlimited-jce
|
|
|
|
insinto /opt/${P}/jre/lib/security/unlimited-jce
|
|
doins *.jar
|
|
dodoc README.txt
|
|
dohtml COPYRIGHT.html
|
|
}
|