summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/jss
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/jss')
-rw-r--r--dev-java/jss/Manifest2
-rw-r--r--dev-java/jss/files/jss-3.4-target_source.patch12
-rw-r--r--dev-java/jss/files/jss-4.2.5-use_pkg-config.patch25
-rw-r--r--dev-java/jss/files/jss-4.3-cflags.patch11
-rw-r--r--dev-java/jss/files/jss-4.3-ldflags.patch14
-rw-r--r--dev-java/jss/files/jss-4.3-secitem.patch154
-rw-r--r--dev-java/jss/jss-4.2.5.ebuild68
-rw-r--r--dev-java/jss/jss-4.3-r1.ebuild101
-rw-r--r--dev-java/jss/jss-4.3.ebuild77
-rw-r--r--dev-java/jss/metadata.xml14
10 files changed, 478 insertions, 0 deletions
diff --git a/dev-java/jss/Manifest b/dev-java/jss/Manifest
new file mode 100644
index 000000000000..3d4420cc70ce
--- /dev/null
+++ b/dev-java/jss/Manifest
@@ -0,0 +1,2 @@
+DIST jss-4.2.5.tar.bz2 390376 SHA256 97fe53b97653a85eadf3b22e5cf9205de7acc0abd694e90216b4475701072f93 SHA512 6cf8f8cf7b9f39c18d8788887a002c3cb1165e40a8f9dba0675edeab70af446e292857901f6cdfd1b04b13c43c2c76229c561d2411a046580b7852dd4c1804cf WHIRLPOOL 357e47faf4443cbbf6672a05d9c368c7189a11a0495c61a606432e4c6f463797597835f3bfd0bd1ff2f438d5ab7fbaecba0abd3b18b7a6523e663389f85aac70
+DIST jss-4.3.tar.bz2 421731 SHA256 e82cdcadd6d7acd0d5f9274134dd5a88f26d7e47e7d9d8b059ce68ca413fb54e SHA512 b1ae0f2dc2ca90a30caca97e4e89a471f4d0a0483dd384f242989de8a21fdd3c99dc4c452e5ef7e23bf3de745e5868f276528f76afc8aef7a9e7fe99722e0b4f WHIRLPOOL 77773968499aa7c88ed14ae4ab899a45935d5a6c4a0b6d455428f62e81d24bd379324726bda61e3c84521040cc3439ae2a5d167f32006d6dc97ba2b3ec923f5f
diff --git a/dev-java/jss/files/jss-3.4-target_source.patch b/dev-java/jss/files/jss-3.4-target_source.patch
new file mode 100644
index 000000000000..e024a0b8b622
--- /dev/null
+++ b/dev-java/jss/files/jss-3.4-target_source.patch
@@ -0,0 +1,12 @@
+diff -Nru jss-3.4-src/mozilla/security/jss/build_java.pl jss-3.4-src.patched/mozilla/security/jss/build_java.pl
+--- jss-3.4-src/mozilla/security/jss/build_java.pl 2002-10-17 02:33:29.000000000 +0200
++++ jss-3.4-src.patched/mozilla/security/jss/build_java.pl 2006-08-15 00:53:05.000000000 +0200
+@@ -190,7 +190,7 @@
+ #
+ if( scalar(@source_list) > 0 ) {
+ ensure_dir_exists($class_dir);
+- print_do("$javac $javac_opt_flag -sourcepath . -d $class_dir " .
++ print_do("$javac $ENV{JAVA_GENTOO_OPTS} $javac_opt_flag -sourcepath . -d $class_dir " .
+ "$classpath " . join(" ",@source_list));
+ }
+
diff --git a/dev-java/jss/files/jss-4.2.5-use_pkg-config.patch b/dev-java/jss/files/jss-4.2.5-use_pkg-config.patch
new file mode 100644
index 000000000000..a2c3a3e5ad93
--- /dev/null
+++ b/dev-java/jss/files/jss-4.2.5-use_pkg-config.patch
@@ -0,0 +1,25 @@
+Submitted By: Mario Fetka (mario-fetka at gmx dot at)
+Date: 2007-10-06
+Initial Package Version: 4.2.5
+Origin: me
+Upstream Status: #392775 UNCONFIRMED
+Description: this patch adds pkgconfig support to jss coreconf
+!!!! no check for NSS_PKGCONFIG NSPR_PKGCONFIG at the moment !!!!
+
+diff -Naur mozilla.orig/security/coreconf/location.mk mozilla/security/coreconf/location.mk
+--- mozilla.orig/security/coreconf/location.mk 2006-02-27 21:18:31.000000000 +0000
++++ mozilla/security/coreconf/location.mk 2007-10-06 10:10:17.000000000 +0000
+@@ -67,6 +67,13 @@
+
+ GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
+
++ifdef USE_PKGCONFIG
++ NSPR_INCLUDE_DIR = `pkg-config --variable=includedir $(NSPR_PKGCONFIG)`
++ NSPR_LIB_DIR = `pkg-config --variable=libdir $(NSPR_PKGCONFIG)`
++ NSS_INCLUDE_DIR = `pkg-config --variable=includedir $(NSS_PKGCONFIG)`
++ NSS_LIB_DIR = `pkg-config --variable=libdir $(NSS_PKGCONFIG)`
++endif
++
+ ifdef NSPR_INCLUDE_DIR
+ INCLUDES += -I$(NSPR_INCLUDE_DIR)
+ endif
diff --git a/dev-java/jss/files/jss-4.3-cflags.patch b/dev-java/jss/files/jss-4.3-cflags.patch
new file mode 100644
index 000000000000..3298a2765fc1
--- /dev/null
+++ b/dev-java/jss/files/jss-4.3-cflags.patch
@@ -0,0 +1,11 @@
+--- security/coreconf/command.mk 2007-10-23 23:55:00.000000000 +0200
++++ security/coreconf/command.mk.b 2013-06-05 11:15:31.092383902 +0200
+@@ -45,7 +45,7 @@
+ CCF = $(CC) $(CFLAGS)
+ LINK_DLL = $(LINK) $(OS_DLLFLAGS) $(DLLFLAGS)
+ LINK_EXE = $(LINK) $(OS_LFLAGS) $(LFLAGS)
+-CFLAGS = $(OPTIMIZER) $(OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \
++CFLAGS += $(OPTIMIZER) $(OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \
+ $(XCFLAGS)
+ PERL = perl
+ RANLIB = echo
diff --git a/dev-java/jss/files/jss-4.3-ldflags.patch b/dev-java/jss/files/jss-4.3-ldflags.patch
new file mode 100644
index 000000000000..2706da134464
--- /dev/null
+++ b/dev-java/jss/files/jss-4.3-ldflags.patch
@@ -0,0 +1,14 @@
+https://bugzilla.mozilla.org/show_bug.cgi?id=583666
+https://bugs.gentoo.org/show_bug.cgi?id=327619
+
+--- security/coreconf/Linux.mk
++++ security/coreconf/Linux.mk
+@@ -174,7 +174,7 @@
+ ARCH = linux
+
+ DSO_CFLAGS = -fPIC
+-DSO_LDOPTS = -shared $(ARCHFLAG) -Wl,-z,defs
++DSO_LDOPTS = $(LDFLAGS) -shared $(ARCHFLAG) -Wl,-z,defs
+ DSO_LDFLAGS =
+ LDFLAGS += $(ARCHFLAG)
+
diff --git a/dev-java/jss/files/jss-4.3-secitem.patch b/dev-java/jss/files/jss-4.3-secitem.patch
new file mode 100644
index 000000000000..d9e7da394075
--- /dev/null
+++ b/dev-java/jss/files/jss-4.3-secitem.patch
@@ -0,0 +1,154 @@
+--- a/security/jss/org/mozilla/jss/CryptoManager.c 2008-05-22 06:28:09.000000000 +0200
++++ b/security/jss/org/mozilla/jss/CryptoManager.c 2013-06-05 11:09:58.649080012 +0200
+@@ -35,7 +35,7 @@
+ * ***** END LICENSE BLOCK ***** */
+ #include "_jni/org_mozilla_jss_CryptoManager.h"
+
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include <secmod.h>
+ #include <cert.h>
+ #include <certt.h>
+--- a/security/jss/org/mozilla/jss/SecretDecoderRing/KeyManager.c 2003-12-19 20:36:30.000000000 +0100
++++ b/security/jss/org/mozilla/jss/SecretDecoderRing/KeyManager.c 2013-06-05 11:09:58.585746684 +0200
+@@ -36,7 +36,7 @@
+
+ #include "_jni/org_mozilla_jss_SecretDecoderRing_KeyManager.h"
+ #include <nspr.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include <jss_exceptions.h>
+ #include <jssutil.h>
+ #include <pk11func.h>
+--- a/security/jss/org/mozilla/jss/crypto/PQGParams.c 2004-04-25 17:02:21.000000000 +0200
++++ b/security/jss/org/mozilla/jss/crypto/PQGParams.c 2013-06-05 11:09:58.589080017 +0200
+@@ -39,7 +39,7 @@
+ #include <nspr.h>
+
+ #include <plarena.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include <secoidt.h>
+ #include <keyt.h> /* for PQGParams */
+ #include <pk11pqg.h>
+--- a/security/jss/org/mozilla/jss/crypto/SecretDecoderRing.c 2002-01-08 20:38:46.000000000 +0100
++++ b/security/jss/org/mozilla/jss/crypto/SecretDecoderRing.c 2013-06-05 11:09:58.585746684 +0200
+@@ -36,7 +36,7 @@
+
+ #include "_jni/org_mozilla_jss_crypto_SecretDecoderRing.h"
+ #include <nspr.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include <pk11sdr.h>
+ #include <jss_exceptions.h>
+ #include <jssutil.h>
+--- a/security/jss/org/mozilla/jss/pkcs11/PK11Cipher.c 2004-04-25 17:02:22.000000000 +0200
++++ b/security/jss/org/mozilla/jss/pkcs11/PK11Cipher.c 2013-06-05 11:09:58.632413347 +0200
+@@ -40,7 +40,7 @@
+ #include <plarena.h>
+ #include <seccomon.h>
+ #include <pk11func.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+
+ /* JSS includes */
+ #include <java_ids.h>
+--- a/security/jss/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c 2006-02-23 02:21:42.000000000 +0100
++++ b/security/jss/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c 2013-06-05 11:09:58.595746684 +0200
+@@ -40,7 +40,7 @@
+ #include <pk11pqg.h>
+ #include <nspr.h>
+ #include <key.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+
+ #include <jssutil.h>
+ #include <pk11util.h>
+--- a/security/jss/org/mozilla/jss/pkcs11/PK11KeyWrapper.c 2006-02-23 02:21:42.000000000 +0100
++++ b/security/jss/org/mozilla/jss/pkcs11/PK11KeyWrapper.c 2013-06-05 11:09:58.629080014 +0200
+@@ -40,7 +40,7 @@
+ #include <plarena.h>
+ #include <seccomon.h>
+ #include <pk11func.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include <keyt.h>
+
+ /* JSS includes */
+--- a/security/jss/org/mozilla/jss/pkcs11/PK11MessageDigest.c 2004-04-25 17:02:22.000000000 +0200
++++ b/security/jss/org/mozilla/jss/pkcs11/PK11MessageDigest.c 2013-06-05 11:09:58.609080016 +0200
+@@ -40,7 +40,7 @@
+ #include <plarena.h>
+ #include <seccomon.h>
+ #include <pk11func.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+
+ /* JSS includes */
+ #include <java_ids.h>
+--- a/security/jss/org/mozilla/jss/pkcs11/PK11PrivKey.c 2006-04-25 03:26:42.000000000 +0200
++++ b/security/jss/org/mozilla/jss/pkcs11/PK11PrivKey.c 2013-06-05 11:09:58.609080016 +0200
+@@ -43,7 +43,7 @@
+ #include <secerr.h>
+ #include <nspr.h>
+ #include <key.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+
+ #include <jss_bigint.h>
+ #include <jssutil.h>
+--- a/security/jss/org/mozilla/jss/pkcs11/PK11Signature.c 2004-04-25 17:02:22.000000000 +0200
++++ b/security/jss/org/mozilla/jss/pkcs11/PK11Signature.c 2013-06-05 11:09:58.605746683 +0200
+@@ -35,7 +35,7 @@
+ * ***** END LICENSE BLOCK ***** */
+
+ #include <nspr.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include <secoidt.h>
+ #include <secmodt.h>
+ #include <pk11func.h>
+--- a/security/jss/org/mozilla/jss/pkcs11/PK11Token.c 2007-11-10 01:37:57.000000000 +0100
++++ b/security/jss/org/mozilla/jss/pkcs11/PK11Token.c 2013-06-05 11:09:58.622413348 +0200
+@@ -53,7 +53,7 @@
+ #include <jss_bigint.h>
+ #include <Algorithm.h>
+
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include "java_ids.h"
+
+ #include "pk11util.h"
+--- a/security/jss/org/mozilla/jss/ssl/callbacks.c 2004-09-03 20:32:03.000000000 +0200
++++ b/security/jss/org/mozilla/jss/ssl/callbacks.c 2013-06-05 11:09:58.565746686 +0200
+@@ -39,7 +39,7 @@
+ #include <nspr.h>
+ #include <java_ids.h>
+ #include <jss_exceptions.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include <jssutil.h>
+ #include <certt.h>
+ #include <keythi.h>
+--- a/security/jss/org/mozilla/jss/util/jssutil.c 2004-04-25 17:02:29.000000000 +0200
++++ b/security/jss/org/mozilla/jss/util/jssutil.c 2013-06-05 11:09:58.579080018 +0200
+@@ -38,7 +38,7 @@
+ #include <nspr.h>
+ #include <plstr.h>
+ #include <seccomon.h>
+-#include <secitem.h>
++#include <nss/secitem.h>
+ #include "jssutil.h"
+ #include "jss_bigint.h"
+ #include "jss_exceptions.h"
+--- a/security/jss/org/mozilla/jss/util/jssutil.h 2004-04-25 17:02:29.000000000 +0200
++++ b/security/jss/org/mozilla/jss/util/jssutil.h 2013-06-05 11:09:49.829080794 +0200
+@@ -39,7 +39,7 @@
+ /* Need to include these first.
+ * #include <nspr.h>
+ * #include <jni.h>
+- * #include <secitem.h>
++ * #include <nss/secitem.h>
+ */
+
+ PR_BEGIN_EXTERN_C
diff --git a/dev-java/jss/jss-4.2.5.ebuild b/dev-java/jss/jss-4.2.5.ebuild
new file mode 100644
index 000000000000..ca75125748fb
--- /dev/null
+++ b/dev-java/jss/jss-4.2.5.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit base java-pkg-2 versionator
+
+RTM_NAME="JSS_${PV//./_}_RTM"
+DESCRIPTION="Network Security Services for Java (JSS)"
+HOMEPAGE="http://www.mozilla.org/projects/security/pki/jss/"
+# To prepare this tarball
+# cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \
+# -r JSS_4_2_RTM mozilla/security/corefonf
+# cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \
+# -r JSS_4_2_RTM mozilla/security/jss
+# tar cvjf jss-4.2.tar.bz2 mozilla
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="MPL-1.1"
+SLOT="3.4"
+KEYWORDS="amd64 x86"
+IUSE="doc examples source"
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-libs/nspr-4.3
+ >=dev-libs/nss-3.9.2"
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}
+ app-arch/zip
+ virtual/pkgconfig
+ >=sys-apps/sed-4"
+
+S=${WORKDIR}/mozilla
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.4-target_source.patch"
+ "${FILESDIR}/${PN}-4.2.5-use_pkg-config.patch"
+)
+
+src_compile() {
+ export JAVA_GENTOO_OPTS="-target $(java-pkg_get-target) -source $(java-pkg_get-source)"
+ use amd64 && export USE_64=1
+ cd "${S}/security/coreconf" || die
+ emake -j1 BUILD_OPT=1 || die "coreconf make failed"
+
+ cd "${S}/security/jss" || die
+ emake -j1 BUILD_OPT=1 USE_PKGCONFIG=1 NSS_PKGCONFIG=nss NSPR_PKGCONFIG=nspr || die "jss make failed"
+ if use doc; then
+ emake -j1 BUILD_OPT=1 javadoc || die "failed to create javadocs"
+ fi
+}
+
+# Investigate why this fails
+RESTRICT="test"
+
+src_test() {
+ BUILD_OPT=1 perl security/jss/org/mozilla/jss/tests/all.pl dist \
+ "${S}"/dist/Linux*.OBJ/
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+ # Use this instead of the one in dist because it is a symlink
+ # and doso handles symlinks by just symlinking to the original
+ java-pkg_doso ./security/${PN}/lib/*/*.so
+ use doc && java-pkg_dojavadoc dist/jssdoc
+ use source && java-pkg_dosrc ./security/jss/org
+ use examples && java-pkg_doexamples ./security/jss/samples
+}
diff --git a/dev-java/jss/jss-4.3-r1.ebuild b/dev-java/jss/jss-4.3-r1.ebuild
new file mode 100644
index 000000000000..846e085a58c5
--- /dev/null
+++ b/dev-java/jss/jss-4.3-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit base java-pkg-2 linux-info versionator
+
+RTM_NAME="JSS_${PV//./_}_RTM"
+
+DESCRIPTION="Network Security Services for Java (JSS)"
+HOMEPAGE="http://www.mozilla.org/projects/security/pki/jss/"
+# To prepare this tarball
+# cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \
+# -r JSS_4_3_RTM mozilla/security/coreconf
+# cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \
+# -r JSS_4_3_RTM mozilla/security/jss
+# tar cvjf jss-4.3.tar.bz2 mozilla
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="MPL-1.1"
+SLOT="3.4"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND=">=dev-libs/nspr-4.7
+ >=dev-libs/nss-3.12"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/zip
+ virtual/pkgconfig
+ ${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.4
+ ${CDEPEND}"
+
+S="${WORKDIR}/mozilla"
+
+java_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.4-target_source.patch
+ epatch "${FILESDIR}"/${PN}-4.2.5-use_pkg-config.patch
+ epatch "${FILESDIR}"/${P}-cflags.patch
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ epatch "${FILESDIR}"/${P}-secitem.patch
+}
+
+# See bug 539100.
+pkg_setup() {
+ linux-info_pkg_setup
+ java-pkg-2_pkg_setup
+}
+
+src_compile() {
+ export JAVA_GENTOO_OPTS="-source $(java-pkg_get-source) -target $(java-pkg_get-target)"
+
+ use amd64 && export USE_64=1
+
+ cd "${S}/security/coreconf" || die
+
+ # Hotfix for kernel 3.x #379283
+ get_running_version || die "Failed to determine kernel version"
+ if [[ ${KV_MAJOR} -ge 3 ]]; then
+ cp Linux2.6.mk Linux${KV_MAJOR}.${KV_MINOR}.mk || die
+ fi
+
+ emake -j1 BUILD_OPT=1
+
+ cd "${S}/security/jss" || die
+ emake -j1 BUILD_OPT=1 USE_PKGCONFIG=1 NSS_PKGCONFIG=nss NSPR_PKGCONFIG=nspr
+
+ if use doc; then
+ emake -j1 BUILD_OPT=1 javadoc
+ fi
+}
+
+# Investigate why this fails.
+#
+# cp: cannot stat ‘/var/tmp/portage/dev-java/jss-4.3-r1/work/mozilla/dist/Linux3.8_x86_64_glibc_PTH_64_OPT.OBJ//lib/*nssckbi*’: No such file or directory
+# Failed to copy builtins library at security/jss/org/mozilla/jss/tests/all.pl line 453.
+#
+# There is indeed no nssckbi file, investigation needed if that file can be
+# generated or whether we can remove the broken test; possibly inform upstream.
+RESTRICT="test"
+
+src_test() {
+ BUILD_OPT=1 perl security/jss/org/mozilla/jss/tests/all.pl dist \
+ "${S}"/dist/Linux*.OBJ/
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+
+ # Use this instead of the one in dist because it is a symlink
+ # and doso handles symlinks by just symlinking to the original
+ java-pkg_doso ./security/${PN}/lib/*/*.so
+
+ use doc && java-pkg_dojavadoc dist/jssdoc
+ use source && java-pkg_dosrc ./security/jss/org
+ use examples && java-pkg_doexamples ./security/jss/samples
+}
diff --git a/dev-java/jss/jss-4.3.ebuild b/dev-java/jss/jss-4.3.ebuild
new file mode 100644
index 000000000000..e66e6fd1e265
--- /dev/null
+++ b/dev-java/jss/jss-4.3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit base java-pkg-2 linux-info versionator
+
+RTM_NAME="JSS_${PV//./_}_RTM"
+DESCRIPTION="Network Security Services for Java (JSS)"
+HOMEPAGE="http://www.mozilla.org/projects/security/pki/jss/"
+# To prepare this tarball
+# cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \
+# -r JSS_4_3_RTM mozilla/security/coreconf
+# cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \
+# -r JSS_4_3_RTM mozilla/security/jss
+# tar cvjf jss-4.3.tar.bz2 mozilla
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="MPL-1.1"
+SLOT="3.4"
+KEYWORDS="amd64 x86"
+IUSE="doc examples source"
+
+RDEPEND=">=dev-libs/nspr-4.7
+ >=dev-libs/nss-3.12"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/zip
+ virtual/pkgconfig
+ >=sys-apps/sed-4
+ ${RDEPEND}"
+RDEPEND=">=virtual/jre-1.4
+ ${RDEPEND}"
+
+S=${WORKDIR}/mozilla
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.4-target_source.patch"
+ "${FILESDIR}/${PN}-4.2.5-use_pkg-config.patch"
+ "${FILESDIR}/${P}-ldflags.patch"
+)
+
+src_compile() {
+ export JAVA_GENTOO_OPTS="-target $(java-pkg_get-target) -source $(java-pkg_get-source)"
+ use amd64 && export USE_64=1
+ cd "${S}/security/coreconf" || die
+
+ # Hotfix for kernel 3.x #379283
+ get_running_version || die "Failed to determine kernel version"
+ if [[ ${KV_MAJOR} -ge 3 ]]; then
+ cp Linux2.6.mk Linux${KV_MAJOR}.${KV_MINOR}.mk || die
+ fi
+
+ emake -j1 BUILD_OPT=1 || die "coreconf make failed"
+
+ cd "${S}/security/jss" || die
+ emake -j1 BUILD_OPT=1 USE_PKGCONFIG=1 NSS_PKGCONFIG=nss NSPR_PKGCONFIG=nspr || die "jss make failed"
+ if use doc; then
+ emake -j1 BUILD_OPT=1 javadoc || die "failed to create javadocs"
+ fi
+}
+
+# Investigate why this fails
+RESTRICT="test"
+
+src_test() {
+ BUILD_OPT=1 perl security/jss/org/mozilla/jss/tests/all.pl dist \
+ "${S}"/dist/Linux*.OBJ/
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+ # Use this instead of the one in dist because it is a symlink
+ # and doso handles symlinks by just symlinking to the original
+ java-pkg_doso ./security/${PN}/lib/*/*.so
+ use doc && java-pkg_dojavadoc dist/jssdoc
+ use source && java-pkg_dosrc ./security/jss/org
+ use examples && java-pkg_doexamples ./security/jss/samples
+}
diff --git a/dev-java/jss/metadata.xml b/dev-java/jss/metadata.xml
new file mode 100644
index 000000000000..6b82ef4099b3
--- /dev/null
+++ b/dev-java/jss/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+
+Network Security Services for Java (JSS) is a Java interface to NSS. It supports
+most of the security standards and encryption technologies supported by NSS. JSS
+also provides a pure Java interface for ASN.1 types and BER/DER encoding.
+
+</longdescription>
+</pkgmetadata>