diff --git a/security/jss/pkg/solaris/Makefile b/security/jss/pkg/solaris/Makefile new file mode 100644 index 00000000000..8ea307ffb28 --- /dev/null +++ b/security/jss/pkg/solaris/Makefile @@ -0,0 +1,61 @@ +# +# 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 $" +# + +CORE_DEPTH = ../../.. + +%: %.ksh + $(RM) $@ + cp $< $@ + chmod +x $@ + + +ifeq ($(USE_64), 1) +DIRS = \ + SUNWjssx +else +DIRS = \ + SUNWjss +endif + +PROTO = \ + $(ROOT) \ + $(ROOT)/usr \ + $(ROOT)/usr/share \ + $(ROOT)/usr/share/lib \ + $(ROOT)/usr/share/lib/mps \ + $(ROOT)/usr/share/lib/mps/sparcv9 \ + $(ROOT)/usr/lib \ + $(ROOT)/usr/lib/mps \ + $(ROOT)/usr/lib/mps/sparcv9 + +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 + 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 +endif diff --git a/security/jss/pkg/solaris/Makefile.com b/security/jss/pkg/solaris/Makefile.com new file mode 100644 index 00000000000..00071e674d9 --- /dev/null +++ b/security/jss/pkg/solaris/Makefile.com @@ -0,0 +1,33 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id: Makefile.com,v 1.2 2003-01-13 19:42:12 glen.beasley%sun.com Exp $" +# + +MACH = $(shell mach) + +PUBLISH_ROOT = $(DIST) +ifeq ($(CORE_DEPTH),../../..) +ROOT = ROOT +else +ROOT = $(subst ../../../,,$(CORE_DEPTH))/ROOT +endif + +PKGARCHIVE = $(PUBLISH_ROOT)/pkgarchive +DATAFILES = copyright +FILES = $(DATAFILES) pkginfo + +PACKAGE = $(shell basename `pwd`) + +PRODUCT_VERSION = 3.3 +PRODUCT_NAME = JSS_3_3_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/jss/pkg/solaris/Makefile.targ b/security/jss/pkg/solaris/Makefile.targ new file mode 100644 index 00000000000..037778a4e14 --- /dev/null +++ b/security/jss/pkg/solaris/Makefile.targ @@ -0,0 +1,26 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id: Makefile.targ,v 1.2 2003-01-13 19:42:13 glen.beasley%sun.com Exp $" +# + +pkginfo: pkginfo.tmpl ../awk_pkginfo + $(RM) $@; nawk -f ../awk_pkginfo $@.tmpl > $@ + +pkg: $(PKGARCHIVE) pkgdepend + pkgmk -f prototype_$(MACH) -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/jss/pkg/solaris/SUNWjss/Makefile b/security/jss/pkg/solaris/SUNWjss/Makefile new file mode 100644 index 00000000000..4f1b2475ace --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjss/Makefile @@ -0,0 +1,14 @@ +# +# 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:49 glen.beasley%sun.com Exp $" +# + +CORE_DEPTH = ../../../.. +include ../Makefile.com + +all:: $(FILES) +publish:: all pkg + +include ../Makefile.targ diff --git a/security/jss/pkg/solaris/SUNWjss/pkgdepend b/security/jss/pkg/solaris/SUNWjss/pkgdepend new file mode 100644 index 00000000000..8e1c0824a87 --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjss/pkgdepend @@ -0,0 +1,22 @@ +# Copyright 2002 Microsystems, Inc. All Rights Reserved. +# Use is subject to license terms. +# +# $Id: pkgdepend,v 1.2 2003-01-13 19:42:50 glen.beasley%sun.com Exp $ +# +# 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 +# see pkginfo(4), PKG parameter +# see pkginfo(4), NAME parameter +# see pkginfo(4), VERSION parameter +# see pkginfo(4), ARCH parameter +# +# () +# () +# ... +# +# ... + +P SUNWtls Netscape Security Services diff --git a/security/jss/pkg/solaris/SUNWjss/pkginfo.tmpl b/security/jss/pkg/solaris/SUNWjss/pkginfo.tmpl new file mode 100644 index 00000000000..717a55249fc --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjss/pkginfo.tmpl @@ -0,0 +1,34 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id: pkginfo.tmpl,v 1.2 2003-01-13 19:42:50 glen.beasley%sun.com Exp $" +# +# +# This required package information file describes characteristics of the +# package, such as package abbreviation, full package name, package version, +# and package architecture. +# +PKG="SUNWjss" +NAME="Network Security Services for Java (JSS)" +ARCH="ISA" +VERSION="JSSVERS,REV=0.0.0" +SUNW_PRODNAME="Network Security Services for Java (JSS)" +SUNW_PRODVERS="JSSVERS" +SUNW_PKGTYPE="usr" +MAXINST="1000" +CATEGORY="system" +DESC="Network Security Services for Java (JSS)" +VENDOR="Sun Microsystems, Inc." +HOTLINE="Please contact your local service provider" +EMAIL="" +CLASSES="none" +BASEDIR=/ +SUNW_PKGVERS="1.0" +#VSTOCK="" +#ISTATES="" +#RSTATES='' +#ULIMIT="" +#ORDER="" +#PSTAMP="" +#INTONLY="" diff --git a/security/jss/pkg/solaris/SUNWjss/prototype_com b/security/jss/pkg/solaris/SUNWjss/prototype_com new file mode 100644 index 00000000000..33e5567639d --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjss/prototype_com @@ -0,0 +1,33 @@ +# +# 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 $" +# +# 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 # where to find pkg objects +#!include # include another 'prototype' file +#!default # default used if not specified on entry +#!= # puts parameter in pkg environment + +# packaging files +i copyright +i pkginfo +i depend=pkgdepend +# +# source locations relative to the prototype file +# +# SUNWpr +# +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/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 diff --git a/security/jss/pkg/solaris/SUNWjss/prototype_i386 b/security/jss/pkg/solaris/SUNWjss/prototype_i386 new file mode 100644 index 00000000000..bfa7dc87750 --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjss/prototype_i386 @@ -0,0 +1,29 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id: prototype_i386,v 1.2 2003-01-13 19:42:51 glen.beasley%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 +# 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 # where to find pkg objects +#!include # include another 'prototype' file +#!default # default used if not specified on entry +#!= # puts parameter in pkg environment + +# +# Include ISA independent files (prototype_com) +# +!include prototype_com +# +# +# +# List files which are i386 specific here +# +# source locations relative to the prototype file +# +# +# SUNWjss diff --git a/security/jss/pkg/solaris/SUNWjss/prototype_sparc b/security/jss/pkg/solaris/SUNWjss/prototype_sparc new file mode 100644 index 00000000000..6207b3fb89d --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjss/prototype_sparc @@ -0,0 +1,29 @@ +# +# 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:42:52 glen.beasley%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 +# 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 # where to find pkg objects +#!include # include another 'prototype' file +#!default # default used if not specified on entry +#!= # 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 +# +# +# SUNWjss diff --git a/security/jss/pkg/solaris/SUNWjssx/Makefile b/security/jss/pkg/solaris/SUNWjssx/Makefile new file mode 100644 index 00000000000..d70aaa753c2 --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjssx/Makefile @@ -0,0 +1,14 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id: Makefile,v 1.2 2003-01-13 19:43:14 glen.beasley%sun.com Exp $" +# + +CORE_DEPTH = ../../../.. +include ../Makefile.com + +all:: $(FILES) +publish:: all pkg + +include ../Makefile.targ diff --git a/security/jss/pkg/solaris/SUNWjssx/pkgdepend b/security/jss/pkg/solaris/SUNWjssx/pkgdepend new file mode 100644 index 00000000000..f76056730f4 --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjssx/pkgdepend @@ -0,0 +1,22 @@ +# Copyright 2002 Microsystems, Inc. All Rights Reserved. +# Use is subject to license terms. +# +# $Id: pkgdepend,v 1.2 2003-01-13 19:43:14 glen.beasley%sun.com Exp $ +# +# 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 +# see pkginfo(4), PKG parameter +# see pkginfo(4), NAME parameter +# see pkginfo(4), VERSION parameter +# see pkginfo(4), ARCH parameter +# +# () +# () +# ... +# +# ... + +P SUNWtlsx Network Security Services (64-bit) diff --git a/security/jss/pkg/solaris/SUNWjssx/pkginfo.tmpl b/security/jss/pkg/solaris/SUNWjssx/pkginfo.tmpl new file mode 100644 index 00000000000..394ce0d8f82 --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjssx/pkginfo.tmpl @@ -0,0 +1,35 @@ +# +# Copyright 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "$Id: pkginfo.tmpl,v 1.2 2003-01-13 19:43:15 glen.beasley%sun.com Exp $" +# +# +# This required package information file describes characteristics of the +# package, such as package abbreviation, full package name, package version, +# and package architecture. +# +PKG="SUNWjssx" +NAME="Network Security Services for Java (JSS) (64-bit)" +ARCH="ISA" +VERSION="JSSVERS,REV=0.0.0" +SUNW_PRODNAME="Network Security Services for Java (JSS)" +SUNW_PRODVERS="JSSVERS" +SUNW_PKGTYPE="usr" +MAXINST="1000" +CATEGORY="system" +DESC="Network Security Services for Java (JSS) (64-bit)" +VENDOR="Sun Microsystems, Inc." +HOTLINE="Please contact your local service provider" +EMAIL="" +CLASSES="none" +BASEDIR=/ +SUNW_PKGVERS="1.0" +SUNW_ISA="sparcv9" +#VSTOCK="" +#ISTATES="" +#RSTATES='' +#ULIMIT="" +#ORDER="" +#PSTAMP="" +#INTONLY="" diff --git a/security/jss/pkg/solaris/SUNWjssx/prototype_com b/security/jss/pkg/solaris/SUNWjssx/prototype_com new file mode 100644 index 00000000000..3a6d86e3b4b --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjssx/prototype_com @@ -0,0 +1,31 @@ +# +# 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 $" +# +# 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 # where to find pkg objects +#!include # include another 'prototype' file +#!default # default used if not specified on entry +#!= # puts parameter in pkg environment + +# packaging files +i copyright +i pkginfo +i depend=pkgdepend +# +# source locations relative to the prototype file +# +# SUNWpr +# +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/lib/mps 755 root bin diff --git a/security/jss/pkg/solaris/SUNWjssx/prototype_sparc b/security/jss/pkg/solaris/SUNWjssx/prototype_sparc new file mode 100644 index 00000000000..c21ca2c26d8 --- /dev/null +++ b/security/jss/pkg/solaris/SUNWjssx/prototype_sparc @@ -0,0 +1,34 @@ +# +# 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 $" +# +# 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 # where to find pkg objects +#!include # include another 'prototype' file +#!default # default used if not specified on entry +#!= # 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 +# +# +# 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 diff --git a/security/jss/pkg/solaris/bld_awk_pkginfo.ksh b/security/jss/pkg/solaris/bld_awk_pkginfo.ksh new file mode 100644 index 00000000000..be3c9f3adf5 --- /dev/null +++ b/security/jss/pkg/solaris/bld_awk_pkginfo.ksh @@ -0,0 +1,105 @@ +#!/usr/bin/ksh -p +# +#ident "$Id: bld_awk_pkginfo.ksh,v 1.2 2003-01-13 19:42:13 glen.beasley%sun.com Exp $" +# +# 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 -m -o [-v ] +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="JSS 3.3" + +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(/NSPRVERS/,"$version") + print + next + } +/$PRODVERS/ { + printf "SUNW_PRODVERS=\"%s\"\n", "$prodver" + next + } +/$ARCH/ { + printf "ARCH=\"%s\"\n", "$mach" + next + } +{ print } +EOF