diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2005-12-17 13:41:32 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2005-12-17 13:41:32 +0000 |
commit | d4621214f017e465fd69b5261c929d695a168e04 (patch) | |
tree | 8857f653cb44c45296d2724265edcf5344eaba54 /security/jce_policy14 | |
parent | 3833f065b25f7118d6de80e0e0fbb58745980266 (diff) | |
download | ports-d4621214f017e465fd69b5261c929d695a168e04.tar.gz ports-d4621214f017e465fd69b5261c929d695a168e04.zip |
Notes
Diffstat (limited to 'security/jce_policy14')
-rw-r--r-- | security/jce_policy14/Makefile | 14 | ||||
-rw-r--r-- | security/jce_policy14/distinfo | 1 | ||||
-rw-r--r-- | security/jce_policy14/pkg-plist | 6 |
3 files changed, 15 insertions, 6 deletions
diff --git a/security/jce_policy14/Makefile b/security/jce_policy14/Makefile index eeceaeaf12a0..7774622c91be 100644 --- a/security/jce_policy14/Makefile +++ b/security/jce_policy14/Makefile @@ -7,6 +7,7 @@ PORTNAME= jce_policy PORTVERSION= 1.4.2 +PORTREVISION= 1 CATEGORIES= security java MASTER_SITES= #http://java.sun.com/products/jce/index-14.html DISTNAME= ${PORTNAME}-${PORTVERSION:C/\./_/g} @@ -20,17 +21,18 @@ JAVA_VERSION= 1.4 NO_BUILD= yes WRKSRC= ${WRKDIR}/jce -PLIST_FILES= ${JAVA_HOME:S,${PREFIX}/,,}/lib/security/local_policy.jar \ - ${JAVA_HOME:S,${PREFIX}/,,}/lib/security/US_export_policy.jar \ - "@unexec rmdir ${JAVA_HOME}/lib/security 2>/dev/null || true" +PLIST_SUB+= JAVA_HOME=${JAVA_HOME:S,${PREFIX}/,,} .if !exists(${DISTDIR}/${EXTRACT_ONLY}) && !defined(PACKAGE_BUILDING) IGNORE= Please get jce_policy-1_4_2.zip from http://java.sun.com/products/jce/index-14.html .endif do-install: - @[ -d ${JAVA_HOME}/lib/security ] || ${MKDIR} ${JAVA_HOME}/lib/security - ${INSTALL_DATA} ${WRKSRC}/local_policy.jar ${JAVA_HOME}/lib/security - ${INSTALL_DATA} ${WRKSRC}/US_export_policy.jar ${JAVA_HOME}/lib/security + @${MV} ${JAVA_HOME}/jre/lib/security/local_policy.jar \ + ${JAVA_HOME}/jre/lib/security/local_policy.jar.orig + @${MV} ${JAVA_HOME}/jre/lib/security/US_export_policy.jar \ + ${JAVA_HOME}/jre/lib/security/US_export_policy.jar.orig + @${INSTALL_DATA} ${WRKSRC}/local_policy.jar ${JAVA_HOME}/jre/lib/security + @${INSTALL_DATA} ${WRKSRC}/US_export_policy.jar ${JAVA_HOME}/jre/lib/security .include <bsd.port.mk> diff --git a/security/jce_policy14/distinfo b/security/jce_policy14/distinfo index fa43e0262556..630e3b17cec8 100644 --- a/security/jce_policy14/distinfo +++ b/security/jce_policy14/distinfo @@ -1,2 +1,3 @@ MD5 (jce_policy-1_4_2.zip) = ff961c5f5326191c5ac2e4624d756f7e +SHA256 (jce_policy-1_4_2.zip) = 7bf6d683602686321affc0071ad2fc3890c19cf5bb5cc16a963052e17588c097 SIZE (jce_policy-1_4_2.zip) = 12195 diff --git a/security/jce_policy14/pkg-plist b/security/jce_policy14/pkg-plist new file mode 100644 index 000000000000..98a49c0102fe --- /dev/null +++ b/security/jce_policy14/pkg-plist @@ -0,0 +1,6 @@ +@exec mv %D/%%JAVA_HOME%%/jre/lib/security/local_policy.jar %D/%%JAVA_HOME%%/jre/lib/security/local_policy.jar.orig +%%JAVA_HOME%%/jre/lib/security/local_policy.jar +@unexec mv %B/%f.orig %B/%f +@exec mv %D/%%JAVA_HOME%%/jre/lib/security/US_export_policy.jar %D/%%JAVA_HOME%%/jre/lib/security/US_export_policy.jar.orig +%%JAVA_HOME%%/jre/lib/security/US_export_policy.jar +@unexec mv %B/%f.orig %B/%f |