зеркало из https://github.com/mozilla/gecko-dev.git
238319 : Sun packaging changes
This commit is contained in:
Родитель
699ae13bee
Коммит
e23dc68c35
|
@ -83,11 +83,6 @@ include rules.mk
|
|||
build_coreconf:
|
||||
cd $(CORE_DEPTH)/coreconf ; $(MAKE)
|
||||
|
||||
ifeq ($(OS_ARCH),SunOS)
|
||||
solarispkg::
|
||||
@echo Making Solaris packages.
|
||||
rm -rf pkg/$(OBJDIR)
|
||||
cp -r pkg/solaris pkg/$(OBJDIR)
|
||||
$(MAKE) -C pkg/$(OBJDIR) publish
|
||||
endif
|
||||
package:
|
||||
$(MAKE) -C pkg publish
|
||||
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
#! gmake
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Netscape security libraries.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1994-2000 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the
|
||||
# terms of the GNU General Public License Version 2 or later (the
|
||||
# "GPL"), in which case the provisions of the GPL are applicable
|
||||
# instead of those above. If you wish to allow use of your
|
||||
# version of this file only under the terms of the GPL and not to
|
||||
# allow others to use your version of this file under the MPL,
|
||||
# indicate your decision by deleting the provisions above and
|
||||
# replace them with the notice and other provisions required by
|
||||
# the GPL. If you do not delete the provisions above, a recipient
|
||||
# may use your version of this file under either the MPL or the
|
||||
# GPL.
|
||||
#
|
||||
|
||||
CORE_DEPTH = ../..
|
||||
DEPTH = ../..
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/config.mk
|
||||
|
||||
publish:
|
||||
ifeq ($(OS_TARGET),Linux)
|
||||
rm -rf $(OBJDIR)
|
||||
cp -r linux $(OBJDIR)
|
||||
$(MAKE) -C $(OBJDIR) publish
|
||||
endif
|
||||
ifeq ($(OS_TARGET),SunOS)
|
||||
rm -rf $(OBJDIR)
|
||||
cp -r solaris $(OBJDIR)
|
||||
$(MAKE) -C $(OBJDIR) publish
|
||||
endif
|
||||
|
||||
clean::
|
||||
rm -rf $(OBJDIR)
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/rules.mk
|
|
@ -0,0 +1,67 @@
|
|||
#
|
||||
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
#ident "$Id: Makefile,v 1.2 2004/05/13 07:12:59 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
|
||||
CORE_DEPTH = ../../..
|
||||
|
||||
NAME = sun-jss
|
||||
RELEASE = 1
|
||||
VERSION = `grep JSS_VERSION $(CORE_DEPTH)/jss/org/mozilla/jss/util/jssver.h \
|
||||
| sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//'`
|
||||
PWD = `pwd`
|
||||
BUILDROOT = $(PWD)\/$(NAME)-root
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/config.mk
|
||||
|
||||
publish:
|
||||
$(MAKE) clean
|
||||
mkdir -p SOURCES SRPMS RPMS BUILD
|
||||
mkdir -p opt/sun/private/lib
|
||||
find $(CORE_DEPTH)/../dist/$(OBJDIR)/lib -type l \
|
||||
\( -name "*jss*.so" \) \
|
||||
-exec cp {} opt/sun/private/lib \;
|
||||
# (cd $(CORE_DEPTH)/../dist/public && tar cphf - .) \
|
||||
# | (mkdir -p opt/sun/private/include && cd opt/sun/private/include && tar xvfBp -)
|
||||
mkdir -p opt/sun/private/share/lib
|
||||
ifeq ($(BUILD_OPT), 1)
|
||||
cp $(CORE_DEPTH)/../dist/release/no-policy/classes/xpclass.jar \
|
||||
opt/sun/private/share/lib/jss3.jar
|
||||
else
|
||||
cp $(CORE_DEPTH)/../dist/release/no-policy/classes_DBG/xpclass_dbg.jar \
|
||||
opt/sun/private/share/lib/jss3.jar
|
||||
endif
|
||||
tar czvf $(NAME)-$(VERSION).tar.gz opt
|
||||
echo "AutoReq: 0" > temp.spec
|
||||
echo "%define _topdir `pwd`" >>temp.spec
|
||||
sed -e "s/NAME_REPLACE/$(NAME)/" \
|
||||
-e "s/VERSION_REPLACE/$(VERSION)/" \
|
||||
-e "s/RELEASE_REPLACE/$(RELEASE)/" \
|
||||
<$(NAME).spec >>temp.spec
|
||||
echo "" >>temp.spec
|
||||
echo "%files" >>temp.spec
|
||||
echo "%defattr(-,root,root)" >>temp.spec
|
||||
echo "%dir /opt" >>temp.spec
|
||||
echo "%dir /opt/sun" >>temp.spec
|
||||
echo "%dir /opt/sun/private" >>temp.spec
|
||||
echo "%dir /opt/sun/private/lib" >>temp.spec
|
||||
find opt \( -name "*.so" -o -name "*.jar" \) \
|
||||
| sed -e "s-^-/-" >>temp.spec
|
||||
echo "" >>temp.spec
|
||||
echo "%files devel" >>temp.spec
|
||||
echo "%defattr(-,root,root)" >>temp.spec
|
||||
find opt -type d | sed -e "s-^-%dir /-" >>temp.spec
|
||||
find opt -type f ! \( -name "*.so" -o -name "*.jar" \) \
|
||||
| sed -e "s-^-/-" >>temp.spec
|
||||
cp $(NAME)-$(VERSION).tar.gz SOURCES
|
||||
rpm -ba temp.spec
|
||||
|
||||
clean::
|
||||
rm -rf SOURCES SRPMS RPMS BUILD
|
||||
rm -rf opt
|
||||
rm -f temp.spec
|
||||
rm -f $(NAME)-$(VERSION).tar.gz
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/rules.mk
|
|
@ -0,0 +1,44 @@
|
|||
Summary: Network Security Services for Java
|
||||
Name: NAME_REPLACE
|
||||
Vendor: Sun Microsystems, Inc.
|
||||
Version: VERSION_REPLACE
|
||||
Release: RELEASE_REPLACE
|
||||
Copyright: MPL/GPL
|
||||
Distribution: Sun Java(TM) Enterprise System
|
||||
URL: http://www.sun.com
|
||||
Group: System Environment/Base
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
ExclusiveOS: Linux
|
||||
BuildRoot: %_topdir/%{name}-root
|
||||
|
||||
Requires: sun-nspr >= 4.3, sun-nss >= 3.9
|
||||
|
||||
%description
|
||||
Network Security Services for Java (JSS) is a set of libraries designed
|
||||
to support cross-platform development of security-enabled server
|
||||
applications. Applications built with JSS can support SSL v2
|
||||
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME,
|
||||
X.509 v3 certificates, and other security standards. See:
|
||||
http://www.mozilla.org/projects/security/pki/jss/
|
||||
|
||||
%package devel
|
||||
Summary: Development Libraries for Network Security Services for Java
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Header files for doing development with Network Security Services for Java.
|
||||
|
||||
%prep
|
||||
%setup -c
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir $RPM_BUILD_ROOT
|
||||
cd $RPM_BUILD_ROOT
|
||||
tar xvzf $RPM_SOURCE_DIR/%{name}-%{version}.tar.gz
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
#ident "$Id: Makefile,v 1.2 2003/01/13 19:42:11 glen.beasley%sun.com Exp $"
|
||||
#ident "$Id: Makefile,v 1.3 2004/05/13 07:13:00 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
|
||||
CORE_DEPTH = ../../..
|
||||
|
@ -15,10 +15,10 @@ CORE_DEPTH = ../../..
|
|||
|
||||
ifeq ($(USE_64), 1)
|
||||
DIRS = \
|
||||
SUNWjssx
|
||||
SUNWjssx
|
||||
else
|
||||
DIRS = \
|
||||
SUNWjss
|
||||
SUNWjss
|
||||
endif
|
||||
|
||||
PROTO = \
|
||||
|
@ -27,10 +27,12 @@ PROTO = \
|
|||
$(ROOT)/usr/share \
|
||||
$(ROOT)/usr/share/lib \
|
||||
$(ROOT)/usr/share/lib/mps \
|
||||
$(ROOT)/usr/share/lib/mps/sparcv9 \
|
||||
$(ROOT)/usr/share/lib/mps/secv1 \
|
||||
$(ROOT)/usr/share/lib/mps/secv1/sparcv9 \
|
||||
$(ROOT)/usr/lib \
|
||||
$(ROOT)/usr/lib/mps \
|
||||
$(ROOT)/usr/lib/mps/sparcv9
|
||||
$(ROOT)/usr/lib/mps/secv1 \
|
||||
$(ROOT)/usr/lib/mps/secv1/sparcv9
|
||||
|
||||
include Makefile.com
|
||||
|
||||
|
@ -49,13 +51,13 @@ $(ROOT) $(ROOT)/%:
|
|||
mkdir -p $@
|
||||
|
||||
ifdef USE_64
|
||||
$(ROOT)/usr/lib/mps/sparcv9: $(ROOT)/usr/lib
|
||||
$(ROOT)/usr/lib/mps/secv1/sparcv9: $(ROOT)/usr/lib
|
||||
echo "target=$(SOURCE_RELEASE_XP_DIR)/$(SOURCE_RELEASE_XP_CLASSES_DIR)/$(IMPORT_XPCLASS_JAR)"
|
||||
$(LN) -sf ../../../../../$(DIST)/lib $@
|
||||
cp $(SOURCE_RELEASE_XP_DIR)/$(SOURCE_RELEASE_XP_CLASSES_DIR)/$(IMPORT_XPCLASS_JAR) $(ROOT)/usr/share/lib/mps/secv1/sparcv9/jss3.jar
|
||||
else
|
||||
$(ROOT)/usr/lib/mps/secv1: $(ROOT)/usr/lib
|
||||
echo "target=$(SOURCE_RELEASE_XP_DIR)/$(SOURCE_RELEASE_XP_CLASSES_DIR)/$(IMPORT_XPCLASS_JAR)"
|
||||
$(LN) -sf ../../../../$(DIST)/lib $@
|
||||
cp $(SOURCE_RELEASE_XP_DIR)/$(SOURCE_RELEASE_XP_CLASSES_DIR)/$(IMPORT_XPCLASS_JAR) $(ROOT)/usr/share/lib/mps/sparcv9/jss3.jar
|
||||
else
|
||||
$(ROOT)/usr/lib/mps: $(ROOT)/usr/lib
|
||||
echo "target=$(SOURCE_RELEASE_XP_DIR)/$(SOURCE_RELEASE_XP_CLASSES_DIR)/$(IMPORT_XPCLASS_JAR)"
|
||||
$(LN) -sf ../../../$(DIST)/lib $@
|
||||
cp $(SOURCE_RELEASE_XP_DIR)/$(SOURCE_RELEASE_XP_CLASSES_DIR)/$(IMPORT_XPCLASS_JAR) $(ROOT)/usr/share/lib/mps/jss3.jar
|
||||
cp $(SOURCE_RELEASE_XP_DIR)/$(SOURCE_RELEASE_XP_CLASSES_DIR)/$(IMPORT_XPCLASS_JAR) $(ROOT)/usr/share/lib/mps/secv1/jss3.jar
|
||||
endif
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
#ident "$Id: Makefile.com,v 1.4 2004/01/16 00:50:21 wchang0222%aol.com Exp $"
|
||||
#ident "$Id: Makefile.com,v 1.5 2004/05/13 07:13:00 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
|
||||
MACH = $(shell mach)
|
||||
|
@ -20,7 +20,7 @@ FILES = $(DATAFILES) pkginfo prototype
|
|||
|
||||
PACKAGE = $(shell basename `pwd`)
|
||||
|
||||
PRODUCT_VERSION = 3.5
|
||||
PRODUCT_VERSION = $(shell grep JSS_VERSION $(CORE_DEPTH)/jss/org/mozilla/jss/util/jssver.h | sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//')
|
||||
PRODUCT_NAME = JSS_3_5_RTM
|
||||
|
||||
LN = /usr/bin/ln
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
#ident "$Id: prototype_com,v 1.2 2003/01/13 19:42:51 glen.beasley%sun.com Exp $"
|
||||
#ident "$Id: prototype_com,v 1.3 2004/05/13 07:13:00 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
# This required package information file contains a list of package contents.
|
||||
# The 'pkgmk' command uses this file to identify the contents of a package
|
||||
|
@ -26,8 +26,10 @@ i depend=pkgdepend
|
|||
d none usr 755 root sys
|
||||
d none usr/lib 755 root bin
|
||||
d none usr/lib/mps 755 root bin
|
||||
d none usr/share 755 root bin
|
||||
d none usr/share/lib 755 root bin
|
||||
d none usr/lib/mps/secv1 755 root bin
|
||||
d none usr/share 755 root sys
|
||||
d none usr/share/lib 755 root sys
|
||||
d none usr/share/lib/mps 755 root bin
|
||||
f none usr/lib/mps/libjss3.so 755 root bin
|
||||
f none usr/share/lib/mps/jss3.jar 644 root bin
|
||||
d none usr/share/lib/mps/secv1 755 root bin
|
||||
f none usr/lib/mps/secv1/libjss3.so 755 root bin
|
||||
f none usr/share/lib/mps/secv1/jss3.jar 644 root bin
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
#ident "$Id: prototype_com,v 1.2 2003/01/13 19:43:15 glen.beasley%sun.com Exp $"
|
||||
#ident "$Id: prototype_com,v 1.3 2004/05/13 07:13:01 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
# This required package information file contains a list of package contents.
|
||||
# The 'pkgmk' command uses this file to identify the contents of a package
|
||||
|
@ -26,6 +26,6 @@ i depend=pkgdepend
|
|||
d none usr 755 root sys
|
||||
d none usr/lib 755 root bin
|
||||
d none usr/lib/mps 755 root bin
|
||||
d none usr/share 755 root bin
|
||||
d none usr/share/lib 755 root bin
|
||||
d none usr/share 755 root sys
|
||||
d none usr/share/lib 755 root sys
|
||||
d none usr/share/lib/mps 755 root bin
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
#ident "$Id: prototype_sparc,v 1.2 2003/01/13 19:43:15 glen.beasley%sun.com Exp $"
|
||||
#ident "$Id: prototype_sparc,v 1.3 2004/05/13 07:13:01 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
# This required package information file contains a list of package contents.
|
||||
# The 'pkgmk' command uses this file to identify the contents of a package
|
||||
|
@ -27,8 +27,8 @@
|
|||
#
|
||||
#
|
||||
# SUNWjssx
|
||||
s none usr/lib/mps/64=sparcv9
|
||||
d none usr/lib/mps/sparcv9 755 root bin
|
||||
d none usr/share/lib/mps/sparcv9 755 root bin
|
||||
f none usr/lib/mps/sparcv9/libjss3.so 755 root bin
|
||||
f none usr/share/lib/mps/sparcv9/jss3.jar 644 root bin
|
||||
s none usr/lib/mps/secv1/64=sparcv9
|
||||
d none usr/lib/mps/secv1/sparcv9 755 root bin
|
||||
d none usr/share/lib/mps/secv1/sparcv9 755 root bin
|
||||
f none usr/lib/mps/secv1/sparcv9/libjss3.so 755 root bin
|
||||
f none usr/share/lib/mps/secv1/sparcv9/jss3.jar 644 root bin
|
||||
|
|
Загрузка…
Ссылка в новой задаче