diff options
author | kirk.erickson%sun.com <devnull@localhost> | 2002-10-02 23:11:39 +0000 |
---|---|---|
committer | kirk.erickson%sun.com <devnull@localhost> | 2002-10-02 23:11:39 +0000 |
commit | 0de1cc81024dc0b077953d941ef0c73ab6ae8d15 (patch) | |
tree | c3fac34e206945020f8f8ca8cb37296fa6234b8c | |
parent | fbbc24660df70fffdee81e23def5b921e11b3896 (diff) | |
parent | 105db8286a42447b3a0f8109ea95cb997c0bef5f (diff) | |
download | nss-hg-0de1cc81024dc0b077953d941ef0c73ab6ae8d15.tar.gz |
Fixes 158683, adds new directory mozilla/security/nss/pkg/solaris.
And 'solarispkg' target to mozilla/security/nss/Makefile.
-rw-r--r-- | security/nss/Makefile | 6 | ||||
-rw-r--r-- | security/nss/pkg/solaris/Makefile | 56 | ||||
-rw-r--r-- | security/nss/pkg/solaris/Makefile.com | 33 | ||||
-rw-r--r-- | security/nss/pkg/solaris/Makefile.targ | 26 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtls/Makefile | 16 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtls/pkginfo.tmpl | 34 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtls/prototype_com | 34 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtls/prototype_sparc | 30 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtlsx/Makefile | 16 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtlsx/pkgdepend | 28 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtlsx/pkginfo.tmpl | 34 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtlsx/prototype_com | 28 | ||||
-rw-r--r-- | security/nss/pkg/solaris/SUNWtlsx/prototype_sparc | 37 | ||||
-rw-r--r-- | security/nss/pkg/solaris/bld_awk_pkginfo.ksh | 105 | ||||
-rw-r--r-- | security/nss/pkg/solaris/common_files/copyright | 28 | ||||
-rw-r--r-- | security/nss/pkg/solaris/common_files/pkgdepend | 28 |
16 files changed, 539 insertions, 0 deletions
diff --git a/security/nss/Makefile b/security/nss/Makefile index 8fdfb57ac..ebea33842 100644 --- a/security/nss/Makefile +++ b/security/nss/Makefile @@ -109,6 +109,12 @@ endif # passed to Windows build tools (for example, cl), it # is mistaken as a command-line option. If that is the case, # we use a relative pathname as NSPR's prefix on Windows. + +ifeq ($(OS_ARCH),SunOS) +solarispkg: + @echo Making Solaris packages. + $(MAKE) -C pkg/solaris publish +endif # USEABSPATH="YES" diff --git a/security/nss/pkg/solaris/Makefile b/security/nss/pkg/solaris/Makefile new file mode 100644 index 000000000..2d2ff6ff4 --- /dev/null +++ b/security/nss/pkg/solaris/Makefile @@ -0,0 +1,56 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# + +CORE_DEPTH = ../../.. + +%: %.ksh + $(RM) $@ + cp $< $@ + chmod +x $@ + + +ifeq ($(USE_64), 1) +DIRS = \ + SUNWtlsx +else +DIRS = \ + SUNWtls +endif + +PROTO = \ + $(ROOT) \ + $(ROOT)/usr \ + $(ROOT)/usr/lib \ + $(ROOT)/usr/lib/mps + +ifdef USE_64 +PROTO += $(ROOT)/usr/lib/mps/sparcv9 +endif + +include Makefile.com + +awk_pkginfo: bld_awk_pkginfo + ./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION) + +all:: awk_pkginfo $(PROTO) +publish: awk_pkginfo $(PROTO) + +$(LOOP_OVER_DIRS) + +clean clobber:: + $(RM) awk_pkginfo bld_awk_pkginfo + $(RM) -r $(ROOT) + +$(ROOT) $(ROOT)/%: + mkdir -p $@ + +ifdef USE_64 +$(ROOT)/usr/lib/mps/sparcv9: $(ROOT)/usr/lib + $(LN) -sf ../../../../$(DIST)/lib $@ +else +$(ROOT)/usr/lib/mps: $(ROOT)/usr/lib + $(LN) -sf ../../../$(DIST)/lib $@ +endif diff --git a/security/nss/pkg/solaris/Makefile.com b/security/nss/pkg/solaris/Makefile.com new file mode 100644 index 000000000..8e7a8d3a6 --- /dev/null +++ b/security/nss/pkg/solaris/Makefile.com @@ -0,0 +1,33 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# + +MACH = $(shell mach) + +PUBLISH_ROOT = $(DIST) +ifeq ($(CORE_DEPTH),../../..) +ROOT = ROOT-$(OBJDIR_NAME) +else +ROOT = $(subst ../../../,,$(CORE_DEPTH))/ROOT-$(OBJDIR_NAME) +endif + +PKGARCHIVE = $(PUBLISH_ROOT)/pkgarchive +DATAFILES = copyright +FILES = $(DATAFILES) pkginfo + +PACKAGE = $(shell basename `pwd`) + +PRODUCT_VERSION = 3.3.2 +PRODUCT_NAME = NSS_3_3_2_RTM + +LN = /usr/bin/ln + +CLOBBERFILES = $(FILES) + +include $(CORE_DEPTH)/coreconf/config.mk +include $(CORE_DEPTH)/coreconf/rules.mk + +# vim: ft=make diff --git a/security/nss/pkg/solaris/Makefile.targ b/security/nss/pkg/solaris/Makefile.targ new file mode 100644 index 000000000..b069b1580 --- /dev/null +++ b/security/nss/pkg/solaris/Makefile.targ @@ -0,0 +1,26 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# + +pkginfo: pkginfo.tmpl ../awk_pkginfo + $(RM) $@; nawk -f ../awk_pkginfo $@.tmpl > $@ + +pkg: $(PKGARCHIVE) + pkgmk -f prototype_sparc -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE) + +$(PKGARCHIVE): + [ -d $(PKGARCHIVE) ] || mkdir -p $(PKGARCHIVE) + +$(DATAFILES):: %: ../common_files/% + $(RM) $@; cp ../common_files/$@ $@ + +$(MACHDATAFILES): %: ../common_files/%_$(MACH) + $(RM) $@; cp ../common_files/$@_$(MACH) $@ + +clobber clean:: + -$(RM) $(CLOBBERFILES) $(CLEANFILES) + +.PHONY: pkg diff --git a/security/nss/pkg/solaris/SUNWtls/Makefile b/security/nss/pkg/solaris/SUNWtls/Makefile new file mode 100644 index 000000000..56009239a --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtls/Makefile @@ -0,0 +1,16 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# + +CORE_DEPTH = ../../../.. +include ../Makefile.com + +DATAFILES += pkgdepend + +all:: $(FILES) +publish:: all pkg + +include ../Makefile.targ diff --git a/security/nss/pkg/solaris/SUNWtls/pkginfo.tmpl b/security/nss/pkg/solaris/SUNWtls/pkginfo.tmpl new file mode 100644 index 000000000..e0a697529 --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtls/pkginfo.tmpl @@ -0,0 +1,34 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# +# +# This required package information file describes characteristics of the +# package, such as package abbreviation, full package name, package version, +# and package architecture. +# +PKG="SUNWtls" +NAME="Network Security Services" +ARCH="ISA" +VERSION="NSSVERS,REV=0.0.0" +SUNW_PRODNAME="Network Security Services" +SUNW_PRODVERS="RELEASE/VERSION" +SUNW_PKGTYPE="usr" +MAXINST="1000" +CATEGORY="system" +DESC="Network Security Services" +VENDOR="Sun Microsystems, Inc." +HOTLINE="Please contact your local service provider" +EMAIL="" +CLASSES="none" +BASEDIR=/ +SUNW_PKGVERS="1.0" +#VSTOCK="<reserved by Release Engineering for package part #>" +#ISTATES="<developer defined>" +#RSTATES='<developer defined>' +#ULIMIT="<developer defined>" +#ORDER="<developer defined>" +#PSTAMP="<developer defined>" +#INTONLY="<developer defined>" diff --git a/security/nss/pkg/solaris/SUNWtls/prototype_com b/security/nss/pkg/solaris/SUNWtls/prototype_com new file mode 100644 index 000000000..388fb63b0 --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtls/prototype_com @@ -0,0 +1,34 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# +# This required package information file contains a list of package contents. +# The 'pkgmk' command uses this file to identify the contents of a package +# and their location on the development machine when building the package. +# Can be created via a text editor or through use of the 'pkgproto' command. + +#!search <pathname pathname ...> # where to find pkg objects +#!include <filename> # include another 'prototype' file +#!default <mode> <owner> <group> # default used if not specified on entry +#!<param>=<value> # puts parameter in pkg environment + +# packaging files +i copyright +i pkginfo +i depend=pkgdepend +# +# source locations relative to the prototype file +# +# SUNWtls +# +d none usr 755 root sys +d none usr/lib 755 root bin +d none usr/lib/mps 755 root bin +f none usr/lib/mps/libnss3.so 755 root bin +f none usr/lib/mps/libsmime3.so 755 root bin +f none usr/lib/mps/libssl3.so 755 root bin +f none usr/lib/mps/libfreebl_hybrid_3.so 755 root bin +f none usr/lib/mps/libfreebl_pure32_3.so 755 root bin +f none usr/lib/mps/libnssckbi.so 755 root bin diff --git a/security/nss/pkg/solaris/SUNWtls/prototype_sparc b/security/nss/pkg/solaris/SUNWtls/prototype_sparc new file mode 100644 index 000000000..e751f6b5f --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtls/prototype_sparc @@ -0,0 +1,30 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# +# This required package information file contains a list of package contents. +# The 'pkgmk' command uses this file to identify the contents of a package +# and their location on the development machine when building the package. +# Can be created via a text editor or through use of the 'pkgproto' command. + +#!search <pathname pathname ...> # where to find pkg objects +#!include <filename> # include another 'prototype' file +#!default <mode> <owner> <group> # default used if not specified on entry +#!<param>=<value> # puts parameter in pkg environment + +# +# Include ISA independent files (prototype_com) +# +!include prototype_com +# +# +# +# List files which are SPARC specific here +# +# source locations relative to the prototype file +# +# +# SUNWtls +# diff --git a/security/nss/pkg/solaris/SUNWtlsx/Makefile b/security/nss/pkg/solaris/SUNWtlsx/Makefile new file mode 100644 index 000000000..56009239a --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtlsx/Makefile @@ -0,0 +1,16 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# + +CORE_DEPTH = ../../../.. +include ../Makefile.com + +DATAFILES += pkgdepend + +all:: $(FILES) +publish:: all pkg + +include ../Makefile.targ diff --git a/security/nss/pkg/solaris/SUNWtlsx/pkgdepend b/security/nss/pkg/solaris/SUNWtlsx/pkgdepend new file mode 100644 index 000000000..ebc85c64d --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtlsx/pkgdepend @@ -0,0 +1,28 @@ +# Copyright 2002 Microsystems, Inc. All Rights Reserved. +# Use is subject to license terms. +# +# $Id$ +# +# This package information file defines software dependencies associated +# with the pkg. You can define three types of pkg dependencies with this file: +# P indicates a prerequisite for installation +# I indicates an incompatible package +# R indicates a reverse dependency +# <pkg.abbr> see pkginfo(4), PKG parameter +# <name> see pkginfo(4), NAME parameter +# <version> see pkginfo(4), VERSION parameter +# <arch> see pkginfo(4), ARCH parameter +# <type> <pkg.abbr> <name> +# (<arch>)<version> +# (<arch>)<version> +# ... +# <type> <pkg.abbr> <name> +# ... + +P SUNWcar Core Architecture, (Root) +P SUNWkvm Core Architecture, (Kvm) +P SUNWcsr Core Solaris, (Root) +P SUNWcsu Core Solaris, (Usr) +P SUNWcsd Core Solaris Devices +P SUNWcsl Core Solaris Libraries +P SUNWprx Netscape Portable Runtime diff --git a/security/nss/pkg/solaris/SUNWtlsx/pkginfo.tmpl b/security/nss/pkg/solaris/SUNWtlsx/pkginfo.tmpl new file mode 100644 index 000000000..9f7a30e03 --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtlsx/pkginfo.tmpl @@ -0,0 +1,34 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# +# +# This required package information file describes characteristics of the +# package, such as package abbreviation, full package name, package version, +# and package architecture. +# +PKG="SUNWtlsx" +NAME="Network Security Services (64-bit)" +ARCH="ISA" +VERSION="NSSVERS,REV=0.0.0" +SUNW_PRODNAME="Network Security Services" +SUNW_PRODVERS="RELEASE/VERSION" +SUNW_PKGTYPE="usr" +MAXINST="1000" +CATEGORY="system" +DESC="Network Security Services (64-bit)" +VENDOR="Sun Microsystems, Inc." +HOTLINE="Please contact your local service provider" +EMAIL="" +CLASSES="none" +BASEDIR=/ +SUNW_PKGVERS="1.0" +#VSTOCK="<reserved by Release Engineering for package part #>" +#ISTATES="<developer defined>" +#RSTATES='<developer defined>' +#ULIMIT="<developer defined>" +#ORDER="<developer defined>" +#PSTAMP="<developer defined>" +#INTONLY="<developer defined>" diff --git a/security/nss/pkg/solaris/SUNWtlsx/prototype_com b/security/nss/pkg/solaris/SUNWtlsx/prototype_com new file mode 100644 index 000000000..0dffc99e1 --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtlsx/prototype_com @@ -0,0 +1,28 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# +# This required package information file contains a list of package contents. +# The 'pkgmk' command uses this file to identify the contents of a package +# and their location on the development machine when building the package. +# Can be created via a text editor or through use of the 'pkgproto' command. + +#!search <pathname pathname ...> # where to find pkg objects +#!include <filename> # include another 'prototype' file +#!default <mode> <owner> <group> # default used if not specified on entry +#!<param>=<value> # puts parameter in pkg environment + +# packaging files +i copyright +i pkginfo +i depend=pkgdepend +# +# source locations relative to the prototype file +# +# SUNWtlsx +# +d none usr 755 root sys +d none usr/lib 755 root bin +d none usr/lib/mps 755 root bin diff --git a/security/nss/pkg/solaris/SUNWtlsx/prototype_sparc b/security/nss/pkg/solaris/SUNWtlsx/prototype_sparc new file mode 100644 index 000000000..ba9bf925c --- /dev/null +++ b/security/nss/pkg/solaris/SUNWtlsx/prototype_sparc @@ -0,0 +1,37 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id$" +# +# This required package information file contains a list of package contents. +# The 'pkgmk' command uses this file to identify the contents of a package +# and their location on the development machine when building the package. +# Can be created via a text editor or through use of the 'pkgproto' command. + +#!search <pathname pathname ...> # where to find pkg objects +#!include <filename> # include another 'prototype' file +#!default <mode> <owner> <group> # default used if not specified on entry +#!<param>=<value> # puts parameter in pkg environment + +# +# Include ISA independent files (prototype_com) +# +!include prototype_com +# +# +# +# List files which are SPARC specific here +# +# source locations relative to the prototype file +# +# +# SUNWtlsx +# +s none usr/lib/mps/64=sparcv9 +d none usr/lib/mps/sparcv9 755 root bin +f none usr/lib/mps/sparcv9/libnss3.so 755 root bin +f none usr/lib/mps/sparcv9/libsmime3.so 755 root bin +f none usr/lib/mps/sparcv9/libssl3.so 755 root bin +f none usr/lib/mps/sparcv9/libnssckbi.so 755 root bin + diff --git a/security/nss/pkg/solaris/bld_awk_pkginfo.ksh b/security/nss/pkg/solaris/bld_awk_pkginfo.ksh new file mode 100644 index 000000000..6f2723b4c --- /dev/null +++ b/security/nss/pkg/solaris/bld_awk_pkginfo.ksh @@ -0,0 +1,105 @@ +#!/usr/bin/ksh -p +# +#ident "$Id$" +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# Simple script which builds the awk_pkginfo awk script. This awk script +# is used to convert the pkginfo.tmpl files into pkginfo files +# for the build. +# + +usage() +{ + cat <<-EOF +usage: bld_awk_pkginfo -p <prodver> -m <mach> -o <awk_script> [-v <version>] +EOF +} + +# +# Awk strings +# +# two VERSION patterns: one for Dewey decimal, one for Dewey plus ,REV=n +# the first has one '=' the second has two or more '=' +# +VERSION1="VERSION=[^=]*$" +VERSION2="VERSION=[^=]*=.*$" +PRODVERS="^SUNW_PRODVERS=" +ARCH='ARCH=\"ISA\"' + +# +# parse command line +# +mach="" +prodver="" +awk_script="" +version="NSSVERS" + +while getopts o:p:m:v: c +do + case $c in + o) + awk_script=$OPTARG + ;; + m) + mach=$OPTARG + ;; + p) + prodver=$OPTARG + ;; + v) + version=$OPTARG + ;; + \?) + usage + exit 1 + ;; + esac +done + +if [[ ( -z $prodver ) || ( -z $mach ) || ( -z $awk_script ) ]] +then + usage + exit 1 +fi + +if [[ -f $awk_script ]] +then + rm -f $awk_script +fi + +# +# Build REV= field based on date +# +rev=$(date "+%Y.%m.%d.%H.%M") + +# +# Build awk script which will process all the +# pkginfo.tmpl files. +# +# the first VERSION pattern is replaced with a leading quotation mark +# +rm -f $awk_script +cat << EOF > $awk_script +/$VERSION1/ { + sub(/\=[^=]*$/,"=\"$rev\"") + print + next + } +/$VERSION2/ { + sub(/\=[^=]*$/,"=$rev\"") + sub(/NSSVERS/,"$version") + print + next + } +/$PRODVERS/ { + printf "SUNW_PRODVERS=\"%s\"\n", "$prodver" + next + } +/$ARCH/ { + printf "ARCH=\"%s\"\n", "$mach" + next + } +{ print } +EOF diff --git a/security/nss/pkg/solaris/common_files/copyright b/security/nss/pkg/solaris/common_files/copyright new file mode 100644 index 000000000..122621d79 --- /dev/null +++ b/security/nss/pkg/solaris/common_files/copyright @@ -0,0 +1,28 @@ +The contents of this package 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 package 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 package only +under the terms of the GPL and not to allow others to use your version +of this package 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 package under either the MPL or +the GPL. diff --git a/security/nss/pkg/solaris/common_files/pkgdepend b/security/nss/pkg/solaris/common_files/pkgdepend new file mode 100644 index 000000000..966ba0556 --- /dev/null +++ b/security/nss/pkg/solaris/common_files/pkgdepend @@ -0,0 +1,28 @@ +# Copyright 2002 Microsystems, Inc. All Rights Reserved. +# Use is subject to license terms. +# +# $Id$ +# +# This package information file defines software dependencies associated +# with the pkg. You can define three types of pkg dependencies with this file: +# P indicates a prerequisite for installation +# I indicates an incompatible package +# R indicates a reverse dependency +# <pkg.abbr> see pkginfo(4), PKG parameter +# <name> see pkginfo(4), NAME parameter +# <version> see pkginfo(4), VERSION parameter +# <arch> see pkginfo(4), ARCH parameter +# <type> <pkg.abbr> <name> +# (<arch>)<version> +# (<arch>)<version> +# ... +# <type> <pkg.abbr> <name> +# ... + +P SUNWcar Core Architecture, (Root) +P SUNWkvm Core Architecture, (Kvm) +P SUNWcsr Core Solaris, (Root) +P SUNWcsu Core Solaris, (Usr) +P SUNWcsd Core Solaris Devices +P SUNWcsl Core Solaris Libraries +P SUNWpr Netscape Portable Runtime |