SF.net SVN: gar:[25915] csw/mgar/pkg/lang-java/jss/trunk

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Tue Aug 30 11:49:36 CEST 2016


Revision: 25915
          http://sourceforge.net/p/gar/code/25915
Author:   cgrzemba
Date:     2016-08-30 09:49:36 +0000 (Tue, 30 Aug 2016)
Log Message:
-----------
lang-java/jss/trunk: update recipe for new source repository

Modified Paths:
--------------
    csw/mgar/pkg/lang-java/jss/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/lang-java/jss/trunk/files/0002-set-depth.patch

Modified: csw/mgar/pkg/lang-java/jss/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-java/jss/trunk/Makefile	2016-08-30 06:17:40 UTC (rev 25914)
+++ csw/mgar/pkg/lang-java/jss/trunk/Makefile	2016-08-30 09:49:36 UTC (rev 25915)
@@ -19,31 +19,75 @@
 https://developer.mozilla.org/En/JSS
 endef
 
+VENDOR_URL = http://developer.mozilla.org
+# MASTER_SITES = ftp://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/JSS%5F4%5F3%5F2%5FRTM/
+# MASTER_SITES = http://ftp.mozilla.org/pub/mozilla.org/mozilla.org/mozilla.org/mozilla.org/security/jss/releases/JSS_4_3_2_RTM/
+DISTNAME  = $(NAME)
+HG_REPOS = http://hg.mozilla.org/projects/jss
+DISTFILES += COPYING
 
+# PATCH_FILES += 0002-set.depth.patch
 
-MASTER_SITES = http://ftp.mozilla.org/pub/mozilla.org/mozilla.org/mozilla.org/mozilla.org/security/jss/releases/JSS_4_3_2_RTM
-DISTFILES  = $(NAME)$(MAJOR_VERSION).jar
-DISTFILES += COPYING
-
 PACKAGES = CSWjss4
+CATALOGNAME_CSWjss4 = jss4
 PACKAGING_PLATFORMS += solaris10-sparc
 PACKAGING_PLATFORMS += solaris10-i386
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibnss3
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibplc4
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibnspr4
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibplds4
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibsmime3
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibnssutil3
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibsoftokn3
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibnssdbm3 
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibfreebl3
+RUNTIME_DEP_PKGS_CSWjss4 += CSWlibssl3
+CHECKPKG_OVERRIDES_CSWjss4 += shared-lib-pkgname-mismatch|file=opt/csw/lib/libjss4.so|soname=libjss4.so|pkgname=CSWjss4|expected=CSWlibjss4
+CHECKPKG_OVERRIDES_CSWjss4 += shared-lib-pkgname-mismatch|file=opt/csw/lib/sparcv9/libjss4.so|soname=libjss4.so|pkgname=CSWjss4|expected=CSWlibjss4
+CHECKPKG_OVERRIDES_CSWjss4 += soname-equals-filename|file=/opt/csw/lib/libjss4.so
+CHECKPKG_OVERRIDES_CSWjss4 += soname-equals-filename|file=/opt/csw/lib/sparcv9/libjss4.so
+CHECKPKG_OVERRIDES_CSWjss4 += surplus-dependency|CSWlibfreebl3
+CHECKPKG_OVERRIDES_CSWjss4 += surplus-dependency|CSWlibnssdbm3
+CHECKPKG_OVERRIDES_CSWjss4 += surplus-dependency|CSWlibsoftokn3
 
+# WORKSRC = $(WORKDIR)
+# DISTDIR = mozilla/security/jss
+LICENSE = COPYING
 
-ARCHALL = 1
+BUILD64=1
 
-CATALOGNAME_CSWjss4 = jss4
+JAVA_HOME=/usr/jdk/instances/jdk1.7.0
+NSPR_INCLUDE_DIR=/opt/csw/include/nspr
+NSS_INCLUDE_DIR=/opt/csw/include/nss
+NSPR_LIB_DIR=/opt/csw/lib/$(MM_LIBDIR)
+NSS_LIB_DIR=/opt/csw/lib/$(MM_LIBDIR)
+BUILD_OPT=1
+RELEASE_TREE=$(WORKDIR)/release
+USE_64=$(if $(filter 64,$(MEMORYMODEL)),1,0)
+MM_OBJ=$(if $(filter 64,$(MEMORYMODEL)),_64)
 
