diff options
author | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
---|---|---|
committer | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
commit | 7c478bd95313f5f23a4c958a745db2134aa03244 (patch) | |
tree | c871e58545497667cbb4b0a4f2daf204743e1fe7 /usr/src/pkgdefs/SUNWllcr | |
download | illumos-gate-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz |
OpenSolaris Launch
Diffstat (limited to 'usr/src/pkgdefs/SUNWllcr')
-rw-r--r-- | usr/src/pkgdefs/SUNWllcr/Makefile | 47 | ||||
-rw-r--r-- | usr/src/pkgdefs/SUNWllcr/pkginfo.tmpl | 55 | ||||
-rw-r--r-- | usr/src/pkgdefs/SUNWllcr/postinstall | 48 | ||||
-rw-r--r-- | usr/src/pkgdefs/SUNWllcr/prototype_com | 67 | ||||
-rw-r--r-- | usr/src/pkgdefs/SUNWllcr/prototype_i386 | 51 | ||||
-rw-r--r-- | usr/src/pkgdefs/SUNWllcr/prototype_sparc | 52 |
6 files changed, 320 insertions, 0 deletions
diff --git a/usr/src/pkgdefs/SUNWllcr/Makefile b/usr/src/pkgdefs/SUNWllcr/Makefile new file mode 100644 index 0000000000..fbfd192cf8 --- /dev/null +++ b/usr/src/pkgdefs/SUNWllcr/Makefile @@ -0,0 +1,47 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright 1998-1999, 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "%Z%%M% %I% %E% SMI" +# + +include ../Makefile.com + +DATAFILES += depend i.initd +CHKINSTALLSRC=checkinstall.initd + +.KEEP_STATE: + +all: $(FILES) action +# action is a pseudotarget denoting completed work on the depend file +action: depend + grep SUNWllc depend > /dev/null || \ + (chmod 666 depend; \ + echo "P SUNWllc LLC2 core functionality" >> depend; \ + chmod 444 depend ) + touch $@ + +install: all pkg + +include ../Makefile.targ diff --git a/usr/src/pkgdefs/SUNWllcr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWllcr/pkginfo.tmpl new file mode 100644 index 0000000000..a635f67ed1 --- /dev/null +++ b/usr/src/pkgdefs/SUNWllcr/pkginfo.tmpl @@ -0,0 +1,55 @@ +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# ident "%Z%%M% %I% %E% SMI" +# +# This required package information file describes characteristics of the +# package, such as package abbreviation, full package name, package version, +# and package architecture. +# +PKG="SUNWllcr" +NAME="LLC2 driver configuration and startup files" +ARCH="ISA" +VERSION="ONVERS,REV=0.0.0" +SUNW_PRODNAME="SunOS" +SUNW_PRODVERS="RELEASE/VERSION" +SUNW_PKGTYPE="root" +CATEGORY="system" +DESC="The configuration and startup files for llc2 driver" +VENDOR="Sun Microsystems, Inc." +HOTLINE="Please contact your local service provider" +EMAIL="" +CLASSES="none initd" +BASEDIR=/ +SUNW_PKGVERS="1.0" +MAXINST="1000" +SUNW_PKG_ALLZONES="true" +SUNW_PKG_HOLLOW="true" +#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/usr/src/pkgdefs/SUNWllcr/postinstall b/usr/src/pkgdefs/SUNWllcr/postinstall new file mode 100644 index 0000000000..4ab78050b5 --- /dev/null +++ b/usr/src/pkgdefs/SUNWllcr/postinstall @@ -0,0 +1,48 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright (c) 1998-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#ident "%Z%%M% %I% %E% SMI" +# + +DRVPERM='* 0666 root sys' + +add_driver(){ + driver=$1 + grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1 + if [ $? != 0 ]; then + $ADD_DRV -m "${DRVPERM}" $driver || exit 1 + fi +} + +if [ "${BASEDIR:=/}" = "/" ] +then + ADD_DRV="add_drv" +else + ADD_DRV="add_drv -b ${BASEDIR}" +fi + +add_driver llc2 + +exit 0 diff --git a/usr/src/pkgdefs/SUNWllcr/prototype_com b/usr/src/pkgdefs/SUNWllcr/prototype_com new file mode 100644 index 0000000000..4c730e1959 --- /dev/null +++ b/usr/src/pkgdefs/SUNWllcr/prototype_com @@ -0,0 +1,67 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright 1998-1999, 2002 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "%Z%%M% %I% %E% SMI" +# +# 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 pkginfo +i copyright +i depend +i checkinstall +i postinstall +i i.initd + +# +# source locations relative to the prototype file +# +# SUNWllcr +# + +d none etc 755 root sys +d none etc/llc2 755 root sys +d none etc/llc2/default 755 root sys +d none etc/init.d 755 root sys +d none etc/rc0.d 755 root sys +d none etc/rc1.d 755 root sys +d none etc/rc2.d 755 root sys +d none etc/rcS.d 755 root sys + +e initd etc/init.d/llc2 744 root sys +l initd etc/rc0.d/K52llc2=../../etc/init.d/llc2 +l initd etc/rc1.d/K52llc2=../../etc/init.d/llc2 +l initd etc/rc2.d/S40llc2=../../etc/init.d/llc2 +l initd etc/rcS.d/K52llc2=../../etc/init.d/llc2 + +f none etc/llc2/llc2_start.default 744 root sys diff --git a/usr/src/pkgdefs/SUNWllcr/prototype_i386 b/usr/src/pkgdefs/SUNWllcr/prototype_i386 new file mode 100644 index 0000000000..a537ef45cf --- /dev/null +++ b/usr/src/pkgdefs/SUNWllcr/prototype_i386 @@ -0,0 +1,51 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright (c) 1998-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#ident "%Z%%M% %I% %E% SMI" +# +# 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 I386 specific here +# +# source locations relative to the prototype file +# +# +# SUNWllcr +# diff --git a/usr/src/pkgdefs/SUNWllcr/prototype_sparc b/usr/src/pkgdefs/SUNWllcr/prototype_sparc new file mode 100644 index 0000000000..283de57784 --- /dev/null +++ b/usr/src/pkgdefs/SUNWllcr/prototype_sparc @@ -0,0 +1,52 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright (c) 1998-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#ident "%Z%%M% %I% %E% SMI" +# +# 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 +# +# +# SUNWllcr +# + |