-WORKSRC = $(WORKDIR)
-DISTDIR = mozilla/security/jss
-LICENSE = COPYING
+EXTRA_BUILD_EXPORTS += JAVA_HOME
+EXTRA_BUILD_EXPORTS += NSPR_INCLUDE_DIR
+EXTRA_BUILD_EXPORTS += NSS_INCLUDE_DIR
+EXTRA_BUILD_EXPORTS += NSPR_LIB_DIR
+EXTRA_BUILD_EXPORTS += NSS_LIB_DIR
+EXTRA_BUILD_EXPORTS += BUILD_OPT
+EXTRA_BUILD_EXPORTS += USE_64
+EXTRA_INSTALL_EXPORTS += JAVA_HOME
+EXTRA_INSTALL_EXPORTS += NSPR_INCLUDE_DIR
+EXTRA_INSTALL_EXPORTS += NSS_INCLUDE_DIR
+EXTRA_INSTALL_EXPORTS += NSPR_LIB_DIR
+EXTRA_INSTALL_EXPORTS += NSS_LIB_DIR
+EXTRA_INSTALL_EXPORTS += BUILD_OPT
+EXTRA_INSTALL_EXPORTS += RELEASE_TREE
+EXTRA_INSTALL_EXPORTS += USE_64
 
-# JAVA_HOME = /usr/j2sdk1.4.2_17
+EXTRA_BUILD_ENV = PATH=$(PATH):/opt/csw/gnu
 
 CONFIGURE_SCRIPTS =
-BUILD_SCRIPTS = 
+# BUILD_SCRIPTS = jss
 TEST_SCRIPTS =
-INSTALL_SCRIPTS = custom
+# INSTALL_SCRIPTS = custom
 
 include gar/category.mk
 
@@ -52,3 +96,10 @@
 	@gcp -fp $(WORKSRC)/$(CATALOGNAME_CSWjss4).jar $(DESTDIR)$(datadir)/java
 	@$(MAKECOOKIE)
 
+post-install:
+	cd $(WORKSRC) && gmake release $(foreach VAR,$(INSTALL_EXPORTS),$(VAR)="$($(VAR))")
+	@ginstall -d $(DESTDIR)$(datadir)/java
+	@ginstall -d $(DESTDIR)$(libdir)
+	@gcp -fp $(WORKDIR)/dist/release/no-policy/classes/xpclass.jar $(DESTDIR)$(datadir)/java/$(CATALOGNAME_CSWjss4).jar
+	@gcp -fp $(WORKDIR)/dist/release/no-policy/SunOS5.10$(MM_OBJ)_OPT.OBJ/lib/lib$(CATALOGNAME_CSWjss4).so $(DESTDIR)$(libdir)
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/lang-java/jss/trunk/files/0002-set-depth.patch
===================================================================
--- csw/mgar/pkg/lang-java/jss/trunk/files/0002-set-depth.patch	                        (rev 0)
+++ csw/mgar/pkg/lang-java/jss/trunk/files/0002-set-depth.patch	2016-08-30 09:49:36 UTC (rev 25915)
@@ -0,0 +1,52 @@
+--- a/pkg/Makefile
++++ b/pkg/Makefile
+@@ -4,8 +4,8 @@
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ 
+-CORE_DEPTH = ../..
+-DEPTH      = ../..
++CORE_DEPTH = ..
++DEPTH      = ..
+ 
+ include $(CORE_DEPTH)/coreconf/config.mk
+ 
+diff --git a/pkg/solaris/Makefile b/pkg/solaris/Makefile
+index ea022d7..8757bf5 100644
+--- a/pkg/solaris/Makefile
++++ b/pkg/solaris/Makefile
+@@ -9,7 +9,7 @@
+ #ident	"$Id$"
+ #
+ 
+-CORE_DEPTH = ../../..
++CORE_DEPTH = ../..
+ 
+ %: %.ksh
+ 	$(RM) $@
+diff --git a/pkg/solaris/Makefile.com b/pkg/solaris/Makefile.com
+index 6d7d7e5..a296dfa 100644
+--- a/pkg/solaris/Makefile.com
++++ b/pkg/solaris/Makefile.com
+@@ -12,10 +12,10 @@
+ MACH = $(shell mach)
+ 
+ PUBLISH_ROOT = $(DIST)
+-ifeq ($(CORE_DEPTH),../../..)
++ifeq ($(CORE_DEPTH),../..)
+ ROOT = ROOT
+ else
+-ROOT = $(subst ../../../,,$(CORE_DEPTH))/ROOT
++ROOT = $(subst ../../,,$(CORE_DEPTH))/ROOT
+ endif
+ 
+ PKGARCHIVE = $(PUBLISH_ROOT)/pkgarchive
+@@ -24,7 +24,7 @@ FILES = $(DATAFILES) pkginfo
+ 
+ PACKAGE = $(shell basename `pwd`)
+ 
+-PRODUCT_VERSION = $(shell grep JSS_VERSION $(CORE_DEPTH)/jss/org/mozilla/jss/util/jssver.h | sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//')
++PRODUCT_VERSION = $(shell grep JSS_VERSION $(CORE_DEPTH)/org/mozilla/jss/util/jssver.h | sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//')
+ 
+ LN = /usr/bin/ln
+ CP = /usr/bin/cp

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list