summaryrefslogtreecommitdiff
path: root/usr/src/pkgdefs
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/pkgdefs')
-rw-r--r--usr/src/pkgdefs/Makefile73
-rw-r--r--usr/src/pkgdefs/SUNWcfcl/Makefile41
-rw-r--r--usr/src/pkgdefs/SUNWcfcl/pkginfo.tmpl49
-rw-r--r--usr/src/pkgdefs/SUNWcfcl/prototype_com47
-rw-r--r--usr/src/pkgdefs/SUNWcfcl/prototype_i38651
-rw-r--r--usr/src/pkgdefs/SUNWcfcl/prototype_sparc51
-rw-r--r--usr/src/pkgdefs/SUNWcfclr/Makefile38
-rw-r--r--usr/src/pkgdefs/SUNWcfclr/depend50
-rw-r--r--usr/src/pkgdefs/SUNWcfclr/pkginfo.tmpl49
-rw-r--r--usr/src/pkgdefs/SUNWcfclr/prototype_com44
-rw-r--r--usr/src/pkgdefs/SUNWcfclr/prototype_i38648
-rw-r--r--usr/src/pkgdefs/SUNWcfclr/prototype_sparc48
-rw-r--r--usr/src/pkgdefs/SUNWcfpl/Makefile36
-rw-r--r--usr/src/pkgdefs/SUNWcfpl/depend51
-rw-r--r--usr/src/pkgdefs/SUNWcfpl/pkginfo.tmpl56
-rw-r--r--usr/src/pkgdefs/SUNWcfpl/prototype_com45
-rw-r--r--usr/src/pkgdefs/SUNWcfpl/prototype_i38652
-rw-r--r--usr/src/pkgdefs/SUNWcfpl/prototype_sparc52
-rw-r--r--usr/src/pkgdefs/SUNWcfplr/Makefile38
-rw-r--r--usr/src/pkgdefs/SUNWcfplr/depend51
-rw-r--r--usr/src/pkgdefs/SUNWcfplr/pkginfo.tmpl56
-rw-r--r--usr/src/pkgdefs/SUNWcfplr/preremove60
-rw-r--r--usr/src/pkgdefs/SUNWcfplr/prototype_com52
-rw-r--r--usr/src/pkgdefs/SUNWcfplr/prototype_i38649
-rw-r--r--usr/src/pkgdefs/SUNWcfplr/prototype_sparc49
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/depend50
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/i.emlxsconf458
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/lic_Emulex501
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/postinstall107
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/preremove32
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/prototype_com46
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/prototype_i38652
-rw-r--r--usr/src/pkgdefs/SUNWemlxs/prototype_sparc49
-rw-r--r--usr/src/pkgdefs/SUNWemlxu/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWemlxu/depend49
-rw-r--r--usr/src/pkgdefs/SUNWemlxu/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWemlxu/prototype_com43
-rw-r--r--usr/src/pkgdefs/SUNWemlxu/prototype_i38648
-rw-r--r--usr/src/pkgdefs/SUNWemlxu/prototype_sparc47
-rw-r--r--usr/src/pkgdefs/SUNWfchba/Makefile36
-rw-r--r--usr/src/pkgdefs/SUNWfchba/depend50
-rw-r--r--usr/src/pkgdefs/SUNWfchba/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWfchba/prototype_com44
-rw-r--r--usr/src/pkgdefs/SUNWfchba/prototype_i38650
-rw-r--r--usr/src/pkgdefs/SUNWfchba/prototype_sparc50
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/Makefile36
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/depend52
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/hba.conf67
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/preinstall47
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/prototype_com44
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWfchbar/prototype_sparc47
-rw-r--r--usr/src/pkgdefs/SUNWfcip/Makefile36
-rw-r--r--usr/src/pkgdefs/SUNWfcip/depend51
-rw-r--r--usr/src/pkgdefs/SUNWfcip/pkginfo.tmpl50
-rw-r--r--usr/src/pkgdefs/SUNWfcip/postinstall54
-rw-r--r--usr/src/pkgdefs/SUNWfcip/preremove33
-rw-r--r--usr/src/pkgdefs/SUNWfcip/prototype_com45
-rw-r--r--usr/src/pkgdefs/SUNWfcip/prototype_i38651
-rw-r--r--usr/src/pkgdefs/SUNWfcip/prototype_sparc50
-rw-r--r--usr/src/pkgdefs/SUNWfcmdb/Makefile38
-rw-r--r--usr/src/pkgdefs/SUNWfcmdb/pkginfo.tmpl50
-rw-r--r--usr/src/pkgdefs/SUNWfcmdb/prototype_com44
-rw-r--r--usr/src/pkgdefs/SUNWfcmdb/prototype_i38654
-rw-r--r--usr/src/pkgdefs/SUNWfcmdb/prototype_sparc51
-rw-r--r--usr/src/pkgdefs/SUNWfcp/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWfcp/depend51
-rw-r--r--usr/src/pkgdefs/SUNWfcp/pkginfo.tmpl50
-rw-r--r--usr/src/pkgdefs/SUNWfcp/postinstall54
-rw-r--r--usr/src/pkgdefs/SUNWfcp/preremove33
-rw-r--r--usr/src/pkgdefs/SUNWfcp/prototype_com45
-rw-r--r--usr/src/pkgdefs/SUNWfcp/prototype_i38651
-rw-r--r--usr/src/pkgdefs/SUNWfcp/prototype_sparc50
-rw-r--r--usr/src/pkgdefs/SUNWfcprt/Makefile36
-rw-r--r--usr/src/pkgdefs/SUNWfcprt/depend53
-rw-r--r--usr/src/pkgdefs/SUNWfcprt/pkginfo.tmpl50
-rw-r--r--usr/src/pkgdefs/SUNWfcprt/prototype_com50
-rw-r--r--usr/src/pkgdefs/SUNWfcprt/prototype_i38641
-rw-r--r--usr/src/pkgdefs/SUNWfcprt/prototype_sparc41
-rw-r--r--usr/src/pkgdefs/SUNWfcprtr/Makefile37
-rw-r--r--usr/src/pkgdefs/SUNWfcprtr/depend51
-rw-r--r--usr/src/pkgdefs/SUNWfcprtr/pkginfo.tmpl49
-rw-r--r--usr/src/pkgdefs/SUNWfcprtr/preremove60
-rw-r--r--usr/src/pkgdefs/SUNWfcprtr/prototype_com51
-rw-r--r--usr/src/pkgdefs/SUNWfcprtr/prototype_i38649
-rw-r--r--usr/src/pkgdefs/SUNWfcprtr/prototype_sparc49
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/depend50
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/pkginfo.tmpl55
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/postinstall53
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/preremove32
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/prototype_com44
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/prototype_i38653
-rw-r--r--usr/src/pkgdefs/SUNWfcsm/prototype_sparc52
-rw-r--r--usr/src/pkgdefs/SUNWfctl/Makefile38
-rw-r--r--usr/src/pkgdefs/SUNWfctl/pkginfo.tmpl49
-rw-r--r--usr/src/pkgdefs/SUNWfctl/postinstall83
-rw-r--r--usr/src/pkgdefs/SUNWfctl/preremove33
-rw-r--r--usr/src/pkgdefs/SUNWfctl/prototype_com48
-rw-r--r--usr/src/pkgdefs/SUNWfctl/prototype_i38653
-rw-r--r--usr/src/pkgdefs/SUNWfctl/prototype_sparc51
-rw-r--r--usr/src/pkgdefs/SUNWiir/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWiir/depend50
-rw-r--r--usr/src/pkgdefs/SUNWiir/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWiir/prototype_com52
-rw-r--r--usr/src/pkgdefs/SUNWiir/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWiir/prototype_sparc45
-rw-r--r--usr/src/pkgdefs/SUNWiiu/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWiiu/depend45
-rw-r--r--usr/src/pkgdefs/SUNWiiu/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWiiu/postinstall204
-rw-r--r--usr/src/pkgdefs/SUNWiiu/preinstall94
-rw-r--r--usr/src/pkgdefs/SUNWiiu/preremove107
-rw-r--r--usr/src/pkgdefs/SUNWiiu/prototype_com72
-rw-r--r--usr/src/pkgdefs/SUNWiiu/prototype_i38642
-rw-r--r--usr/src/pkgdefs/SUNWiiu/prototype_sparc40
-rw-r--r--usr/src/pkgdefs/SUNWiiu/space24
-rw-r--r--usr/src/pkgdefs/SUNWima/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWima/depend51
-rw-r--r--usr/src/pkgdefs/SUNWima/pkginfo.tmpl47
-rw-r--r--usr/src/pkgdefs/SUNWima/prototype_com47
-rw-r--r--usr/src/pkgdefs/SUNWima/prototype_i38651
-rw-r--r--usr/src/pkgdefs/SUNWima/prototype_sparc51
-rw-r--r--usr/src/pkgdefs/SUNWimac/Makefile37
-rw-r--r--usr/src/pkgdefs/SUNWimac/depend50
-rw-r--r--usr/src/pkgdefs/SUNWimac/pkginfo.tmpl47
-rw-r--r--usr/src/pkgdefs/SUNWimac/prototype_com45
-rw-r--r--usr/src/pkgdefs/SUNWimac/prototype_i38650
-rw-r--r--usr/src/pkgdefs/SUNWimac/prototype_sparc49
-rw-r--r--usr/src/pkgdefs/SUNWimacr/Makefile37
-rw-r--r--usr/src/pkgdefs/SUNWimacr/pkginfo.tmpl47
-rw-r--r--usr/src/pkgdefs/SUNWimacr/prototype_com42
-rw-r--r--usr/src/pkgdefs/SUNWimacr/prototype_i38646
-rw-r--r--usr/src/pkgdefs/SUNWimacr/prototype_sparc46
-rw-r--r--usr/src/pkgdefs/SUNWimar/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWimar/depend51
-rw-r--r--usr/src/pkgdefs/SUNWimar/ima.conf67
-rw-r--r--usr/src/pkgdefs/SUNWimar/pkginfo.tmpl47
-rw-r--r--usr/src/pkgdefs/SUNWimar/preinstall45
-rw-r--r--usr/src/pkgdefs/SUNWimar/prototype_com43
-rw-r--r--usr/src/pkgdefs/SUNWimar/prototype_i38646
-rw-r--r--usr/src/pkgdefs/SUNWimar/prototype_sparc46
-rw-r--r--usr/src/pkgdefs/SUNWiscsir/Makefile37
-rw-r--r--usr/src/pkgdefs/SUNWiscsir/pkginfo.tmpl47
-rw-r--r--usr/src/pkgdefs/SUNWiscsir/postinstall39
-rw-r--r--usr/src/pkgdefs/SUNWiscsir/preremove35
-rw-r--r--usr/src/pkgdefs/SUNWiscsir/prototype_com63
-rw-r--r--usr/src/pkgdefs/SUNWiscsir/prototype_i38650
-rw-r--r--usr/src/pkgdefs/SUNWiscsir/prototype_sparc48
-rw-r--r--usr/src/pkgdefs/SUNWiscsiu/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWiscsiu/depend54
-rw-r--r--usr/src/pkgdefs/SUNWiscsiu/pkginfo.tmpl47
-rw-r--r--usr/src/pkgdefs/SUNWiscsiu/preremove56
-rw-r--r--usr/src/pkgdefs/SUNWiscsiu/prototype_com46
-rw-r--r--usr/src/pkgdefs/SUNWiscsiu/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWiscsiu/prototype_sparc46
-rw-r--r--usr/src/pkgdefs/SUNWisns/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWisns/depend36
-rw-r--r--usr/src/pkgdefs/SUNWisns/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWisns/preremove55
-rw-r--r--usr/src/pkgdefs/SUNWisns/prototype_com49
-rw-r--r--usr/src/pkgdefs/SUNWisns/prototype_i38640
-rw-r--r--usr/src/pkgdefs/SUNWisns/prototype_sparc40
-rw-r--r--usr/src/pkgdefs/SUNWisnsadm/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWisnsadm/depend38
-rw-r--r--usr/src/pkgdefs/SUNWisnsadm/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWisnsadm/prototype_com48
-rw-r--r--usr/src/pkgdefs/SUNWisnsadm/prototype_i38640
-rw-r--r--usr/src/pkgdefs/SUNWisnsadm/prototype_sparc40
-rw-r--r--usr/src/pkgdefs/SUNWisnsr/Makefile37
-rw-r--r--usr/src/pkgdefs/SUNWisnsr/depend50
-rw-r--r--usr/src/pkgdefs/SUNWisnsr/pkginfo.tmpl49
-rw-r--r--usr/src/pkgdefs/SUNWisnsr/prototype_com46
-rw-r--r--usr/src/pkgdefs/SUNWisnsr/prototype_i38640
-rw-r--r--usr/src/pkgdefs/SUNWisnsr/prototype_sparc40
-rw-r--r--usr/src/pkgdefs/SUNWluxop/Makefile37
-rw-r--r--usr/src/pkgdefs/SUNWluxop/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWluxop/prototype_com44
-rw-r--r--usr/src/pkgdefs/SUNWluxop/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWluxop/prototype_sparc52
-rw-r--r--usr/src/pkgdefs/SUNWluxopr/Makefile38
-rw-r--r--usr/src/pkgdefs/SUNWluxopr/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWluxopr/prototype_com39
-rw-r--r--usr/src/pkgdefs/SUNWluxopr/prototype_sparc56
-rw-r--r--usr/src/pkgdefs/SUNWmpapi/Makefile37
-rw-r--r--usr/src/pkgdefs/SUNWmpapi/depend49
-rw-r--r--usr/src/pkgdefs/SUNWmpapi/pkginfo.tmpl43
-rw-r--r--usr/src/pkgdefs/SUNWmpapi/prototype_com32
-rw-r--r--usr/src/pkgdefs/SUNWmpapi/prototype_i38636
-rw-r--r--usr/src/pkgdefs/SUNWmpapi/prototype_sparc37
-rw-r--r--usr/src/pkgdefs/SUNWmpapir/Makefile39
-rw-r--r--usr/src/pkgdefs/SUNWmpapir/depend50
-rw-r--r--usr/src/pkgdefs/SUNWmpapir/pkginfo.tmpl47
-rw-r--r--usr/src/pkgdefs/SUNWmpapir/prototype_com35
-rw-r--r--usr/src/pkgdefs/SUNWmpapir/prototype_i38639
-rw-r--r--usr/src/pkgdefs/SUNWmpapir/prototype_sparc39
-rw-r--r--usr/src/pkgdefs/SUNWmpathadm/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWmpathadm/depend52
-rw-r--r--usr/src/pkgdefs/SUNWmpathadm/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWmpathadm/prototype_com38
-rw-r--r--usr/src/pkgdefs/SUNWmpathadm/prototype_i38632
-rw-r--r--usr/src/pkgdefs/SUNWmpathadm/prototype_sparc32
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/depend51
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/mpapi.conf63
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/pkginfo.tmpl43
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/preinstall45
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/prototype_com33
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/prototype_i38638
-rw-r--r--usr/src/pkgdefs/SUNWmpsvplr/prototype_sparc39
-rw-r--r--usr/src/pkgdefs/SUNWqlc/Makefile40
-rw-r--r--usr/src/pkgdefs/SUNWqlc/depend51
-rw-r--r--usr/src/pkgdefs/SUNWqlc/lic_Qlogic594
-rw-r--r--usr/src/pkgdefs/SUNWqlc/pkginfo.tmpl50
-rw-r--r--usr/src/pkgdefs/SUNWqlc/postinstall128
-rw-r--r--usr/src/pkgdefs/SUNWqlc/preremove33
-rw-r--r--usr/src/pkgdefs/SUNWqlc/prototype_com49
-rw-r--r--usr/src/pkgdefs/SUNWqlc/prototype_i38661
-rw-r--r--usr/src/pkgdefs/SUNWqlc/prototype_sparc55
-rw-r--r--usr/src/pkgdefs/SUNWqlcu/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWqlcu/depend50
-rw-r--r--usr/src/pkgdefs/SUNWqlcu/pkginfo.tmpl49
-rw-r--r--usr/src/pkgdefs/SUNWqlcu/prototype_com41
-rw-r--r--usr/src/pkgdefs/SUNWqlcu/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWqlcu/prototype_sparc45
-rw-r--r--usr/src/pkgdefs/SUNWqus/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWqus/pkginfo.tmpl54
-rw-r--r--usr/src/pkgdefs/SUNWqus/postinstall62
-rw-r--r--usr/src/pkgdefs/SUNWqus/preremove31
-rw-r--r--usr/src/pkgdefs/SUNWqus/prototype_com45
-rw-r--r--usr/src/pkgdefs/SUNWqus/prototype_sparc52
-rw-r--r--usr/src/pkgdefs/SUNWrdcr/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWrdcr/depend50
-rw-r--r--usr/src/pkgdefs/SUNWrdcr/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWrdcr/prototype_com54
-rw-r--r--usr/src/pkgdefs/SUNWrdcr/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWrdcr/prototype_sparc45
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/depend42
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/postinstall236
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/preinstall103
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/preremove124
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/prototype_com69
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/prototype_sparc42
-rw-r--r--usr/src/pkgdefs/SUNWrdcu/space25
-rw-r--r--usr/src/pkgdefs/SUNWscmr/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWscmr/depend48
-rw-r--r--usr/src/pkgdefs/SUNWscmr/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWscmr/postinstall41
-rw-r--r--usr/src/pkgdefs/SUNWscmr/prototype_com57
-rw-r--r--usr/src/pkgdefs/SUNWscmr/prototype_i38649
-rw-r--r--usr/src/pkgdefs/SUNWscmr/prototype_sparc46
-rw-r--r--usr/src/pkgdefs/SUNWscmr/space25
-rw-r--r--usr/src/pkgdefs/SUNWscmu/Makefile33
-rw-r--r--usr/src/pkgdefs/SUNWscmu/depend49
-rw-r--r--usr/src/pkgdefs/SUNWscmu/i.preserve31
-rw-r--r--usr/src/pkgdefs/SUNWscmu/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWscmu/postinstall393
-rw-r--r--usr/src/pkgdefs/SUNWscmu/preinstall123
-rw-r--r--usr/src/pkgdefs/SUNWscmu/preremove148
-rw-r--r--usr/src/pkgdefs/SUNWscmu/prototype_com74
-rw-r--r--usr/src/pkgdefs/SUNWscmu/prototype_i38653
-rw-r--r--usr/src/pkgdefs/SUNWscmu/prototype_sparc46
-rw-r--r--usr/src/pkgdefs/SUNWscmu/space23
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/depend49
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/preinstall46
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/preremove48
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/prototype_com55
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/prototype_i38647
-rw-r--r--usr/src/pkgdefs/SUNWspsvr/prototype_sparc45
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/Makefile33
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/depend50
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/postinstall213
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/preinstall91
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/preremove111
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/prototype_com62
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/prototype_i38641
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/prototype_sparc39
-rw-r--r--usr/src/pkgdefs/SUNWspsvu/space23
-rw-r--r--usr/src/pkgdefs/SUNWstmf/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWstmf/depend50
-rw-r--r--usr/src/pkgdefs/SUNWstmf/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWstmf/postinstall87
-rw-r--r--usr/src/pkgdefs/SUNWstmf/preremove55
-rw-r--r--usr/src/pkgdefs/SUNWstmf/prototype_com58
-rw-r--r--usr/src/pkgdefs/SUNWstmf/prototype_i38656
-rw-r--r--usr/src/pkgdefs/SUNWstmf/prototype_sparc50
-rw-r--r--usr/src/pkgdefs/SUNWstmfu/Makefile35
-rw-r--r--usr/src/pkgdefs/SUNWstmfu/pkginfo.tmpl48
-rw-r--r--usr/src/pkgdefs/SUNWstmfu/prototype_com59
-rw-r--r--usr/src/pkgdefs/SUNWstmfu/prototype_i38651
-rw-r--r--usr/src/pkgdefs/SUNWstmfu/prototype_sparc49
-rw-r--r--usr/src/pkgdefs/common_files/i.fpconf206
-rw-r--r--usr/src/pkgdefs/common_files/i.iscsiconf64
-rw-r--r--usr/src/pkgdefs/common_files/i.qlc257
-rw-r--r--usr/src/pkgdefs/etc/exception_list_i386107
-rw-r--r--usr/src/pkgdefs/etc/exception_list_sparc128
-rw-r--r--usr/src/pkgdefs/license_files/lic_SNIA404
306 files changed, 17901 insertions, 15 deletions
diff --git a/usr/src/pkgdefs/Makefile b/usr/src/pkgdefs/Makefile
index 4a49a9e0cc..5a53056b4b 100644
--- a/usr/src/pkgdefs/Makefile
+++ b/usr/src/pkgdefs/Makefile
@@ -75,6 +75,7 @@ sparc_SUBDIRS= \
SUNWldomu.v \
SUNWluxd.u \
SUNWluxl \
+ SUNWluxopr \
SUNWn2cp.v \
SUNWniumx.v \
SUNWnxge.u \
@@ -86,6 +87,7 @@ sparc_SUBDIRS= \
SUNWpdu \
SUNWpstl.u \
SUNWqfed \
+ SUNWqus \
SUNWsckmr \
SUNWsckmu.u \
SUNWsckm.u \
@@ -192,6 +194,11 @@ COMMON_SUBDIRS= \
SUNWbsu \
SUNWbtool \
SUNWcdrw \
+ SUNWcfcl \
+ SUNWcfclr \
+ SUNWcfpl \
+ SUNWcfplr \
+ SUNWchxge \
SUNWckr \
SUNWcnetr \
SUNWcnsr \
@@ -220,7 +227,18 @@ COMMON_SUBDIRS= \
SUNWdtrc \
SUNWdtrp \
SUNWdtrt \
+ SUNWemlxs \
+ SUNWemlxu \
SUNWesu \
+ SUNWfchba \
+ SUNWfchbar \
+ SUNWfcip \
+ SUNWfcmdb \
+ SUNWfcp \
+ SUNWfcprt \
+ SUNWfcprtr \
+ SUNWfcsm \
+ SUNWfctl \
SUNWfilebench \
SUNWfmd \
SUNWfmdr \
@@ -244,8 +262,13 @@ COMMON_SUBDIRS= \
SUNWib \
SUNWibsdpu \
SUNWibsdp \
+ SUNWiir \
+ SUNWiiu \
SUNWigb \
- SUNWixgbe \
+ SUNWima \
+ SUNWimac \
+ SUNWimar \
+ SUNWimacr \
SUNWintgige \
SUNWiotu \
SUNWioth \
@@ -257,9 +280,15 @@ COMMON_SUBDIRS= \
SUNWippcore \
SUNWipplr \
SUNWipplu \
+ SUNWiscsir \
SUNWiscsitgtr \
SUNWiscsitgtu \
+ SUNWiscsiu \
+ SUNWisns \
+ SUNWisnsadm \
+ SUNWisnsr \
SUNWixgb \
+ SUNWixgbe \
SUNWkrbr \
SUNWkrbu \
SUNWldskint \
@@ -271,6 +300,7 @@ COMMON_SUBDIRS= \
SUNWlpr-cmds \
SUNWkey \
SUNWloc \
+ SUNWluxop \
SUNWmdar \
SUNWmdau \
SUNWmdb \
@@ -282,6 +312,10 @@ COMMON_SUBDIRS= \
SUNWmibii \
SUNWmmsr \
SUNWmmsu \
+ SUNWmpapi \
+ SUNWmpapir \
+ SUNWmpathadm \
+ SUNWmpsvplr \
SUNWmxfe \
SUNWncar \
SUNWncau \
@@ -352,14 +386,21 @@ COMMON_SUBDIRS= \
SUNWpsf \
SUNWpsm-ipp \
SUNWpsm-lpd \
+ SUNWpmr \
SUNWpmu \
SUNWpsr \
SUNWpsu \
+ SUNWqlc \
+ SUNWqlcu \
+ SUNWqos \
+ SUNWqosu \
SUNWrcapr \
SUNWrcapu \
SUNWrcmdc \
SUNWrcmdr \
SUNWrcmds \
+ SUNWrdcr \
+ SUNWrdcu \
SUNWrds \
SUNWrge \
SUNWrmvolmgr \
@@ -371,9 +412,14 @@ COMMON_SUBDIRS= \
SUNWrpcib \
SUNWrsg \
SUNWrsgk \
+ SUNWrsm \
+ SUNWrsmo \
+ SUNWrtls \
SUNWsacom \
SUNWsasnm \
SUNWsbp2 \
+ SUNWscmr \
+ SUNWscmu \
SUNWscpr \
SUNWscpu \
SUNWscplp \
@@ -399,6 +445,8 @@ COMMON_SUBDIRS= \
SUNWsndmr \
SUNWsndmu \
SUNWspnego \
+ SUNWspsvr \
+ SUNWspsvu \
SUNWsra \
SUNWsrh \
SUNWsshcu \
@@ -406,6 +454,8 @@ COMMON_SUBDIRS= \
SUNWsshu \
SUNWsshdr \
SUNWsshdu \
+ SUNWstmf \
+ SUNWstmfu \
SUNWtcpd \
SUNWtcpdS \
SUNWtecla \
@@ -421,15 +471,18 @@ COMMON_SUBDIRS= \
SUNWtsg \
SUNWtsr \
SUNWtsu \
+ SUNWuacm \
+ SUNWucbt \
SUNWudaplr \
SUNWudaplu \
+ SUNWudf \
+ SUNWudfr \
SUNWuedg \
- SUNWuksp \
- SUNWukspfw \
SUNWugen \
SUNWugenu \
+ SUNWuksp \
+ SUNWukspfw \
SUNWuprl \
- SUNWuacm \
SUNWusbvc \
SUNWusb \
SUNWusbs \
@@ -437,24 +490,14 @@ COMMON_SUBDIRS= \
SUNWvscankr \
SUNWvscanr \
SUNWvscanu \
- SUNWxcu4 \
SUNWwlanr \
SUNWwlanu \
SUNWwpar \
SUNWwpau \
+ SUNWxcu4 \
SUNWxcu6 \
SUNWxwdv \
- SUNWpmr \
- SUNWudf \
- SUNWudfr \
- SUNWucbt \
- SUNWrsm \
- SUNWrsmo \
- SUNWrtls \
- SUNWqos \
- SUNWqosu \
SUNWxge \
- SUNWchxge \
SUNWzfskr \
SUNWzfsr \
SUNWzfsu \
diff --git a/usr/src/pkgdefs/SUNWcfcl/Makefile b/usr/src/pkgdefs/SUNWcfcl/Makefile
new file mode 100644
index 0000000000..1f87d1b3d0
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfcl/Makefile
@@ -0,0 +1,41 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "@(#)Makefile 1.1 08/08/19 SMI"
+#
+
+include ../Makefile.com
+
+DATAFILES += depend
+
+LICENSEFILES += $(CMN_LIC_DIR)/lic_SNIA
+
+.KEEP_STATE:
+
+all: $(FILES)
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWcfcl/pkginfo.tmpl b/usr/src/pkgdefs/SUNWcfcl/pkginfo.tmpl
new file mode 100644
index 0000000000..f38f04fa49
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfcl/pkginfo.tmpl
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "@(#)pkginfo.tmpl 1.1 08/08/19 SMI"
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWcfcl"
+NAME="Common Fibre Channel HBA API Library (Usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Common Fibre Channel HBA API Library based on the T11 FC-MI specification"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWcfcl/prototype_com b/usr/src/pkgdefs/SUNWcfcl/prototype_com
new file mode 100644
index 0000000000..09eb173d3f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfcl/prototype_com
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#pragma ident "@(#)prototype_com 1.1 08/08/19 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
+
+#
+#
+i pkginfo
+i depend
+i copyright
+d none usr 0755 root sys
+d none usr/lib 0755 root bin
+f none usr/lib/libHBAAPI.so.1 0755 root bin
+s none usr/lib/libHBAAPI.so=libHBAAPI.so.1
+d none usr/include 0755 root bin
+f none usr/include/hbaapi.h 0644 root bin
diff --git a/usr/src/pkgdefs/SUNWcfcl/prototype_i386 b/usr/src/pkgdefs/SUNWcfcl/prototype_i386
new file mode 100644
index 0000000000..b82f4cfd5a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfcl/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "@(#)prototype_i386 1.1 08/08/19 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWcfcl
+d none usr/lib/amd64 0755 root bin
+f none usr/lib/amd64/libHBAAPI.so.1 0755 root bin
+s none usr/lib/amd64/libHBAAPI.so=libHBAAPI.so.1
diff --git a/usr/src/pkgdefs/SUNWcfcl/prototype_sparc b/usr/src/pkgdefs/SUNWcfcl/prototype_sparc
new file mode 100644
index 0000000000..fbe8443db2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfcl/prototype_sparc
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "@(#)prototype_sparc 1.1 08/08/19 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
+#
+#
+# SUNWcfcl
+d none usr/lib/sparcv9 0755 root bin
+f none usr/lib/sparcv9/libHBAAPI.so.1 0755 root bin
+s none usr/lib/sparcv9/libHBAAPI.so=libHBAAPI.so.1
diff --git a/usr/src/pkgdefs/SUNWcfclr/Makefile b/usr/src/pkgdefs/SUNWcfclr/Makefile
new file mode 100644
index 0000000000..b8dede852d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfclr/Makefile
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "@(#)Makefile 1.1 08/08/19 SMI"
+#
+
+include ../Makefile.com
+DATAFILES += i.preserve
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWcfclr/depend b/usr/src/pkgdefs/SUNWcfclr/depend
new file mode 100644
index 0000000000..70b090315b
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfclr/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcfcl Common Fibre Channel HBA API Library (Usr)
diff --git a/usr/src/pkgdefs/SUNWcfclr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWcfclr/pkginfo.tmpl
new file mode 100644
index 0000000000..1fafb6d3d1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfclr/pkginfo.tmpl
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "@(#)pkginfo.tmpl 1.1 08/08/19 SMI"
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWcfclr"
+NAME="Common Fibre Channel HBA API Library (Root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none preserve"
+DESC="Common Fibre Channel HBA API Library based on the T11 FC-MI specification"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWcfclr/prototype_com b/usr/src/pkgdefs/SUNWcfclr/prototype_com
new file mode 100644
index 0000000000..8379387851
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfclr/prototype_com
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#pragma ident "@(#)prototype_com 1.1 08/08/19 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
+
+#
+#
+i pkginfo
+i i.preserve
+i depend
+i copyright
+d none etc 0755 root sys
+e preserve etc/hba.conf 0644 root bin
diff --git a/usr/src/pkgdefs/SUNWcfclr/prototype_i386 b/usr/src/pkgdefs/SUNWcfclr/prototype_i386
new file mode 100644
index 0000000000..02acc144db
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfclr/prototype_i386
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "@(#)prototype_i386 1.1 08/08/19 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWcfclr
diff --git a/usr/src/pkgdefs/SUNWcfclr/prototype_sparc b/usr/src/pkgdefs/SUNWcfclr/prototype_sparc
new file mode 100644
index 0000000000..4e3f196495
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfclr/prototype_sparc
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#ident "@(#)prototype_sparc 1.1 08/08/19 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
+#
+#
+# SUNWcfclr
diff --git a/usr/src/pkgdefs/SUNWcfpl/Makefile b/usr/src/pkgdefs/SUNWcfpl/Makefile
new file mode 100644
index 0000000000..0e7430d360
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfpl/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWcfpl/depend b/usr/src/pkgdefs/SUNWcfpl/depend
new file mode 100644
index 0000000000..a469e5cf09
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfpl/depend
@@ -0,0 +1,51 @@
+#
+# Copyright 2008 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 (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
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWluxop Sun Enterprise Network Array firmware and utilities
+P SUNWcfcl Common Fibre Channel HBA API Library (Usr)
diff --git a/usr/src/pkgdefs/SUNWcfpl/pkginfo.tmpl b/usr/src/pkgdefs/SUNWcfpl/pkginfo.tmpl
new file mode 100644
index 0000000000..4adda3f9b8
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfpl/pkginfo.tmpl
@@ -0,0 +1,56 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWcfpl"
+NAME="fp cfgadm plug-in library"
+ARCH="ISA"
+VERSION="ONVERS,REV=0.0.0"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+SUNW_PKGTYPE="usr"
+MAXINST="1000"
+CATEGORY="system"
+DESC="Provides the fp plug-in library of libcfgadm."
+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>"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWcfpl/prototype_com b/usr/src/pkgdefs/SUNWcfpl/prototype_com
new file mode 100644
index 0000000000..d531566457
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfpl/prototype_com
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+d none usr 0755 root sys
+d none usr/lib 0755 root bin
+d none usr/lib/cfgadm 0755 root bin
+f none usr/lib/cfgadm/fp.so.1 0755 root bin
+s none usr/lib/cfgadm/fp.so=fp.so.1
diff --git a/usr/src/pkgdefs/SUNWcfpl/prototype_i386 b/usr/src/pkgdefs/SUNWcfpl/prototype_i386
new file mode 100644
index 0000000000..8e9e52367d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfpl/prototype_i386
@@ -0,0 +1,52 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWcfpl
+#
+d none usr/lib/cfgadm/amd64 0755 root bin
+f none usr/lib/cfgadm/amd64/fp.so.1 0755 root bin
+s none usr/lib/cfgadm/amd64/fp.so=fp.so.1
diff --git a/usr/src/pkgdefs/SUNWcfpl/prototype_sparc b/usr/src/pkgdefs/SUNWcfpl/prototype_sparc
new file mode 100644
index 0000000000..95bc9b1bf1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfpl/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWcfpl
+#
+d none usr/lib/cfgadm/sparcv9 0755 root bin
+f none usr/lib/cfgadm/sparcv9/fp.so.1 0755 root bin
+s none usr/lib/cfgadm/sparcv9/fp.so=fp.so.1
diff --git a/usr/src/pkgdefs/SUNWcfplr/Makefile b/usr/src/pkgdefs/SUNWcfplr/Makefile
new file mode 100644
index 0000000000..8d3c7ffbf5
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfplr/Makefile
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend preremove
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWcfplr/depend b/usr/src/pkgdefs/SUNWcfplr/depend
new file mode 100644
index 0000000000..6e7736d6f2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfplr/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcfpl fp cfgadm plug-in library
diff --git a/usr/src/pkgdefs/SUNWcfplr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWcfplr/pkginfo.tmpl
new file mode 100644
index 0000000000..2803e91fa8
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfplr/pkginfo.tmpl
@@ -0,0 +1,56 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWcfplr"
+NAME="fp cfgadm plug-in library (root)"
+ARCH="ISA"
+VERSION="ONVERS,REV=0.0.0"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+SUNW_PKGTYPE="root"
+MAXINST="1000"
+CATEGORY="system"
+DESC="Provides support for fp plug-in library of libcfgadm."
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+CLASSES="manifest 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>"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWcfplr/preremove b/usr/src/pkgdefs/SUNWcfplr/preremove
new file mode 100644
index 0000000000..02d090d759
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfplr/preremove
@@ -0,0 +1,60 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"; export PATH
+
+SERVICE="svc:/system/device/fc-fabric:default"
+
+#
+# The following case implies that the installation was not on the root disk
+#
+if [ "${PKG_INSTALL_ROOT}" != "" -a "${PKG_INSTALL_ROOT}" != "/" ]; then
+ #
+ # Do not disable the service in this case.
+ #
+ exit 0
+fi
+
+#
+# Confirm service is installed, otherwise exit.
+#
+/usr/bin/svcprop -q ${SERVICE} || exit 0
+
+SVCPROP=`svcprop -p general/enabled ${SERVICE}`
+
+#
+# Check to see if the service is running and if so disable it.
+#
+if [ "${SVCPROP}" = "true" ]; then
+ svcadm disable ${SERVICE}
+ if [ $? -ne 0 ]; then
+ echo "\n$0 Disabling of ${SERVICE} failed!\n" >&2
+ exit 1
+ fi
+ svcadm refresh ${SERVICE}
+fi
+exit 0
diff --git a/usr/src/pkgdefs/SUNWcfplr/prototype_com b/usr/src/pkgdefs/SUNWcfplr/prototype_com
new file mode 100644
index 0000000000..c581e93fdd
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfplr/prototype_com
@@ -0,0 +1,52 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 preremove
+i i.manifest
+i r.manifest
+d none var 755 root sys
+d none var/svc 755 root sys
+d none var/svc/manifest 755 root sys
+d none var/svc/manifest/system 755 root sys
+d none var/svc/manifest/system/device 755 root sys
+f manifest var/svc/manifest/system/device/devices-fc-fabric.xml 0444 root sys
+d none lib 755 root bin
+d none lib/svc 755 root bin
+d none lib/svc/method 755 root bin
+f none lib/svc/method/fc-fabric 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWcfplr/prototype_i386 b/usr/src/pkgdefs/SUNWcfplr/prototype_i386
new file mode 100644
index 0000000000..ea1d7e0ee8
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfplr/prototype_i386
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWcfplr
+#
diff --git a/usr/src/pkgdefs/SUNWcfplr/prototype_sparc b/usr/src/pkgdefs/SUNWcfplr/prototype_sparc
new file mode 100644
index 0000000000..3e01ee0510
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWcfplr/prototype_sparc
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWcfplr
+#
diff --git a/usr/src/pkgdefs/SUNWemlxs/Makefile b/usr/src/pkgdefs/SUNWemlxs/Makefile
new file mode 100644
index 0000000000..cbaa4c74de
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+LICENSEFILES = $(PKGDEFS)/SUNWemlxs/lic_Emulex
+
+.KEEP_STATE:
+
+all: $(FILES) depend preremove postinstall
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWemlxs/depend b/usr/src/pkgdefs/SUNWemlxs/depend
new file mode 100644
index 0000000000..e1e246f1b7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfctl Sun Fibre Channel Transport layer
diff --git a/usr/src/pkgdefs/SUNWemlxs/i.emlxsconf b/usr/src/pkgdefs/SUNWemlxs/i.emlxsconf
new file mode 100644
index 0000000000..c1014bc5a9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/i.emlxsconf
@@ -0,0 +1,458 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+
+# Use locale C to evaluate extended acsii characters in existing conf file
+LC_ALL=C; export LC_ALL
+
+tmpfile=/tmp/emlxs_tmp_$$
+sedfile=/tmp/emlxs-sed_$$
+
+
+remove_oldheader ()
+# Remove address and confidential notice no longer used
+{
+ sed -e '/^# 3333 Susan Street, Costa Mesa, CA 92626/d' \
+ -e '/^# All rights reserved. This computer program and related /',\
+'/^# copyright laws and may subject you to criminal prosecution./d'\
+ $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+}
+
+
+update_header ()
+# Update Copyright in Destination
+{
+ emlxs_copyright=`grep '# COPYRIGHT.*Emulex.*' $src`
+
+ sed -e "s:# *EMLXS.CONF:# EMLXS.CONF:" \
+ -e "s:# COPYRIGHT.*Emulex.*:$emlxs_copyright:" $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+}
+
+
+add_pci_max_read ()
+# Add pci-max-read comment block
+{
+ cat >> $dest <<PCIMAXREAD
+# pci-max-read: Sets the PCI-X max memory read byte count on the adapter.
+#
+# This value controls the adapter's max PCI-X memory read count.
+# On Sunfire x4100/4200 systems this parameter must be changed to
+# 1024 bytes. Currently, this parameter should only be modified on
+# Sunfire x4100/4200 systems due to the unique nature of the PCI-X bus
+# on these systems, otherwise it should be left as default.
+#
+# Options: 512, 1024, 2048, 4096
+#
+# Range: Min:512 Max:4096 Default:2048
+#
+# *Uncomment this parameter for Sunfire x4100/4200 systems only
+#pci-max-read=1024;
+
+
+PCIMAXREAD
+}
+
+
+create_update_pci_max_read_sedfile ()
+# Create sed file to replace old pci-max-read comment
+# with new information
+#
+{
+ cat > $sedfile <<SEDCMDS
+/^# pci-max-read: /{
+n
+n
+/# Uncomment this parameter for Sunfire x4100\/4200 systems only/c\\
+\# This value controls the adapter's max PCI-X memory read count.\\
+\# On Sunfire x4100/4200 systems this parameter must be changed to \\
+\# 1024 bytes. Currently, this parameter should only be modified on \\
+\# Sunfire x4100/4200 systems due to the unique nature of the PCI-X bus \\
+\# on these systems, otherwise it should be left as default.\\
+\#\\
+\# Options: 512, 1024, 2048, 4096\\
+\#\\
+\# Range: Min:512 Max:4096 Default:2048\\
+\#\\
+\# *Uncomment this parameter for Sunfire x4100/4200 systems only
+}
+SEDCMDS
+}
+
+
+check_pci_max_read ()
+# pci-max-read may be either new or need updating
+{
+ grep "pci-max-read=" $dest > /dev/null
+ if [ $? -eq 0 ]; then
+
+ # Make sure comment is up to date
+
+ create_update_pci_max_read_sedfile
+ sed -f $sedfile $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+
+ else
+ # Add comment block
+ add_pci_max_read
+ fi
+}
+
+
+add_vport_comment ()
+# Add vport comment
+{
+ cat >> $dest << VPORT_CMT
+# vport: Virtual port registration table.
+# The enable-npiv must be set to 1.
+#
+# The vport table may have any number of comma delimited entries.
+# Each entry must be of the form:
+#
+# "PHYS_WWPN:VPORT_WWNN:VPORT_WWPN:VPORT_ID"
+#
+# PHYS_WWPN = World Wide Port Name of adapter's physical port
+# VPORT_WWNN = Desired World Wide Node Name of virtual port
+# VPORT_WWPN = Desired World Wide Port Name of virtual port
+# VPORT_ID = Desired virtual port id (1 to max vports)
+# The port ids must start at 1 and increment by 1
+# with no gaps in the count.
+#
+# Example:
+#
+# vport="10000000c9123456:28010000c9123456:20010000c9123456:1",
+# "10000000c9123456:28020000c9123456:20020000c9123456:2",
+# "10000000c9123457:28010000c9123457:20010000c9123457:1",
+# "10000000c9123457:28020000c9123457:20020000c9123457:2",
+# "10000000c9123457:28030000c9123457:20030000c9123457:3";
+#
+
+
+VPORT_CMT
+}
+
+
+create_default_num_nodes_sedfile ()
+# Create sed script to determine Default comment for num_nodes
+# Used by check_num_nodes routine
+{
+ cat > $sedfile <<SEDCMDS
+/^# num-nodes: /{
+N
+N
+N
+N
+s/.*Default:\([0-9]*\).*/\1/p
+}
+SEDCMDS
+}
+
+
+create_update_num_nodes_sedfile ()
+# Create sed script to replace num_nodes comment block
+# Used by check_num_nodes routine
+{
+ cat > $sedfile <<SEDCMDS
+/^# num-nodes: /{
+a\\
+\#
+a\\
+\# 0 = Indicates auto detect limit of adapter.
+n
+s/# /#/
+n
+s/Range: Min:2 Max:512 Default:512/Range: Min:0 Max:4096 Default:0/
+n
+n
+s/num-nodes=512;/num-nodes=0;/
+}
+SEDCMDS
+}
+
+
+check_num_nodes ()
+# num-nodes values range and default were modified
+# As the old default (512) is still a valid setting we need
+# to rely on the comment block to decide to make the change.
+# If num-nodes != 512 then no change
+# If num-nodes == 512 and no comment block then no change
+# If num-nodes == 512 and new comment block then no change
+# If num-nodes == 512 and old comment block then make change
+{
+ grep "^num-nodes=512;" $dest > /dev/null
+ if [ $? -eq 0 ]; then
+ create_default_num_nodes_sedfile
+ default=`sed -n -f $sedfile $dest`
+ if [ -n "$default" ] && [ $default -eq 512 ] ; then
+ create_update_num_nodes_sedfile
+ sed -f $sedfile $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+ fi
+ fi
+}
+
+
+create_max_link_speed_sedfile ()
+# Create sed script to determine Max in comments for link_speed
+# Used by check_link_speed routine
+{
+ cat > $sedfile <<SEDCMDS
+/^# link-speed: /{
+N
+N
+N
+N
+N
+N
+N
+N
+N
+s/.*Max:\([0-9]*\).*/\1/p
+}
+SEDCMDS
+}
+
+
+create_update_link_speed_sedfile ()
+# Create sed script to update speed-link comment block
+# Used by check_link_speed routine
+{
+ cat > $sedfile <<SEDCMDS
+/^# link-speed: /{
+n
+n
+n
+n
+n
+n
+a\\
+\# 8 = 8 Gigabaud
+n
+n
+s/Max:4/Max:8/
+}
+SEDCMDS
+}
+
+
+check_link_speed ()
+# link-speed value for range was modified
+# Old Max: 4 New Max: 8
+{
+ create_max_link_speed_sedfile
+ max=`sed -n -f $sedfile $dest`
+ if [ -n "$max" ] && [ $max -eq 4 ] ; then
+ create_update_link_speed_sedfile
+ sed -f $sedfile $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+ fi
+}
+
+
+add_log_ct ()
+# add LOG_CT comment to destination
+{
+ sed -e '/# LOG_FIRMWARE /a\
+\# LOG_CT 0x00010000 /* CT events */' $dest > $tmpfile
+
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+}
+
+
+add_log_fcsp ()
+# add LOG_CT comment to destination
+{
+ sed -e '/# LOG_CT /a\
+\# LOG_FCSP 0x00020000 /* FCSP events */' $dest > $tmpfile
+
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+}
+
+
+add_parameter ()
+# Add new parameters and comment block from src confile
+{
+ newparam=$1
+
+ # Special cases - parameters not used or which have been updated
+
+ if [ $newparam = pci-max-read ] ; then
+ # pci-max-read parameter may be new or need to be updated
+ check_pci_max_read
+ elif [ $newparam = vport ] ; then
+ # vport parameter is not included in the delivered conf file.
+ # Check is done against the first line of the vport comment instead.
+ # to see if comment was already added.
+
+ grep "^# vport: Virtual port registration table." $dest > /dev/null
+ if [ $? -ne 0 ] ;then
+ add_vport_comment
+ fi
+ else
+
+ # Regular parameters
+ commentblk=""
+
+ # Lookup comment and parameter from src conffile
+
+ while read confline
+ do
+
+ if [ -z "$confline" ] ; then
+
+ # Blank line; reset block and resume
+
+ commentblk=""
+ continue
+ fi
+
+ echo "$confline" | grep '^#' > /dev/null 2>&1
+ if [ $? -eq 0 ] ; then
+
+ # Comment
+
+ # Start new comment block or append to existing block.
+
+ if [ -z "${commentblk}" ] ; then
+ commentblk="${confline}"
+ else
+ commentblk="${commentblk}\n${confline}"
+ fi
+ continue
+ fi
+
+ # Must be a parameter
+
+ param=`echo "$confline" | sed 's/\(.*\)=.*/\1/'`
+
+ if [ "${newparam}" = "${param}" ] ; then
+ echo "$commentblk" >> $dest
+ echo "$confline" >> $dest
+ echo "\n" >> $dest
+ else
+ # Wrong parameter; reset block
+ commentblk=""
+ continue
+ fi
+ done < $src
+ fi
+}
+
+
+new_content ()
+# look up new parameters and add if needed
+# Add the parameter variable to the new_params list.
+{
+ new_params="\
+ pci-max-read \
+ linkup-delay \
+ enable-npiv \
+ vport-restrict-login \
+ vport \
+ enable-auth \
+ max-xfer-size \
+ target-mode \
+ "
+
+ for param in $new_params ; do
+ grep "^${param}=" $dest > /dev/null
+ if [ $? -ne 0 ] ; then
+ add_parameter $param
+ fi
+ done
+}
+
+
+update_content ()
+# Update existing information in destination conffile
+{
+ # Correct spelling issue
+ sed -e 's/manamgnet/management/' \
+ -e 's/# LOG_RESERVED 0xfff.0000/# LOG_RESERVED 0xfffc0000/' \
+ $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+
+ if grep '^# LOG_CT ' $dest > /dev/null ; then
+ :
+ else
+ add_log_ct
+ fi
+
+ if grep '^# LOG_FCSP ' $dest > /dev/null ; then
+ :
+ else
+ add_log_fcsp
+ fi
+
+ check_num_nodes
+
+ check_link_speed
+
+}
+
+
+
+#
+# Main --------------------
+#
+
+while read src dest
+do
+ if [ ! -f $dest ] ; then
+ cp $src $dest
+
+ else
+
+ # Upgrade destination file
+ remove_oldheader
+ update_header
+ new_content
+ update_content
+
+ fi
+done
+
+exit 0
+
+
diff --git a/usr/src/pkgdefs/SUNWemlxs/lic_Emulex b/usr/src/pkgdefs/SUNWemlxs/lic_Emulex
new file mode 100644
index 0000000000..86ddca1c56
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/lic_Emulex
@@ -0,0 +1,501 @@
+--------------------------------------------------------------------
+
+CDDL HEADER START
+
+The contents of this file are subject to the terms of the
+Common Development and Distribution License (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) 2004-2008 Emulex.
+Emulex Leadville emlxs HBA device driver
+
+This program includes a StorEdge SAN foundation Software (SFS) FCA device
+driver ("Leadville") and Emulex hardware-specific firmware binary files. You
+may modify and redistribute the device driver code (but not the firmware
+binary files) under License 1, version 1.0 of the Common Development and
+Distribution License ("CDDL") as published by Sun Microsystems, Inc., and
+reproduced below. The Emulex firmware binary files are licensed under License
+2.
+
+REGARDLESS OF THE LICENSING MECHANISM USED OR APPLICABLE, THIS PROGRAM IS
+PROVIDED BY EMULEX "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING
+WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL EMULEX BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, WITHOUT LIMITATION, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS PROGRAM, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+LICENSEE ACKNOWLEDGES AND AGREES THAT USE OF THIS PROGRAM WILL NOT CREATE OR
+GIVE GROUNDS FOR A LICENSE BY IMPLICATION, ESTOPPEL, OR OTHERWISE IN ANY
+INTELLECTUAL PROPERTY RIGHTS (PATENT, COPYRIGHT, TRADE SECRET, MASK WORK, OR
+OTHER PROPRIETARY RIGHT) EMBODIED IN ANY EMULEX HARDWARE OR FIRMWARE, EITHER
+SOLELY OR IN COMBINATION WITH THIS PROGRAM.
+
+If Licensee uses or distributes only the device driver (without the firmware
+binary files), only License #1 must accompany such device driver. Licensee
+must include this entire file when Licensee uses or distributes both the
+device driver and firmware binary files.
+
+
+
+LICENSE #1
+
+ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)
+ Version 1.0
+
+1. Definitions.
+
+1.1. "Contributor" means each individual or entity that creates or
+contributes to the creation of Modifications.
+
+1.2. "Contributor Version" means the combination of the Original Software,
+prior Modifications used by a Contributor (if any), and the Modifications
+made by that particular Contributor.
+
+1.3. "Covered Software" means (a) the Original Software, or (b)
+Modifications, or (c) the combination of files containing Original Software
+with files containing Modifications, in each case including portions thereof.
+
+1.4. "Executable" means the Covered Software in any form other than Source
+Code.
+
+1.5. "Initial Developer" means the individual or entity that first makes
+Original Software available under this License.
+
+1.6. "Larger Work" means a work which combines Covered Software or
+portions thereof with code not governed by the terms of this License.
+
+1.7. "License" means this document.
+
+1.8. "Licensable" means having the right to grant, to the maximum extent
+possible, whether at the time of the initial grant or subsequently acquired,
+any and all of the rights conveyed herein.
+
+1.9. "Modifications" means the Source Code and Executable form of any of
+the following:
+
+ A. Any file that results from an addition to, deletion from or
+ modification of the contents of a file containing Original Software
+ or previous Modifications;
+
+ B. Any new file that contains any part of the Original Software
+ or previous Modification; or
+
+ C. Any new file that is contributed or otherwise made available
+ under the terms of this License.
+
+1.10. "Original Software" means the Source Code and Executable form of
+computer software code that is originally released under this License.
+
+1.11. "Patent Claims" means any patent claim(s), now owned or hereafter
+acquired, including without limitation, method, process, and apparatus
+claims, in any patent Licensable by grantor.
+
+1.12. "Source Code" means (a) the common form of computer software code in
+which modifications are made and (b) associated documentation included in or
+with such code.
+
+1.13. "You" (or "Your") means an individual or a legal entity exercising
+rights under, and complying with all of the terms of, this License. For legal
+entities, "You" includes any entity which controls, is controlled by, or is
+under common control with You. For purposes of this definition, "control"
+means (a) the power, direct or indirect, to cause the direction or management
+of such entity, whether by contract or otherwise, or (b) ownership of more
+than fifty percent (50%) of the outstanding shares or beneficial ownership of
+such entity.
+
+2. License Grants.
+
+2.1. The Initial Developer Grant.
+
+Conditioned upon Your compliance with Section 3.1 below and subject to third
+party intellectual property claims, the Initial Developer hereby grants You a
+world-wide, royalty-free, non-exclusive license:
+
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Initial Developer, to use, reproduce,
+ modify, display, perform, sublicense and distribute the Original
+ Software (or portions thereof), with or without Modifications, and/or
+ as part of a Larger Work; and
+
+ (b) under Patent Claims infringed by the making, using or selling
+ of Original Software, to make, have made, use, practice, sell, and
+ offer for sale, and/or otherwise dispose of the Original Software (or
+ portions thereof).
+
+ (c) The licenses granted in Sections 2.1(a) and (b) are effective
+ on the date Initial Developer first distributes or otherwise makes
+ the Original Software available to a third party under the terms of
+ this License.
+
+ (d) Notwithstanding Section 2.1(b) above, no patent license is
+ granted: (1) for code that You delete from the Original Software, or
+ (2) for infringements caused by: (i) the modification of the Original
+ Software, or (ii) the combination of the Original Software with other
+ software or devices.
+
+2.2. Contributor Grant.
+
+Conditioned upon Your compliance with Section 3.1 below and subject to third
+party intellectual property claims, each Contributor hereby grants You a
+world-wide, royalty-free, non-exclusive license:
+
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Contributor to use, reproduce, modify,
+ display, perform, sublicense and distribute the Modifications created
+ by such Contributor (or portions thereof), either on an unmodified
+ basis, with other Modifications, as Covered Software and/or as part
+ of a Larger Work; and
+
+ (b) under Patent Claims infringed by the making, using, or
+ selling of Modifications made by that Contributor either alone and/or
+ in combination with its Contributor Version (or portions of such
+ combination), to make, use, sell, offer for sale, have made, and/or
+ otherwise dispose of: (1) Modifications made by that Contributor (or
+ portions thereof); and (2) the combination of Modifications made by
+ that Contributor with its Contributor Version (or portions of such
+ combination).
+
+ (c) The licenses granted in Sections 2.2(a) and 2.2(b) are
+ effective on the date Contributor first distributes or otherwise
+ makes the Modifications available to a third party.
+
+ (d) Notwithstanding Section 2.2(b) above, no patent license is
+ granted: (1) for any code that Contributor has deleted from the
+ Contributor Version; (2) for infringements caused by: (i) third party
+ modifications of Contributor Version, or (ii) the combination of
+ Modifications made by that Contributor with other software (except as
+ part of the Contributor Version) or other devices; or (3) under
+ Patent Claims infringed by Covered Software in the absence of
+ Modifications made by that Contributor.
+
+3. Distribution Obligations.
+
+3.1. Availability of Source Code.
+
+Any Covered Software that You distribute or otherwise make available in
+Executable form must also be made available in Source Code form and that
+Source Code form must be distributed only under the terms of this License.
+You must include a copy of this License with every copy of the Source Code
+form of the Covered Software You distribute or otherwise make available. You
+must inform recipients of any such Covered Software in Executable form as to
+how they can obtain such Covered Software in Source Code form in a reasonable
+manner on or through a medium customarily used for software exchange.
+
+3.2. Modifications.
+
+The Modifications that You create or to which You contribute are governed by
+the terms of this License. You represent that You believe Your Modifications
+are Your original creation(s) and/or You have sufficient rights to grant the
+rights conveyed by this License.
+
+3.3. Required Notices.
+
+You must include a notice in each of Your Modifications that identifies You
+as the Contributor of the Modification. You may not remove or alter any
+copyright, patent or trademark notices contained within the Covered Software,
+or any notices of licensing or any descriptive text giving attribution to any
+Contributor or the Initial Developer.
+
+3.4. Application of Additional Terms.
+
+You may not offer or impose any terms on any Covered Software in Source Code
+form that alters or restricts the applicable version of this License or the
+recipients' rights hereunder. You may choose to offer, and to charge a fee
+for, warranty, support, indemnity or liability obligations to one or more
+recipients of Covered Software. However, you may do so only on Your own
+behalf, and not on behalf of the Initial Developer or any Contributor. You
+must make it absolutely clear that any such warranty, support, indemnity or
+liability obligation is offered by You alone, and You hereby agree to
+indemnify the Initial Developer and every Contributor for any liability
+incurred by the Initial Developer or such Contributor as a result of
+warranty, support, indemnity or liability terms You offer.
+
+3.5. Distribution of Executable Versions.
+
+You may distribute the Executable form of the Covered Software under the
+terms of this License or under the terms of a license of Your choice, which
+may contain terms different from this License, provided that You are in
+compliance with the terms of this License and that the license for the
+Executable form does not attempt to limit or alter the recipient's rights in
+the Source Code form from the rights set forth in this License. If You
+distribute the Covered Software in Executable form under a different license,
+You must make it absolutely clear that any terms which differ from this
+License are offered by You alone, not by the Initial Developer or
+Contributor. You hereby agree to indemnify the Initial Developer and every
+Contributor for any liability incurred by the Initial Developer or such
+Contributor as a result of any such terms You offer.
+
+3.6. Larger Works.
+
+You may create a Larger Work by combining Covered Software with other code
+not governed by the terms of this License and distribute the Larger Work as a
+single product. In such a case, You must make sure the requirements of this
+License are fulfilled for the Covered Software.
+
+4. Versions of the License.
+
+4.1. New Versions.
+
+Sun Microsystems, Inc. is the initial license steward and may publish revised
+and/or new versions of this License from time to time. Each version will be
+given a distinguishing version number. Except as provided in Section 4.3, no
+one other than the license steward has the right to modify this License.
+
+4.2. Effect of New Versions.
+
+You may always continue to use, distribute or otherwise make the Covered
+Software available under the terms of the version of the License under which
+You originally received the Covered Software. If the Initial Developer
+includes a notice in the Original Software prohibiting it from being
+distributed or otherwise made available under any subsequent version of the
+License, You must distribute and make the Covered Software available under
+the terms of the version of the License under which You originally received
+the Covered Software. Otherwise, You may also choose to use, distribute or
+otherwise make the Covered Software available under the terms of any
+subsequent version of the License published by the license steward.
+
+4.3. Modified Versions.
+
+When You are an Initial Developer and You want to create a new license for
+Your Original Software, You may create and use a modified version of this
+License if You: (a) rename the license and remove any references to the name
+of the license steward (except to note that the license differs from this
+License); and (b) otherwise make it clear that the license contains terms
+which differ from this License.
+
+5. DISCLAIMER OF WARRANTY.
+
+COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT
+WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT
+LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS,
+MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK
+AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD
+ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL
+DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
+SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN
+ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED
+HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+6. TERMINATION.
+
+6.1. This License and the rights granted hereunder will terminate
+automatically if You fail to comply with terms herein and fail to cure such
+breach within 30 days of becoming aware of the breach. Provisions which, by
+their nature, must remain in effect beyond the termination of this License
+shall survive.
+
+6.2. If You assert a patent infringement claim (excluding declaratory
+judgment actions) against Initial Developer or a Contributor (the Initial
+Developer or Contributor against whom You assert such claim is referred to as
+"Participant") alleging that the Participant Software (meaning the
+Contributor Version where the Participant is a Contributor or the Original
+Software where the Participant is the Initial Developer) directly or
+indirectly infringes any patent, then any and all rights granted directly or
+indirectly to You by such Participant, the Initial Developer (if the Initial
+Developer is not the Participant) and all Contributors under Sections 2.1
+and/or 2.2 of this License shall, upon 60 days notice from Participant
+terminate prospectively and automatically at the expiration of such 60 day
+notice period, unless if within such 60 day period You withdraw Your claim
+with respect to the Participant Software against such Participant either
+unilaterally or pursuant to a written agreement with Participant.
+
+6.3. In the event of termination under Sections 6.1 or 6.2 above, all end
+user licenses that have been validly granted by You or any distributor
+hereunder prior to termination (excluding licenses granted to You by any
+distributor) shall survive termination.
+
+7. LIMITATION OF LIABILITY.
+
+UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING
+NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY
+OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF
+ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL,
+INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
+LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE,
+COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
+LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF
+SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR
+DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT
+APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
+EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS
+EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
+
+8. U.S. GOVERNMENT END USERS.
+
+The Covered Software is a "commercial item," as that term is defined in 48
+C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" (as
+that term is defined at 48 C.F.R. § 252.227-7014(a)(1)) and "commercial
+computer software documentation" as such terms are used in 48 C.F.R. 12.212
+(Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1
+through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered
+Software with only those rights set forth herein. This U.S. Government Rights
+clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause or
+provision that addresses Government rights in computer software under this
+License.
+
+9. MISCELLANEOUS.
+
+This License represents the complete agreement concerning subject matter
+hereof. If any provision of this License is held to be unenforceable, such
+provision shall be reformed only to the extent necessary to make it
+enforceable. This License shall be governed by the law of the jurisdiction
+specified in a notice contained within the Original Software (except to the
+extent applicable law, if any, provides otherwise), excluding such
+jurisdiction's conflict-of-law provisions. Any litigation relating to this
+License shall be subject to the jurisdiction of the courts located in the
+jurisdiction and venue specified in a notice contained within the Original
+Software, with the losing party responsible for costs, including, without
+limitation, court costs and reasonable attorneys' fees and expenses. The
+application of the United Nations Convention on Contracts for the
+International Sale of Goods is expressly excluded. Any law or regulation
+which provides that the language of a contract shall be construed against the
+drafter shall not apply to this License. You agree that You alone are
+responsible for compliance with the United States export administration
+regulations (and the export control laws and regulation of any other
+countries) when You use, distribute or otherwise make available any Covered
+Software.
+
+10. RESPONSIBILITY FOR CLAIMS.
+
+As between Initial Developer and the Contributors, each party is responsible
+for claims and damages arising, directly or indirectly, out of its
+utilization of rights under this License and You agree to work with Initial
+Developer and Contributors to distribute such responsibility on an equitable
+basis. Nothing herein is intended or shall be deemed to constitute any
+admission of liability.
+
+-----------------------------------------------------------------------------
+NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION
+LICENSE (CDDL)
+The OpenSolaris code released under the CDDL shall be governed by the laws of
+the State of California (excluding conflict-of-law provisions). Any
+litigation relating to this License shall be subject to the jurisdiction of
+the Federal Courts of the Northern District of California and the state
+courts of the State of California, with venue lying in Santa Clara County,
+California.
+
+
+
+LICENSE #2
+
+THIS PRODUCT CONTAINS FIRMWARE ("EMULEX FIRMWARE") THAT BELONGS TO EMULEX
+CORPORATION ("EMULEX"), THE USE OF WHICH IS SUBJECT TO THIS LICENSE AGREEMENT
+("AGREEMENT") UNLESS OTHERWISE AGREED TO IN WRITING BY EMULEX. INSTALLING OR
+USING THE EMULEX FIRMWARE CONSTITUTES ACCEPTANCE OF ALL THE TERMS AND
+CONDITIONS OF THIS AGREEMENT UNLESS OTHERWISE AGREED TO IN WRITING BY EMULEX.
+IF LICENSEE DOES NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT,
+LICENSEE SHALL NOT INSTALL OR USE THE EMULEX FIRMWARE. WRITTEN APPROVAL IS
+NOT A PREREQUISITE TO THE VALIDITY OR ENFORCEABILITY OF THIS AGREEMENT.
+
+1. Limited Licenses
+
+1.1 Derivatives. Emulex hereby grants Licensee the personal,
+nontransferable, nonexclusive, royalty-free right and license to include the
+Emulex Firmware in derivative works that Licensee may create under the terms
+and conditions of License #1. For avoidance of doubt, Licensee acknowledges
+that the Emulex Firmware is not licensed under nor otherwise subject to the
+terms and conditions of License #1.
+
+1.2 Distribution. Emulex hereby grants Licensee the personal,
+nontransferable, nonexclusive, royalty free, right and license to use,
+distribute, and sublicense copies of Emulex Firmware solely for use with
+Emulex hardware products for which the Emulex Firmware was written and that
+Licensee has purchased from Sun Microsystems or its authorized distributors
+or resellers. Such distribution may be on electronic media or via download
+from Licensee's website or other electronic means. Licensee shall grant each
+sublicensee a nonexclusive, nontransferable license to use the Emulex
+Firmware in Object Code only and shall authorize such sublicensees to make
+one archival copy of the Emulex Firmware. Licensee shall not use, reproduce,
+duplicate, copy, or otherwise sublicense, disclose, distribute, or
+disseminate the Emulex Firmware except as permitted under this Agreement.
+
+1.3 End User. Emulex grants Licensee a personal, worldwide,
+nontransferable, nonexclusive, royalty-free right and license to use the
+Emulex Firmware only with Emulex hardware products and without circumventing
+any security or rights management features.
+
+1.4 Restrictions. Licensee agrees to maintain intact and not modify or
+delete Emulex's copyright notice that is contained with each copy of the
+Emulex Firmware. Licensee shall not (1) reverse engineer, reverse compile or
+reverse assemble all or any part of the Emulex Firmware, (2) disseminate
+performance information or analysis to any third party, other than solely for
+product support purposes, from any source relating to the Emulex Firmware, or
+cause or permit others to do either of both of the foregoing. Licensee
+agrees to prevent any unauthorized copying of the Emulex Firmware.
+
+2. Intellectual Property Rights. The Emulex Firmware is licensed, not sold.
+Emulex or its licensors retain all right, title and interest, including
+without limitation all intellectual property rights, in and to all copies,
+regardless of form or media, of the Emulex Firmware. The Emulex Firmware
+contains trade secrets of Emulex and Licensee agrees that it shall employ
+reasonable security precautions to maintain the confidentiality of such trade
+secrets.
+
+3. Indemnity. Licensee shall defend, indemnify and hold Emulex harmless
+from and against any and all claims, damages, liabilities, costs and expenses
+(including, without limitation, attorneys' fees) arising out of Licensee's
+breach of its obligations under this Agreement.
+
+4. Term and termination. The term of this Agreement shall continue until
+Licensee (a) ceases exercising its rights under Section 1 of this Agreement,
+(b) breaches a material term of this Agreement, or (c) gives written notice
+of termination to Emulex. Upon termination of this Agreement, all copies of
+the Emulex Firmware in the possession of Licensee shall be either returned to
+Emulex or destroyed by Licensee.
+
+5. Warranty Disclaimer. Emulex makes no warranties whatsoever, express or
+implied, with respect to the Emulex Firmware. Licensee agrees that the
+Emulex Firmware is accepted and utilized "AS IS." EMULEX DISCLAIMS ANY AND
+ALL PROMISES, REPRESENTATIONS, AND WARRANTIES, EXCEPT AS EXPRESSLY SET FORTH
+IN THIS AGREEMENT, WITH RESPECT TO THE EMULEX FIRMWARE; ANY DATA,
+INFORMATION, OR OTHER MATERIAL FURNISHED TO THE LICENSEE HEREUNDER, INCLUDING
+THEIR CONDITION; CONFORMITY TO ANY REPRESENTATION OR DESCRIPTION; THE
+EXISTENCE OF ANY LATENT OR PATENT DEFECTS; AND TITLE, MERCHANTABILITY, OR
+FITNESS FOR A PARTICULAR PURPOSE OR USE.
+
+6. Limitation of Liability. Emulex shall have no liability to Licensee, or
+any third party, whether in contract, tort, negligence or products liability
+for any claim, loss of use, business interruption, lost data, lost files, or
+for any indirect, special, incidental, or consequential damages of any kind
+or nature whatsoever arising out of or in connection with the use of or
+inability to use the Emulex Firmware or the performance or operation of the
+Emulex Firmware, even if Emulex has been advised of the possibility of such
+damages occurring.
+
+8. Miscellaneous. The laws of the state of California, without regard to
+its choice of law rules, shall govern the interpretation and enforcement of
+this Agreement. The parties are independent contractors of one another.
+Nothing herein shall be deemed to create any relationship of agency,
+partnership, or joint venture between the parties. Licensee represents that
+it is acting on its own behalf and is not acting as an agent for or on behalf
+of any third party, and further agrees that it may not assign its rights or
+obligations under this Agreement without prior written consent of Emulex.
+Both parties shall adhere to all applicable laws, regulations, and rules
+relating to the export of Emulex Firmware and any other information provided
+hereunder. If any term or condition of this Agreement is held invalid,
+illegal or unenforceable by a court of competent jurisdiction, all the other
+terms and conditions shall survive. The Emulex Firmware may be provided to
+units or agencies of the U.S. government only as "commercial computer
+firmware," "restricted computer firmware," or with "restricted rights" as
+defined in applicable regulations, and may not be provided as source code.
+Manufacturer is Emulex Design & Manufacturing Corporation, 3333 Susan St.,
+Costa Mesa, CA 92626.
diff --git a/usr/src/pkgdefs/SUNWemlxs/pkginfo.tmpl b/usr/src/pkgdefs/SUNWemlxs/pkginfo.tmpl
new file mode 100644
index 0000000000..25caf4ab39
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWemlxs"
+NAME="Emulex-Sun LightPulse Fibre Channel Adapter driver (root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none emlxsconf"
+DESC="Device driver for Emulex-Sun LightPulse Fibre Channel adapters"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Emulex Corporation"
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWemlxs/postinstall b/usr/src/pkgdefs/SUNWemlxs/postinstall
new file mode 100644
index 0000000000..2462f1a495
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/postinstall
@@ -0,0 +1,107 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:$PATH"; export PATH
+
+# Driver definitions
+DRVR_NAME=emlxs
+PERM_OPT="-m '* 0600 root sys'"
+CLASS_OPT="-c fibre-channel"
+ALIAS_FILE=/etc/driver_aliases
+
+SUPPORT_LIST="\
+ pci10df,fc00 \
+ pci10df,f800 \
+ pci10df,f900 \
+ pci10df,f980 \
+ pci10df,fa00 \
+ pci10df,fd00 \
+ pci10df,f0a5 \
+ pci10df,fc10 \
+ pci10df,fc20 \
+ pci10df,fe00 \
+ pciex10df,f100 \
+ pciex10df,f111 \
+ pciex10df,f112 \
+ pciex10df,fc20 \
+ pciex10df,fc40 \
+ pciex10df,fe00 \
+ pciex10df,fe05 \
+ lpfs \
+ "
+
+CheckAlias()
+{
+ DRIVER=$1
+ PCI_STRING=$2
+
+ grep "^${DRIVER}[ ]\"*${PCI_STRING}\"*" ${BASEDIR}${ALIAS_FILE} > /dev/null 2>&1
+ STATUS=$?
+ return $STATUS
+}
+
+GenerateSupportList()
+{
+ LPFC_DRVR=lpfc
+ GEN_LIST=""
+
+ for HBA in ${SUPPORT_LIST}
+ do
+ CheckAlias ${LPFC_DRVR} ${HBA}
+ if [ $STATUS -ne 0 ]; then
+ if [ -z "${GEN_LIST}" ]; then
+ GEN_LIST="\"$HBA\""
+ else
+ GEN_LIST="${GEN_LIST} \"$HBA\""
+ fi
+ fi
+ done
+}
+
+GenerateSupportList
+
+ALIASES_OPT="-i '${GEN_LIST}'"
+
+if [ -z "${BASEDIR}" ]; then
+ echo "\n$0 Failed: BASEDIR is not set.\n" >&2
+ exit 1
+fi
+
+# Remove existing definition, if it exists.
+/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
+
+ADD_DRV="add_drv -n -b ${BASEDIR}"
+
+eval ${ADD_DRV} "${PERM_OPT}" ${CLASS_OPT} "${ALIASES_OPT}" ${DRVR_NAME}
+STATUS=$?
+if [ $STATUS -ne 0 ]; then
+ echo "\nCommand Failed:" >&2
+ echo "\t${ADD_DRV} "${PERM_OPT}" ${CLASS_OPT} "${ALIASES_OPT}" ${DRVR_NAME}\n" >&2
+ echo "\tReturned: $STATUS" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWemlxs/preremove b/usr/src/pkgdefs/SUNWemlxs/preremove
new file mode 100644
index 0000000000..fc01a722c9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/preremove
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+DRVR_NAME=emlxs
+
+# Remove the driver entries but leave it attached.
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWemlxs/prototype_com b/usr/src/pkgdefs/SUNWemlxs/prototype_com
new file mode 100644
index 0000000000..79e4214063
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/prototype_com
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+# SUNWemlxs
+#
+i copyright
+i pkginfo
+i postinstall
+i preremove
+i depend
+i i.emlxsconf
+#
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
+e emlxsconf kernel/drv/emlxs.conf 0644 root sys
+d none kernel/kmdb 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWemlxs/prototype_i386 b/usr/src/pkgdefs/SUNWemlxs/prototype_i386
new file mode 100644
index 0000000000..f7406b9e0a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/prototype_i386
@@ -0,0 +1,52 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWemlxs
+#
+f none kernel/drv/emlxs 0755 root sys
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/amd64/emlxs 0755 root sys
+d none kernel/kmdb/amd64 0755 root sys
+f none kernel/kmdb/amd64/emlxs 0555 root sys
+f none kernel/kmdb/emlxs 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWemlxs/prototype_sparc b/usr/src/pkgdefs/SUNWemlxs/prototype_sparc
new file mode 100644
index 0000000000..cddbf0868c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxs/prototype_sparc
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWemlxs
+#
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/sparcv9/emlxs 0755 root sys
+d none kernel/kmdb/sparcv9 0755 root sys
+f none kernel/kmdb/sparcv9/emlxs 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWemlxu/Makefile b/usr/src/pkgdefs/SUNWemlxu/Makefile
new file mode 100644
index 0000000000..68f501b6a2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxu/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+LICENSEFILES = $(PKGDEFS)/SUNWemlxs/lic_Emulex
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWemlxu/depend b/usr/src/pkgdefs/SUNWemlxu/depend
new file mode 100644
index 0000000000..4aafd0a925
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxu/depend
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfctl Sun Fibre Channel Transport layer
diff --git a/usr/src/pkgdefs/SUNWemlxu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWemlxu/pkginfo.tmpl
new file mode 100644
index 0000000000..7c798a2d51
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxu/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWemlxu"
+NAME="Emulex-Sun LightPulse Fibre Channel Adapter Utilties (usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Support software for Emulex-Sun LightPulse Fibre Channel adapters"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Emulex Corporation"
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWemlxu/prototype_com b/usr/src/pkgdefs/SUNWemlxu/prototype_com
new file mode 100644
index 0000000000..16f7af09b1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxu/prototype_com
@@ -0,0 +1,43 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+
+d none usr 0755 root sys
+d none usr/lib 0755 root bin
+d none usr/lib/mdb 0755 root sys
+d none usr/lib/mdb/kvm 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWemlxu/prototype_i386 b/usr/src/pkgdefs/SUNWemlxu/prototype_i386
new file mode 100644
index 0000000000..6b3aa92526
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxu/prototype_i386
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWemlxu
+#
+f none usr/lib/mdb/kvm/emlxs.so 0555 root sys
+d none usr/lib/mdb/kvm/amd64 0755 root sys
+f none usr/lib/mdb/kvm/amd64/emlxs.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWemlxu/prototype_sparc b/usr/src/pkgdefs/SUNWemlxu/prototype_sparc
new file mode 100644
index 0000000000..5495b2816a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWemlxu/prototype_sparc
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWemlxu
+#
+d none usr/lib/mdb/kvm/sparcv9 0755 root sys
+f none usr/lib/mdb/kvm/sparcv9/emlxs.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWfchba/Makefile b/usr/src/pkgdefs/SUNWfchba/Makefile
new file mode 100644
index 0000000000..0e7430d360
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchba/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfchba/depend b/usr/src/pkgdefs/SUNWfchba/depend
new file mode 100644
index 0000000000..3a6b32614f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchba/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfchbar Sun Fibre Channel Host Bus Adapter Library (root)
diff --git a/usr/src/pkgdefs/SUNWfchba/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfchba/pkginfo.tmpl
new file mode 100644
index 0000000000..2e3fac9007
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchba/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWfchba"
+NAME="Sun Fibre Channel Host Bus Adapter Library"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="SNIA HBA library for Sun Fibre Channel adapters"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfchba/prototype_com b/usr/src/pkgdefs/SUNWfchba/prototype_com
new file mode 100644
index 0000000000..c1934ad186
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchba/prototype_com
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+d none usr 0755 root sys
+d none usr/lib 0755 root bin
+f none usr/lib/libsun_fc.so.1 0755 root bin
+s none usr/lib/libsun_fc.so=libsun_fc.so.1
diff --git a/usr/src/pkgdefs/SUNWfchba/prototype_i386 b/usr/src/pkgdefs/SUNWfchba/prototype_i386
new file mode 100644
index 0000000000..5fe008cb8c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchba/prototype_i386
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfchba
+d none usr/lib/amd64 0755 root bin
+f none usr/lib/amd64/libsun_fc.so.1 0755 root bin
+s none usr/lib/amd64/libsun_fc.so=libsun_fc.so.1
diff --git a/usr/src/pkgdefs/SUNWfchba/prototype_sparc b/usr/src/pkgdefs/SUNWfchba/prototype_sparc
new file mode 100644
index 0000000000..1a9925a289
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchba/prototype_sparc
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfchba
+d none usr/lib/sparcv9 0755 root bin
+f none usr/lib/sparcv9/libsun_fc.so.1 0755 root bin
+s none usr/lib/sparcv9/libsun_fc.so=libsun_fc.so.1
diff --git a/usr/src/pkgdefs/SUNWfchbar/Makefile b/usr/src/pkgdefs/SUNWfchbar/Makefile
new file mode 100644
index 0000000000..16617b7177
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend preinstall
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfchbar/depend b/usr/src/pkgdefs/SUNWfchbar/depend
new file mode 100644
index 0000000000..9a2ff03102
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/depend
@@ -0,0 +1,52 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcfclr Common Fibre Channel HBA API Library (Root)
diff --git a/usr/src/pkgdefs/SUNWfchbar/hba.conf b/usr/src/pkgdefs/SUNWfchbar/hba.conf
new file mode 100644
index 0000000000..1745c1fb44
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/hba.conf
@@ -0,0 +1,67 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+VSL_32_NAME=com.sun.fchba
+VSL_64_NAME=com.sun.fchba64
+LIB_32_PATH=/usr/lib/libsun_fc.so.1
+LIB_64_PATH=/usr/lib/64/libsun_fc.so.1
+OBSOLETE_PATH=/usr/lib/sparcv9/libsun_fc.so.1
+
+[ "${BASERDIR}" = "/" ] && BASEDIR=""
+
+CONF_FILE=${BASEDIR}/etc/hba.conf
+
+if [ $1 = install ] ; then
+
+ if [ -f ${CONF_FILE} ] ; then
+
+ # Copy the original file without the obsoleted path.
+ grep -v "${OBSOLETE_PATH}" ${CONF_FILE}
+
+ # Append entries if missing
+ if grep "${LIB_32_PATH}" ${CONF_FILE} > /dev/null ; then :
+ else
+ echo "${VSL_32_NAME} ${LIB_32_PATH}" || exit 3
+ fi
+
+ # Append entries if missing
+ if grep "${LIB_64_PATH}" ${CONF_FILE} > /dev/null ; then :
+ else
+ echo "${VSL_64_NAME} ${LIB_64_PATH}" || exit 3
+ fi
+
+ else
+ exit 1
+ fi
+else
+ # package remove
+ if [ ! -f ${BASEDIR}/usr/lib/libsun_fc.so.1 ] ; then
+ echo "Removing conf entries for ${VSL_32_NAME} and ${VSL_64_NAME}" >&2
+ sed -e '/^'${VSL_32_NAME}'/d' -e '/^'${VSL_64_NAME}'/d' ${CONF_FILE} || exit 2
+ else
+ # Use current file as new file, otherwise the file is removed
+ cat ${CONF_FILE} || exit 2
+ fi
+fi
diff --git a/usr/src/pkgdefs/SUNWfchbar/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfchbar/pkginfo.tmpl
new file mode 100644
index 0000000000..86e38f4461
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWfchbar"
+NAME="Sun Fibre Channel Host Bus Adapter Library (root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="build none"
+DESC="T11 FC-HBA library for Sun Fibre Channel adapters (root)"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfchbar/preinstall b/usr/src/pkgdefs/SUNWfchbar/preinstall
new file mode 100644
index 0000000000..029d7fbfcf
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/preinstall
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+[ "${BASERDIR}" = "/" ] && BASEDIR=""
+
+CONF_FILE=${BASEDIR}/etc/hba.conf
+
+COMMON_PKGS='SUNWcfclr, SUNWcfcl'
+COMMON_URL="http://sourceforge.net/projects/hbaapi/"
+
+if [ ! -f ${CONF_FILE} ]; then
+ echo ""
+ echo "Unable to locate ${CONF_FILE} on the system."
+ echo ""
+ echo "Please install the Fibre Channel Host Bus Adapter Common library"
+ echo "available in the packages: ${COMMON_PKGS} "
+ echo "or from: ${COMMON_URL}"
+ echo ""
+ echo "Aborting install."
+ echo ""
+ sleep 10
+ exit 1
+fi
diff --git a/usr/src/pkgdefs/SUNWfchbar/prototype_com b/usr/src/pkgdefs/SUNWfchbar/prototype_com
new file mode 100644
index 0000000000..e40458ee20
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/prototype_com
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i preinstall
+
+d none etc 0755 root sys
+e build etc/hba.conf=../../usr/src/pkgdefs/SUNWfchbar/hba.conf 0644 root sys
diff --git a/usr/src/pkgdefs/SUNWfchbar/prototype_i386 b/usr/src/pkgdefs/SUNWfchbar/prototype_i386
new file mode 100644
index 0000000000..f9164d8496
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/prototype_i386
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfchbar
diff --git a/usr/src/pkgdefs/SUNWfchbar/prototype_sparc b/usr/src/pkgdefs/SUNWfchbar/prototype_sparc
new file mode 100644
index 0000000000..6ea4532b83
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfchbar/prototype_sparc
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfchbar
diff --git a/usr/src/pkgdefs/SUNWfcip/Makefile b/usr/src/pkgdefs/SUNWfcip/Makefile
new file mode 100644
index 0000000000..0f80cbd24f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend postinstall preremove
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfcip/depend b/usr/src/pkgdefs/SUNWfcip/depend
new file mode 100644
index 0000000000..b2abdfb0fb
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfctl Sun Fibre Channel Transport layer
diff --git a/usr/src/pkgdefs/SUNWfcip/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfcip/pkginfo.tmpl
new file mode 100644
index 0000000000..ad3fa6bb4c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/pkginfo.tmpl
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWfcip"
+NAME="Sun FCIP IP/ARP over FibreChannel Device Driver"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none"
+DESC="Sun FCIP IP/ARP over FibreChannel Device Driver"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfcip/postinstall b/usr/src/pkgdefs/SUNWfcip/postinstall
new file mode 100644
index 0000000000..87ebeb2096
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/postinstall
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+
+# Driver definitions
+DRVR_NAME=fcip
+DRVR_PERM="-m '* 0600 root sys'"
+DRVR_CLASS=""
+DRVR_ALIASES=""
+
+
+if [ -z "${BASEDIR}" ]; then
+ echo "\n$0 Failed: BASEDIR is not set.\n" >&2
+ exit 1
+fi
+
+# Remove existing definition, if it exists.
+/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
+
+ADD_DRV="add_drv -n -b ${BASEDIR}"
+
+eval ${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} "${DRVR_ALIASES}" ${DRVR_NAME}
+if [ $? -ne 0 ]; then
+ echo "\nCommand Failed:\n${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} \
+ "${DRVR_ALIASES}" ${DRVR_NAME}\n" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfcip/preremove b/usr/src/pkgdefs/SUNWfcip/preremove
new file mode 100644
index 0000000000..013a7caf34
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/preremove
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+DRVR_NAME=fcip
+
+# Remove the driver entries but leave it attached.
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfcip/prototype_com b/usr/src/pkgdefs/SUNWfcip/prototype_com
new file mode 100644
index 0000000000..716b3e20ed
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/prototype_com
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i postinstall
+i preremove
+
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcip/prototype_i386 b/usr/src/pkgdefs/SUNWfcip/prototype_i386
new file mode 100644
index 0000000000..50425d1533
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWfcip
+#
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/fcip.conf 0644 root sys
+f none kernel/drv/fcip 0755 root sys
+f none kernel/drv/amd64/fcip 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcip/prototype_sparc b/usr/src/pkgdefs/SUNWfcip/prototype_sparc
new file mode 100644
index 0000000000..db42fbf9ce
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcip/prototype_sparc
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfcip
+#
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/fcip.conf 0644 root sys
+f none kernel/drv/sparcv9/fcip 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcmdb/Makefile b/usr/src/pkgdefs/SUNWfcmdb/Makefile
new file mode 100644
index 0000000000..00c52cacf4
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcmdb/Makefile
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+DATAFILES += depend
+
+.KEEP_STATE:
+
+all: $(FILES)
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfcmdb/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfcmdb/pkginfo.tmpl
new file mode 100644
index 0000000000..11a9d90037
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcmdb/pkginfo.tmpl
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWfcmdb"
+NAME="Fibre Channel adb macros and mdb modules"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Fibre Channel adb macros and mdb modules"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfcmdb/prototype_com b/usr/src/pkgdefs/SUNWfcmdb/prototype_com
new file mode 100644
index 0000000000..dda2e9997d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcmdb/prototype_com
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+d none usr 755 root sys
+d none usr/lib 755 root bin
+d none usr/lib/mdb 755 root sys
+d none usr/lib/mdb/kvm 755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcmdb/prototype_i386 b/usr/src/pkgdefs/SUNWfcmdb/prototype_i386
new file mode 100644
index 0000000000..002486d3b7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcmdb/prototype_i386
@@ -0,0 +1,54 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWfcmdb
+#
+f none usr/lib/mdb/kvm/fcp.so 555 root sys
+f none usr/lib/mdb/kvm/fcip.so 555 root sys
+f none usr/lib/mdb/kvm/fctl.so 555 root sys
+d none usr/lib/mdb/kvm/amd64 755 root sys
+f none usr/lib/mdb/kvm/amd64/fcp.so 555 root sys
+f none usr/lib/mdb/kvm/amd64/fcip.so 555 root sys
+f none usr/lib/mdb/kvm/amd64/fctl.so 555 root sys
diff --git a/usr/src/pkgdefs/SUNWfcmdb/prototype_sparc b/usr/src/pkgdefs/SUNWfcmdb/prototype_sparc
new file mode 100644
index 0000000000..605d6162a7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcmdb/prototype_sparc
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfcmdb
+#
+d none usr/lib/mdb/kvm/sparcv9 755 root sys
+f none usr/lib/mdb/kvm/sparcv9/fcp.so 555 root sys
+f none usr/lib/mdb/kvm/sparcv9/fcip.so 555 root sys
+f none usr/lib/mdb/kvm/sparcv9/fctl.so 555 root sys
diff --git a/usr/src/pkgdefs/SUNWfcp/Makefile b/usr/src/pkgdefs/SUNWfcp/Makefile
new file mode 100644
index 0000000000..eca386cd68
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend postinstall preremove
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfcp/depend b/usr/src/pkgdefs/SUNWfcp/depend
new file mode 100644
index 0000000000..b2abdfb0fb
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfctl Sun Fibre Channel Transport layer
diff --git a/usr/src/pkgdefs/SUNWfcp/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfcp/pkginfo.tmpl
new file mode 100644
index 0000000000..e576ddab04
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/pkginfo.tmpl
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWfcp"
+NAME="Sun FCP SCSI Device Driver"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none"
+DESC="Sun FCP SCSI Fibre Channel Device Driver"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfcp/postinstall b/usr/src/pkgdefs/SUNWfcp/postinstall
new file mode 100644
index 0000000000..0cd567838a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/postinstall
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+
+# Driver definitions
+DRVR_NAME=fcp
+DRVR_PERM="-m '* 0600 root sys'"
+DRVR_CLASS=""
+DRVR_ALIASES=""
+
+
+if [ -z "${BASEDIR}" ]; then
+ echo "\n$0 Failed: BASEDIR is not set.\n" >&2
+ exit 1
+fi
+
+# Remove existing definition, if it exists.
+/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
+
+ADD_DRV="add_drv -n -b ${BASEDIR}"
+
+eval ${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} "${DRVR_ALIASES}" ${DRVR_NAME}
+if [ $? -ne 0 ]; then
+ echo "\nCommand Failed:\n${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} \
+ "${DRVR_ALIASES}" ${DRVR_NAME}\n" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfcp/preremove b/usr/src/pkgdefs/SUNWfcp/preremove
new file mode 100644
index 0000000000..791477656f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/preremove
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+DRVR_NAME=fcp
+
+# Remove the driver entries but leave it attached.
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfcp/prototype_com b/usr/src/pkgdefs/SUNWfcp/prototype_com
new file mode 100644
index 0000000000..716b3e20ed
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/prototype_com
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i postinstall
+i preremove
+
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcp/prototype_i386 b/usr/src/pkgdefs/SUNWfcp/prototype_i386
new file mode 100644
index 0000000000..9799a1aba7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWfcp
+#
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/fcp.conf 0644 root sys
+f none kernel/drv/fcp 0755 root sys
+f none kernel/drv/amd64/fcp 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcp/prototype_sparc b/usr/src/pkgdefs/SUNWfcp/prototype_sparc
new file mode 100644
index 0000000000..5cf429c00b
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcp/prototype_sparc
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfcp
+#
+f none kernel/drv/fcp.conf 0644 root sys
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/sparcv9/fcp 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcprt/Makefile b/usr/src/pkgdefs/SUNWfcprt/Makefile
new file mode 100644
index 0000000000..0e7430d360
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprt/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfcprt/depend b/usr/src/pkgdefs/SUNWfcprt/depend
new file mode 100644
index 0000000000..4b530fcac6
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprt/depend
@@ -0,0 +1,53 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcfcl Common Fibre Channel HBA API Library (Usr)
+
diff --git a/usr/src/pkgdefs/SUNWfcprt/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfcprt/pkginfo.tmpl
new file mode 100644
index 0000000000..99a5d6e209
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprt/pkginfo.tmpl
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWfcprt"
+NAME="Fibre Channel HBA Port utility"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Utility for Fibre Channel Host Bus Adapters"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfcprt/prototype_com b/usr/src/pkgdefs/SUNWfcprt/prototype_com
new file mode 100644
index 0000000000..2b700a4ad2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprt/prototype_com
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWfcprt
+#
+d none usr 0755 root sys
+d none usr/sbin 0755 root bin
+f none usr/sbin/fcinfo 0555 root bin
+l none usr/sbin/fcadm=../../usr/sbin/fcinfo
diff --git a/usr/src/pkgdefs/SUNWfcprt/prototype_i386 b/usr/src/pkgdefs/SUNWfcprt/prototype_i386
new file mode 100644
index 0000000000..97defdd0e1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprt/prototype_i386
@@ -0,0 +1,41 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
diff --git a/usr/src/pkgdefs/SUNWfcprt/prototype_sparc b/usr/src/pkgdefs/SUNWfcprt/prototype_sparc
new file mode 100644
index 0000000000..db010f11ec
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprt/prototype_sparc
@@ -0,0 +1,41 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
diff --git a/usr/src/pkgdefs/SUNWfcprtr/Makefile b/usr/src/pkgdefs/SUNWfcprtr/Makefile
new file mode 100644
index 0000000000..a971405c48
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprtr/Makefile
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend preremove
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfcprtr/depend b/usr/src/pkgdefs/SUNWfcprtr/depend
new file mode 100644
index 0000000000..cfcbc78f1e
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprtr/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfcprt Fibre Channel HBA Port utility
diff --git a/usr/src/pkgdefs/SUNWfcprtr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfcprtr/pkginfo.tmpl
new file mode 100644
index 0000000000..9e285e0a87
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprtr/pkginfo.tmpl
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWfcprtr"
+NAME="Fibre Channel HBA Port NPIV utility (root)"
+ARCH="ISA"
+VERSION="ONVERS,REV=0.0.0"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+SUNW_PKGTYPE="root"
+MAXINST="1000"
+CATEGORY="system"
+DESC="NPIV Utility for Fibre Channel Host Bus Adapters (root)"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+CLASSES="manifest none"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfcprtr/preremove b/usr/src/pkgdefs/SUNWfcprtr/preremove
new file mode 100644
index 0000000000..140041498f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprtr/preremove
@@ -0,0 +1,60 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"; export PATH
+
+SERVICE="svc:/network/npiv_config:default"
+
+#
+# The following case implies that the installation was not on the root disk
+#
+if [ "${PKG_INSTALL_ROOT}" != "" -a "${PKG_INSTALL_ROOT}" != "/" ]; then
+ #
+ # Do not disable the service in this case.
+ #
+ exit 0
+fi
+
+#
+# Confirm service is installed, otherwise exit.
+#
+/usr/bin/svcprop -q ${SERVICE} || exit 0
+
+SVCPROP=`svcprop -p general/enabled ${SERVICE}`
+
+#
+# Check to see if the service is running and if so disable it.
+#
+if [ "${SVCPROP}" = "true" ]; then
+ svcadm disable ${SERVICE}
+ if [ $? -ne 0 ]; then
+ echo "\n$0 Disabling of ${SERVICE} failed!\n" >&2
+ exit 1
+ fi
+ svcadm refresh ${SERVICE}
+fi
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfcprtr/prototype_com b/usr/src/pkgdefs/SUNWfcprtr/prototype_com
new file mode 100644
index 0000000000..5a82fd393f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprtr/prototype_com
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 preremove
+i i.manifest
+i r.manifest
+d none var 755 root sys
+d none var/svc 755 root sys
+d none var/svc/manifest 755 root sys
+d none var/svc/manifest/network 0755 root sys
+f manifest var/svc/manifest/network/npiv_config.xml 0444 root sys
+d none lib 755 root bin
+d none lib/svc 755 root bin
+d none lib/svc/method 755 root bin
+f none lib/svc/method/npivconfig 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWfcprtr/prototype_i386 b/usr/src/pkgdefs/SUNWfcprtr/prototype_i386
new file mode 100644
index 0000000000..90cdb1638e
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprtr/prototype_i386
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWfcprtr
+#
diff --git a/usr/src/pkgdefs/SUNWfcprtr/prototype_sparc b/usr/src/pkgdefs/SUNWfcprtr/prototype_sparc
new file mode 100644
index 0000000000..2269516fec
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcprtr/prototype_sparc
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfcprtr
+#
diff --git a/usr/src/pkgdefs/SUNWfcsm/Makefile b/usr/src/pkgdefs/SUNWfcsm/Makefile
new file mode 100644
index 0000000000..eca386cd68
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend postinstall preremove
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfcsm/depend b/usr/src/pkgdefs/SUNWfcsm/depend
new file mode 100644
index 0000000000..3cf2f4eefa
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfctl Sun Fibre Channel Transport layer
diff --git a/usr/src/pkgdefs/SUNWfcsm/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfcsm/pkginfo.tmpl
new file mode 100644
index 0000000000..6a8cbde93f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/pkginfo.tmpl
@@ -0,0 +1,55 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWfcsm"
+NAME="FCSM driver"
+ARCH="ISA"
+VERSION="ONVERS,REV=0.0.0"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+SUNW_PKGTYPE="root"
+MAXINST="1000"
+CATEGORY="system"
+DESC="Provides the FCSM driver"
+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>"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfcsm/postinstall b/usr/src/pkgdefs/SUNWfcsm/postinstall
new file mode 100644
index 0000000000..37654f2f90
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/postinstall
@@ -0,0 +1,53 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+
+# Driver definitions
+DRVR_NAME=fcsm
+DRVR_PERM="-m '* 0600 root sys'"
+DRVR_CLASS=""
+DRVR_ALIASES=""
+
+
+if [ -z "${BASEDIR}" ]; then
+ echo "\n$0 Failed: BASEDIR is not set.\n" >&2
+ exit 1
+fi
+
+# Remove existing definition, if it exists.
+/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
+
+ADD_DRV="add_drv -n -b ${BASEDIR}"
+
+eval ${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} "${DRVR_ALIASES}" ${DRVR_NAME}
+if [ $? -ne 0 ]; then
+ echo "\nCommand Failed:\n${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} \
+ "${DRVR_ALIASES}" ${DRVR_NAME}\n" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfcsm/preremove b/usr/src/pkgdefs/SUNWfcsm/preremove
new file mode 100644
index 0000000000..2ccfa014cd
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/preremove
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+DRVR_NAME=fcsm
+
+# Remove the driver entries but leave it attached.
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfcsm/prototype_com b/usr/src/pkgdefs/SUNWfcsm/prototype_com
new file mode 100644
index 0000000000..fc61eaade2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/prototype_com
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 postinstall
+i preremove
+i copyright
+i depend
+
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcsm/prototype_i386 b/usr/src/pkgdefs/SUNWfcsm/prototype_i386
new file mode 100644
index 0000000000..be47d7b947
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/prototype_i386
@@ -0,0 +1,53 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWfcsm
+#
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/fcsm.conf 0644 root sys
+f none kernel/drv/fcsm 0755 root sys
+f none kernel/drv/amd64/fcsm 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfcsm/prototype_sparc b/usr/src/pkgdefs/SUNWfcsm/prototype_sparc
new file mode 100644
index 0000000000..0b29cbf77c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfcsm/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfcsm
+#
+f none kernel/drv/fcsm.conf 0644 root sys
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/sparcv9/fcsm 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfctl/Makefile b/usr/src/pkgdefs/SUNWfctl/Makefile
new file mode 100644
index 0000000000..75776c5ecb
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfctl/Makefile
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+DATAFILES += depend i.fpconf
+
+.KEEP_STATE:
+
+all: $(FILES) postinstall preremove
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWfctl/pkginfo.tmpl b/usr/src/pkgdefs/SUNWfctl/pkginfo.tmpl
new file mode 100644
index 0000000000..5cea803dd0
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfctl/pkginfo.tmpl
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWfctl"
+NAME="Sun Fibre Channel Transport layer"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none fpconf"
+DESC="fctl module and fp device driver"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWfctl/postinstall b/usr/src/pkgdefs/SUNWfctl/postinstall
new file mode 100644
index 0000000000..247517f781
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfctl/postinstall
@@ -0,0 +1,83 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+
+# Driver definitions
+DRVR_NAME=fp
+DRVR_PERM="-m '* 0600 root sys'"
+DRVR_CLASS=""
+DRVR_ALIASES=""
+
+
+if [ -z "${BASEDIR}" ]; then
+ echo "\n$0 Failed: BASEDIR is not set.\n" >&2
+ exit 1
+fi
+
+# Remove existing definition, if it exists.
+/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
+
+fp_conf_scsi_binding()
+{
+ # Update fp.conf with scsi-binding-set
+ CONFFILE=${BASEDIR}/kernel/drv/fp.conf
+
+ grep "^scsi-binding-set=" $CONFFILE > /dev/null 2>&1
+ if [ $? -eq 1 ]; then
+ if [ ! -w $CONFFILE ] ; then
+ echo "$CONFFILE not writeable." >&2
+ echo "Failed to update." >&2
+ exit 1
+ else
+ cat << EOF >> $CONFFILE
+#
+# To generate the binding-set specific 'compatible' forms used to address
+# legacy issues the 'scsi-binding-set' property must be defined. [do not remove]
+#
+scsi-binding-set="fcp";
+EOF
+ if [ $? -ne 0 ] ; then
+ echo "Failed to update $CONFFILE." >&2
+ exit 1
+ fi
+ fi
+ fi
+}
+
+fp_conf_scsi_binding
+
+ADD_DRV="add_drv -n -b ${BASEDIR}"
+
+eval ${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} "${DRVR_ALIASES}" ${DRVR_NAME}
+if [ $? -ne 0 ]; then
+ echo "\nCommand Failed:\n${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} \
+ "${DRVR_ALIASES}" ${DRVR_NAME}\n" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfctl/preremove b/usr/src/pkgdefs/SUNWfctl/preremove
new file mode 100644
index 0000000000..681c5c3bb8
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfctl/preremove
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+DRVR_NAME=fp
+
+# Remove the driver entries but leave it attached.
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWfctl/prototype_com b/usr/src/pkgdefs/SUNWfctl/prototype_com
new file mode 100644
index 0000000000..bd087b3674
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfctl/prototype_com
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i postinstall
+i preremove
+i i.fpconf
+
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
+e fpconf kernel/drv/fp.conf 0644 root sys
+d none kernel/misc 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfctl/prototype_i386 b/usr/src/pkgdefs/SUNWfctl/prototype_i386
new file mode 100644
index 0000000000..5a08ab5d78
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfctl/prototype_i386
@@ -0,0 +1,53 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWfctl
+#
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/fp 0755 root sys
+f none kernel/drv/amd64/fp 0755 root sys
+d none kernel/misc/amd64 0755 root sys
+f none kernel/misc/fctl 0755 root sys
+f none kernel/misc/amd64/fctl 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWfctl/prototype_sparc b/usr/src/pkgdefs/SUNWfctl/prototype_sparc
new file mode 100644
index 0000000000..11527e7e6d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWfctl/prototype_sparc
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWfctl
+#
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/sparcv9/fp 0755 root sys
+d none kernel/misc/sparcv9 0755 root sys
+f none kernel/misc/sparcv9/fctl 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWiir/Makefile b/usr/src/pkgdefs/SUNWiir/Makefile
new file mode 100644
index 0000000000..0a337650da
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiir/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWiir/depend b/usr/src/pkgdefs/SUNWiir/depend
new file mode 100644
index 0000000000..0405fbbd8c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiir/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWscmu Sun StorageTek Availability Suite Storage Cache Management (usr)
+P SUNWspsvu Sun StorageTek Availability Suite Storage Volume Driver (usr)
diff --git a/usr/src/pkgdefs/SUNWiir/pkginfo.tmpl b/usr/src/pkgdefs/SUNWiir/pkginfo.tmpl
new file mode 100644
index 0000000000..d3c6332282
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiir/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWiir"
+NAME="Sun StorageTek Availability Suite Point-In-Time Copy (root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="manifest none"
+DESC="Point-In-Time Copy and snapshot facility"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWiir/prototype_com b/usr/src/pkgdefs/SUNWiir/prototype_com
new file mode 100644
index 0000000000..3bcb18f163
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiir/prototype_com
@@ -0,0 +1,52 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+i copyright
+i pkginfo
+i depend
+i i.manifest
+i r.manifest
+d none lib 755 root bin
+d none lib/svc 755 root bin
+d none lib/svc/method 755 root bin
+f none lib/svc/method/svc-ii=etc/init.d/ii 0744 root bin
+
+d none kernel 0755 root sys
+d none kernel/kmdb 755 root sys
+
+d none var 755 root sys
+d none var/svc 755 root sys
+d none var/svc/manifest 755 root sys
+d none var/svc/manifest/system 755 root sys
+f manifest var/svc/manifest/system/nws-ii.xml=usr/lib/nws_ii.xml 0444 root sys
diff --git a/usr/src/pkgdefs/SUNWiir/prototype_i386 b/usr/src/pkgdefs/SUNWiir/prototype_i386
new file mode 100644
index 0000000000..9f8eaa6238
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiir/prototype_i386
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+d none kernel/kmdb/amd64 755 root sys
+f none kernel/kmdb/amd64/ii 555 root sys
+f none kernel/kmdb/ii 555 root sys
diff --git a/usr/src/pkgdefs/SUNWiir/prototype_sparc b/usr/src/pkgdefs/SUNWiir/prototype_sparc
new file mode 100644
index 0000000000..7f7b1680b4
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiir/prototype_sparc
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+d none kernel/kmdb/sparcv9 0755 root sys
+f none kernel/kmdb/sparcv9/ii 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWiiu/Makefile b/usr/src/pkgdefs/SUNWiiu/Makefile
new file mode 100644
index 0000000000..f5f0f70db1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+DATAFILES += i.preserve
+
+all: $(FILES) depend postinstall preremove preinstall
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWiiu/depend b/usr/src/pkgdefs/SUNWiiu/depend
new file mode 100644
index 0000000000..fc1d73401a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/depend
@@ -0,0 +1,45 @@
+#
+# Copyright 2008 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 (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
+#
+# 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 SUNWlibms Math & Microtasking Libraries (Usr)
+P SUNWlibmsr Math & Microtasking Libraries (Root)
+P SUNWscmu Sun StorageTek Availability Suite Storage Cache Management (usr)
+P SUNWspsvu Sun StorageTek Availability Suite Storage Volume Driver (usr)
+P SUNWiir Sun StorageTek Availability Suite Point-in-Time Copy (root)
diff --git a/usr/src/pkgdefs/SUNWiiu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWiiu/pkginfo.tmpl
new file mode 100644
index 0000000000..ac54608aad
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWiiu"
+NAME="Sun StorageTek Availability Suite Point-In-Time Copy (usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none preserve"
+DESC="Point-In-Time Copy and snapshot facility"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWiiu/postinstall b/usr/src/pkgdefs/SUNWiiu/postinstall
new file mode 100644
index 0000000000..4fc81d394b
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/postinstall
@@ -0,0 +1,204 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:-/}
+FAILURE=1
+MODULE="ii"
+OS_VER=`eval uname -r`
+OS_MACH=`eval isainfo -k`
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+DRVDIR64=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/kernel/drv/${OS_MACH}
+DRVDIR=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/kernel/drv
+TMP=/tmp/${PKGINST}.$$
+ERROR_LOG=${TMP}.errorlog
+DSCFG_UPGRADE="${PKG_INSTALL_ROOT}/etc/opt/SUNWesm/dscfg.cf.upgrade"
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+
+EXIT=0
+MODBUSY=0
+MODBUSYMSG="
+ #### NOTICE #####\n
+The previous version of this software cannot be unloaded (busy).\n
+To load the new modules you must reboot the system."
+
+#
+# Set specific command syntax (if needed)
+#
+
+# For least privileges add option -P sys_devices,sys_config
+if [ "${PKG_INSTALL_ROOT}" = "/" ]
+then
+ ADD_DRV="add_drv -P sys_devices,sys_config"
+ REM_DRV="rem_drv"
+else
+ ADD_DRV="add_drv -P sys_devices,sys_config -b ${PKG_INSTALL_ROOT}"
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+
+#
+# Functions
+#
+
+message()
+{
+ echo ""
+ echo "$@"
+ echo ""
+}
+
+add_devlink()
+{
+ PATTERN="$1"
+ LINK="$2"
+ echo "$PATTERN\t$LINK" >>${DEVLINKTB}
+}
+
+#
+# Setup the service to enable. This is necessary to deal
+# with upgrade situations. It also sets the proper dependency type for the
+# local filesystems service
+# $1: name of service to enable
+#
+enable_service_on_reboot()
+{
+ # enable the service
+ svcadm enable -s svc:/system/$1
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to enable $1 service"
+ fi
+
+ # workaround for 6221374--let local-fs know that it depends on us
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+
+ # make sure the local filesystems service waits for us
+ svccfg -s $FS_LOCAL_SVC setprop ${1}-local-fs/grouping=require_all
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to set dependency for $1 service"
+ fi
+
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+}
+
+
+# if the main module is still loaded then it has refused to unload
+# and we have to force a reboot.
+#
+if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
+ modinfo | grep -w ii >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ # still loaded
+ MODBUSY=1
+ NOPT="-b / "
+ fi
+fi
+
+#
+# Error messages
+#
+
+REMERR="
+ERROR: The installation cannot be completed due to an error removing the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+ADDERR="
+ERROR: The installation cannot be completed due to an error adding the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+DEVLINKERR="
+ERROR: The installation cannot be completed due to an error configuring the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+#
+# If module has been previously installed, unload it and remove it...
+#
+
+grep -w ${MODULE} ${PKG_INSTALL_ROOT}/etc/name_to_major > /dev/null
+if [ $? -eq 0 ]
+then
+ ${REM_DRV} ${MODULE} > ${ERROR_LOG} 2>&1
+ [ $? -ne 0 ] && {
+ message "${REMERR}"
+ exit ${FAILURE}
+ }
+fi
+
+#
+# Install the module
+#
+
+add_devlink "type=ddi_pseudo;name=${MODULE}" '\D'
+
+${ADD_DRV} $NOPT -m '* 0666 root sys' ${MODULE} > ${ERROR_LOG} 2>&1
+[ $? -ne 0 ] && {
+ message "${ADDERR}"
+ exit ${FAILURE}
+}
+
+# deal with upgrades from AVS 3.2
+if [ -f $DSCFG_UPGRADE ]
+then
+ grep $PKGINST $DSCFG_UPGRADE > /dev/null
+ if [ $? = 1 ]
+ then
+ enable_service_on_reboot nws_ii
+ echo "$PKGINST" >> $DSCFG_UPGRADE
+ fi
+fi
+
+if [ $MODBUSY = 1 ]; then
+ message $MODBUSYMSG
+fi
+
+#
+# Finalization of pkg database updates
+#
+
+installf -R ${PKG_INSTALL_ROOT} -f ${PKGINST}
+removef -R ${PKG_INSTALL_ROOT} -f ${PKGINST} >/dev/null 2>&1
diff --git a/usr/src/pkgdefs/SUNWiiu/preinstall b/usr/src/pkgdefs/SUNWiiu/preinstall
new file mode 100644
index 0000000000..6343cae2cb
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/preinstall
@@ -0,0 +1,94 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:=/}
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+MODULE="ii"
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+TMP=/tmp/${PKGINST}.$$
+
+#
+# Set specific command syntax (if needed)
+#
+
+if [ "${BASEDIR}" = "/" ]
+then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+rem_devlink()
+{
+ PATTERN="$1"
+
+ grep -vw $PATTERN ${DEVLINKTB} >${TMP}.devlink
+ if [ $? -eq 0 ]
+ then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+#
+# Error messages
+#
+
+#
+# Shut ii down
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" -a -f /etc/init.d/ii ]
+then
+ sh /etc/init.d/ii stop
+fi
+
+#
+# If module has been previously installed, unload it and remove it...
+#
+
+grep -w ${MODULE} ${NAMEMAJOR} >/dev/null
+if [ $? -eq 0 ]
+then
+ ${REM_DRV} ${MODULE}
+fi
+
+rem_devlink ${MODULE}
diff --git a/usr/src/pkgdefs/SUNWiiu/preremove b/usr/src/pkgdefs/SUNWiiu/preremove
new file mode 100644
index 0000000000..f3a64a682c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/preremove
@@ -0,0 +1,107 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+MODULE="ii"
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+TMP=/tmp/${PKGINST}.$$
+SVC=nws_ii
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+
+#
+# Set specific command syntax (if needed)
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" ]
+then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+rem_devlink()
+{
+ PATTERN="$1"
+
+ grep -vw $PATTERN ${DEVLINKTB} >${TMP}.devlink
+ if [ $? -eq 0 ]
+ then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+#
+# Disable the service, if it is imported
+#
+svcprop -q -p general/entity_stability svc:/system/${SVC}
+# are we imported?
+if [ $? = 0 ]
+then
+ svcadm disable -s svc:/system/${SVC}
+ svccfg -s $FS_LOCAL_SVC setprop ${SVC}-local-fs/grouping=optional_all
+fi
+
+
+#
+# If module has been previously installed, unload it and remove it...
+#
+
+grep -w ${MODULE} ${NAMEMAJOR} >/dev/null
+if [ $? -eq 0 ]
+then
+ ${REM_DRV} ${MODULE}
+fi
+
+rm -f ${PKG_INSTALL_ROOT}/dev/${MODULE}
+
+rem_devlink ${MODULE}
+
+MODID=`modinfo | grep -w $MODULE | awk '{print $1}'`
+if [ -n "$MODID" ]
+then
+ modunload -i ${MODID}
+ if [ $? != 0 ]
+ then
+ echo "Error: Failed to unload $MODULE module."
+ exit 1
+ fi
+fi
diff --git a/usr/src/pkgdefs/SUNWiiu/prototype_com b/usr/src/pkgdefs/SUNWiiu/prototype_com
new file mode 100644
index 0000000000..4f239e4fc4
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/prototype_com
@@ -0,0 +1,72 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+i copyright
+i pkginfo
+i postinstall
+i preinstall
+i preremove
+i space
+i depend
+i i.preserve
+
+d none usr 0755 root sys
+d none usr/kernel 0755 root sys
+d none usr/kernel/drv 0755 root sys
+e preserve usr/kernel/drv/ii.conf 0644 root sys
+
+d none usr/lib 0755 root bin
+d none usr/lib/mdb 0755 root sys
+d none usr/lib/mdb/kvm 0755 root sys
+
+d none usr/bin 0755 root bin
+f none usr/bin/iiadm=usr/bin/iiadm 0555 root bin
+f none usr/bin/iicpbmp=usr/bin/iicpbmp 0555 root bin
+f none usr/bin/iicpshd=usr/bin/iicpshd 0555 root bin
+f none usr/bin/iiboot=usr/bin/iiboot 0555 root bin
+
+d none usr/sbin 0755 root bin
+s none usr/sbin/iiboot=../bin/iiboot
+s none usr/sbin/iiadm=../bin/iiadm
+s none usr/sbin/iicpbmp=../bin/iicpbmp
+s none usr/sbin/iicpshd=../bin/iicpshd
+
+d none usr/cluster 0755 root sys
+d none usr/cluster/lib 0755 root bin
+d none usr/cluster/lib/dscfg 0755 root bin
+d none usr/cluster/lib/dscfg/start 0755 root bin
+d none usr/cluster/lib/dscfg/stop 0755 root bin
+d none usr/cluster/sbin 0755 root other
+f none usr/cluster/sbin/ii=etc/init.d/ii.cluster 0744 root bin
+s none usr/cluster/lib/dscfg/start/05ii=../../../sbin/ii
+s none usr/cluster/lib/dscfg/stop/20ii=../../../sbin/ii
diff --git a/usr/src/pkgdefs/SUNWiiu/prototype_i386 b/usr/src/pkgdefs/SUNWiiu/prototype_i386
new file mode 100644
index 0000000000..d7371545c9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/prototype_i386
@@ -0,0 +1,42 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 prototype_com
+
+d none usr/kernel/drv/amd64 0755 root sys
+f none usr/kernel/drv/ii 0755 root sys
+f none usr/kernel/drv/amd64/ii 0755 root sys
+
+d none usr/lib/mdb/kvm/amd64 0755 root sys
+f none usr/lib/mdb/kvm/ii.so 0555 root sys
+f none usr/lib/mdb/kvm/amd64/ii.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWiiu/prototype_sparc b/usr/src/pkgdefs/SUNWiiu/prototype_sparc
new file mode 100644
index 0000000000..661b7a1a96
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/prototype_sparc
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 prototype_com
+
+d none usr/kernel/drv/sparcv9 0755 root sys
+f none usr/kernel/drv/sparcv9/ii 0755 root sys
+
+d none usr/lib/mdb/kvm/sparcv9 0755 root sys
+f none usr/lib/mdb/kvm/sparcv9/ii.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWiiu/space b/usr/src/pkgdefs/SUNWiiu/space
new file mode 100644
index 0000000000..406e679dba
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiiu/space
@@ -0,0 +1,24 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#path blocks inodes
diff --git a/usr/src/pkgdefs/SUNWima/Makefile b/usr/src/pkgdefs/SUNWima/Makefile
new file mode 100644
index 0000000000..a5e2160367
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWima/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWima/depend b/usr/src/pkgdefs/SUNWima/depend
new file mode 100644
index 0000000000..eabc0ac6b5
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWima/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
+P SUNWimar Solaris IMA Software Initiator Plugin (Root)
+P SUNWimac Solaris IMA Common Library
diff --git a/usr/src/pkgdefs/SUNWima/pkginfo.tmpl b/usr/src/pkgdefs/SUNWima/pkginfo.tmpl
new file mode 100644
index 0000000000..d707f79888
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWima/pkginfo.tmpl
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWima"
+NAME="Solaris IMA Software Initiator Plugin"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="SNIA iSCSI Managment API plugin library for iSCSI adapters"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWima/prototype_com b/usr/src/pkgdefs/SUNWima/prototype_com
new file mode 100644
index 0000000000..65af4b4ef8
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWima/prototype_com
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+d none usr 0755 root sys
+d none usr/lib 0755 root bin
+f none usr/lib/libsun_ima.so.1 0755 root bin
+s none usr/lib/libsun_ima.so=libsun_ima.so.1
+f none usr/lib/llib-lima 644 root bin
+f none usr/lib/llib-lima.ln 644 root bin
+f none usr/lib/llib-lsun_ima 644 root bin
+f none usr/lib/llib-lsun_ima.ln 644 root bin
diff --git a/usr/src/pkgdefs/SUNWima/prototype_i386 b/usr/src/pkgdefs/SUNWima/prototype_i386
new file mode 100644
index 0000000000..cb0bc5e04d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWima/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWima
+d none usr/lib/amd64 0755 root bin
+f none usr/lib/amd64/libsun_ima.so.1 0755 root bin
+s none usr/lib/amd64/libsun_ima.so=libsun_ima.so.1
+f none usr/lib/amd64/llib-lima.ln 644 root bin
+f none usr/lib/amd64/llib-lsun_ima.ln 644 root bin
diff --git a/usr/src/pkgdefs/SUNWima/prototype_sparc b/usr/src/pkgdefs/SUNWima/prototype_sparc
new file mode 100644
index 0000000000..885880137c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWima/prototype_sparc
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWima
+d none usr/lib/sparcv9 0755 root bin
+f none usr/lib/sparcv9/libsun_ima.so.1 0755 root bin
+s none usr/lib/sparcv9/libsun_ima.so=libsun_ima.so.1
+f none usr/lib/sparcv9/llib-lima.ln 644 root bin
+f none usr/lib/sparcv9/llib-lsun_ima.ln 644 root bin
diff --git a/usr/src/pkgdefs/SUNWimac/Makefile b/usr/src/pkgdefs/SUNWimac/Makefile
new file mode 100644
index 0000000000..1cdcf183c9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimac/Makefile
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+LICENSEFILES += $(CMN_LIC_DIR)/lic_SNIA
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWimac/depend b/usr/src/pkgdefs/SUNWimac/depend
new file mode 100644
index 0000000000..4720ef9a72
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimac/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
+P SUNWimacr Solaris IMA Common Library (Root)
diff --git a/usr/src/pkgdefs/SUNWimac/pkginfo.tmpl b/usr/src/pkgdefs/SUNWimac/pkginfo.tmpl
new file mode 100644
index 0000000000..07a34d02f0
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimac/pkginfo.tmpl
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWimac"
+NAME="Solaris IMA Common Library"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="SNIA iSCSI Managment API common library for iSCSI adapters"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWimac/prototype_com b/usr/src/pkgdefs/SUNWimac/prototype_com
new file mode 100644
index 0000000000..d8a224c5ee
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimac/prototype_com
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i pkginfo
+i depend
+i copyright
+d none usr 0755 root sys
+d none usr/lib 0755 root bin
+f none usr/lib/libima.so.1 0755 root bin
+s none usr/lib/libima.so=libima.so.1
+d none usr/include 0755 root bin
+f none usr/include/ima.h 0644 root bin
diff --git a/usr/src/pkgdefs/SUNWimac/prototype_i386 b/usr/src/pkgdefs/SUNWimac/prototype_i386
new file mode 100644
index 0000000000..9a21eb16cd
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimac/prototype_i386
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWimac
+d none usr/lib/amd64 0755 root bin
+f none usr/lib/amd64/libima.so.1 0755 root bin
+s none usr/lib/amd64/libima.so=libima.so.1
diff --git a/usr/src/pkgdefs/SUNWimac/prototype_sparc b/usr/src/pkgdefs/SUNWimac/prototype_sparc
new file mode 100644
index 0000000000..4454206445
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimac/prototype_sparc
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWimac
+d none usr/lib/sparcv9 0755 root bin
+f none usr/lib/sparcv9/libima.so.1 0755 root bin
+s none usr/lib/sparcv9/libima.so=libima.so.1
diff --git a/usr/src/pkgdefs/SUNWimacr/Makefile b/usr/src/pkgdefs/SUNWimacr/Makefile
new file mode 100644
index 0000000000..edc87281ea
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimacr/Makefile
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.preserve depend
+
+.KEEP_STATE:
+
+all: $(FILES)
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWimacr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWimacr/pkginfo.tmpl
new file mode 100644
index 0000000000..3becc3d862
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimacr/pkginfo.tmpl
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWimacr"
+NAME="Solaris IMA Common Library (Root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none preserve"
+DESC="SNIA iSCSI Managment API common library for iSCSI adapters (Root)"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWimacr/prototype_com b/usr/src/pkgdefs/SUNWimacr/prototype_com
new file mode 100644
index 0000000000..e2aff58e34
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimacr/prototype_com
@@ -0,0 +1,42 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i pkginfo
+i i.preserve
+i depend
+i copyright
+d none etc 0755 root sys
+e preserve etc/ima.conf 0644 root bin
diff --git a/usr/src/pkgdefs/SUNWimacr/prototype_i386 b/usr/src/pkgdefs/SUNWimacr/prototype_i386
new file mode 100644
index 0000000000..b0ceb620ec
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimacr/prototype_i386
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWimacr
diff --git a/usr/src/pkgdefs/SUNWimacr/prototype_sparc b/usr/src/pkgdefs/SUNWimacr/prototype_sparc
new file mode 100644
index 0000000000..06329b2799
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimacr/prototype_sparc
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWimacr
diff --git a/usr/src/pkgdefs/SUNWimar/Makefile b/usr/src/pkgdefs/SUNWimar/Makefile
new file mode 100644
index 0000000000..a5e2160367
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWimar/depend b/usr/src/pkgdefs/SUNWimar/depend
new file mode 100644
index 0000000000..9af3d702b3
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWimacr Solaris IMA Common Library (Root)
diff --git a/usr/src/pkgdefs/SUNWimar/ima.conf b/usr/src/pkgdefs/SUNWimar/ima.conf
new file mode 100644
index 0000000000..ba83a8bff2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/ima.conf
@@ -0,0 +1,67 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+VSL_32_NAME=com.sun.ima
+VSL_64_NAME=com.sun.ima64
+LIB_32_PATH=/usr/lib/libsun_ima.so.1
+LIB_64_PATH=/usr/lib/64/libsun_ima.so.1
+OBSOLETE_PATH=/usr/lib/sparcv9/libsun_ima.so.1
+
+[ "${BASERDIR}" = "/" ] && BASEDIR=""
+
+CONF_FILE=${BASEDIR}/etc/ima.conf
+
+if [ $1 = install ] ; then
+
+ if [ -f ${CONF_FILE} ] ; then
+
+ # Copy the original file without the obsoleted path.
+ grep -v "${OBSOLETE_PATH}" ${CONF_FILE}
+
+ # Append entries if missing
+ if grep "${LIB_32_PATH}" ${CONF_FILE} > /dev/null ; then :
+ else
+ echo "${VSL_32_NAME} ${LIB_32_PATH}" || exit 3
+ fi
+
+ # Append entries if missing
+ if grep "${LIB_64_PATH}" ${CONF_FILE} > /dev/null ; then :
+ else
+ echo "${VSL_64_NAME} ${LIB_64_PATH}" || exit 3
+ fi
+
+ else
+ exit 1
+ fi
+else
+ # package remove
+ if [ ! -f ${BASEDIR}/usr/lib/libsun_ima.so.1 ] ; then
+ echo "Removing conf entries for ${VSL_32_NAME} and ${VSL_64_NAME}" >&2
+ sed -e '/^'${VSL_32_NAME}'/d' -e '/^'${VSL_64_NAME}'/d' ${CONF_FILE} || exit 2
+ else
+ # Use current file as new file, otherwise the file is removed
+ cat ${CONF_FILE} || exit 2
+ fi
+fi
diff --git a/usr/src/pkgdefs/SUNWimar/pkginfo.tmpl b/usr/src/pkgdefs/SUNWimar/pkginfo.tmpl
new file mode 100644
index 0000000000..49516f8a32
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/pkginfo.tmpl
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWimar"
+NAME="Solaris IMA Software Initiator Plugin (Root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="build none"
+DESC="SNIA iSCSI Managment API plugin library for iSCSI adapters (Root)"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWimar/preinstall b/usr/src/pkgdefs/SUNWimar/preinstall
new file mode 100644
index 0000000000..1df871cb13
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/preinstall
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+[ "${BASERDIR}" = "/" ] && BASEDIR=""
+
+CONF_FILE=${BASEDIR}/etc/ima.conf
+
+COMMON_PKGS='SUNWimacr, SUNWimac'
+COMMON_URL="http://sourceforge.net/projects/ima/"
+
+if [ ! -f ${CONF_FILE} ]; then
+ echo ""
+ echo "Unable to locate ${CONF_FILE} on the system."
+ echo ""
+ echo "Please install the IMA Common library"
+ echo "available in the packages: ${COMMON_PKGS} "
+ echo "or from: ${COMMON_URL}"
+ echo ""
+ echo "Aborting install."
+ echo ""
+ sleep 10
+ exit 1
+fi
diff --git a/usr/src/pkgdefs/SUNWimar/prototype_com b/usr/src/pkgdefs/SUNWimar/prototype_com
new file mode 100644
index 0000000000..4aabc84980
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/prototype_com
@@ -0,0 +1,43 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i preinstall
+
+d none etc 0755 root sys
+e build etc/ima.conf=../../usr/src/pkgdefs/SUNWimar/ima.conf 0644 root bin
diff --git a/usr/src/pkgdefs/SUNWimar/prototype_i386 b/usr/src/pkgdefs/SUNWimar/prototype_i386
new file mode 100644
index 0000000000..6c6792abec
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/prototype_i386
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWimar
diff --git a/usr/src/pkgdefs/SUNWimar/prototype_sparc b/usr/src/pkgdefs/SUNWimar/prototype_sparc
new file mode 100644
index 0000000000..955add441d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWimar/prototype_sparc
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWimar
diff --git a/usr/src/pkgdefs/SUNWiscsir/Makefile b/usr/src/pkgdefs/SUNWiscsir/Makefile
new file mode 100644
index 0000000000..0d9e6c5215
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsir/Makefile
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += depend i.iscsiconf i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) preremove postinstall
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWiscsir/pkginfo.tmpl b/usr/src/pkgdefs/SUNWiscsir/pkginfo.tmpl
new file mode 100644
index 0000000000..7daa56a20b
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsir/pkginfo.tmpl
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWiscsir"
+NAME="Sun iSCSI Device Driver (root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="manifest none iscsiconf"
+DESC="Sun iSCSI Device Driver"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWiscsir/postinstall b/usr/src/pkgdefs/SUNWiscsir/postinstall
new file mode 100644
index 0000000000..683cc73732
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsir/postinstall
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"; export PATH
+
+# Driver definitions
+DRVR_NAME=iscsi; export DRVR_NAME
+DRVR_PERM='* 0600 root sys'; export DRVR_PERM
+
+if [ "${BASEDIR}" = "/" ]; then
+ add_drv -m "${DRVR_PERM}" ${DRVR_NAME}
+else
+ add_drv -b "${BASEDIR}" -m "${DRVR_PERM}" ${DRVR_NAME}
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWiscsir/preremove b/usr/src/pkgdefs/SUNWiscsir/preremove
new file mode 100644
index 0000000000..c80114207a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsir/preremove
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+DRVR_NAME=iscsi
+
+# Remove the driver entries but leave it attached.
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWiscsir/prototype_com b/usr/src/pkgdefs/SUNWiscsir/prototype_com
new file mode 100644
index 0000000000..d3e9acfedd
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsir/prototype_com
@@ -0,0 +1,63 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i postinstall
+i preremove
+i i.manifest
+i r.manifest
+i i.iscsiconf
+
+#
+# SUNWiscsir files
+#
+d none var 755 root sys
+d none var/svc 755 root sys
+d none var/svc/manifest 755 root sys
+d none var/svc/manifest/network 755 root sys
+f manifest var/svc/manifest/network/iscsi_initiator.xml 0444 root sys
+d none lib 755 root bin
+d none lib/svc 755 root bin
+d none lib/svc/method 755 root bin
+f none lib/svc/method/iscsid 0555 root bin
+d none etc 755 root sys
+d none etc/iscsi 0755 root sys
+d none etc/security 755 root sys
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
+e iscsiconf kernel/drv/iscsi.conf 0644 root sys
diff --git a/usr/src/pkgdefs/SUNWiscsir/prototype_i386 b/usr/src/pkgdefs/SUNWiscsir/prototype_i386
new file mode 100644
index 0000000000..eb81c88b13
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsir/prototype_i386
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWiscsir
+#
+f none kernel/drv/iscsi 0755 root sys
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/amd64/iscsi 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWiscsir/prototype_sparc b/usr/src/pkgdefs/SUNWiscsir/prototype_sparc
new file mode 100644
index 0000000000..d69ebaf5e5
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsir/prototype_sparc
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWiscsir
+#
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/sparcv9/iscsi 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWiscsiu/Makefile b/usr/src/pkgdefs/SUNWiscsiu/Makefile
new file mode 100644
index 0000000000..142d654d5f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsiu/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend preremove
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWiscsiu/depend b/usr/src/pkgdefs/SUNWiscsiu/depend
new file mode 100644
index 0000000000..caefa014ee
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsiu/depend
@@ -0,0 +1,54 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
+P SUNWimac Solaris IMA Common Library
+P SUNWimar Solaris IMA Software Initiator Plugin (Root)
+P SUNWiscsir Sun iSCSI Device Driver
diff --git a/usr/src/pkgdefs/SUNWiscsiu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWiscsiu/pkginfo.tmpl
new file mode 100644
index 0000000000..0ded8e1250
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsiu/pkginfo.tmpl
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWiscsiu"
+NAME="Sun iSCSI Management Utilities (usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Sun iSCSI Management Utilities"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWiscsiu/preremove b/usr/src/pkgdefs/SUNWiscsiu/preremove
new file mode 100644
index 0000000000..be69c6c907
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsiu/preremove
@@ -0,0 +1,56 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+SERVICE="svc:/network/iscsi_initiator:default"
+
+#
+# Exit if not removing from the running system
+#
+[ "${PKG_INSTALL_ROOT:-/}" = "/" ] || exit 0
+
+#
+# Confirm service is installed, otherwise exit.
+#
+/usr/bin/svcprop -q ${SERVICE} || exit 0
+
+#
+# Check to see if the service is enabled and if so disable it.
+#
+
+SVCPROP=`svcprop -p general/enabled ${SERVICE}`
+
+if [ "${SVCPROP}" = "true" ]; then
+ svcadm disable ${SERVICE}
+ if [ $? -ne 0 ]; then
+ echo "\n$0 Disabling of ${SERVICE} failed!\n" >&2
+ exit 1
+ fi
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWiscsiu/prototype_com b/usr/src/pkgdefs/SUNWiscsiu/prototype_com
new file mode 100644
index 0000000000..d10c8dacdd
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsiu/prototype_com
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i preremove
+#
+# SUNWiscsiu
+#
+d none usr 0755 root sys
+d none usr/sbin 0755 root bin
+f none usr/sbin/iscsiadm 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWiscsiu/prototype_i386 b/usr/src/pkgdefs/SUNWiscsiu/prototype_i386
new file mode 100644
index 0000000000..8e998480e4
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsiu/prototype_i386
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWiscsiu
+#
diff --git a/usr/src/pkgdefs/SUNWiscsiu/prototype_sparc b/usr/src/pkgdefs/SUNWiscsiu/prototype_sparc
new file mode 100644
index 0000000000..c2860fa755
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWiscsiu/prototype_sparc
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWiscsiu
+#
diff --git a/usr/src/pkgdefs/SUNWisns/Makefile b/usr/src/pkgdefs/SUNWisns/Makefile
new file mode 100644
index 0000000000..142d654d5f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisns/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend preremove
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWisns/depend b/usr/src/pkgdefs/SUNWisns/depend
new file mode 100644
index 0000000000..aaf75481c3
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisns/depend
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+P SUNWcar Core Architecture, (Root)
+P SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
+P SUNWlxml The XML library
diff --git a/usr/src/pkgdefs/SUNWisns/pkginfo.tmpl b/usr/src/pkgdefs/SUNWisns/pkginfo.tmpl
new file mode 100644
index 0000000000..63675b559f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisns/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWisns"
+NAME="Solaris iSNS Server"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Solaris internet Storage Name Service(iSNS) Server"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWisns/preremove b/usr/src/pkgdefs/SUNWisns/preremove
new file mode 100644
index 0000000000..fa70757dd7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisns/preremove
@@ -0,0 +1,55 @@
+#! /usr/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+SERVICE="svc:/network/isns_server:default"
+
+#
+# Exit if not removing from the running system
+#
+[ "${PKG_INSTALL_ROOT:-/}" = "/" ] || exit 0
+
+#
+# Confirm service is installed, otherwise exit.
+#
+/usr/bin/svcprop -q ${SERVICE} || exit 0
+
+#
+# Check to see if the service is enabled and if so disable it.
+#
+
+SVCPROP=`svcprop -c -p general/enabled ${SERVICE}`
+
+if [ "${SVCPROP}" = "true" ]; then
+ svcadm disable ${SERVICE}
+ if [ $? -ne 0 ]; then
+ echo "\n$0 Disabling of ${SERVICE} failed!\n" >&2
+ exit 1
+ fi
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWisns/prototype_com b/usr/src/pkgdefs/SUNWisns/prototype_com
new file mode 100644
index 0000000000..27ebd90a4b
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisns/prototype_com
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i preremove
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWisns
+#
+d none usr 0755 root sys
+d none usr/sbin 0755 root bin
+f none usr/sbin/isns 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWisns/prototype_i386 b/usr/src/pkgdefs/SUNWisns/prototype_i386
new file mode 100644
index 0000000000..f4f9fd5095
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisns/prototype_i386
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
diff --git a/usr/src/pkgdefs/SUNWisns/prototype_sparc b/usr/src/pkgdefs/SUNWisns/prototype_sparc
new file mode 100644
index 0000000000..719566f631
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisns/prototype_sparc
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
diff --git a/usr/src/pkgdefs/SUNWisnsadm/Makefile b/usr/src/pkgdefs/SUNWisnsadm/Makefile
new file mode 100644
index 0000000000..a5e2160367
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsadm/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWisnsadm/depend b/usr/src/pkgdefs/SUNWisnsadm/depend
new file mode 100644
index 0000000000..19bac127e0
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsadm/depend
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+P SUNWcar Core Architecture, (Root)
+P SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
+P SUNWisns iSNS server
+P SUNWlxml The XML library
diff --git a/usr/src/pkgdefs/SUNWisnsadm/pkginfo.tmpl b/usr/src/pkgdefs/SUNWisnsadm/pkginfo.tmpl
new file mode 100644
index 0000000000..47df089a69
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsadm/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWisnsadm"
+NAME="Solaris iSNS Server CLI"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Solaris iSNS Server Administration Utility"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWisnsadm/prototype_com b/usr/src/pkgdefs/SUNWisnsadm/prototype_com
new file mode 100644
index 0000000000..c2093c5c45
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsadm/prototype_com
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWisnsadm
+#
+d none usr 0755 root sys
+d none usr/sbin 0755 root bin
+f none usr/sbin/isnsadm 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWisnsadm/prototype_i386 b/usr/src/pkgdefs/SUNWisnsadm/prototype_i386
new file mode 100644
index 0000000000..f4f9fd5095
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsadm/prototype_i386
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
diff --git a/usr/src/pkgdefs/SUNWisnsadm/prototype_sparc b/usr/src/pkgdefs/SUNWisnsadm/prototype_sparc
new file mode 100644
index 0000000000..719566f631
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsadm/prototype_sparc
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
diff --git a/usr/src/pkgdefs/SUNWisnsr/Makefile b/usr/src/pkgdefs/SUNWisnsr/Makefile
new file mode 100644
index 0000000000..385b4e352e
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsr/Makefile
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWisnsr/depend b/usr/src/pkgdefs/SUNWisnsr/depend
new file mode 100644
index 0000000000..29a1fe394c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsr/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWisns Solaris iSNS Server
diff --git a/usr/src/pkgdefs/SUNWisnsr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWisnsr/pkginfo.tmpl
new file mode 100644
index 0000000000..e099cbc384
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsr/pkginfo.tmpl
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWisnsr"
+NAME="Solaris iSNS Server (Root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none manifest"
+DESC="Solaris internet Storage Name Service(iSNS) Server"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWisnsr/prototype_com b/usr/src/pkgdefs/SUNWisnsr/prototype_com
new file mode 100644
index 0000000000..251c28b2bf
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsr/prototype_com
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+i i.manifest
+i r.manifest
+# install SMF FMRI for the isns server.
+d none var 755 root sys
+d none var/svc 755 root sys
+d none var/svc/manifest 755 root sys
+d none var/svc/manifest/network 755 root sys
+f manifest var/svc/manifest/network/isns_server.xml 0444 root sys
diff --git a/usr/src/pkgdefs/SUNWisnsr/prototype_i386 b/usr/src/pkgdefs/SUNWisnsr/prototype_i386
new file mode 100644
index 0000000000..f4f9fd5095
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsr/prototype_i386
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
diff --git a/usr/src/pkgdefs/SUNWisnsr/prototype_sparc b/usr/src/pkgdefs/SUNWisnsr/prototype_sparc
new file mode 100644
index 0000000000..719566f631
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWisnsr/prototype_sparc
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
diff --git a/usr/src/pkgdefs/SUNWluxop/Makefile b/usr/src/pkgdefs/SUNWluxop/Makefile
new file mode 100644
index 0000000000..a99ccc070f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxop/Makefile
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+DATAFILES += depend
+
+.KEEP_STATE:
+
+all: $(FILES)
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWluxop/pkginfo.tmpl b/usr/src/pkgdefs/SUNWluxop/pkginfo.tmpl
new file mode 100644
index 0000000000..9976fe3313
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxop/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWluxop"
+NAME="Sun Enterprise Network Array firmware and utilities"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Sun Enterprise Network Array firmware and utilities"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWluxop/prototype_com b/usr/src/pkgdefs/SUNWluxop/prototype_com
new file mode 100644
index 0000000000..eaa0c222b1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxop/prototype_com
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+
+d none usr 0755 root sys
+d none usr/sbin 0755 root bin
+f none usr/sbin/luxadm 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWluxop/prototype_i386 b/usr/src/pkgdefs/SUNWluxop/prototype_i386
new file mode 100644
index 0000000000..77da8894e3
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxop/prototype_i386
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWluxop
diff --git a/usr/src/pkgdefs/SUNWluxop/prototype_sparc b/usr/src/pkgdefs/SUNWluxop/prototype_sparc
new file mode 100644
index 0000000000..dc6ec401e5
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxop/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWluxop
+d none usr/lib 0755 root bin
+d none usr/lib/locale 0755 root bin
+d none usr/lib/locale/C 0755 root bin
+d none usr/lib/locale/C/LC_MESSAGES 0755 root bin
+f none usr/lib/locale/C/LC_MESSAGES/ibfirmware 644 root bin
+f none usr/lib/locale/C/LC_MESSAGES/a5k_g_fc_i18n_cat 644 root bin
diff --git a/usr/src/pkgdefs/SUNWluxopr/Makefile b/usr/src/pkgdefs/SUNWluxopr/Makefile
new file mode 100644
index 0000000000..00c52cacf4
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxopr/Makefile
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+DATAFILES += depend
+
+.KEEP_STATE:
+
+all: $(FILES)
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWluxopr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWluxopr/pkginfo.tmpl
new file mode 100644
index 0000000000..c2678f0403
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxopr/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWluxopr"
+NAME="Sun Enterprise Network Array libraries"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none"
+DESC="Sun Enterprise Network Array libraries"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWluxopr/prototype_com b/usr/src/pkgdefs/SUNWluxopr/prototype_com
new file mode 100644
index 0000000000..dc90d70823
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxopr/prototype_com
@@ -0,0 +1,39 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
diff --git a/usr/src/pkgdefs/SUNWluxopr/prototype_sparc b/usr/src/pkgdefs/SUNWluxopr/prototype_sparc
new file mode 100644
index 0000000000..b9bcb3ebdf
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWluxopr/prototype_sparc
@@ -0,0 +1,56 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+# SUNWluxopr
+#
+d none lib 0755 root bin
+f none lib/liba5k.so.2 0755 root bin
+s none lib/liba5k.so=liba5k.so.2
+f none lib/libg_fc.so.2 0755 root bin
+s none lib/libg_fc.so=libg_fc.so.2
+d none lib/sparcv9 0755 root bin
+f none lib/sparcv9/liba5k.so.2 0755 root bin
+s none lib/sparcv9/liba5k.so=liba5k.so.2
+f none lib/sparcv9/libg_fc.so.2 0755 root bin
+s none lib/sparcv9/libg_fc.so=libg_fc.so.2
diff --git a/usr/src/pkgdefs/SUNWmpapi/Makefile b/usr/src/pkgdefs/SUNWmpapi/Makefile
new file mode 100644
index 0000000000..e784b43642
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapi/Makefile
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+LICENSEFILES += $(CMN_LIC_DIR)/lic_SNIA
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWmpapi/depend b/usr/src/pkgdefs/SUNWmpapi/depend
new file mode 100644
index 0000000000..b22e5aab12
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapi/depend
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+p SUNWmpapir SNIA Multipath Management API Common Library (Root)
diff --git a/usr/src/pkgdefs/SUNWmpapi/pkginfo.tmpl b/usr/src/pkgdefs/SUNWmpapi/pkginfo.tmpl
new file mode 100644
index 0000000000..e9a2db6293
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapi/pkginfo.tmpl
@@ -0,0 +1,43 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+PKG="SUNWmpapi"
+NAME="SNIA Multipath Management API Common Library"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Common Library based on SNIA MP API specification"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWmpapi/prototype_com b/usr/src/pkgdefs/SUNWmpapi/prototype_com
new file mode 100644
index 0000000000..d5b304dc23
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapi/prototype_com
@@ -0,0 +1,32 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+i pkginfo
+i copyright
+i depend
+d none usr 0755 root sys
+d none usr/include 0755 root bin
+f none usr/include/mpapi.h 0644 root bin
+f none usr/include/mpapi-sun.h 0644 root bin
diff --git a/usr/src/pkgdefs/SUNWmpapi/prototype_i386 b/usr/src/pkgdefs/SUNWmpapi/prototype_i386
new file mode 100644
index 0000000000..8afe82574a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapi/prototype_i386
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWmpapi
+
diff --git a/usr/src/pkgdefs/SUNWmpapi/prototype_sparc b/usr/src/pkgdefs/SUNWmpapi/prototype_sparc
new file mode 100644
index 0000000000..f3d2031b4d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapi/prototype_sparc
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are SPARC specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWmpapi
+
diff --git a/usr/src/pkgdefs/SUNWmpapir/Makefile b/usr/src/pkgdefs/SUNWmpapir/Makefile
new file mode 100644
index 0000000000..e34d4b6f87
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapir/Makefile
@@ -0,0 +1,39 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.preserve
+
+LICENSEFILES += $(CMN_LIC_DIR)/lic_SNIA
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWmpapir/depend b/usr/src/pkgdefs/SUNWmpapir/depend
new file mode 100644
index 0000000000..a4fbafb672
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapir/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
diff --git a/usr/src/pkgdefs/SUNWmpapir/pkginfo.tmpl b/usr/src/pkgdefs/SUNWmpapir/pkginfo.tmpl
new file mode 100644
index 0000000000..60017b7264
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapir/pkginfo.tmpl
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWmpapir"
+NAME="SNIA Multipath Management API Common Library (Root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none preserve"
+DESC="Common Library based on SNIA MP API specification (Root)"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWmpapir/prototype_com b/usr/src/pkgdefs/SUNWmpapir/prototype_com
new file mode 100644
index 0000000000..10b6d6fba1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapir/prototype_com
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+i pkginfo
+i copyright
+i depend
+i i.preserve
+d none lib 0755 root bin
+f none lib/libMPAPI.so.1 0755 root bin
+s none lib/libMPAPI.so=libMPAPI.so.1
+f none lib/llib-lMPAPI 0644 root bin
+f none lib/llib-lMPAPI.ln 0644 root bin
+d none etc 0755 root sys
+e preserve etc/mpapi.conf 0644 root bin
diff --git a/usr/src/pkgdefs/SUNWmpapir/prototype_i386 b/usr/src/pkgdefs/SUNWmpapir/prototype_i386
new file mode 100644
index 0000000000..15e39dc48d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapir/prototype_i386
@@ -0,0 +1,39 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWmpapir
+d none lib/amd64 0755 root bin
+f none lib/amd64/libMPAPI.so.1 0755 root bin
+s none lib/amd64/libMPAPI.so=libMPAPI.so.1
+f none lib/amd64/llib-lMPAPI.ln 644 root bin
diff --git a/usr/src/pkgdefs/SUNWmpapir/prototype_sparc b/usr/src/pkgdefs/SUNWmpapir/prototype_sparc
new file mode 100644
index 0000000000..1afe50e587
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpapir/prototype_sparc
@@ -0,0 +1,39 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are SPARC specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWmpapir
+d none lib/sparcv9 0755 root bin
+f none lib/sparcv9/libMPAPI.so.1 0755 root bin
+s none lib/sparcv9/libMPAPI.so=libMPAPI.so.1
+f none lib/sparcv9/llib-lMPAPI.ln 644 root bin
diff --git a/usr/src/pkgdefs/SUNWmpathadm/Makefile b/usr/src/pkgdefs/SUNWmpathadm/Makefile
new file mode 100644
index 0000000000..a5e2160367
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpathadm/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWmpathadm/depend b/usr/src/pkgdefs/SUNWmpathadm/depend
new file mode 100644
index 0000000000..64d641bdf9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpathadm/depend
@@ -0,0 +1,52 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
+P SUNWmpapir SNIA Multipath Management API Common Library (Root)
diff --git a/usr/src/pkgdefs/SUNWmpathadm/pkginfo.tmpl b/usr/src/pkgdefs/SUNWmpathadm/pkginfo.tmpl
new file mode 100644
index 0000000000..f6a5c84bcc
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpathadm/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWmpathadm"
+NAME="Solaris Multipathing CLI"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Path Administration Utility for a Solaris Multipathing device"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWmpathadm/prototype_com b/usr/src/pkgdefs/SUNWmpathadm/prototype_com
new file mode 100644
index 0000000000..32a3600f2f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpathadm/prototype_com
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+i copyright
+i pkginfo
+i depend
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWmpathadm
+#
+d none usr 0755 root sys
+d none usr/sbin 0755 root bin
+f none usr/sbin/mpathadm 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWmpathadm/prototype_i386 b/usr/src/pkgdefs/SUNWmpathadm/prototype_i386
new file mode 100644
index 0000000000..973c926a11
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpathadm/prototype_i386
@@ -0,0 +1,32 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are Intel specific here
diff --git a/usr/src/pkgdefs/SUNWmpathadm/prototype_sparc b/usr/src/pkgdefs/SUNWmpathadm/prototype_sparc
new file mode 100644
index 0000000000..e81eae725a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpathadm/prototype_sparc
@@ -0,0 +1,32 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are Sparc specific here
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/Makefile b/usr/src/pkgdefs/SUNWmpsvplr/Makefile
new file mode 100644
index 0000000000..a5e2160367
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+
+install: all pkg
+
+include ../Makefile.targ
+
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/depend b/usr/src/pkgdefs/SUNWmpsvplr/depend
new file mode 100644
index 0000000000..d86389889c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWcslr Core Solaris Libraries (Root)
+P SUNWmpapir SNIA Multipath Management API Common Library (Root)
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/mpapi.conf b/usr/src/pkgdefs/SUNWmpsvplr/mpapi.conf
new file mode 100644
index 0000000000..f3ce7cbfed
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/mpapi.conf
@@ -0,0 +1,63 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+PL_32_NAME=com.sun.mpapi32
+PL_64_NAME=com.sun.mpapi64
+LIB_32_PATH=/lib/libmpscsi_vhci.so
+LIB_64_PATH=/lib/64/libmpscsi_vhci.so
+
+[ "${BASERDIR}" = "/" ] && BASEDIR=""
+
+CONF_FILE=${BASEDIR}/etc/mpapi.conf
+
+if [ $1 = install ] ; then
+
+ if [ -f ${CONF_FILE} ] ; then
+ # Preserve old file data
+ cat ${CONF_FILE}
+ # Append entries if missing
+ if grep "${LIB_32_PATH}" ${CONF_FILE} > /dev/null ; then :
+ else
+ echo "${PL_32_NAME} ${LIB_32_PATH}" || exit 3
+ fi
+
+ # Append entries if missing
+ if grep "${LIB_64_PATH}" ${CONF_FILE} > /dev/null ; then :
+ else
+ echo "${PL_64_NAME} ${LIB_64_PATH}" || exit 3
+ fi
+
+ else
+ exit 1
+ fi
+else
+ # package remove
+ if [ ! -f ${BASEDIR}/lib/libmpscsi_vhci.so ] ; then
+ echo "Removing conf entries for ${PL_32_NAME} and ${PL_64_NAME}" >&2
+ sed -e '/^'${PL_32_NAME}'/d' -e '/^'${PL_64_NAME}'/d' ${CONF_FILE} || exit 2
+ else
+ # Use current file as new file, otherwise the file is removed
+ cat ${CONF_FILE} || exit 2
+ fi
+fi
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWmpsvplr/pkginfo.tmpl
new file mode 100644
index 0000000000..81eadf5237
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/pkginfo.tmpl
@@ -0,0 +1,43 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+PKG="SUNWmpsvplr"
+NAME="Sun MP API library for the scsi_vhci driver (Root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none build"
+DESC="SNIA MP API plugin library for the scsi_vhci driver (Root)"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/preinstall b/usr/src/pkgdefs/SUNWmpsvplr/preinstall
new file mode 100644
index 0000000000..4fc188bed7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/preinstall
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+[ "${BASERDIR}" = "/" ] && BASEDIR=""
+
+CONF_FILE=${BASEDIR}/etc/mpapi.conf
+
+COMMON_PKGS='SUNWmpapir, SUNWmpapi'
+COMMON_URL="http://sourceforge.net/projects/mp-mgmt-api/"
+
+if [ ! -f ${CONF_FILE} ]; then
+ echo ""
+ echo "Unable to locate ${CONF_FILE} on the system."
+ echo ""
+ echo "Please install the MP API Common library "
+ echo "available in the packages: ${COMMON_PKGS} "
+ echo "or from: ${COMMON_URL}"
+ echo ""
+ echo "Aborting install."
+ echo ""
+ sleep 10
+ exit 1
+fi
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/prototype_com b/usr/src/pkgdefs/SUNWmpsvplr/prototype_com
new file mode 100644
index 0000000000..b303d2f944
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/prototype_com
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+i copyright
+i pkginfo
+i depend
+i preinstall
+d none lib 0755 root bin
+f none lib/libmpscsi_vhci.so.1 0755 root bin
+s none lib/libmpscsi_vhci.so=libmpscsi_vhci.so.1
+d none etc 755 root sys
+e build etc/mpapi.conf=../../usr/src/pkgdefs/SUNWmpsvplr/mpapi.conf 0644 root sys
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/prototype_i386 b/usr/src/pkgdefs/SUNWmpsvplr/prototype_i386
new file mode 100644
index 0000000000..898ce534ed
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/prototype_i386
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are i386 specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWmpsvplr
+d none lib/amd64 0755 root bin
+f none lib/amd64/libmpscsi_vhci.so.1 0755 root bin
+s none lib/amd64/libmpscsi_vhci.so=libmpscsi_vhci.so.1
diff --git a/usr/src/pkgdefs/SUNWmpsvplr/prototype_sparc b/usr/src/pkgdefs/SUNWmpsvplr/prototype_sparc
new file mode 100644
index 0000000000..dec2f920a4
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWmpsvplr/prototype_sparc
@@ -0,0 +1,39 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# Include ISA independent files (prototype_com)
+#
+!include prototype_com
+#
+#
+# List files which are SPARC specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWmpsvplr
+d none lib/sparcv9 0755 root bin
+f none lib/sparcv9/libmpscsi_vhci.so.1 0755 root bin
+s none lib/sparcv9/libmpscsi_vhci.so=libmpscsi_vhci.so.1
diff --git a/usr/src/pkgdefs/SUNWqlc/Makefile b/usr/src/pkgdefs/SUNWqlc/Makefile
new file mode 100644
index 0000000000..158abd2b31
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/Makefile
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+
+include ../Makefile.com
+
+DATAFILES += i.qlc
+
+LICENSEFILES += $(PKGDEFS)/SUNWqlc/lic_Qlogic
+
+.KEEP_STATE:
+
+all: $(FILES) depend preremove postinstall
+
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWqlc/depend b/usr/src/pkgdefs/SUNWqlc/depend
new file mode 100644
index 0000000000..b2abdfb0fb
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/depend
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWfctl Sun Fibre Channel Transport layer
diff --git a/usr/src/pkgdefs/SUNWqlc/lic_Qlogic b/usr/src/pkgdefs/SUNWqlc/lic_Qlogic
new file mode 100644
index 0000000000..7f9c1fd7c0
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/lic_Qlogic
@@ -0,0 +1,594 @@
+--------------------------------------------------------------------
+
+Copyright (c) 2003-2008 QLogic Corporation
+QLogic Leadville qlc HBA device driver
+
+This program includes a device driver for the QLogic Leadville qlc HBA
+device driver distributed with QLogic hardware specific firmware binary
+files. You may modify and redistribute the device driver code (but not
+the firmware binary files) under License "A", version 1.0 of the Common
+Development and Distribution License ("CDDL") as published by Sun
+Microsystems, Inc. and reproduced below. The hardware binary files are
+licensed under License "B".
+
+ REGARDLESS OF WHAT LICENSING MECHANISM IS USED OR APPLICABLE,
+THIS PROGRAM IS PROVIDED BY QLOGIC CORPORATION "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+ USER ACKNOWLEDGES AND AGREES THAT USE OF THIS PROGRAM WILL NOT
+CREATE OR GIVE GROUNDS FOR A LICENSE BY IMPLICATION, ESTOPPEL, OR
+OTHERWISE IN ANY INTELLECTUAL PROPERTY RIGHTS (PATENT, COPYRIGHT, TRADE
+SECRET, MASK WORK, OR OTHER PROPRIETARY RIGHT) EMBODIED IN ANY OTHER
+QLOGIC HARDWARE OR SOFTWARE EITHER SOLELY OR IN COMBINATION WITH THIS
+PROGRAM.
+
+
+License A:
+
+ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)
+ Version 1.0
+
+1. Definitions.
+
+1.1. "Contributor" means each individual or entity that creates or
+ contributes to the creation of Modifications.
+
+1.2. "Contributor Version" means the combination of the Original
+ Software, prior Modifications used by a Contributor (if any),
+ and the Modifications made by that particular Contributor.
+
+1.3. "Covered Software" means (a) the Original Software, or (b)
+ Modifications, or (c) the combination of files containing
+ Original Software with files containing Modifications, in
+ each case including portions thereof.
+
+1.4. "Executable" means the Covered Software in any form other than
+ Source Code.
+
+1.5. "Initial Developer" means the individual or entity that first
+ makes Original Software available under this License.
+
+1.6. "Larger Work" means a work which combines Covered Software or
+ portions thereof with code not governed by the terms of this
+ License.
+
+1.7. "License" means this document.
+
+1.8. "Licensable" means having the right to grant, to the maximum
+ extent possible, whether at the time of the initial grant or
+ subsequently acquired, any and all of the rights conveyed herein.
+
+1.9. "Modifications" means the Source Code and Executable form of any
+ of the following:
+
+ A. Any file that results from an addition to, deletion from or
+ modification of the contents of a file containing Original
+ Software or previous Modifications;
+
+ B. Any new file that contains any part of the Original Software
+ or previous Modification; or
+
+ C. Any new file that is contributed or otherwise made available
+ under the terms of this License.
+
+1.10. "Original Software" means the Source Code and Executable form of
+ computer software code that is originally released under this
+ license.
+
+1.11. "Patent Claims" means any patent claim(s), now owned or hereafter
+ acquired, including without limitation, method, process, and
+ apparatus claims, in any patent Licensable by grantor.
+
+1.12. "Source Code" means (a) the common form of computer software code
+ in which modifications are made and (b) associated documentation
+ included in or with such code.
+
+1.13. "You" (or "Your") means an individual or a legal entity
+ exercising rights under, and complying with all of the terms of,
+ this License. For legal entities, "You" includes any entity which
+ controls, is controlled by, or is under common control with You.
+ For purposes of this definition, "control" means (a) the power,
+ direct or indirect, to cause the direction or management of such
+ entity, whether by contract or otherwise, or (b) ownership of
+ more than fifty percent (50%) of the outstanding shares or
+ beneficial ownership of such entity.
+
+2. License Grants.
+
+2.1. The Initial Developer Grant.
+
+ Conditioned upon Your compliance with Section 3.1 below and
+ subject to third party intellectual property claims, the Initial
+ Developer hereby grants You a world-wide, royalty-free, non-
+ exclusive license:
+
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Initial Developer, to use, reproduce,
+ modify, display, perform, sublicense and distribute the
+ Original Software (or portions thereof), with or without
+ Modifications, and/or as part of a Larger Work; and
+
+ (b) under Patent Claims infringed by the making, using or selling
+ of Original Software, to make, have made, use, practice, sell,
+ and offer for sale, and/or otherwise dispose of the Original
+ Software (or portions thereof).
+
+ (c) The licenses granted in Sections 2.1(a) and (b) are effective
+ on the date Initial Developer first distributes or otherwise
+ makes the Original Software available to a third party under
+ the terms of this License.
+
+ (d) Notwithstanding Section 2.1(b) above, no patent license is
+ granted: (1) for code that You delete from the Original
+ Software, or (2) for infringements caused by: (i) the
+ modification of the Original Software, or (ii) the combination
+ of the Original Software with other software or devices.
+
+2.2. Contributor Grant.
+
+Conditioned upon Your compliance with Section 3.1 below and subject to
+third party intellectual property claims, each Contributor hereby
+grants You a world-wide, royalty-free, non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark)
+ Licensable by Contributor to use, reproduce, modify, display,
+ perform, sublicense and distribute the Modifications created by
+ such Contributor (or portions thereof), either on an unmodified
+ basis, with other Modifications, as Covered Software and/or as part
+ of a Larger Work; and
+
+(b) under Patent Claims infringed by the making, using, or selling of
+ Modifications made by that Contributor either alone and/or in
+ combination with its Contributor Version (or portions of such
+ combination), to make, use, sell, offer for sale, have made, and/or
+ otherwise dispose of: (1) Modifications made by that Contributor
+ (or portions thereof); and (2) the combination of Modifications
+ made by that Contributor with its Contributor Version (or portions
+ of such combination).
+
+(c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on
+ the date Contributor first distributes or otherwise makes the
+ Modifications available to a third party.
+
+(d) Notwithstanding Section 2.2(b) above, no patent license is granted:
+ (1) for any code that Contributor has deleted from the Contributor
+ Version; (2) for infringements caused by: (i) third party
+ modifications of Contributor Version, or (ii) the combination of
+ Modifications made by that Contributor with other software (except
+ as part of the Contributor Version) or other devices; or (3) under
+ Patent Claims infringed by Covered Software in the absence of
+ Modifications made by that Contributor.
+
+3. Distribution Obligations.
+
+3.1. Availability of Source Code.
+
+ Any Covered Software that You distribute or otherwise make
+ available in Executable form must also be made available in Source
+ Code form and that Source Code form must be distributed only under
+ the terms of this License. You must include a copy of this License
+ with every copy of the Source Code form of the Covered Software
+ You distribute or otherwise make available. You must inform
+ recipients of any such Covered Software in xecutable form as to
+ how they can obtain such Covered Software in Source Code form in a
+ reasonable manner on or through a medium customarily used for
+ software exchange.
+
+3.2. Modifications.
+
+ The Modifications that You create or to which You contribute are
+ governed by the terms of this License. You represent that You
+ believe Your Modifications are Your original creation(s) and/or
+ You have sufficient rights to grant the rights conveyed by this
+ License.
+
+3.3. Required Notices.
+
+ You must include a notice in each of Your Modifications that
+ identifies You as the Contributor of the Modification. You may not
+ remove or alter any copyright, patent or trademark notices
+ contained within the Covered Software, or any notices of licensing
+ or any descriptive text giving attribution to any Contributor or
+ the Initial Developer.
+
+3.4. Application of Additional Terms.
+
+ You may not offer or impose any terms on any Covered Software in
+ Source Code form that alters or restricts the applicable version
+ of this License or the recipients' rights hereunder. You may
+ choose to offer, and to charge a fee for, warranty, support,
+ indemnity or liability obligations to one or more recipients of
+ Covered Software. However, you may do so only on Your own behalf,
+ and not on behalf of the Initial Developer or any Contributor. You
+ must make it absolutely clear that any such warranty, support,
+ indemnity or liability obligation is offered by You alone, and You
+ hereby agree to indemnify the Initial Developer and every
+ Contributor for any liability incurred by the Initial Developer or
+ such Contributor as a result of warranty, support, indemnity or
+ liability terms You offer.
+
+3.5. Distribution of Executable Versions.
+
+ You may distribute the Executable form of the Covered Software
+ under the terms of this License or under the terms of a license of
+ Your choice, which may contain terms different from this License,
+ provided that You are in compliance with the terms of this License
+ and that the license for the Executable form does not attempt to
+ limit or alter the recipient's rights in the Source Code form from
+ the rights set forth in this License. If You distribute the
+ Covered Software in Executable form under a different license, You
+ must make it absolutely clear that any terms which differ from
+ this License are offered by You alone, not by the Initial
+ Developer or Contributor. You hereby agree to indemnify the
+ Initial Developer and every Contributor for any liability incurred
+ by the Initial Developer or such Contributor as a result of any
+ such terms You offer.
+
+3.6. Larger Works.
+
+ You may create a Larger Work by combining Covered Software with
+ other code not governed by the terms of this License and
+ distribute the Larger Work as a single product. In such a case,
+ You must make sure the requirements of this License are fulfilled
+ for the Covered Software.
+
+4. Versions of the License.
+
+4.1. New Versions.
+
+ Sun Microsystems, Inc. is the initial license steward and may
+ publish revised and/or new versions of this License from time to
+ time. Each version will be given a distinguishing version number.
+ Except as provided in Section 4.3, no one other than the license
+ steward has the right to modify this License.
+
+4.2. Effect of New Versions.
+
+ You may always continue to use, distribute or otherwise make the
+ Covered Software available under the terms of the version of the
+ License under which You originally received the Covered Software.
+ If the Initial Developer includes a notice in the Original
+ Software prohibiting it from being distributed or otherwise made
+ available under any subsequent version of the License, You must
+ distribute and make the Covered Software available under the terms
+ of the version of the License under which You originally received
+ the Covered Software. Otherwise, You may also choose to use,
+ distribute or otherwise make the
+ Covered Software available under the terms of any subsequent
+ version of the License published by the license steward.
+
+4.3. Modified Versions.
+
+ When You are an Initial Developer and You want to create a new
+ license for Your Original Software, You may create and use a
+ modified version of this License if You: (a) rename the license
+ and remove any references to the name of the license steward
+ (except to note that the license differs from this License); and
+ (b) otherwise make it clear that the license contains terms which
+ differ from this License.
+
+5. DISCLAIMER OF WARRANTY.
+
+ COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS"
+ BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
+ INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED
+ SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR
+ PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND
+ PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY
+ COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE
+ INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY
+ NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF
+ WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE.
+ NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT
+ UNDER THIS DISCLAIMER.
+
+6. TERMINATION.
+
+6.1. This License and the rights granted hereunder will terminate
+ automatically if You fail to comply with terms herein and fail to
+ cure such breach within 30 days of becoming aware of the breach.
+ Provisions which, by their nature, must remain in effect beyond
+ the termination of this License shall survive.
+
+6.2. If You assert a patent infringement claim (excluding declaratory
+ judgment actions) against Initial Developer or a Contributor (the
+ Initial Developer or Contributor against whom You assert such
+ claim is referred to as "Participant") alleging that the
+ Participant Software (meaning the Contributor Version where the
+ Participant is a Contributor or the Original Software where the
+ Participant is the Initial Developer) directly or indirectly
+ infringes any patent, then any and all rights granted directly or
+ indirectly to You by such Participant, the Initial Developer (if
+ the Initial Developer is not the Participant) and all Contributors
+ under Sections 2.1 and/or 2.2 of this License
+ shall, upon 60 days notice from Participant terminate
+ prospectively and automatically at the expiration of such 60 day
+ notice period, unless if within such 60 day period You withdraw
+ Your claim with respect to the Participant Software against such
+ Participant either unilaterally or pursuant to a written agreement
+ with Participant.
+
+6.3. If You assert a patent infringement claim against Participant
+ alleging that the Participant Software directly or indirectly
+ infringes any patent where such claim is resolved (such as by
+ license or settlement) prior to the initiation of patent
+ infringement litigation, then the reasonable value of the licenses
+ granted by such Participant under Sections 2.1 or 2.2 shall be
+ taken into account in determining the amount or value of any
+ payment or license.
+
+6.4. In the event of termination under Sections 6.1 or 6.2 above, all
+ end user licenses that have been validly granted by You or any
+ distributor hereunder prior to termination (excluding licenses
+ granted to You by any distributor) shall survive termination.
+
+7. LIMITATION OF LIABILITY.
+
+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+ (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
+ INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
+ COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE
+ LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
+ CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
+ LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER
+ FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
+ LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE
+ POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL
+ NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM
+ SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS
+ SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
+ LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS
+ EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
+
+8. U.S. GOVERNMENT END USERS.
+
+ The Covered Software is a "commercial item" as that term is defined
+ in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
+ software" (as that term is defined at 48 C.F.R. " 252.227-7014(a)
+ (1)) and "commercial computer software documentation" as such terms
+ are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R.
+ 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all
+ U.S. Government End Users acquire Covered Software with only those
+ rights set forth herein. This U.S. Government Rights clause is in
+ lieu of, and supersedes, any other FAR, DFAR, or other clause or
+ provision that addresses Government rights in computer software
+ under this License.
+
+9. MISCELLANEOUS.
+
+ This License represents the complete agreement concerning subject
+ matter hereof. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable. This License shall be governed by
+ the law of the jurisdiction specified in a notice contained within
+ the Original Software (except to the extent applicable law, if any,
+ provides otherwise), excluding such jurisdiction's conflict-of-law
+ provisions. Any litigation relating to this License shall be subject
+ to the jurisdiction of the courts located in the jurisdiction and
+ venue specified in a notice contained within the Original Software,
+ with the losing party responsible for costs, including, without
+ limitation, court costs and reasonable attorneys' fees and expenses.
+ The application of the United Nations Convention on Contracts for
+ the International Sale of Goods is expressly excluded. Any law or
+ regulation which provides that the language of a contract shall be
+ construed against the drafter shall not apply to this License. You
+ agree that You alone are responsible for compliance with the United
+ States export administration regulations (and the export control
+ laws and regulation of any other countries) when You use, distribute
+ or otherwise make available any Covered Software.
+
+10. RESPONSIBILITY FOR CLAIMS.
+
+ As between Initial Developer and the Contributors, each party is
+ responsible for claims and damages arising, directly or indirectly,
+ out of its utilization of rights under this License and You agree to
+ work with Initial Developer and Contributors to distribute such
+ responsibility on an equitable basis. Nothing herein is intended or
+ shall be deemed to constitute any admission of liability.
+
+
+----------------------------------------------------------------------
+NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND
+DISTRIBUTION LICENSE (CDDL)
+
+The OpenSolaris code released under the CDDL shall be governed by the
+laws of the State of California (excluding conflict-of-law provisions).
+Any litigation relating to this License shall be subject to the
+jurisdiction of the Federal Courts of the Northern District of
+California and the state courts of the State of California, with venue
+lying in Santa Clara County, California.
+
+
+
+License B:
+
+THIS PRODUCT CONTAINS COMPUTER PROGRAMS AND RELATED DOCUMENTATION
+("SOFTWARE") THAT BELONG TO QLOGIC CORPORATION ("QLOGIC"), THE USE OF WHICH
+IS SUBJECT TO THIS END USER SOFTWARE LICENSE AGREEMENT ("AGREEMENT") UNLESS
+OTHERWISE AGREED TO IN WRITING BY QLOGIC. CLICKING ON THE "AGREE" BUTTON
+BELOW, INSTALLING/USING THE SOFTWARE OR ENTERING A LICENSE KEY CONSTITUTES
+ACCEPTANCE BY LICENSEE ("LICENSEE" MEANS YOU OR THE BUSINESS ENTITY ON WHOSE
+BEHALF YOU USE OR INSTALL THE SOFTWARE, AS APPLICABLE) OF ALL THE TERMS AND
+CONDITIONS OF THIS AGREEMENT UNLESS OTHERWISE AGREED TO IN WRITING BY QLOGIC.
+IF LICENSEE DOES NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT,
+LICENSEE SHALL NOT INSTALL/USE THE SOFTWARE OR ENTER A LICENSE KEY. WRITTEN
+APPROVAL IS NOT A PREREQUISITE TO THE VALIDITY OR ENFORCEABILITY OF THIS
+AGREEMENT.
+
+1. License Grant. Subject to the terms and conditions of this
+ Agreement, QLogic grants Licensee a limited, non-exclusive license
+ to redistribute, install, download and/or use the Software (in
+ object code form only) with certain approved products manufactured
+ by or for QLogic and approved products manufactured by or for an OEM
+ customer of QLogic ("QLogic Approved Products"). This license is
+ only available to original end user purchasers of QLogic Approved
+ Products that have been purchased through QLogic authorized
+ distribution channels or approved OEM distribution channels. This
+ license is not available to any end users of QLogic products who
+ have purchased QLogic products, which have previously been used and
+ the license is not available to any purchaser of QLogic application
+ specific integrated circuits ("ASICs") or any product incorporating
+ an ASIC, unless the product incorporating the ASIC is a QLogic
+ Approved Product. No rights or licenses in the Software are granted
+ to Licensee other than those rights expressly granted in this
+ Agreement. Nothing in this License entitles Licensee to any
+ upgrades or updates to, or future releases of, the Software. If
+ Licensee redistributes the Software, then Licensee shall reproduce
+ all copyright notices and must include this Agreement or an
+ agreement which is at least as restrictive as this Agreement.
+
+2. Permitted Use. Licensee may only install and use the Software in
+ accordance with the documentation provided with the Software and
+ with QLogic Approved Products.
+
+3. Intellectual Property Rights. The Software contains or embodies
+ intellectual property of QLogic (or any of its licensors). The
+ structure, organization and code are valuable trade secrets of
+ QLogic (or its licensors). QLogic and/or its licensors do not grant,
+ convey or license to Licensee any rights under any patents,
+ copyrights, trademarks or any other intellectual property except as
+ specifically granted herein. The Software is protected under U.S.
+ copyright laws, international treaty provisions and applicable laws
+ (including patent laws, if applicable) of the country in which it is
+ being used. Any unauthorized duplication of the Software is
+ expressly forbidden.
+
+4. Ownership of Software. Notwithstanding anything to the contrary,
+ QLogic and its licensors retain all title to and, except as
+ expressly and unambiguously licensed herein, all rights and interest
+ in (i) the Software, all copies and derivative works thereof (by
+ whomever produced), and (ii) all copyright rights, patent rights,
+ trade secret rights, moral rights and all other intellectual
+ property and proprietary rights anywhere in the world in the
+ Software. The Software is only licensed to Licensee and is not
+ sold.
+
+5. Restrictions and Cooperation. Licensee shall not (and shall not
+ allow any third party to) (i) decompile, disassemble, or otherwise
+ reverse engineer or attempt to reconstruct or discover any source
+ code, or underlying ideas or algorithms of the Software (except to
+ the extent expressly permitted under applicable law); (ii) provide,
+ lease, lend, use for timesharing or otherwise use or allow others to
+ use the Software to or for the benefit of third parties; (iii)
+ except as specified in the applicable user documentation, modify,
+ incorporate into or with other hardware or software, or create a
+ derivative work of any part of the Software; (iv) disseminate
+ performance information or analysis from any source relating to the
+ Software; (v) make any copies of the Software except as required to
+ use the Software as licensed hereunder, except for one (1) copy
+ solely for archival and back-up purposes, or (vi) remove any
+ product identification, copyright notice or other proprietary legend
+ from the Software. Licensee agrees to cooperate with QLogic and its
+ licensors in connection with their efforts to protect their
+ copyright/patent rights and other legal rights in the Software.
+ QLogic may, from time to time, implement additional security
+ measures for the Software, and Licensee shall cooperate with
+ such measures and be responsible for installing upgrades that
+ include such measures.
+
+6. Further Obligations. Licensee shall defend, indemnify and hold
+ QLogic harmless from and against any and all claims, damages,
+ liabilities, costs and expenses (including, without limitation,
+ attorneys" fees) arising out of Licensee"s breach of its obligations
+ under this Agreement.
+
+7. Term and Termination. This Agreement will become effective on the
+ date Licensee clicks on the "Agree" button below or otherwise uses
+ the Software and will remain in force until terminated. Licensee
+ may terminate this Agreement at any time, and QLogic may terminate
+ this Agreement if Licensee breaches any of the terms or conditions
+ hereunder. Licensee agrees to destroy or return to QLogic the
+ original and all copies of the Software immediately upon any
+ termination of this Agreement.
+
+8. Confidentiality. Licensee acknowledges that the Software contains
+ valuable trade secrets of QLogic and other information proprietary
+ to QLogic and its licensors. Licensee shall: (i)"keep confidential
+ such trade secrets and proprietary information, including without
+ limitation all information concerning ideas and algorithms related
+ to the Software, (ii)"disclose such information only to its
+ employees and agents to the extent required to use the Software
+ under the terms of this Agreement and (iii)"bind its employees,
+ consultants, agents and other third parties in writing to maintain
+ the confidentiality of such trade secrets and proprietary
+ information and not use or disclose such information except as
+ permitted in this Agreement.
+
+9. Limited Warranty and Disclaimer. THE SOFTWARE IS PROVIDED "AS IS"
+ WITHOUT ANY WARRANTY OF ANY KIND INCLUDING, WITHOUT LIMITATION, ANY
+ WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NON-INFRINGEMENT. QLOGIC DOES NOT WARRANT THAT THE SOFTWARE IS
+ ERROR-FREE OR THAT IT WILL OPERATE WITHOUT INTERRUPTION. QLOGIC
+ DOES NOT WARRANT, GUARANTEE OR MAKE ANY REPRESENTATION REGARDING THE
+ USE, OR THE RESULTS OF THE USE OF THE SOFTWARE INCLUDING, WITHOUT
+ LIMITATION, THE CORRECTNESS, ACCURACY OR RELIABILITY OF SUCH USE OR
+ RESULTS.
+
+10. Limitation of Liability. TO THE MAXIMUM EXTENT PERMITTED BY LAW,
+ IN NO EVENT WILL QLOGIC BE LIABLE TO LICENSEE OR ANY THIRD PARTY
+ FOR ANY CONSEQUENTIAL, INCIDENTAL OR SPECIAL DAMAGES, INCLUDING,
+ WITHOUT LIMITATION, LOST PROFITS, LOST DATA OR LOST SAVINGS, OR FOR
+ THE COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY
+ EVEN IF QLOGIC HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES,
+ OR FOR ANY CLAIM BY ANY THIRD PARTY.
+
+11. Export. Licensee represents, warrants and agrees that it will not,
+ directly or indirectly, export, re-export or transmit the Software
+ or any part thereof to any country in which such export, re-export
+ or transmission is restricted by any applicable U.S. regulation or
+ statute, without the prior written consent of both QLogic and, if
+ required, of the Bureau of Export Administration of the U.S.
+ Department of Commerce, or such other governmental entity as may
+ have jurisdiction over such export or transmission. In addition to
+ the above, Software may not, in the absence of authorization by
+ U.S. and local law and regulations, as required, be used by or
+ exported or reexported to (i) any U.S. sanctioned or embargoed
+ country, or to nationals or residents of such countries; or (ii)
+ any person, entity, organization or other party identified on the
+ U.S. Department of Commerce's Denied Persons or Entity List, the
+ U.S. Department of Treasury's Specially Designated Nationals or
+ Blocked Persons Lists, or the Department of State's Debarred
+ Parties List, as published and revised from time to time; or
+ (iii) any party where the end-use involves nuclear,
+ chemical/biological weapons, rocket systems or unmanned air
+ vehicles.
+
+12. Miscellaneous. A party"s failure to exercise or its delay in
+ exercising any rights hereunder will not be deemed to be a waiver
+ of such right. If any provision of this Agreement shall be held by
+ any court of competent jurisdiction to be unenforceable or invalid,
+ that provision shall be limited or eliminated to the minimum extent
+ necessary so that this Agreement shall otherwise remain in full
+ force and effect and enforceable. This Agreement shall be
+ construed pursuant to the laws of the State of California and the
+ United States without regard to conflicts of laws provisions
+ thereof and without regard to the United Nations Convention on
+ Authority for the International Sale of Goods. Licensee
+ irrevocably submits to the jurisdiction of any state or federal
+ court sitting in the State of California, United States of America,
+ and consents to venue in such forum with respect to any action or
+ proceeding that relates to this Agreement. No amendment
+ to or modification of this Agreement will be binding unless in
+ writing and signed by a duly authorized officer of QLogic. The
+ provisions of Sections 3-11 shall survive termination of this
+ Agreement. This Agreement is in the English language only, which
+ language shall be controlling and any revision of this Agreement in
+ any other language shall not be binding. Both parties agree that
+ this Agreement is the complete and exclusive statement of the
+ mutual understanding of the parties and supersedes and cancels all
+ previous written and oral agreements and communications relating to
+ the subject matter of this Agreement. NO VENDOR, DISTRIBUTOR,
+ DEALER, RETAILER, SALES PERSON OR OTHER PERSON IS AUTHORIZED TO
+ MODIFY THIS AGREEMENT OR TO MAKE ANY WARRANTY, REPRESENTATION OR
+ PROMISE WHICH IS DIFFERENT THAN, OR IN ADDITION TO, THE
+ REPRESENTATIONS OR PROMISES IN THIS AGREEMENT.
+
diff --git a/usr/src/pkgdefs/SUNWqlc/pkginfo.tmpl b/usr/src/pkgdefs/SUNWqlc/pkginfo.tmpl
new file mode 100644
index 0000000000..6d4d263fcd
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/pkginfo.tmpl
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWqlc"
+NAME="Qlogic ISP 2200/2202 Fibre Channel Device Driver"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none qlc"
+DESC="Qlogic ISP 2200/2202 Fibre Channel Device Driver"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWqlc/postinstall b/usr/src/pkgdefs/SUNWqlc/postinstall
new file mode 100644
index 0000000000..11919069e7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/postinstall
@@ -0,0 +1,128 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:$PATH"; export PATH
+
+# Driver definitions
+DRVR_NAME=qlc
+PERM_OPT="-m '* 0600 root sys'"
+CLASS_OPT="-c fibre-channel"
+
+DRVR_ALIASES_sparc="\
+ pci1077,2200 \
+ pci1077,2300 \
+ pci1077,2312 \
+ pci1077,2422 \
+ pciex1077,2432 \
+ pciex1077,5432 \
+ "
+
+DRVR_ALIASES_i386="\
+ pci1077,2200 \
+ pci1077,2300 \
+ pci1077,2312 \
+ pci1077,132 \
+ pci1077,2422 \
+ pciex1077,2432 \
+ pciex1077,5432 \
+ "
+
+HARDWARE_STRINGS_sparc="\
+ SUNW,qlc \
+ pci1077,2422 \
+ pciex1077,2432 \
+ pci1077,2432 \
+ "
+
+HARDWARE_STRING_i386="\
+ SUNW,qlc \
+ pci1077,132 \
+ pci1077,2422 \
+ pciex1077,2432 \
+ pci1077,2432 \
+ "
+
+if [ ${ARCH} = "sparc" ]; then
+ DRVR_ALIASES_LIST=$DRVR_ALIASES_sparc
+ HARDWARE_STRINGS=$HARDWARE_STRINGS_sparc
+elif [ ${ARCH} = "i386" ]; then
+ DRVR_ALIASES_LIST=$DRVR_ALIASES_i386
+ HARDWARE_STRINGS=$HARDWARE_STRINGS_i386
+else
+ echo "\n$0 Failed: ${ARCH} is not supported.\n" >&2
+ exit 1
+fi
+
+
+
+for ALIAS in $DRVR_ALIASES_LIST ; do
+ if [ -z "$ALIASES_OPT" ] ; then
+ ALIASES_OPT="-i '\"$ALIAS\""
+ else
+ ALIASES_OPT="$ALIASES_OPT \"$ALIAS\""
+ fi
+done
+ALIASES_OPT="$ALIASES_OPT'"
+
+
+for STRING in $HARDWARE_STRINGS ; do
+ if [ -z "$HARDWARE_LIST" ] ; then
+ HARDWARE_LIST="$STRING"
+ else
+ # Seperate items with pipe to represent or with egrep.
+ HARDWARE_LIST="$HARDWARE_LIST|$STRING"
+ fi
+done
+
+
+if [ -z "${BASEDIR}" ]; then
+ echo "\n$0 Failed: BASEDIR is not set.\n" >&2
+ exit 1
+fi
+
+
+# Remove existing definition, if it exists.
+/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
+
+# Check for hardware
+prtconf -pv | egrep "${HARDWARE_LIST}" > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ # Hardware is present; use command to attach the drivers
+ ADD_DRV="add_drv -b ${BASEDIR}"
+else
+ # No hardware found on the system, prevent attachment
+ ADD_DRV="add_drv -n -b ${BASEDIR}"
+fi
+
+eval ${ADD_DRV} "${PERM_OPT}" ${CLASS_OPT} "${ALIASES_OPT}" ${DRVR_NAME}
+if [ $? -ne 0 ]; then
+ echo "\nCommand Failed:\n${ADD_DRV} "${PERM_OPT}" \
+ ${CLASS_OPT} "${ALIASES_OPT}" ${DRVR_NAME}\n" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWqlc/preremove b/usr/src/pkgdefs/SUNWqlc/preremove
new file mode 100644
index 0000000000..141a053b22
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/preremove
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+DRVR_NAME=qlc
+
+# Remove the driver entries but leave it attached.
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWqlc/prototype_com b/usr/src/pkgdefs/SUNWqlc/prototype_com
new file mode 100644
index 0000000000..111f969e6d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/prototype_com
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+
+#
+#
+i copyright
+i pkginfo
+i depend
+i i.qlc
+i postinstall
+i preremove
+
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
+e qlc kernel/drv/qlc.conf 0644 root sys
+d none kernel/misc 0755 root sys
+d none kernel/misc/qlc 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWqlc/prototype_i386 b/usr/src/pkgdefs/SUNWqlc/prototype_i386
new file mode 100644
index 0000000000..877b5a0256
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/prototype_i386
@@ -0,0 +1,61 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+#
+# SUNWqlc
+#
+f none kernel/drv/qlc 0755 root sys
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/amd64/qlc 0755 root sys
+f none kernel/misc/qlc/qlc_fw_2200 0755 root sys
+f none kernel/misc/qlc/qlc_fw_2300 0755 root sys
+f none kernel/misc/qlc/qlc_fw_2400 0755 root sys
+f none kernel/misc/qlc/qlc_fw_2500 0755 root sys
+f none kernel/misc/qlc/qlc_fw_6322 0755 root sys
+d none kernel/misc/qlc/amd64 0755 root sys
+f none kernel/misc/qlc/amd64/qlc_fw_2200 0755 root sys
+f none kernel/misc/qlc/amd64/qlc_fw_2300 0755 root sys
+f none kernel/misc/qlc/amd64/qlc_fw_2400 0755 root sys
+f none kernel/misc/qlc/amd64/qlc_fw_2500 0755 root sys
+f none kernel/misc/qlc/amd64/qlc_fw_6322 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWqlc/prototype_sparc b/usr/src/pkgdefs/SUNWqlc/prototype_sparc
new file mode 100644
index 0000000000..93237fdd4f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlc/prototype_sparc
@@ -0,0 +1,55 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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
+#
+#
+# SUNWqlc
+#
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/sparcv9/qlc 0755 root sys
+d none kernel/misc/qlc/sparcv9 0755 root sys
+f none kernel/misc/qlc/sparcv9/qlc_fw_2200 0755 root sys
+f none kernel/misc/qlc/sparcv9/qlc_fw_2300 0755 root sys
+f none kernel/misc/qlc/sparcv9/qlc_fw_2400 0755 root sys
+f none kernel/misc/qlc/sparcv9/qlc_fw_2500 0755 root sys
+f none kernel/misc/qlc/sparcv9/qlc_fw_6322 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWqlcu/Makefile b/usr/src/pkgdefs/SUNWqlcu/Makefile
new file mode 100644
index 0000000000..606cbaf1d3
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlcu/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+LICENSEFILES += $(PKGDEFS)/SUNWqlc/lic_Qlogic
+
+all: $(FILES) depend
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWqlcu/depend b/usr/src/pkgdefs/SUNWqlcu/depend
new file mode 100644
index 0000000000..a579847259
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlcu/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWqlc Qlogic ISP 2200/2202 Fibre Channel Device Driver
diff --git a/usr/src/pkgdefs/SUNWqlcu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWqlcu/pkginfo.tmpl
new file mode 100644
index 0000000000..2f90bc4558
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlcu/pkginfo.tmpl
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+
+PKG="SUNWqlcu"
+NAME="Qlogic Fibre Channel Adapter Utilities (usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Utilties associated with the Qlogic Fibre Channel Adapter"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWqlcu/prototype_com b/usr/src/pkgdefs/SUNWqlcu/prototype_com
new file mode 100644
index 0000000000..b0ed062e8d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlcu/prototype_com
@@ -0,0 +1,41 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+i copyright
+i pkginfo
+i depend
+d none usr 755 root sys
+d none usr/lib 755 root bin
+d none usr/lib/mdb 755 root sys
+d none usr/lib/mdb/kvm 755 root sys
diff --git a/usr/src/pkgdefs/SUNWqlcu/prototype_i386 b/usr/src/pkgdefs/SUNWqlcu/prototype_i386
new file mode 100644
index 0000000000..99ac1e2526
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlcu/prototype_i386
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+f none usr/lib/mdb/kvm/qlc.so 555 root sys
+d none usr/lib/mdb/kvm/amd64 755 root sys
+f none usr/lib/mdb/kvm/amd64/qlc.so 555 root sys
diff --git a/usr/src/pkgdefs/SUNWqlcu/prototype_sparc b/usr/src/pkgdefs/SUNWqlcu/prototype_sparc
new file mode 100644
index 0000000000..08a58aa0bb
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqlcu/prototype_sparc
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+d none usr/lib/mdb/kvm/sparcv9 755 root sys
+f none usr/lib/mdb/kvm/sparcv9/qlc.so 555 root sys
diff --git a/usr/src/pkgdefs/SUNWqus/Makefile b/usr/src/pkgdefs/SUNWqus/Makefile
new file mode 100644
index 0000000000..30b35a395e
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqus/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += depend
+
+.KEEP_STATE:
+
+all: $(FILES) preremove postinstall
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWqus/pkginfo.tmpl b/usr/src/pkgdefs/SUNWqus/pkginfo.tmpl
new file mode 100644
index 0000000000..5455cca430
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqus/pkginfo.tmpl
@@ -0,0 +1,54 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2006 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+# IMPORTANT NOTE FOR CLASSES= ORDERING:
+#
+# Do NOT change the ordering of the class-action scripts:
+# devlinktab kclasses minorperm nametomajor drvalias
+#
+# This ordering is necessary to ensure proper operation of the nametomajor
+# class-action script.
+#
+PKG="SUNWqus"
+NAME="QLogic Ultra3 Scsi, (Root)"
+ARCH="sparc"
+VERSION="ONVERS,REV=0.0.0"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+SUNW_PKGTYPE="root"
+MAXINST="1000"
+CATEGORY="system"
+DESC="Software to support Qlogic Ultra3 scsi host bus adapters"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+CLASSES="none"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWqus/postinstall b/usr/src/pkgdefs/SUNWqus/postinstall
new file mode 100644
index 0000000000..62d766d05a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqus/postinstall
@@ -0,0 +1,62 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+
+# Driver definitions
+DRVR_NAME=qus
+DRVR_PERM="-m '* 0600 root sys'"
+DRVR_CLASS="-c scsi"
+DRVR_ALIASES="-i '\"pci1077,1016\"'"
+
+HARDWARE_STRING="pci1077,1016"
+
+if [ -z "${BASEDIR}" ]; then
+ echo "\n$0 Failed: BASEDIR is not set.\n" >&2
+ exit 1
+fi
+
+# Remove existing definition, if it exists.
+/usr/sbin/rem_drv -b "${BASEDIR}" ${DRVR_NAME} > /dev/null 2>&1
+
+# Check for hardware
+prtconf -pv | egrep "${HARDWARE_STRING}" > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ # Hardware is present, attach the drivers
+ ADD_DRV="add_drv -b ${BASEDIR}"
+else
+ # No hardware found on the system
+ ADD_DRV="add_drv -n -b ${BASEDIR}"
+fi
+
+eval ${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} "${DRVR_ALIASES}" ${DRVR_NAME}
+if [ $? -ne 0 ]; then
+ echo "\nCommand Failed:\n${ADD_DRV} "${DRVR_PERM}" ${DRVR_CLASS} \
+ "${DRVR_ALIASES}" ${DRVR_NAME}\n" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWqus/preremove b/usr/src/pkgdefs/SUNWqus/preremove
new file mode 100644
index 0000000000..58ea37766c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqus/preremove
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+DRVR_NAME=qus
+
+/usr/sbin/rem_drv -b ${BASEDIR} ${DRVR_NAME}
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWqus/prototype_com b/usr/src/pkgdefs/SUNWqus/prototype_com
new file mode 100644
index 0000000000..e7fa712335
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqus/prototype_com
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 postinstall
+i preremove
+#
+# source locations relative to the prototype file
+#
+# SUNWqus
+#
diff --git a/usr/src/pkgdefs/SUNWqus/prototype_sparc b/usr/src/pkgdefs/SUNWqus/prototype_sparc
new file mode 100644
index 0000000000..cd1e3574ba
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWqus/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+#
+# SUNWqus
+#
+#
+d none kernel 755 root sys
+d none kernel/drv 755 root sys
+d none kernel/drv/sparcv9 755 root sys
+f none kernel/drv/sparcv9/qus 755 root sys
diff --git a/usr/src/pkgdefs/SUNWrdcr/Makefile b/usr/src/pkgdefs/SUNWrdcr/Makefile
new file mode 100644
index 0000000000..0a337650da
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcr/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWrdcr/depend b/usr/src/pkgdefs/SUNWrdcr/depend
new file mode 100644
index 0000000000..0405fbbd8c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcr/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWscmu Sun StorageTek Availability Suite Storage Cache Management (usr)
+P SUNWspsvu Sun StorageTek Availability Suite Storage Volume Driver (usr)
diff --git a/usr/src/pkgdefs/SUNWrdcr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWrdcr/pkginfo.tmpl
new file mode 100644
index 0000000000..2746560ff3
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcr/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWrdcr"
+NAME="Sun StorageTek Availability Suite Remote Mirror (root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="manifest none"
+DESC="Remote Mirror copy software provides replication across IP networks"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWrdcr/prototype_com b/usr/src/pkgdefs/SUNWrdcr/prototype_com
new file mode 100644
index 0000000000..1db04a8058
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcr/prototype_com
@@ -0,0 +1,54 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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.
+
+#!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 i.manifest
+i r.manifest
+
+d none lib 0755 root bin
+d none lib/svc 0755 root bin
+d none lib/svc/method 0755 root bin
+f none lib/svc/method/svc-rdc=etc/init.d/rdc 0744 root bin
+f none lib/svc/method/svc-rdcsyncd=etc/init.d/rdcfinish 0744 root bin
+
+d none kernel 0755 root sys
+d none kernel/kmdb 755 root sys
+
+d none var 0755 root sys
+d none var/svc 0755 root sys
+d none var/svc/manifest 0755 root sys
+d none var/svc/manifest/system 0755 root sys
+f manifest var/svc/manifest/system/nws_rdc.xml=usr/lib/nws_rdc.xml 0444 root sys
+f manifest var/svc/manifest/system/nws_rdcsyncd.xml=usr/lib/nws_rdcsyncd.xml 0444 root sys
diff --git a/usr/src/pkgdefs/SUNWrdcr/prototype_i386 b/usr/src/pkgdefs/SUNWrdcr/prototype_i386
new file mode 100644
index 0000000000..748878aace
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcr/prototype_i386
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+d none kernel/kmdb/amd64 755 root sys
+f none kernel/kmdb/amd64/rdc 555 root sys
+f none kernel/kmdb/rdc 555 root sys
diff --git a/usr/src/pkgdefs/SUNWrdcr/prototype_sparc b/usr/src/pkgdefs/SUNWrdcr/prototype_sparc
new file mode 100644
index 0000000000..0c3107eb1d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcr/prototype_sparc
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+d none kernel/kmdb/sparcv9 0755 root sys
+f none kernel/kmdb/sparcv9/rdc 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWrdcu/Makefile b/usr/src/pkgdefs/SUNWrdcu/Makefile
new file mode 100644
index 0000000000..eec277d8d9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+DATAFILES += i.preserve
+
+all: $(FILES) postinstall preinstall preremove
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWrdcu/depend b/usr/src/pkgdefs/SUNWrdcu/depend
new file mode 100644
index 0000000000..4c608ef1b6
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/depend
@@ -0,0 +1,42 @@
+#
+# Copyright 2008 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 (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
+#
+# 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 SUNWscmu Sun StorageTek Availability Suite Storage Cache Management (usr)
+P SUNWspsvu Sun StorageTek Availability Suite Storage Volume Driver (usr)
+P SUNWrdcr Sun StorageTek Availability Suite Remote Mirror Copy (root)
diff --git a/usr/src/pkgdefs/SUNWrdcu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWrdcu/pkginfo.tmpl
new file mode 100644
index 0000000000..07d9c5c0fd
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWrdcu"
+NAME="Sun StorageTek Availability Suite Remote Mirror (usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none preserve"
+DESC="Remote Mirror copy software provides replication across IP networks"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWrdcu/postinstall b/usr/src/pkgdefs/SUNWrdcu/postinstall
new file mode 100644
index 0000000000..14e51e1330
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/postinstall
@@ -0,0 +1,236 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+OS_MACH=`eval isainfo -k`
+
+BASEDIR=${BASEDIR:=/}
+DRVDIR=$BASEDIR/usr/kernel/drv
+DRVDIR64=$DRVDIR/${OS_MACH}
+EXIT=0
+FAILURE=1
+INS_DATE=`date '+%m/%d/%Y %H:%M:%S'`
+INS_MSG="${INS_DATE} Remote Dual Copy module installed"
+KEEP=/usr/kernel/drv/rdc.conf
+MISCDIR64=$BASEDIR/usr/kernel/misc/${OS_MACH}
+MISCDIR=$BASEDIR/usr/kernel/misc
+MODBUSY=0
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+MODBUSYMSG="
+ #### NOTICE #####\n
+The previous version of this software cannot be unloaded (busy).\n
+To load the new modules you must reboot the system."
+MODULES="rdcsrv rdc"
+OS_VER=`eval uname -r`
+PKGMSG=${PKGINST}.pkg
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+DSCFG_UPGRADE="${PKG_INSTALL_ROOT}/etc/opt/SUNWesm/dscfg.cf.upgrade"
+
+TMP=/tmp/${PKGINST}.$$
+ERROR_LOG=${TMP}.errorlog
+
+# For least privileges add option -P sys_devices,sys_config
+if [ "${PKG_INSTALL_ROOT}" = "/" ]
+then
+ ADD_DRV="add_drv -P sys_devices,sys_config"
+ REM_DRV="rem_drv"
+else
+ ADD_DRV="add_drv -P sys_devices,sys_config -b ${PKG_INSTALL_ROOT}"
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+message()
+{
+ echo ""
+ echo "$@"
+ echo ""
+}
+
+add_devlink()
+{
+ PATTERN="$1"
+ LINK="$2"
+ echo "$PATTERN\t$LINK" >> ${DEVLINKTB}
+}
+
+#
+# Setup the service to enable. This is necessary to deal
+# with upgrade situations. It also sets the proper dependency type for the
+# local filesystems service
+# $1: name of service to enable
+#
+enable_service_on_reboot()
+{
+ # enable the service
+ svcadm enable -s svc:/system/$1
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to enable $1 service"
+ fi
+
+ if [ $1 = nws_rdc ]
+ then
+ # workaround for 6221374--let local-fs know it depends on us
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+
+ # make sure the local filesystems service waits for us
+ svccfg -s $FS_LOCAL_SVC setprop \
+ ${1}-local-fs/grouping=require_all
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to set dependency for ${1}."
+ fi
+
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+ fi
+}
+
+
+# if the main rdc module is still loaded then it has refused to unload
+# and we have to force a reboot.
+#
+if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
+ modinfo | grep -w rdc >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ # still loaded
+ MODBUSY=1
+ NOPT="-b / "
+ EXIT=10
+ fi
+fi
+
+#
+# if module has been previously installed, unload it and remove it...
+#
+for MODULE in $MODULES
+do
+ REMERR="
+ERROR: The installation cannot be completed due to an error removing the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+ ADDERR="
+ERROR: The installation cannot be completed due to an error adding the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+ DEVLINKERR="
+devlinks -r ${PKG_INSTALL_ROOT} -t ${DEVLINKTB} > ${ERROR_LOG} 2>&1
+ERROR: The installation cannot be completed due to an error configuring the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+ #
+ # if module has been previously installed, remove it
+ #
+ grep -w ${MODULE} ${PKG_INSTALL_ROOT}/etc/name_to_major > /dev/null
+ if [ $? -eq 0 ]
+ then
+ ${REM_DRV} ${MODULE} > ${ERROR_LOG} 2>&1
+ [ $? -ne 0 ] && {
+ message "${REMERR}"
+ exit ${FAILURE}
+ }
+ fi
+
+ if [ "$MODULE" = "rdcsrv" ]
+ then
+ IDIR=${MISCDIR}
+ IDIR64=${MISCDIR64}
+ else
+ IDIR=${DRVDIR}
+ IDIR64=${DRVDIR64}
+ fi
+
+ if [ "$MODULE" != "rdcsrv" ]
+ then
+ add_devlink "type=ddi_pseudo;name=${MODULE}" '\D'
+
+ ${ADD_DRV} $NOPT -m '* 0666 root sys' ${MODULE} \
+ > ${ERROR_LOG} 2>&1
+ [ $? -ne 0 ] && {
+ message "${ADDERR}"
+ exit ${FAILURE}
+ }
+
+ fi
+done
+
+# deal with upgrades from AVS 3.2
+if [ -f $DSCFG_UPGRADE ]
+then
+ grep $PKGINST $DSCFG_UPGRADE > /dev/null
+ if [ $? = 1 ]
+ then
+ enable_service_on_reboot nws_rdc
+ enable_service_on_reboot nws_rdcsyncd
+ echo "$PKGINST" >> $DSCFG_UPGRADE
+ fi
+fi
+
+if [ $MODBUSY = 1 ]; then
+ message $MODBUSYMSG
+fi
+
+#
+# remove keep file from database, and finalize pkg database
+#
+
+removef ${PKGINST} ${KEEP} >/dev/null 2>&1
+removef -R ${PKG_INSTALL_ROOT} -f ${PKGINST} >/dev/null 2>&1
+installf -R ${PKG_INSTALL_ROOT} -f ${PKGINST}
+
+#
+# Add rdc to services file
+#
+
+grep -w "rdc" ${PKG_INSTALL_ROOT}/etc/services > /dev/null
+if [ $? -eq 1 ]
+then
+ echo "rdc 121/tcp # SNDR server daemon" >> ${PKG_INSTALL_ROOT}/etc/services
+fi
+
+exit $EXIT
diff --git a/usr/src/pkgdefs/SUNWrdcu/preinstall b/usr/src/pkgdefs/SUNWrdcu/preinstall
new file mode 100644
index 0000000000..1dcb2de8f4
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/preinstall
@@ -0,0 +1,103 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:=/}
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+MODULE="rdc"
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+TMP=/tmp/${PKGINST}.$$
+
+#
+# Set specific command syntax (if needed)
+#
+
+if [ "${BASEDIR}" = "/" ]
+then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+message()
+{
+ echo ""
+ echo "$@"
+ echo ""
+}
+
+rem_devlink()
+{
+ PATTERN="$1"
+
+ grep -vw $PATTERN ${DEVLINKTB} >${TMP}.devlink
+ if [ $? -eq 0 ]
+ then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+
+#
+# Shut rdc down
+#
+if [ "${PKG_INSTALL_ROOT}" = "/" -a -f /etc/init.d/rdc ]
+then
+ sh /etc/init.d/rdc stop
+fi
+
+#
+# If module has been previously installed, unload and remove it...
+#
+grep -w ${MODULE} ${NAMEMAJOR} >/dev/null
+if [ $? -eq 0 ]
+then
+ ${REM_DRV} ${MODULE}
+fi
+
+rem_devlink ${MODULE}
+
+#
+# Remove rogue sndrsyncd that wasn't removed during 3.1 upgrade
+#
+
+rm -f /usr/lib/sndrsyncd >/dev/null 2>&1
diff --git a/usr/src/pkgdefs/SUNWrdcu/preremove b/usr/src/pkgdefs/SUNWrdcu/preremove
new file mode 100644
index 0000000000..3d5b2134f9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/preremove
@@ -0,0 +1,124 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+MODULES="rdc rdcsrv"
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+TMP=/tmp/${PKGINST}.$$
+SERVICES="nws_rdcsyncd nws_rdc"
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+
+#
+# Set specific command syntax (if needed)
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" ]
+then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+rem_devlink()
+{
+ PATTERN="$1"
+
+ grep -vw $PATTERN ${DEVLINKTB} >${TMP}.devlink
+ if [ $? -eq 0 ]
+ then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+#
+# Disable the services, if they are imported
+#
+for SVC in $SERVICES
+do
+ svcprop -q -p general/entity_stability svc:/system/${SVC}
+ # are we imported?
+ if [ $? = 0 ]
+ then
+ svcadm disable -s svc:/system/${SVC}
+ svccfg -s $FS_LOCAL_SVC setprop \
+ ${SVC}-local-fs/grouping=optional_all > /dev/null 2>&1
+ fi
+done
+
+#
+# if module has been previously installed, remove it
+#
+
+for MODULE in $MODULES
+do
+ grep -w ${MODULE} ${NAMEMAJOR} >/dev/null
+ if [ $? -eq 0 ]
+ then
+ ${REM_DRV} ${MODULE}
+ fi
+
+ rm -f ${PKG_INSTALL_ROOT}/dev/${MODULE}
+
+ rem_devlink ${MODULE}
+
+ # since rdcsrv is dynamically loaded, only way to guarantee an
+ # unload is to do it manually, and must ensure it can be
+ # unloaded without a reboot. Also, module rdc must be unloaded
+ # first, hence the required order of modules in this loop, per
+ # the variable MODULES
+ MODID=`modinfo | grep -w ${MODULE} | awk '{print $1}'`
+ if [ -n "$MODID" ]
+ then
+ modunload -i ${MODID}
+ if [ $? != 0 ]
+ then
+ echo "Error: Failed to unload $MODULE module."
+ exit 1
+ fi
+
+ fi
+
+done
+
+# ignore return value from the modunload
+# uncomment this for debugging purposes
+exit 0
diff --git a/usr/src/pkgdefs/SUNWrdcu/prototype_com b/usr/src/pkgdefs/SUNWrdcu/prototype_com
new file mode 100644
index 0000000000..f7e71cedce
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/prototype_com
@@ -0,0 +1,69 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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.
+
+#!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 postinstall
+i preinstall
+i preremove
+i depend
+i space
+i i.preserve
+
+d none usr 0755 root sys
+d none usr/kernel 0755 root sys
+d none usr/kernel/drv 0755 root sys
+e preserve usr/kernel/drv/rdc.conf 0644 root sys
+
+d none usr/kernel/misc 0755 root sys
+
+d none usr/lib 0755 root bin
+f none usr/lib/librdc.so.1=usr/lib/librdc.so.1 0755 root bin
+d none usr/lib/mdb 0755 root sys
+d none usr/lib/mdb/kvm 0755 root sys
+
+f none usr/lib/sndrd=usr/bin/sndrd 0555 root bin
+f none usr/lib/sndrsyncd=usr/bin/sndrsyncd 0555 root bin
+
+d none usr/sbin 0755 root bin
+f none usr/sbin/sndrboot=usr/bin/sndrboot 0555 root bin
+f none usr/sbin/sndradm=usr/bin/sndradm 0555 root bin
+
+d none usr/cluster 0755 root sys
+d none usr/cluster/lib 0755 root bin
+d none usr/cluster/lib/dscfg 0755 root bin
+d none usr/cluster/lib/dscfg/start 0755 root bin
+d none usr/cluster/lib/dscfg/stop 0755 root bin
+d none usr/cluster/sbin 0755 root other
+f none usr/cluster/sbin/rdc=etc/init.d/rdc.cluster 0744 root bin
+s none usr/cluster/lib/dscfg/start/10rdc=../../../sbin/rdc
+s none usr/cluster/lib/dscfg/stop/15rdc=../../../sbin/rdc
diff --git a/usr/src/pkgdefs/SUNWrdcu/prototype_i386 b/usr/src/pkgdefs/SUNWrdcu/prototype_i386
new file mode 100644
index 0000000000..fd84416405
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/prototype_i386
@@ -0,0 +1,47 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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.
+
+#!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 prototype_com
+
+d none usr/kernel/drv/amd64 0755 root sys
+f none usr/kernel/drv/amd64/rdc 0755 root sys
+f none usr/kernel/drv/rdc 0755 root sys
+
+d none usr/kernel/misc/amd64 0755 root sys
+f none usr/kernel/misc/rdcstub=usr/kernel/drv/rdcstub 0755 root sys
+f none usr/kernel/misc/amd64/rdcstub=usr/kernel/drv/amd64/rdcstub 0755 root sys
+f none usr/kernel/misc/rdcsrv=usr/kernel/drv/rdcsrv 0755 root sys
+f none usr/kernel/misc/amd64/rdcsrv=usr/kernel/drv/amd64/rdcsrv 0755 root sys
+
+d none usr/lib/mdb/kvm/amd64 0755 root sys
+f none usr/lib/mdb/kvm/rdc.so 0555 root sys
+f none usr/lib/mdb/kvm/amd64/rdc.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWrdcu/prototype_sparc b/usr/src/pkgdefs/SUNWrdcu/prototype_sparc
new file mode 100644
index 0000000000..3adf057ccf
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/prototype_sparc
@@ -0,0 +1,42 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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.
+
+#!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 prototype_com
+
+d none usr/kernel/drv/sparcv9 0755 root sys
+f none usr/kernel/drv/sparcv9/rdc 0755 root sys
+
+d none usr/kernel/misc/sparcv9 0755 root sys
+f none usr/kernel/misc/sparcv9/rdcstub=usr/kernel/drv/sparcv9/rdcstub 0755 root sys
+f none usr/kernel/misc/sparcv9/rdcsrv=usr/kernel/drv/sparcv9/rdcsrv 0755 root sys
+
+d none usr/lib/mdb/kvm/sparcv9 0755 root sys
+f none usr/lib/mdb/kvm/sparcv9/rdc.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWrdcu/space b/usr/src/pkgdefs/SUNWrdcu/space
new file mode 100644
index 0000000000..3d3a4e5f19
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWrdcu/space
@@ -0,0 +1,25 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#path blocks inodes
+usr/kernel 20 1
diff --git a/usr/src/pkgdefs/SUNWscmr/Makefile b/usr/src/pkgdefs/SUNWscmr/Makefile
new file mode 100644
index 0000000000..335783722a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend postinstall
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWscmr/depend b/usr/src/pkgdefs/SUNWscmr/depend
new file mode 100644
index 0000000000..987feabc99
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/depend
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
diff --git a/usr/src/pkgdefs/SUNWscmr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWscmr/pkginfo.tmpl
new file mode 100644
index 0000000000..fc294c2878
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWscmr"
+NAME="Sun StorageTek Availability Suite Cache Management (root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="manifest none"
+DESC="Storage Cache Management of read-only bitmap volumes"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWscmr/postinstall b/usr/src/pkgdefs/SUNWscmr/postinstall
new file mode 100644
index 0000000000..e561976ae2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/postinstall
@@ -0,0 +1,41 @@
+#!/sbin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+########################## SET GLOBAL VARIABLES ######################
+
+# set path
+PATH=usr/sadm/bin:/usr/bin:/usr/sbin:/sbin/sh
+export PATH
+
+# set Upgrade script
+UPGR_SCRIPT=/tmp/upgr.$PKGINST
+
+######################### MAIN UPGRADE PROCESSING ####################
+
+if [ -f $UPGR_SCRIPT ]; then
+ sh $UPGR_SCRIPT &
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWscmr/prototype_com b/usr/src/pkgdefs/SUNWscmr/prototype_com
new file mode 100644
index 0000000000..4e859e067a
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/prototype_com
@@ -0,0 +1,57 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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.
+
+#!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 postinstall
+i space
+i i.manifest
+i r.manifest
+
+d none etc 0755 root sys
+f none etc/dscfg_format=etc/dscfg_format 0744 root sys
+
+d none lib 0755 root bin
+d none lib/svc 0755 root bin
+d none lib/svc/method 0755 root bin
+f none lib/svc/method/svc-scm=etc/init.d/scm 0744 root bin
+
+d none kernel 0755 root sys
+d none kernel/kmdb 755 root sys
+
+d none var 0755 root sys
+d none var/svc 0755 root sys
+d none var/svc/manifest 0755 root sys
+d none var/svc/manifest/system 0755 root sys
+f manifest var/svc/manifest/system/nws_scm.xml=usr/lib/nws_scm.xml 0444 root sys
diff --git a/usr/src/pkgdefs/SUNWscmr/prototype_i386 b/usr/src/pkgdefs/SUNWscmr/prototype_i386
new file mode 100644
index 0000000000..a6eb7db545
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/prototype_i386
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+d none kernel/kmdb/amd64 755 root sys
+f none kernel/kmdb/amd64/nsctl 555 root sys
+f none kernel/kmdb/nsctl 555 root sys
+f none kernel/kmdb/amd64/sdbc 555 root sys
+f none kernel/kmdb/sdbc 555 root sys
diff --git a/usr/src/pkgdefs/SUNWscmr/prototype_sparc b/usr/src/pkgdefs/SUNWscmr/prototype_sparc
new file mode 100644
index 0000000000..b3b054f06f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/prototype_sparc
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+d none kernel/kmdb/sparcv9 0755 root sys
+f none kernel/kmdb/sparcv9/nsctl 0555 root sys
+f none kernel/kmdb/sparcv9/sdbc 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWscmr/space b/usr/src/pkgdefs/SUNWscmr/space
new file mode 100644
index 0000000000..060ccba04e
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmr/space
@@ -0,0 +1,25 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# path blocks inodes
+etc/ 1 1
diff --git a/usr/src/pkgdefs/SUNWscmu/Makefile b/usr/src/pkgdefs/SUNWscmu/Makefile
new file mode 100644
index 0000000000..9250e4b6ac
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/Makefile
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWscmu/depend b/usr/src/pkgdefs/SUNWscmu/depend
new file mode 100644
index 0000000000..1aaf161b9d
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/depend
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWscmr Sun StorageTek Availability Suite Storage Cache Management (root)
diff --git a/usr/src/pkgdefs/SUNWscmu/i.preserve b/usr/src/pkgdefs/SUNWscmu/i.preserve
new file mode 100644
index 0000000000..5b9b0b11a9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/i.preserve
@@ -0,0 +1,31 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+while read src dest
+do
+ if [ ! -f $dest ] ; then
+ cp $src $dest
+ fi
+done
+exit 0
diff --git a/usr/src/pkgdefs/SUNWscmu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWscmu/pkginfo.tmpl
new file mode 100644
index 0000000000..974902cc38
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWscmu"
+NAME="Sun StorageTek Availability Suite Cache Management (usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none"
+DESC="Storage Cache Management of read-only bitmap volumes"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWscmu/postinstall b/usr/src/pkgdefs/SUNWscmu/postinstall
new file mode 100644
index 0000000000..c3748b84b5
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/postinstall
@@ -0,0 +1,393 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:=/}
+FAILURE=1
+# the kernel modules we install and the order of dependencies
+MODULES="nskern ncall nsctl sdbc"
+OS_VER=`eval uname -r`
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+DEVLINKTB=${PKG_INSTALL_ROOT}/etc/devlink.tab
+DRVDIR64=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/kernel/drv/sparcv9
+DRVDIR=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/kernel/drv
+SCMBINDIR=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/sbin
+ESMBINDIR=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/sbin
+LIBDIR=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/lib
+MISCDIR64=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/kernel/misc/sparcv9
+MISCDIR=${PKG_INSTALL_ROOT}/${BASEDIR}/usr/kernel/misc
+NAMEMAJOR=${PKG_INSTALL_ROOT}/etc/name_to_major
+TMP_DSCFG=/tmp/dscfg.${PKGINST}.$$
+ARCH=`uname -p`
+HOST=`/usr/bin/hostname`
+DSCFG="/usr/sbin/dscfg -r $PKG_INSTALL_ROOT"
+PCONFIG="${PKG_INSTALL_ROOT}/etc/dscfg_format"
+DSCFG_REF="${PKG_INSTALL_ROOT}/etc/opt/SUNWesm/dscfg.cf"
+DSCFG_LOCAL="${PKG_INSTALL_ROOT}etc/dscfg_local"
+# number of KB required for the dscfg database (1024 * 5.5)
+DSCFG_SIZE=5632
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+
+EXIT=0
+MODBUSY=0
+MODBUSYMSG="
+ #### NOTICE #####\n
+The previous version of this software cannot be unloaded (busy).\n
+To load the new modules you must reboot the system."
+
+#
+# Functions
+#
+
+message()
+{
+ echo ""
+ echo "$@"
+ echo ""
+}
+
+add_devlink()
+{
+ PATTERN="$1"
+ LINK="$2"
+ echo "$PATTERN\t$LINK" >>${DEVLINKTB}
+}
+
+valid_dscfg_exists()
+{
+ if [ -s $DSCFG_REF ]; then
+ DSCFG_LOC=`head -1 $DSCFG_REF`
+ DSCFG_LOC=${PKG_INSTALL_ROOT}${DSCFG_LOC}
+ DSCFG_LOC=`echo $DSCFG_LOC | tr -s '/'`
+ contains_data $DSCFG_LOC
+ return $?
+ fi
+
+ return 0
+}
+
+# used to test if a valid DS config database exists on machine already
+# MAGIC_STRING is the top line in the config used in v3.1 & v3.2
+#
+contains_data()
+{
+ $xopt
+
+ # dscfg distinct strings, varies on the architecture
+ if [ $ARCH = "sparc" ]
+ then
+ MAGIC_STRING="MAGI"
+ elif [ $ARCH = "i386" ]
+ then
+ MAGIC_STRING="IGAM"
+ fi
+
+ # Create a PID unique temporary file
+ TMP_FILE=/tmp/$$
+
+ # Write the first or 16th block (skipping over VTOC) to
+ # the TMP_FILE, then scan for the presence of the "MAGI"
+ #
+ for offset in 0 16
+ do
+ if [ ! -z "$1" ]; then
+ dd if=$1 of=$TMP_FILE count=1 iseek=$offset 2>/dev/null
+ FILECONTENTS=`strings $TMP_FILE | head -1 2>/dev/null`
+ if [ `echo $FILECONTENTS | grep -c "$MAGIC_STRING"` -gt 0 ]; then
+ rm $TMP_FILE
+ return 1
+ fi
+ fi
+ done
+
+ rm $TMP_FILE
+ return 0
+}
+
+# returns 1 if the dscfg is a cluster db, 0 otherwise
+is_cluster_db()
+{
+ #
+ # Check to see if we're in a cluster.
+ # It has to be a /dev/did/rdsk device and it must contain ctags.
+ #
+ DID=`echo ${DSCFG_LOC} | awk -F/ '{print $3}'`
+ RDSK=`echo ${DSCFG_LOC} | awk -F/ '{print $4}'`
+ if [ "did" = $DID -a "rdsk" = $RDSK -a -c ${DSCFG_LOC} ]; then
+ # check if there are any cluster tags. Do this by verifying
+ # that the output with no cluster tags is equivalent to the
+ # complete output without scm tags
+ cat ${TMP_DSCFG}.1 | grep -v "^scm: " | diff - ${TMP_DSCFG}.2 \
+ > /dev/null 2>&1
+
+ if [ $? != 0 ]
+ then
+ return 1
+ fi
+ fi
+
+ return 0
+}
+
+# move the old dscfg to the new standard location
+convert_dscfg()
+{
+ #
+ # First, grab some info from the old db
+ #
+
+ # backup contents of the old dscfg database
+ ${DSCFG} -s ${DSCFG_LOC} -l 2> /dev/null | grep -v "^#" > ${TMP_DSCFG}.1
+
+ # grab all entries without a ctag
+ ${DSCFG} -s ${DSCFG_LOC} -l -C - 2> /dev/null | grep -v "^#" \
+ > ${TMP_DSCFG}.2
+
+ # are we in a cluster?
+ is_cluster_db
+ if [ $? = 0 ]
+ then
+ # we're in a non-cluster environment--just reinit the config
+
+ # First, just make sure we don't overwrite an existing dscfg
+ if [ "$DSCFG_LOC" != "$DSCFG_LOCAL" ]
+ then
+ echo y | ${DSCFG} -i > /dev/null 2>&1
+ ${DSCFG} -i -p ${PCONFIG} > /dev/null 2>&1
+ ${DSCFG} -a ${TMP_DSCFG}.1 > /dev/null 2>&1
+ fi
+ else
+ #
+ # We're in a cluster.
+ # reinitialize new database with the contents of the old
+ # strip out all dscfg entries that have a cluster tag other than
+ # l.<my_host_name>
+ #
+
+ # grab all entries with a ctag of l.<my_host_name>
+ ${DSCFG} -s ${DSCFG_LOC} -l -C l.${HOST} 2> /dev/null | \
+ grep -v "^#" > ${TMP_DSCFG}.3
+
+ # replace "l.$HOST" with "-" in ${TMP_DSCFG}.3
+ sed "s/l.${HOST}/-/g" ${TMP_DSCFG}.3 > ${TMP_DSCFG}.4
+
+ # merge the two, removing duplicate entries
+ cat ${TMP_DSCFG}.2 ${TMP_DSCFG}.4 | sort -u > ${TMP_DSCFG}.5
+
+ # reinit the local dscfg, with the ctag info stripped out
+ # First, just make sure we don't overwrite an existing dscfg
+ valid_dscfg_exists $DSCFG_LOCAL
+ if [ $? = 0 ]
+ then
+ echo y | ${DSCFG} -i > /dev/null 2>&1
+ ${DSCFG} -i -p ${PCONFIG} > /dev/null 2>&1
+ ${DSCFG} -a ${TMP_DSCFG}.5 > /dev/null 2>&1
+ fi
+
+ # init the cluster dscfg
+ ${DSCFG} -s ${DSCFG_LOC}
+ echo y | ${DSCFG} -i -C - > /dev/null 2>&1
+ ${DSCFG} -i -p ${PCONFIG} -C - > /dev/null 2>&1
+ ${DSCFG} -a ${TMP_DSCFG}.1 -C - > /dev/null 2>&1
+
+ fi
+
+ # cleanup
+ rm -f ${TMP_DSCFG}.1
+ rm -f ${TMP_DSCFG}.2
+ rm -f ${TMP_DSCFG}.3
+ rm -f ${TMP_DSCFG}.4
+ rm -f ${TMP_DSCFG}.5
+}
+
+#
+# Setup the service to enable. This is necessary to deal
+# with upgrade situations. It also sets the proper dependency type for the
+# local filesystems service
+# $1: name of service to enable
+#
+enable_service_on_reboot()
+{
+ # enable the service
+ svcadm enable -s svc:/system/$1
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to enable $1 service"
+ fi
+
+ # workaround for 6221374--let local-fs know that it depends on us
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+
+ # make sure the local filesystems service waits for us
+ svccfg -s $FS_LOCAL_SVC setprop ${1}-local-fs/grouping=require_all
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to set dependency for $1 service"
+ fi
+
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+}
+
+
+
+#
+# Installing to an alternate root ensure we can still
+# find the libraries.
+#
+
+if [ "$PKG_INSTALL_ROOT" != "/" ]
+then
+ if [ -n "$LD_LIBRARY_PATH" ]
+ then
+ # append to existing path
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PKG_INSTALL_ROOT/usr/lib:/usr/lib
+ else
+ LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib:/usr/lib
+ fi
+ export LD_LIBRARY_PATH
+fi
+
+#
+# Set specific command syntax (if needed)
+#
+
+# For least privileges add option -P sys_devices,sys_config
+if [ "${PKG_INSTALL_ROOT}" = "/" ]; then
+ REM_DRV="rem_drv"
+ ADD_DRV="add_drv -P sys_devices,sys_config"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+ ADD_DRV="add_drv -P sys_devices,sys_config -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# the preinstall should have removed the modules therefore,
+# if the lowest level module (nskern or sdsi) is loaded (busy) then we need to
+# notify the user after the install to reboot or remove the clients and
+# re-run pkgadd.
+
+n=`modinfo |grep -w nskern |cut -d" " -f1`
+
+#
+# add and load modules
+#
+for MODULE in ${MODULES}
+do
+ ERRLOG=/tmp/${MODULE}.postlog
+ REMERR="ERROR: The installation cannot be completed due to an error removing \
+the ${MODULE} loadable module. The file ${ERRLOG} contains the errors. Exiting...\
+Please fix problem and re-run pkgadd."
+ ADDERR="ERROR: The installation cannot be completed due to an error adding the \
+${MODULE} loadable module. The file ${ERRLOG} contains the errors. Exiting...\
+Please fix problem and re-run pkgadd."
+ DEVLINKERR="ERROR: The installation cannot be completed due to an error configuring \
+the ${MODULE} loadable module. The file ${ERRLOG} contains the errors. Exiting...\
+Please fix problem and re-run pkgadd."
+
+ # if the main module is still loaded then it has refused to unload
+ # and we have to force a reboot.
+ #
+ if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
+ modinfo | grep -w ${MODULE} >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ # still loaded
+ MODBUSY=1
+ NOPT="-b / "
+ fi
+ fi
+
+ #
+ # if module has been previously installed, remove it
+ #
+ grep -w ${MODULE} ${NAMEMAJOR}
+ if [ $? -eq 0 ]; then
+ ${REM_DRV} ${MODULE} > ${ERRLOG} 2>&1
+ [ $? -ne 0 ] && {
+ message ${REMERR}
+ exit ${FAILURE}
+ }
+ fi
+
+ #
+ # install module
+ #
+ add_devlink "type=ddi_pseudo;name=${MODULE}" '\D'
+
+ case ${MODULE} in
+ *) ${ADD_DRV} $NOPT -m '* 0666 root sys' ${MODULE} > ${ERRLOG} 2>&1 ;;
+ esac
+ [ $? -ne 0 ] && {
+ message ${ADDERR}
+ exit ${FAILURE}
+ }
+done
+
+#
+# Test if we need next boot to start Availability Suite
+#
+
+# check if we have a valid configuration database
+valid_dscfg_exists
+
+# if so, copy the old database to new location, setup the service to be enabled
+if [ $? = 1 ]
+then
+ convert_dscfg
+
+ enable_service_on_reboot nws_scm
+
+ mv -f $DSCFG_REF ${DSCFG_REF}.legacy
+ rm -f ${DSCFG_REF}.upgrade
+ touch ${DSCFG_REF}.upgrade
+ echo "$PKGINST" >> ${DSCFG_REF}.upgrade
+fi
+
+if [ $MODBUSY = 1 ]; then
+ message $MODBUSYMSG
+fi
+
+#
+# remove keep file from database, and finalize changes to pkg database
+#
+removef ${PKGINST} ${KEEP} >/dev/null 2>&1
+installf -R ${PKG_INSTALL_ROOT} -f ${PKGINST}
+removef -R ${PKG_INSTALL_ROOT} -f ${PKGINST} >/dev/null 2>&1
diff --git a/usr/src/pkgdefs/SUNWscmu/preinstall b/usr/src/pkgdefs/SUNWscmu/preinstall
new file mode 100644
index 0000000000..175f274469
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/preinstall
@@ -0,0 +1,123 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:=/}
+DATE=`date +%Y_%m_%d`
+DSLOG="/var/adm/ds.log"
+# fatal error
+FAILURE=1
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+NODELIST="/tmp/nodelist"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+# reverse dependency order
+# Due to upgrade in product Release 3.0 remove any reference to sdsi
+RMODULES="sdbc nsctl nskern "
+TMP=/tmp/${PKGINST}.$$
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+
+#
+# Set alternate command syntax (if needed)
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" ]; then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+message()
+{
+ echo ""
+ echo "$@"
+ echo ""
+}
+
+# Remove old backup directories left over from previous installations.
+/usr/bin/rm -f ${PKG_INSTALL_ROOT}/var/spool/pkg/bkup.* > /dev/null 2>&1
+
+#
+# rem_devlink - remove entry from ${DEVLINKTB}
+#
+
+rem_devlink()
+{
+ PATTERN="$1"
+ grep -vw $PATTERN ${DEVLINKTB} >${TMP}.devlink
+ if [ $? -eq 0 ]; then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+#
+# remove modules
+#
+
+for MODULE in ${RMODULES}
+do
+ ERRLOG=/tmp/${MODULE}.prelog
+ REMOVERR="ERROR: The removal cannot be completed due to an error removing \
+the ${MODULE} loadable module. The file ${ERRLOG} contains the errors. \
+Exiting..."
+
+ #
+ # If module has been previously installed, remove it
+ #
+
+ if grep -w ${MODULE} ${NAMEMAJOR} >/dev/null; then
+ ${REM_DRV} ${MODULE} > ${ERRLOG} 2>&1
+ [ $? -ne 0 ] && {
+ message ${REMOVERR}
+ exit ${FAILURE}
+ }
+ /usr/bin/rm ${ERRLOG}
+ fi
+ rem_devlink ${MODULE}
+done
+
+#
+# If upgrading, move old ds.log file so new one can just be current info
+#
+
+if [ -f $DSLOG ]
+then
+ mv $DSLOG $DSLOG.until.$DATE
+fi
diff --git a/usr/src/pkgdefs/SUNWscmu/preremove b/usr/src/pkgdefs/SUNWscmu/preremove
new file mode 100644
index 0000000000..a1f2e43b00
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/preremove
@@ -0,0 +1,148 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+FAILURE=1
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+# reconfig order
+CFGMODULES="nskern ncall nsctl sdbc"
+# reverse dependency order
+RMODULES="sdbc nsctl ncall nskern"
+TMP=/tmp/${PKGINST}.$$
+TMPFILE="/tmp/file.$$"
+DSCFG_UPGRADE="${PKG_INSTALL_ROOT}/var/svc/profile/dscfg_upgrade"
+SVC=nws_scm
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+
+#
+# Set alternate command syntax (if needed)
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" ]; then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+# rem_devlink - remove entry from ${DEVLINKTB}
+rem_devlink()
+{
+ PATTERN="$1"
+ grep -vw $PATTERN ${DEVLINKTB} > ${TMP}.devlink
+ if [ $? -eq 0 ]; then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+# reconfig modules, to prevent error caused from manual unload
+# This is workaround for 6255461
+
+if [ "$WORKAROUND_6255461" = "1" ]; then
+ for MDL in ${CFGMODULES}
+ do
+ devfsadm -i ${MDL}
+ done
+fi
+
+#
+# Disable the service, if it is imported
+#
+svcprop -q -p general/entity_stability svc:/system/${SVC}
+# are we imported?
+if [ $? = 0 ]
+then
+ svcadm disable -s svc:/system/${SVC}
+ svccfg -s $FS_LOCAL_SVC setprop ${SVC}-local-fs/grouping=optional_all
+fi
+
+
+#
+# Remove modules.
+#
+
+for MODULE in ${RMODULES}
+do
+ ERRLOG=/tmp/${MODULE}.prermlog
+ REMOVERR="ERROR: The removal cannot be completed due to an error \
+ removing the ${MODULE} loadable module. The file ${ERRLOG} \
+ contains the errors. Exiting..."
+
+ if grep -w ${MODULE} ${NAMEMAJOR} >/dev/null; then
+ ${REM_DRV} ${MODULE} > ${ERRLOG} 2>&1
+ [ $? -ne 0 ] && {
+ message ${REMOVERR}
+ exit ${FAILURE}
+ }
+ fi
+
+ /usr/bin/rm -f ${PKG_INSTALL_ROOT}/dev/${MODULE}
+ /usr/bin/rm -f $DSCFG_UPGRADE
+ rem_devlink ${MODULE}
+ /usr/bin/rm -f ${ERRLOG}
+
+ MODID=`modinfo | grep -w $MODULE | awk '{print $1}'`
+ if [ -n "$MODID" ]
+ then
+ modunload -i ${MODID}
+ if [ $? != 0 ]
+ then
+ echo "Error: Failed to unload $MODULE module."
+ exit 1
+ fi
+ fi
+
+done
+
+# Since spuni is not configured via add_drv, we cannot rely on rem_drv to
+# unload it. If it's still loaded, try to unload it.
+MODID=`modinfo | grep -w spuni | awk '{print $1}'`
+if [ -n "$MODID" ]
+then
+ modunload -i ${MODID}
+ if [ $? != 0 ]
+ then
+ echo "Warning: Failed to unload spuni module."
+ exit 1
+ fi
+fi
+
+# ignore any failures to modunload spuni
+exit 0
diff --git a/usr/src/pkgdefs/SUNWscmu/prototype_com b/usr/src/pkgdefs/SUNWscmu/prototype_com
new file mode 100644
index 0000000000..11b79faf28
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/prototype_com
@@ -0,0 +1,74 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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.
+
+#!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 postinstall
+i preinstall
+i preremove
+i depend
+i space
+
+d none usr 0755 root sys
+d none usr/kernel 0755 root sys
+d none usr/kernel/drv 0755 root sys
+f none usr/kernel/drv/nsctl.conf=usr/kernel/drv/nsctl.conf 0644 root sys
+f none usr/kernel/drv/sdbc.conf=usr/kernel/drv/sdbc.conf 0644 root sys
+f none usr/kernel/drv/nskern.conf=usr/kernel/drv/nskern.conf 0644 root sys
+f none usr/kernel/drv/ncall.conf=usr/kernel/drv/ncall.conf 0644 root sys
+d none usr/kernel/misc 0755 root sys
+
+# /usr/lib/mdb directory structure
+d none usr/lib 0755 root bin
+d none usr/lib/mdb 0755 root sys
+d none usr/lib/mdb/kvm 0755 root sys
+f none usr/lib/nskernd=usr/bin/nskernd 0555 root bin
+f none usr/lib/dscfglockd=usr/bin/dscfglockd 0555 root bin
+f none usr/lib/libdscfg.so.1=usr/lib/libdscfg.so.1 0755 root bin
+f none usr/lib/libunistat.so.1=usr/lib/libunistat.so.1 0755 root bin
+f none usr/lib/libnsctl.so.1=usr/lib/libnsctl.so.1 0755 root bin
+f none usr/lib/ncalladm=usr/bin/ncalladm 0555 root bin
+
+d none usr/sbin 0755 root bin
+f none usr/sbin/dscfg=usr/bin/dscfg 0555 root bin
+f none usr/sbin/dsbitmap=usr/bin/dsbitmap 0555 root bin
+f none usr/sbin/scmadm=usr/bin/scmadm 0555 root bin
+f none usr/sbin/dscfgadm=usr/bin/dscfgadm 0555 root bin
+f none usr/sbin/nscadm=usr/bin/nscadm 0555 root bin
+f none usr/sbin/dsstat=usr/bin/dsstat 0555 root bin
+
+d none usr/cluster 0755 root sys
+d none usr/cluster/lib 0755 root bin
+d none usr/cluster/lib/start 0755 root bin
+d none usr/cluster/lib/stop 0755 root bin
+d none usr/cluster/sbin 0755 root other
+f none usr/cluster/sbin/dscfg_reconfigure=usr/bin/dscfg_reconfigure.cluster 0555 root bin
diff --git a/usr/src/pkgdefs/SUNWscmu/prototype_i386 b/usr/src/pkgdefs/SUNWscmu/prototype_i386
new file mode 100644
index 0000000000..3a80d15ea7
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/prototype_i386
@@ -0,0 +1,53 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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.
+
+#!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 prototype_com
+
+d none usr/kernel/drv/amd64 0755 root sys
+f none usr/kernel/drv/amd64/nsctl 0755 root sys
+f none usr/kernel/drv/nsctl 0755 root sys
+f none usr/kernel/drv/amd64/sdbc 0755 root sys
+f none usr/kernel/drv/sdbc 0755 root sys
+f none usr/kernel/drv/amd64/nskern 0755 root sys
+f none usr/kernel/drv/nskern 0755 root sys
+f none usr/kernel/drv/amd64/ncall 0755 root sys
+f none usr/kernel/drv/ncall 0755 root sys
+d none usr/kernel/misc/amd64 0755 root sys
+f none usr/kernel/misc/spuni 0755 root sys
+f none usr/kernel/misc/amd64/spuni 0755 root sys
+
+# /usr/lib/mdb directory structure
+d none usr/lib/mdb/kvm/amd64 0755 root sys
+f none usr/lib/mdb/kvm/nsctl.so 0555 root sys
+f none usr/lib/mdb/kvm/amd64/nsctl.so 0555 root sys
+f none usr/lib/mdb/kvm/sdbc.so 0555 root sys
+f none usr/lib/mdb/kvm/amd64/sdbc.so=usr/lib/mdb/kvm/amd64/sdbc.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWscmu/prototype_sparc b/usr/src/pkgdefs/SUNWscmu/prototype_sparc
new file mode 100644
index 0000000000..9bab76a322
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/prototype_sparc
@@ -0,0 +1,46 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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.
+
+#!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 prototype_com
+
+d none usr/kernel/drv/sparcv9 0755 root sys
+f none usr/kernel/drv/sparcv9/nsctl 0755 root sys
+f none usr/kernel/drv/sparcv9/sdbc 0755 root sys
+f none usr/kernel/drv/sparcv9/nskern 0755 root sys
+f none usr/kernel/drv/sparcv9/ncall 0755 root sys
+d none usr/kernel/misc/sparcv9 0755 root sys
+f none usr/kernel/misc/sparcv9/spuni 0755 root sys
+
+# /usr/lib/mdb directory structure
+d none usr/lib/mdb/kvm/sparcv9 0755 root sys
+f none usr/lib/mdb/kvm/sparcv9/nsctl.so 0555 root sys
+f none usr/lib/mdb/kvm/sparcv9/sdbc.so=usr/lib/mdb/kvm/sparcv9/sdbc.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWscmu/space b/usr/src/pkgdefs/SUNWscmu/space
new file mode 100644
index 0000000000..8816d98b10
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWscmu/space
@@ -0,0 +1,23 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# path blocks inodes
diff --git a/usr/src/pkgdefs/SUNWspsvr/Makefile b/usr/src/pkgdefs/SUNWspsvr/Makefile
new file mode 100644
index 0000000000..5c786c33b3
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend preinstall preremove
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWspsvr/depend b/usr/src/pkgdefs/SUNWspsvr/depend
new file mode 100644
index 0000000000..03e4521471
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/depend
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWscmu Sun StorageTek Availability Suite Storage Cache Management (usr)
diff --git a/usr/src/pkgdefs/SUNWspsvr/pkginfo.tmpl b/usr/src/pkgdefs/SUNWspsvr/pkginfo.tmpl
new file mode 100644
index 0000000000..0c864c2741
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWspsvr"
+NAME="Sun StorageTek Availability Suite Volume Driver (root)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="manifest none"
+DESC="Raw/Block Device Interface to Storage Volumes (SV)"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWspsvr/preinstall b/usr/src/pkgdefs/SUNWspsvr/preinstall
new file mode 100644
index 0000000000..5208090471
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/preinstall
@@ -0,0 +1,46 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:=/}
+
+#
+# shut sv down
+#
+
+if [ "${BASEDIR}" = "/" -a -f /etc/init.d/sv ]
+then
+ sh /etc/init.d/sv stop >/dev/null 2>&1
+fi
diff --git a/usr/src/pkgdefs/SUNWspsvr/preremove b/usr/src/pkgdefs/SUNWspsvr/preremove
new file mode 100644
index 0000000000..fe10ff70f2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/preremove
@@ -0,0 +1,48 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:=/}
+
+#
+# Shut down sv
+#
+
+if [ "$BASEDIR" = "/" -a -f /etc/init.d/sv ]
+then
+ sh /etc/init.d/sv stop >/dev/null 2>&1
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWspsvr/prototype_com b/usr/src/pkgdefs/SUNWspsvr/prototype_com
new file mode 100644
index 0000000000..5e627d266b
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/prototype_com
@@ -0,0 +1,55 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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.
+
+#!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 preinstall
+i preremove
+i depend
+i i.manifest
+i r.manifest
+
+d none lib 0755 root bin
+d none lib/svc 0755 root bin
+d none lib/svc/method 0755 root bin
+f none lib/svc/method/svc-sv=etc/init.d/sv 0744 root bin
+
+d none kernel 0755 root sys
+d none kernel/kmdb 755 root sys
+
+# SMF service
+d none var 0755 root sys
+d none var/svc 0755 root sys
+d none var/svc/manifest 0755 root sys
+d none var/svc/manifest/system 0755 root sys
+f manifest var/svc/manifest/system/nws_sv.xml=usr/lib/nws_sv.xml 0444 root sys
diff --git a/usr/src/pkgdefs/SUNWspsvr/prototype_i386 b/usr/src/pkgdefs/SUNWspsvr/prototype_i386
new file mode 100644
index 0000000000..8c20b2d60b
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/prototype_i386
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+d none kernel/kmdb/amd64 755 root sys
+f none kernel/kmdb/amd64/sv 555 root sys
+f none kernel/kmdb/sv 555 root sys
diff --git a/usr/src/pkgdefs/SUNWspsvr/prototype_sparc b/usr/src/pkgdefs/SUNWspsvr/prototype_sparc
new file mode 100644
index 0000000000..f8e5040e12
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvr/prototype_sparc
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+d none kernel/kmdb/sparcv9 0755 root sys
+f none kernel/kmdb/sparcv9/sv 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWspsvu/Makefile b/usr/src/pkgdefs/SUNWspsvu/Makefile
new file mode 100644
index 0000000000..a8d8c9249f
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/Makefile
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(FILES) depend postinstall preinstall preremove
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWspsvu/depend b/usr/src/pkgdefs/SUNWspsvu/depend
new file mode 100644
index 0000000000..539f4fc5b9
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWscmu Sun StorageTek Availability Suite Storage Cache Management (usr)
+P SUNWspsvr Sun StorageTek Availability Suite Storage Volume Driver (root)
diff --git a/usr/src/pkgdefs/SUNWspsvu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWspsvu/pkginfo.tmpl
new file mode 100644
index 0000000000..39bad0e548
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWspsvu"
+NAME="Sun StorageTek Availability Suite Volume Driver (usr)"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="none"
+DESC="Raw/Block Device Interface to Storage Volumes (SV)"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWspsvu/postinstall b/usr/src/pkgdefs/SUNWspsvu/postinstall
new file mode 100644
index 0000000000..0beec1acc6
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/postinstall
@@ -0,0 +1,213 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+DRVDIR64=${BASEDIR}/usr/kernel/drv/sparcv9
+DRVDIR=${BASEDIR}/usr/kernel/drv
+TMP=/tmp/${PKGINST}.$$
+ERROR_LOG=${TMP}.errorlog
+EXIT=0
+FAILURE=1
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+
+MODBUSYMSG="
+ #### NOTICE #####\n
+The previous version of this software cannot be unloaded (busy).\n
+To load the new modules you must reboot the system."
+MODBUSY=0
+MODULE="sv"
+OS_VER=`eval uname -r`
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+DSCFG_UPGRADE="${PKG_INSTALL_ROOT}/etc/opt/SUNWesm/dscfg.cf.upgrade"
+
+if [ "$BASEDIR" = "/" ]
+then
+ unset BASEDIR
+fi
+
+#
+# Set alternate command syntax (if needed)
+#
+
+# For least privileges add option -P sys_devices,sys_config
+if [ "${PKG_INSTALL_ROOT}" = "/" ]
+then
+ ADD_DRV="add_drv -P sys_devices,sys_config"
+ REM_DRV="rem_drv"
+else
+ ADD_DRV="add_drv -P sys_devices,sys_config -b ${PKG_INSTALL_ROOT}"
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+message()
+{
+ echo ""
+ echo "$@"
+ echo ""
+}
+
+add_devlink()
+{
+ PATTERN="$1"
+ LINK="$2"
+ echo "$PATTERN\t$LINK" >>${DEVLINKTB}
+}
+
+#
+# Setup the service to enable. This is necessary to deal
+# with upgrade situations. It also sets the proper dependency type for the
+# local filesystems service
+# $1: name of service to enable
+#
+enable_service_on_reboot()
+{
+ # enable the service
+ svcadm enable -s svc:/system/$1
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to enable $1 service"
+ fi
+
+ # workaround for 6221374--let local-fs know that it depends on us
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+
+ # make sure the local filesystems service waits for us
+ svccfg -s $FS_LOCAL_SVC setprop ${1}-local-fs/grouping=require_all
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to set dependency for $1 service"
+ fi
+
+ svcadm refresh ${FS_LOCAL_SVC}:default
+ if [ $? -ne 0 ]
+ then
+ message "Warning: Unable to refresh $1 service"
+ fi
+}
+
+
+#
+# Error messages
+#
+
+REMERR="
+ERROR: The installation cannot be completed due to an error removing the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+ADDERR="
+ERROR: The installation cannot be completed due to an error adding the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+DEVLINKERR="
+ERROR: The installation cannot be completed due to an error configuring the
+${MODULE} loadable module. The file ${ERROR_LOG} contains the errors.
+Exiting...Please fix problem and re-run pkgadd."
+
+#
+# Finalize changes to the pkg database
+#
+
+installf -R ${PKG_INSTALL_ROOT} -f ${PKGINST}
+removef -R ${PKG_INSTALL_ROOT} -f ${PKGINST} >/dev/null 2>&1
+
+
+# if the sv module is still loaded then it has refused to unload
+# and we have to force a reboot.
+#
+
+if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
+ modinfo | grep -w sv > /dev/null 2>&1
+ if [ $? -eq 0 ] ; then
+ # still loaded
+ MODBUSY=1
+ NOPT="-b /"
+ EXIT=10
+ fi
+fi
+
+#
+# if module has been previously installed, unload and remove it...
+#
+
+grep -w ${MODULE} ${PKG_INSTALL_ROOT}/etc/name_to_major > /dev/null
+if [ $? -eq 0 ]
+then
+ ${REM_DRV} ${MODULE} > ${ERROR_LOG} 2>&1
+ [ $? -ne 0 ] && {
+ message ${REMERR}
+ exit ${FAILURE}
+ }
+fi
+
+#
+# install module
+#
+
+add_devlink "type=ddi_pseudo;name=${MODULE}" '\D'
+
+${ADD_DRV} $NOPT -m '* 0666 root sys' ${MODULE} > ${ERROR_LOG} 2>&1
+[ $? -ne 0 ] && {
+ message ${ADDERR}
+ exit ${FAILURE}
+}
+
+# deal with upgrades from AVS3.2
+if [ -f $DSCFG_UPGRADE ]
+then
+ grep $PKGINST $DSCFG_UPGRADE > /dev/null
+ if [ $? = 1 ]
+ then
+ enable_service_on_reboot nws_sv
+ echo "$PKGINST" >> $DSCFG_UPGRADE
+ fi
+fi
+
+if [ $MODBUSY = 1 ]
+then
+ message $MODBUSYMSG
+fi
+
+exit $EXIT
diff --git a/usr/src/pkgdefs/SUNWspsvu/preinstall b/usr/src/pkgdefs/SUNWspsvu/preinstall
new file mode 100644
index 0000000000..fd9534a068
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/preinstall
@@ -0,0 +1,91 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+BASEDIR=${BASEDIR:=/}
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+MODULE="sv"
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+TMP=/tmp/${PKGINST}.$$
+
+#
+# Set alternate command syntax (if needed)
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" ]
+then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# functions
+#
+
+rem_devlink()
+{
+ PATTERN="$1"
+
+ grep -vw $PATTERN ${DEVLINKTB} >${TMP}.devlink
+ if [ $? -eq 0 ]
+ then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+#
+# shut sv down
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" -a -f /etc/init.d/sv ]
+then
+ sh /etc/init.d/sv stop >/dev/null 2>&1
+fi
+
+#
+# If module has been previously installed, unload and remove it
+#
+
+grep -w ${MODULE} ${NAMEMAJOR} >/dev/null
+if [ $? -eq 0 ]
+then
+ ${REM_DRV} ${MODULE}
+fi
+
+rem_devlink ${MODULE}
diff --git a/usr/src/pkgdefs/SUNWspsvu/preremove b/usr/src/pkgdefs/SUNWspsvu/preremove
new file mode 100644
index 0000000000..11ffdfdbd1
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/preremove
@@ -0,0 +1,111 @@
+#!/bin/sh
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Set path
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+#
+# Set variables
+#
+
+DEVLINKTB="${PKG_INSTALL_ROOT}/etc/devlink.tab"
+MODULE="sv"
+NAMEMAJOR="${PKG_INSTALL_ROOT}/etc/name_to_major"
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:=/}
+TMP=/tmp/${PKGINST}.$$
+SVC=nws_sv
+FS_LOCAL_SVC="svc:/system/filesystem/local"
+
+#
+# Set alternate command syntax (if needed)
+#
+
+if [ "${PKG_INSTALL_ROOT}" = "/" ]
+then
+ REM_DRV="rem_drv"
+else
+ REM_DRV="rem_drv -b ${PKG_INSTALL_ROOT}"
+fi
+
+#
+# Functions
+#
+
+rem_devlink()
+{
+ PATTERN="$1"
+
+ grep -vw $PATTERN ${DEVLINKTB} >${TMP}.devlink
+ if [ $? -eq 0 ]
+ then
+ mv ${TMP}.devlink ${DEVLINKTB}
+ else
+ rm ${TMP}.devlink
+ fi
+}
+
+#
+# Disable the service, if it is imported
+#
+svcprop -q -p general/entity_stability svc:/system/${SVC}
+# are we imported?
+if [ $? = 0 ]
+then
+ svcadm disable -s svc:/system/${SVC}
+ svccfg -s $FS_LOCAL_SVC setprop ${SVC}-local-fs/grouping=optional_all
+fi
+
+#
+# if module has been previously installed, unload and remove it...
+#
+
+grep -w ${MODULE} ${NAMEMAJOR} >/dev/null
+if [ $? -eq 0 ]
+then
+ # sv driver needs to unhold before it can be unloaded
+ ${PKG_INSTALL_ROOT}/usr/sbin/svboot -u
+ ${REM_DRV} ${MODULE}
+fi
+
+rm -f ${PKG_INSTALL_ROOT}/dev/${MODULE}
+
+rem_devlink ${MODULE}
+
+MODID=`modinfo | grep -w $MODULE | awk '{print $1}'`
+if [ -n "$MODID" ]
+then
+ modunload -i ${MODID}
+ if [ $? != 0 ]
+ then
+ echo "Error: Failed to unload $MODULE module."
+ exit 1
+ fi
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWspsvu/prototype_com b/usr/src/pkgdefs/SUNWspsvu/prototype_com
new file mode 100644
index 0000000000..eb105fe4ba
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/prototype_com
@@ -0,0 +1,62 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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.
+
+#!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 postinstall
+i preinstall
+i preremove
+i depend
+i space
+
+d none usr 0755 root sys
+d none usr/kernel 0755 root sys
+d none usr/kernel/drv 0755 root sys
+f none usr/kernel/drv/sv.conf=usr/kernel/drv/sv.conf 0644 root sys
+
+d none usr/lib 0755 root bin
+d none usr/lib/mdb 0755 root sys
+d none usr/lib/mdb/kvm 0755 root sys
+
+d none usr/sbin 0755 root bin
+f none usr/sbin/svadm=usr/bin/svadm 0555 root bin
+f none usr/sbin/svboot=usr/bin/svboot 0555 root bin
+
+d none usr/cluster 0755 root sys
+d none usr/cluster/lib 0755 root bin
+d none usr/cluster/lib/dscfg 0755 root bin
+d none usr/cluster/lib/dscfg/start 0755 root bin
+d none usr/cluster/lib/dscfg/stop 0755 root bin
+d none usr/cluster/sbin 0755 root other
+f none usr/cluster/sbin/sv=etc/init.d/sv.cluster 0744 root bin
+s none usr/cluster/lib/dscfg/start/15sv=../../../sbin/sv
+s none usr/cluster/lib/dscfg/stop/10sv=../../../sbin/sv
diff --git a/usr/src/pkgdefs/SUNWspsvu/prototype_i386 b/usr/src/pkgdefs/SUNWspsvu/prototype_i386
new file mode 100644
index 0000000000..8dbb5ed482
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/prototype_i386
@@ -0,0 +1,41 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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.
+
+#!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 prototype_com
+
+d none usr/kernel/drv/amd64 0755 root sys
+f none usr/kernel/drv/sv 0755 root sys
+f none usr/kernel/drv/amd64/sv 0755 root sys
+
+d none usr/lib/mdb/kvm/amd64 0755 root sys
+f none usr/lib/mdb/kvm/sv.so 0555 root sys
+f none usr/lib/mdb/kvm/amd64/sv.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWspsvu/prototype_sparc b/usr/src/pkgdefs/SUNWspsvu/prototype_sparc
new file mode 100644
index 0000000000..fc90e58ba6
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/prototype_sparc
@@ -0,0 +1,39 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# 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.
+
+#!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 prototype_com
+
+d none usr/kernel/drv/sparcv9 0755 root sys
+f none usr/kernel/drv/sparcv9/sv 0755 root sys
+
+d none usr/lib/mdb/kvm/sparcv9 0755 root sys
+f none usr/lib/mdb/kvm/sparcv9/sv.so 0555 root sys
diff --git a/usr/src/pkgdefs/SUNWspsvu/space b/usr/src/pkgdefs/SUNWspsvu/space
new file mode 100644
index 0000000000..a9d505ba62
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWspsvu/space
@@ -0,0 +1,23 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#path blocks inodes
diff --git a/usr/src/pkgdefs/SUNWstmf/Makefile b/usr/src/pkgdefs/SUNWstmf/Makefile
new file mode 100644
index 0000000000..0fd1d2d793
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+DATAFILES += i.manifest r.manifest
+
+.KEEP_STATE:
+
+all: $(FILES) depend preremove postinstall
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWstmf/depend b/usr/src/pkgdefs/SUNWstmf/depend
new file mode 100644
index 0000000000..5d8602bf69
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/depend
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 SUNWcakr Core Solaris Kernel Architecture (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWckr Core Solaris Kernel (Root)
+P SUNWcnetr Core Solaris Network Infrastructure (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris Libraries
+P SUNWstmfu Common Multiprotocol SCSI Target Libraries and Tools
diff --git a/usr/src/pkgdefs/SUNWstmf/pkginfo.tmpl b/usr/src/pkgdefs/SUNWstmf/pkginfo.tmpl
new file mode 100644
index 0000000000..4e6a55e03c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWstmf"
+NAME="Sun Common Multipotocol SCSI Target"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="root"
+CLASSES="manifest none"
+DESC="Sun Common Multipotocol SCSI Target device drivers"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="true"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWstmf/postinstall b/usr/src/pkgdefs/SUNWstmf/postinstall
new file mode 100644
index 0000000000..2e4a578653
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/postinstall
@@ -0,0 +1,87 @@
+#!/bin/ksh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"; export PATH
+
+driver_not_installed()
+{
+ grep $1 /etc/name_to_major >/dev/null 2>&1
+ if [ $? -eq 0 ]
+ then
+ return 1
+ else
+ return 0
+ fi
+}
+
+driver_add()
+{
+ if [ "${BASEDIR}" = "/" ]; then
+ add_drv -n -m '* 0666 root sys' $1 > /dev/null 2>&1
+ else
+ add_drv -n -b "${BASEDIR}" -m '* 0666 root sys' $1 > /dev/null 2>&1
+ fi
+}
+
+# Remove old sbd driver (if found)
+if [ ${ARCH} = "sparc" ]; then
+ RMSBD="/kernel/drv/sbd.conf /kernel/drv/sparcv9/sbd"
+ CHKSBD="/kernel/drv/sparcv9/sbd"
+else
+ RMSBD="/kernel/drv/sbd.conf /kernel/drv/sbd /kernel/drv/amd64/sbd"
+ CHKSBD="/kernel/drv/amd64/sbd"
+fi
+
+if [ -f $CHKSBD ]; then
+ strings $CHKSBD |grep COMSTAR >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ rem_drv sbd >/dev/null 2>&1
+ /bin/rm -f $RMSBD
+ fi
+fi
+
+# Now add the new drivers
+if driver_not_installed stmf
+then
+ driver_add stmf
+fi
+
+if driver_not_installed stmf_sbd
+then
+ driver_add stmf_sbd
+fi
+
+if driver_not_installed fct
+then
+ driver_add fct
+fi
+
+if driver_not_installed qlt
+then
+ driver_add qlt
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWstmf/preremove b/usr/src/pkgdefs/SUNWstmf/preremove
new file mode 100644
index 0000000000..c6a84d69ab
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/preremove
@@ -0,0 +1,55 @@
+#! /usr/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+SERVICE="svc:/system/stmf:default"
+
+driver_installed()
+{
+ grep $1 /etc/name_to_major >/dev/null 2>&1
+ return $?
+}
+
+remove_drv()
+{
+ if driver_installed $1
+ then
+ /usr/sbin/rem_drv -b ${BASEDIR} $1 > /dev/null 2>&1
+ fi
+}
+
+svcadm clear $SERVICE >/dev/null 2>&1
+svcadm disable $SERVICE >/dev/null 2>&1
+sleep 2
+
+remove_drv qlt
+remove_drv fct
+remove_drv stmf_sbd
+echo 'stmf_allow_modunload/W 1' | /bin/mdb -kw >/dev/null 2>&1
+remove_drv stmf
+
+exit 0
diff --git a/usr/src/pkgdefs/SUNWstmf/prototype_com b/usr/src/pkgdefs/SUNWstmf/prototype_com
new file mode 100644
index 0000000000..85b9334a64
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/prototype_com
@@ -0,0 +1,58 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+i copyright
+i pkginfo
+i depend
+i postinstall
+i preremove
+i i.manifest
+i r.manifest
+
+d none kernel 0755 root sys
+d none kernel/drv 0755 root sys
+f none kernel/drv/fct.conf 0644 root sys
+f none kernel/drv/qlt.conf 0644 root sys
+f none kernel/drv/stmf_sbd.conf 0644 root sys
+f none kernel/drv/stmf.conf 0644 root sys
+d none kernel/kmdb 755 root sys
+d none lib 755 root bin
+d none lib/svc 755 root bin
+d none lib/svc/method 755 root bin
+f none lib/svc/method/svc-stmf 0555 root bin
+d none var 755 root sys
+d none var/svc 755 root sys
+d none var/svc/manifest 755 root sys
+d none var/svc/manifest/system 755 root sys
+f manifest var/svc/manifest/system/stmf.xml 0444 root sys
diff --git a/usr/src/pkgdefs/SUNWstmf/prototype_i386 b/usr/src/pkgdefs/SUNWstmf/prototype_i386
new file mode 100644
index 0000000000..363d483566
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/prototype_i386
@@ -0,0 +1,56 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+d none kernel/kmdb/amd64 755 root sys
+f none kernel/kmdb/amd64/stmf 555 root sys
+f none kernel/kmdb/stmf 555 root sys
+d none kernel/drv/amd64 0755 root sys
+f none kernel/drv/stmf_sbd 0755 root sys
+f none kernel/drv/amd64/stmf_sbd 0755 root sys
+f none kernel/drv/stmf 0755 root sys
+f none kernel/drv/amd64/stmf 0755 root sys
+f none kernel/drv/fct 0755 root sys
+f none kernel/drv/amd64/fct 0755 root sys
+f none kernel/drv/qlt 0755 root sys
+f none kernel/drv/amd64/qlt 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWstmf/prototype_sparc b/usr/src/pkgdefs/SUNWstmf/prototype_sparc
new file mode 100644
index 0000000000..36c34ccdb2
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmf/prototype_sparc
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+d none kernel/kmdb/sparcv9 0755 root sys
+f none kernel/kmdb/sparcv9/stmf 0555 root sys
+d none kernel/drv/sparcv9 0755 root sys
+f none kernel/drv/sparcv9/stmf_sbd 0755 root sys
+f none kernel/drv/sparcv9/stmf 0755 root sys
+f none kernel/drv/sparcv9/fct 0755 root sys
+f none kernel/drv/sparcv9/qlt 0755 root sys
diff --git a/usr/src/pkgdefs/SUNWstmfu/Makefile b/usr/src/pkgdefs/SUNWstmfu/Makefile
new file mode 100644
index 0000000000..3dab7d50b5
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmfu/Makefile
@@ -0,0 +1,35 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+DATAFILES += depend
+
+all: $(FILES)
+install: all pkg
+
+include ../Makefile.targ
diff --git a/usr/src/pkgdefs/SUNWstmfu/pkginfo.tmpl b/usr/src/pkgdefs/SUNWstmfu/pkginfo.tmpl
new file mode 100644
index 0000000000..a7462b2098
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmfu/pkginfo.tmpl
@@ -0,0 +1,48 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#
+# This required package information file describes characteristics of the
+# package, such as package abbreviation, full package name, package version,
+# and package architecture.
+#
+PKG="SUNWstmfu"
+NAME="Sun Common Multipotocol SCSI Target Libraries and Tools"
+ARCH="ISA"
+CATEGORY="system"
+BASEDIR=/
+SUNW_PKGVERS="1.0"
+SUNW_PKGTYPE="usr"
+CLASSES="none"
+DESC="Sun Common Multipotocol SCSI Target Libraries and Tools"
+SUNW_PRODNAME="SunOS"
+SUNW_PRODVERS="RELEASE/VERSION"
+VERSION="ONVERS,REV=0.0.0"
+VENDOR="Sun Microsystems, Inc."
+HOTLINE="Please contact your local service provider"
+EMAIL=""
+MAXINST="1000"
+SUNW_PKG_ALLZONES="true"
+SUNW_PKG_HOLLOW="false"
+SUNW_PKG_THISZONE="false"
diff --git a/usr/src/pkgdefs/SUNWstmfu/prototype_com b/usr/src/pkgdefs/SUNWstmfu/prototype_com
new file mode 100644
index 0000000000..87377b5300
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmfu/prototype_com
@@ -0,0 +1,59 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+
+i copyright
+i pkginfo
+i depend
+d none usr 755 root sys
+d none usr/sbin 755 root bin
+f none usr/sbin/sbdadm 555 root bin
+f none usr/sbin/stmfadm 555 root bin
+d none usr/lib 755 root bin
+f none usr/lib/libstmf.so.1 755 root bin
+s none usr/lib/libstmf.so=libstmf.so.1
+f none usr/lib/llib-lstmf 644 root bin
+f none usr/lib/llib-lstmf.ln 644 root bin
+d none usr/lib/mdb 755 root sys
+d none usr/lib/mdb/kvm 755 root sys
+d none usr/include 755 root bin
+f none usr/include/libstmf.h 644 root bin
+d none usr/include/sys 755 root bin
+f none usr/include/sys/fct_defines.h 644 root bin
+f none usr/include/sys/fctio.h 644 root bin
+f none usr/include/sys/stmf.h 644 root bin
+f none usr/include/sys/fct.h 644 root bin
+f none usr/include/sys/lpif.h 644 root bin
+f none usr/include/sys/portif.h 644 root bin
+f none usr/include/sys/stmf_defines.h 644 root bin
+f none usr/include/sys/stmf_ioctl.h 644 root bin
diff --git a/usr/src/pkgdefs/SUNWstmfu/prototype_i386 b/usr/src/pkgdefs/SUNWstmfu/prototype_i386
new file mode 100644
index 0000000000..362ed25d5c
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmfu/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 (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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 Intel specific here
+#
+# source locations relative to the prototype file
+#
+d none usr/lib/mdb/kvm/amd64 755 root sys
+f none usr/lib/mdb/kvm/stmf.so 555 root sys
+f none usr/lib/mdb/kvm/amd64/stmf.so 555 root sys
+d none usr/lib/amd64 755 root bin
+f none usr/lib/amd64/libstmf.so.1 755 root bin
+s none usr/lib/amd64/libstmf.so=libstmf.so.1
+f none usr/lib/amd64/llib-lstmf.ln 644 root bin
diff --git a/usr/src/pkgdefs/SUNWstmfu/prototype_sparc b/usr/src/pkgdefs/SUNWstmfu/prototype_sparc
new file mode 100644
index 0000000000..a89ce26284
--- /dev/null
+++ b/usr/src/pkgdefs/SUNWstmfu/prototype_sparc
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# 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
+#
+d none usr/lib/mdb/kvm/sparcv9 755 root sys
+f none usr/lib/mdb/kvm/sparcv9/stmf.so 555 root sys
+d none usr/lib/sparcv9 755 root bin
+f none usr/lib/sparcv9/libstmf.so.1 755 root bin
+s none usr/lib/sparcv9/libstmf.so=libstmf.so.1
+f none usr/lib/sparcv9/llib-lstmf.ln 644 root bin
diff --git a/usr/src/pkgdefs/common_files/i.fpconf b/usr/src/pkgdefs/common_files/i.fpconf
new file mode 100644
index 0000000000..f7560d3d5a
--- /dev/null
+++ b/usr/src/pkgdefs/common_files/i.fpconf
@@ -0,0 +1,206 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 "@(#)i.fpconf 1.9 06/06/21 SMI"
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+
+NEW_FPCONF_ENTRIES=/tmp/fp.conf.new_entries
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+PREFIX=/tmp/fp.conf.$$
+
+add_comment()
+{
+ COMMENTFILE=$PREFIX.comment
+ COMMENTFILESPARC=$PREFIX.comment.sparc
+
+ if grep "^# Global mpxio-disable property:" $1 > /dev/null 2>&1; then
+ return
+ fi
+
+ cat > $COMMENTFILE << EOF
+
+#
+# I/O multipathing feature (MPxIO) can be enabled or disabled using
+# mpxio-disable property. Setting mpxio-disable="no" will activate
+# I/O multipathing; setting mpxio-disable="yes" disables the feature.
+#
+# Global mpxio-disable property:
+#
+# To globally enable MPxIO on all fp ports set:
+# mpxio-disable="no";
+#
+# To globally disable MPxIO on all fp ports set:
+# mpxio-disable="yes";
+#
+# Per port mpxio-disable property:
+#
+# You can also enable or disable MPxIO on a per port basis.
+# Per port settings override the global setting for the specified ports.
+# To disable MPxIO on port 0 whose parent is /pci@8,600000/SUNW,qlc@4 set:
+# name="fp" parent="/pci@8,600000/SUNW,qlc@4" port=0 mpxio-disable="yes";
+EOF
+
+ cat > $COMMENTFILESPARC << EOF
+#
+# NOTE: If you just want to enable or disable MPxIO on all fp ports, it is
+# better to use stmsboot(1M) as it also updates /etc/vfstab.
+#
+EOF
+
+ cat $COMMENTFILE >> $1
+
+ if [ "$ARCH" = "sparc" ] ; then
+ cat $COMMENTFILESPARC >> $1
+ fi
+
+ rm -f $COMMENTFILE $COMMENTFILESPARC
+}
+
+add_comment_manual_cfg ()
+{
+ COMMENTFILE=$PREFIX.comment
+
+ if grep "^# The manual_configuration_only property" $1 > /dev/null 2>&1; then
+ return
+ fi
+
+ cat > $COMMENTFILE << EOF
+
+#
+# Automatic configuration of the fabric is turned on by default
+# and thus allows all devices discovered in the SAN zone to be
+# enumerated in the Solaris devinfo tree automatically.
+#
+# The manual_configuration_only property may be used to
+# disable the default behavior and force the manual configuration of
+# the devices in the SAN. Setting manual_configuration_only=1
+# will disable the automatic configuration of devices.
+# NOTE: Use of this property is not recommended. If used, the
+# fabric devices accessed at boot time need to get manually configured
+# before the next reboot. Otherwise, fabric devices that are needed at
+# boot time may not get configured and may cause boot problems.
+# To manually configure fabric devices, refer to cfgadm_fp(1M).
+# manual_configuration_only=1;
+#
+EOF
+
+ cat $COMMENTFILE >> $1
+ rm -f $COMMENTFILE
+}
+
+add_comment_lun_masking ()
+{
+ if grep "pwwn-lun-blacklist" $1 > /dev/null 2>&1; then
+ return
+ fi
+
+ cat >> $1 << EOF
+#
+# You can describe a list of target port WWNs and LUN numbers which will
+# not be configured. LUN numbers will be interpreted as decimal. White
+# spaces and ',' can be used in the list of LUN numbers.
+#
+# pwwn-lun-blacklist=
+# "target-port-wwn,lun-list"
+#
+# To prevent LUNs 1 and 2 from being configured for target
+# port 510000f010fd92a1 and target port 510000e012079df1, set:
+#
+# pwwn-lun-blacklist=
+# "510000f010fd92a1,1,2",
+# "510000e012079df1,1,2";
+EOF
+}
+
+update_fpconf()
+{
+ NEWIDENT1=$PREFIX.ident1
+ NEWIDENT2=$PREFIX.ident2
+ TMPFILE=$PREFIX.tmp
+
+ # replace old ident with new ident
+ IDENT="^#.*ident.*SMI\"$"
+ if grep "$IDENT" $1 > $NEWIDENT1 2>/dev/null; then
+ # replace / by \/
+ sed "s/\\//\\\\\\//g" $NEWIDENT1 > $NEWIDENT2 2>/dev/null
+ if sed "s/$IDENT/`cat $NEWIDENT2`/" $2 > $TMPFILE 2>/dev/null
+ then
+ cp $TMPFILE $2
+ fi
+ fi
+
+ # Remove ddi-forceattach from fp.conf
+ FORCEATTACH1="# Force attach driver to support hotplug activity"
+ FORCEATTACH2="ddi-forceattach"
+ if cat $2 | grep -v "$FORCEATTACH1" | grep -v "$FORCEATTACH2" > $TMPFILE; then
+ cp $TMPFILE $2
+ fi
+ rm -f $NEWIDENT1 $NEWIDENT2 $TMPFILE
+
+ add_comment $2
+ add_comment_manual_cfg $2
+ add_comment_lun_masking $2
+}
+
+if read src dest; then
+ if [ ! -f $dest ]; then
+ #
+ # note that in addition to fresh install, this case can also
+ # be hit if upgrading from solaris 7 or if upgrading with
+ # disk space relocation option and there were no user made
+ # changes to fp.conf.
+ #
+ cp $src $dest
+ if [ "x$UPDATE" != xyes ]; then
+ # fresh install
+ rm -f $NEW_FPCONF_ENTRIES
+ exit 0
+ else
+ #
+ # Solaris upgrade
+ # In this case we need to disable mpxio only if it
+ # was disabled in scsi_vhci.conf.
+ #
+ TMPFILE=$PREFIX.tmp
+ sed -e '/^mpxio-disable="yes";/d' $dest > $TMPFILE
+ cp $TMPFILE $dest
+ rm -f $TMPFILE
+ fi
+ else
+ # upgrading solaris
+ update_fpconf $src $dest
+ fi
+
+ #
+ # Now append any entries generated by the scsi_vhci.conf class
+ # action script.
+ #
+ if [ -f $NEW_FPCONF_ENTRIES ]; then
+ cat $NEW_FPCONF_ENTRIES >> $dest
+ rm -f $NEW_FPCONF_ENTRIES
+ fi
+fi
+
+exit 0
diff --git a/usr/src/pkgdefs/common_files/i.iscsiconf b/usr/src/pkgdefs/common_files/i.iscsiconf
new file mode 100644
index 0000000000..c81d83ca19
--- /dev/null
+++ b/usr/src/pkgdefs/common_files/i.iscsiconf
@@ -0,0 +1,64 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH="/usr/bin:/usr/sbin:${PATH}"
+export PATH
+
+add_multipathing(){
+
+cat >> $dest << EOF
+
+#
+# I/O multipathing feature (MPxIO) can be enabled or disabled using
+# mpxio-disable property. Setting mpxio-disable="no" will activate
+# I/O multipathing; setting mpxio-disable="yes" disables the feature.
+#
+# Global mpxio-disable property:
+#
+# To globally enable MPxIO on all iscsi ports set:
+# mpxio-disable="no";
+#
+# To globally disable MPxIO on all iscsi ports set:
+# mpxio-disable="yes";
+#
+mpxio-disable="no";
+
+EOF
+}
+
+while read src dest; do
+ if [ ! -f $dest ]; then
+ cp $src $dest
+ else
+ grep '^[ ]*mpxio-disable=' $dest >/dev/null
+
+ if [ $? -ne 0 ]; then
+ add_multipathing
+ fi
+ fi
+done
+
+exit 0
diff --git a/usr/src/pkgdefs/common_files/i.qlc b/usr/src/pkgdefs/common_files/i.qlc
new file mode 100644
index 0000000000..b9b54e08ea
--- /dev/null
+++ b/usr/src/pkgdefs/common_files/i.qlc
@@ -0,0 +1,257 @@
+#!/bin/sh
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (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 "@(#)i.qlc 1.7 08/01/07 SMI"
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+PATH=/usr/bin:/usr/sbin:$PATH; export PATH
+
+tmpfile=/tmp/qcca_tmp_$$
+sedfile=/tmp/qcca_sed_$$
+
+sun_copyright1='# Copyright 2006 Sun Microsystems, Inc. All rights reserved.'
+sun_copyright2='# Use is subject to license terms.'
+
+
+update_header ()
+# Update Copyright and Ident information in Destination
+{
+
+ ident_str=`grep '#ident[ ].*SMI' $src | tr \" \~`
+ qlogic_copyright=`grep '# Copyright (C) QLogic Corporation' $src`
+
+ sed \
+ -e "s:# Copyright.*Sun Microsystems.*:$sun_copyright1:" \
+ -e "s:# All rights reserved.*:$sun_copyright2:" \
+ -e "s:#ident[ ].*SMI.:$ident_str:" \
+ -e "/#ident/y/\~/\"/" \
+ -e "s:# Copyright (C) QLogic Corporation.*:$qlogic_copyright:" \
+ $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+}
+
+update_pci_max_read_request ()
+# Reset default value for pci-max-read-request
+{
+ grep "^pci-max-read-request=0;" $dest > /dev/null 2>&1
+ if [ $? -eq 0 ] ; then
+ sed -e "s/^pci-max-read-request=0;/pci-max-read-request=2048;/" \
+ $dest > $tmpfile
+ mv $tmpfile $dest
+ fi
+}
+
+create_sedfile ()
+# Assemble sed script to remove comments
+{
+
+ cat > $sedfile <<SEDCMDS
+# Comment block 1
+/# Sun StorEdge Traffic Manager Software (mpxio)/{
+N
+N
+N
+N
+/# Multipath I\/O feature through this configuration file/d
+}
+
+# Comment block 2
+/# Example 1: To disable mpxio for a port on a single ported HBA/{
+N
+N
+N
+N
+/# name="qlc" parent="\/pci@6,2000" unit-address="2" mpxio-disable="yes"/d
+}
+
+# Comment block 3
+/^# Example 2: To disable mpxio for a port on a dual ported HBA/{
+N
+N
+N
+N
+/# name="qlc" parent="\/pci@13,2000\/pci@2" unit-address="5" mpxio-disable/d
+}
+
+# Old pci-max-read-request comment
+/^#Name: PCI max read request override;/{
+N
+N
+N
+N
+N
+N
+N
+/#pci-max-read-request=2048;/d
+}
+
+SEDCMDS
+}
+
+remove_content ()
+# Remove outdated comment information
+{
+ create_sedfile
+ sed -f $sedfile $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+ rm -f $sedfile
+}
+
+convert_content ()
+# Update incompatible parameters to new settings
+{
+ grep "^hba0-enable-adapter-hard-loop-ID=1;" $dest > /dev/null 2>&1
+ if [ $? -ne 0 ] ; then
+ return
+ fi
+
+ loopid=`sed -n 's/^hba0-adapter-hard-loop-ID=\(.*\);/\1/p' $dest`
+ if [ -z "$loopid" ] ; then
+ # Entry does not exist use default for adapter-hard-loop-ID
+ loopid=0
+ fi
+
+ sed -e "s/^\(enable-adapter-hard-loop-ID\)=0;/\1=1;/" \
+ -e "s/^\(adapter-hard-loop-ID\)=0;/\1=${loopid};/" $dest > $tmpfile
+
+ mv $tmpfile $dest
+}
+
+
+add_new_content ()
+# Add new paramaters from Source and their comments to Destination,
+# if not present. Comments will not be added if parameters exists
+# in Destination
+{
+
+ param_comment=""
+ parameter=""
+
+
+ while read confline
+ do
+
+ echo $confline | grep '^#' > /dev/null 2>&1
+ if [ $? -eq 0 ] ; then
+
+ # Comment.
+ # Start new block or append to existing block.
+
+ if [ -z "${param_comment}" ] ; then
+ param_comment="${confline}"
+ else
+ param_comment="${param_comment}\n${confline}"
+ fi
+ continue
+ fi
+
+ parameter=`echo $confline | sed 's/\(.*\)=.*/\1/'`
+
+ if [ -z "$parameter" ] ; then
+ # Blank line or no parameter; reset values
+ param_comment=""
+ parameter=""
+ continue
+ fi
+
+ # Must be an assigned parameter
+ # Check if parameter exist in file
+ grep "^$parameter=" $dest > /dev/null 2>&1
+ if [ $? -ne 0 ] ; then
+
+ # Append leading comment and assigned parameter.
+ echo "$param_comment" >> $dest
+ echo "${confline}" >> $dest
+ echo >> $dest
+ fi
+
+ # Reset for next parameter
+ param_comment=""
+ parameter=""
+
+done < $src
+
+}
+
+create_sedfile_data_rate ()
+# Assemble sed script to change data rate comments
+{
+
+ cat > $sedfile <<SEDCMDS
+# Look for data rate comments
+/#Name: Fibre Channel Data Rate Option/{
+n
+s/Range: .-./Range: 0-4/
+n
+n
+n
+n
+n
+/^#Usage/i\\
+# 4 = 8 gigabit/second
+}
+
+SEDCMDS
+}
+
+update_data_rate ()
+{
+ create_sedfile_data_rate
+ sed -f $sedfile $dest > $tmpfile
+ if [ $? -eq 0 ] ; then
+ mv $tmpfile $dest
+ fi
+ rm -f $sedfile
+}
+
+#
+# Main --------------------
+#
+
+while read src dest
+do
+ if [ ! -f $dest ] ; then
+ cp $src $dest
+
+ else
+
+ # Upgrade destination file
+ remove_content
+ add_new_content
+ convert_content
+ update_pci_max_read_request
+ update_header
+ update_data_rate
+
+ fi
+done
+
+exit 0
+
+
diff --git a/usr/src/pkgdefs/etc/exception_list_i386 b/usr/src/pkgdefs/etc/exception_list_i386
index 222064ce14..484e21c73d 100644
--- a/usr/src/pkgdefs/etc/exception_list_i386
+++ b/usr/src/pkgdefs/etc/exception_list_i386
@@ -1095,3 +1095,110 @@ usr/lib/amd64/llib-lsmbfs.ln i386
# demo & test program for smbfs (private) ACL support
#
usr/lib/fs/smbfs/lsacl i386
+#
+# FC related files
+kernel/kmdb/amd64/fcip i386
+kernel/kmdb/amd64/fcp i386
+kernel/kmdb/amd64/fctl i386
+kernel/kmdb/amd64/qlc i386
+kernel/kmdb/fcip i386
+kernel/kmdb/fcp i386
+kernel/kmdb/fctl i386
+kernel/kmdb/qlc i386
+usr/lib/llib-lHBAAPI i386
+usr/lib/llib-lHBAAPI.ln i386
+usr/lib/amd64/llib-lHBAAPI.ln i386
+usr/include/sys/fibre-channel i386
+usr/include/sys/fibre-channel/fc.h i386
+usr/include/sys/fibre-channel/fcio.h i386
+usr/include/sys/fibre-channel/fc_appif.h i386
+usr/include/sys/fibre-channel/fc_types.h i386
+usr/include/sys/fibre-channel/impl i386
+usr/include/sys/fibre-channel/impl/fc_error.h i386
+usr/include/sys/fibre-channel/impl/fcph.h i386
+usr/include/sys/fibre-channel/ulp i386
+usr/include/sys/fibre-channel/ulp/fcp_util.h i386
+usr/include/sys/fibre-channel/ulp/fcsm.h i386
+
+# private AVS headers, commands and libraries
+#
+usr/bin/sd_stats i386
+usr/bin/errgen i386
+usr/bin/dscfgcli i386
+usr/bin/sd_diag i386
+usr/include/nsctl.h i386
+usr/include/sys/nsc_ddi.h i386
+usr/include/sys/nsc_thread.h i386
+usr/include/sys/nskernd.h i386
+usr/include/sys/ncall i386
+usr/include/sys/ncall/ncall.h i386
+usr/include/sys/ncall/ncall_module.h i386
+usr/include/sys/nsctl i386
+usr/include/sys/nsctl/cfg.h i386
+usr/include/sys/nsctl/cfg_cluster.h i386
+usr/include/sys/nsctl/cfg_impl.h i386
+usr/include/sys/nsctl/cfg_lockd.h i386
+usr/include/sys/nsctl/contract.h i386
+usr/include/sys/nsctl/dsw.h i386
+usr/include/sys/nsctl/dsw_dev.h i386
+usr/include/sys/nsctl/librdc.h i386
+usr/include/sys/nsctl/model.h i386
+usr/include/sys/nsctl/ncall_inter.h i386
+usr/include/sys/nsctl/nsc_dev.h i386
+usr/include/sys/nsctl/nsc_disk.h i386
+usr/include/sys/nsctl/nsc_gen.h i386
+usr/include/sys/nsctl/nsc_hash.h i386
+usr/include/sys/nsctl/nsc_ioctl.h i386
+usr/include/sys/nsctl/nsc_mem.h i386
+usr/include/sys/nsctl/nsc_power.h i386
+usr/include/sys/nsctl/nsc_rmspin.h i386
+usr/include/sys/nsctl/nsctl.h i386
+usr/include/sys/nsctl/nsctl_inter.h i386
+usr/include/sys/nsctl/nsvers.h i386
+usr/include/sys/nsctl/rdc.h i386
+usr/include/sys/nsctl/rdc_bitmap.h i386
+usr/include/sys/nsctl/rdc_diskq.h i386
+usr/include/sys/nsctl/rdc_io.h i386
+usr/include/sys/nsctl/rdc_ioctl.h i386
+usr/include/sys/nsctl/rdc_prot.h i386
+usr/include/sys/nsctl/rdcerr.h i386
+usr/include/sys/nsctl/rdcrules.h i386
+usr/include/sys/nsctl/safestore.h i386
+usr/include/sys/nsctl/sd_bcache.h i386
+usr/include/sys/nsctl/sd_cache.h i386
+usr/include/sys/nsctl/sd_conf.h i386
+usr/include/sys/nsctl/sd_hash.h i386
+usr/include/sys/nsctl/sd_pcu.h i386
+usr/include/sys/nsctl/sd_trace.h i386
+usr/include/sys/nsctl/sdbc_ioctl.h i386
+usr/include/sys/nsctl/sv.h i386
+usr/include/sys/nsctl/sv_efi.h i386
+usr/include/sys/nsctl/sv_impl.h i386
+usr/include/sys/unistat i386
+usr/include/sys/unistat/spcs_dtrinkets.h i386
+usr/include/sys/unistat/spcs_errors.h i386
+usr/include/sys/unistat/spcs_etext.h i386
+usr/include/sys/unistat/spcs_etrinkets.h i386
+usr/include/sys/unistat/spcs_s.h i386
+usr/include/sys/unistat/spcs_s_impl.h i386
+usr/include/sys/unistat/spcs_s_k.h i386
+usr/include/sys/unistat/spcs_s_u.h i386
+
+usr/lib/llib-lnsctl.ln i386
+usr/lib/llib-ldscfg.ln i386
+usr/lib/llib-lnsctl.ln i386
+usr/lib/llib-lrdc.ln i386
+usr/lib/llib-lunistat.ln i386
+usr/lib/librdc.so i386
+usr/lib/libdscfg.so i386
+usr/lib/libnsctl.so i386
+usr/lib/libunistat.so i386
+# These files are used by the iSCSI initiator only.
+# No reason to ship them.
+#
+usr/include/sys/scsi/adapters/iscsi_door.h i386
+usr/include/sys/scsi/adapters/iscsi_protocol.h i386
+usr/include/sys/scsi/adapters/iscsi_if.h i386
+
+# sbd ioctl hdr
+usr/include/sys/stmf_sbd_ioctl.h i386
diff --git a/usr/src/pkgdefs/etc/exception_list_sparc b/usr/src/pkgdefs/etc/exception_list_sparc
index f01b8e1277..125f5ea9b8 100644
--- a/usr/src/pkgdefs/etc/exception_list_sparc
+++ b/usr/src/pkgdefs/etc/exception_list_sparc
@@ -1188,3 +1188,131 @@ usr/lib/sparcv9/llib-lsmbfs.ln sparc
# demo & test program for smbfs (private) ACL support
#
usr/lib/fs/smbfs/lsacl sparc
+#
+# FC related files
+#
+lib/llib-la5k sparc
+lib/llib-la5k.ln sparc
+lib/sparcv9/llib-la5k.ln sparc
+lib/llib-lg_fc sparc
+lib/llib-lg_fc.ln sparc
+lib/sparcv9/llib-lg_fc.ln sparc
+kernel/kmdb/sparcv9/fcip sparc
+kernel/kmdb/sparcv9/fcp sparc
+kernel/kmdb/sparcv9/fctl sparc
+kernel/kmdb/sparcv9/qlc sparc
+usr/include/l_common.h sparc
+usr/include/l_error.h sparc
+usr/include/stgcom.h sparc
+usr/lib/llib-lHBAAPI sparc
+usr/lib/llib-lHBAAPI.ln sparc
+usr/lib/sparcv9/llib-lHBAAPI.ln sparc
+usr/include/a5k.h sparc
+usr/include/a_state.h sparc
+usr/include/exec.h sparc
+usr/include/rom.h sparc
+usr/include/gfc.h sparc
+usr/include/g_scsi.h sparc
+usr/include/g_state.h sparc
+usr/include/l_common.h sparc
+usr/include/l_error.h sparc
+usr/include/stgcom.h sparc
+usr/include/sys/fibre-channel sparc
+usr/include/sys/fibre-channel/fc.h sparc
+usr/include/sys/fibre-channel/fcio.h sparc
+usr/include/sys/fibre-channel/fc_appif.h sparc
+usr/include/sys/fibre-channel/fc_types.h sparc
+usr/include/sys/fibre-channel/impl sparc
+usr/include/sys/fibre-channel/impl/fc_error.h sparc
+usr/include/sys/fibre-channel/impl/fcph.h sparc
+usr/include/sys/fibre-channel/ulp sparc
+usr/include/sys/fibre-channel/ulp/fcp_util.h sparc
+usr/include/sys/fibre-channel/ulp/fcsm.h sparc
+
+# private AVS headers
+#
+usr/bin/sd_stats sparc
+usr/bin/errgen sparc
+usr/bin/dscfgcli sparc
+usr/bin/sd_diag sparc
+usr/include/nsctl.h sparc
+usr/include/sys/nsc_ddi.h sparc
+usr/include/sys/nsc_thread.h sparc
+usr/include/sys/nskernd.h sparc
+usr/include/sys/ncall sparc
+usr/include/sys/ncall/ncall.h sparc
+usr/include/sys/ncall/ncall_module.h sparc
+usr/include/sys/nsctl sparc
+usr/include/sys/nsctl/cfg.h sparc
+usr/include/sys/nsctl/cfg_cluster.h sparc
+usr/include/sys/nsctl/cfg_impl.h sparc
+usr/include/sys/nsctl/cfg_lockd.h sparc
+usr/include/sys/nsctl/contract.h sparc
+usr/include/sys/nsctl/dsw.h sparc
+usr/include/sys/nsctl/dsw_dev.h sparc
+usr/include/sys/nsctl/librdc.h sparc
+usr/include/sys/nsctl/model.h sparc
+usr/include/sys/nsctl/ncall_inter.h sparc
+usr/include/sys/nsctl/nsc_dev.h sparc
+usr/include/sys/nsctl/nsc_disk.h sparc
+usr/include/sys/nsctl/nsc_gen.h sparc
+usr/include/sys/nsctl/nsc_hash.h sparc
+usr/include/sys/nsctl/nsc_ioctl.h sparc
+usr/include/sys/nsctl/nsc_mem.h sparc
+usr/include/sys/nsctl/nsc_power.h sparc
+usr/include/sys/nsctl/nsc_rmspin.h sparc
+usr/include/sys/nsctl/nsctl.h sparc
+usr/include/sys/nsctl/nsctl_inter.h sparc
+usr/include/sys/nsctl/nsvers.h sparc
+usr/include/sys/nsctl/rdc.h sparc
+usr/include/sys/nsctl/rdc_bitmap.h sparc
+usr/include/sys/nsctl/rdc_diskq.h sparc
+usr/include/sys/nsctl/rdc_io.h sparc
+usr/include/sys/nsctl/rdc_ioctl.h sparc
+usr/include/sys/nsctl/rdc_prot.h sparc
+usr/include/sys/nsctl/rdcerr.h sparc
+usr/include/sys/nsctl/rdcrules.h sparc
+usr/include/sys/nsctl/safestore.h sparc
+usr/include/sys/nsctl/sd_bcache.h sparc
+usr/include/sys/nsctl/sd_cache.h sparc
+usr/include/sys/nsctl/sd_conf.h sparc
+usr/include/sys/nsctl/sd_hash.h sparc
+usr/include/sys/nsctl/sd_pcu.h sparc
+usr/include/sys/nsctl/sd_trace.h sparc
+usr/include/sys/nsctl/sdbc_ioctl.h sparc
+usr/include/sys/nsctl/sv.h sparc
+usr/include/sys/nsctl/sv_efi.h sparc
+usr/include/sys/nsctl/sv_impl.h sparc
+usr/include/sys/unistat sparc
+usr/include/sys/unistat/spcs_dtrinkets.h sparc
+usr/include/sys/unistat/spcs_errors.h sparc
+usr/include/sys/unistat/spcs_etext.h sparc
+usr/include/sys/unistat/spcs_etrinkets.h sparc
+usr/include/sys/unistat/spcs_s.h sparc
+usr/include/sys/unistat/spcs_s_impl.h sparc
+usr/include/sys/unistat/spcs_s_k.h sparc
+usr/include/sys/unistat/spcs_s_u.h sparc
+
+usr/lib/llib-lnsctl.ln sparc
+usr/lib/llib-ldscfg.ln sparc
+usr/lib/llib-lrdc.ln sparc
+usr/lib/llib-lunistat.ln sparc
+usr/lib/librdc.so sparc
+usr/lib/libdscfg.so sparc
+usr/lib/libnsctl.so sparc
+usr/lib/libunistat.so sparc
+# These files are used by the iSCSI initiator only.
+# No reason to ship them.
+#
+usr/include/sys/scsi/adapters/iscsi_door.h sparc
+usr/include/sys/scsi/adapters/iscsi_protocol.h sparc
+usr/include/sys/scsi/adapters/iscsi_if.h sparc
+
+# qus driver headers not installed
+usr/include/sys/scsi/adapters/quscmd.h sparc
+usr/include/sys/scsi/adapters/qusreg.h sparc
+usr/include/sys/scsi/adapters/qusvar.h sparc
+usr/include/sys/scsi/adapters/qusmail.h sparc
+
+# sbd ioctl hdr
+usr/include/sys/stmf_sbd_ioctl.h sparc
diff --git a/usr/src/pkgdefs/license_files/lic_SNIA b/usr/src/pkgdefs/license_files/lic_SNIA
new file mode 100644
index 0000000000..464ee756eb
--- /dev/null
+++ b/usr/src/pkgdefs/license_files/lic_SNIA
@@ -0,0 +1,404 @@
+--------------------------------------------------------------------
+
+*STORAGE NETWORKING INDUSTRY ASSOCIATION
+PUBLIC LICENSE
+Version 1.1 *
+________________________
+
+*1. Definitions.*
+
+ * 1.1 "Commercial Use" means distribution or otherwise making the
+ Covered Code available to a third party.
+ * 1.2 "Contributor" means each entity that creates or contributes to
+ the creation of Modifications.
+ * 1.3 "Contributor Version" means the combination of the Original
+ Code, prior Modifications used by a Contributor, and the
+ Modifications made by that particular Contributor.
+ * 1.4 "Covered Code" means the Original Code or Modifications or the
+ combination of the Original Code and Modifications, in each case
+ including portions thereof.
+ * 1.5 "Electronic Distribution Mechanism" means a mechanism
+ generally accepted in the software development community for the
+ electronic transfer of data.
+ * 1.6 "Executable" means Covered Code in any form other than Source
+ Code.
+ * 1.7 "Initial Developer" means the individual or entity identified
+ as the Initial Developer in the Source Code notice required by
+ Exhibit A.
+ * 1.8 "Larger Work" means a work which combines Covered Code or
+ portions thereof with code not governed by the terms of this License.
+ * 1.9 "License" means this document.
+ * 1.10 "Licensable" means having the right to grant, to the maximum
+ extent possible, whether at the time of the initial grant or
+ subsequently acquired, any and all of the rights conveyed herein.
+ * 1.11 "Modifications" means any addition to or deletion from the
+ substance or structure of either the Original Code or any previous
+ Modifications. When Covered Code is released as a series of files,
+ a Modification is:
+ o A. Any addition to or deletion from the contents of a file
+ containing Original Code or previous Modifications.
+ o B. Any new file that contains any part of the Original Code
+ or previous Modifications.
+
+ 1.12 "Original Code" means Source Code of computer software code
+ which is described in the Source Code notice required by Exhibit A
+ as Original Code, and which, at the time of its release under this
+ License is not already Covered Code governed by this License.
+
+ * 1.13 "Patent Claims" means any patent claim(s), now owned or
+ hereafter acquired, including without limitation, method, process,
+ and apparatus claims, in any patent Licensable by grantor.
+ * 1.14 "Source Code" means the preferred form of the Covered Code
+ for making modifications to it, including all modules it contains,
+ plus any associated interface definition files, scripts used to
+ control compilation and installation of an Executable, or source
+ code differential comparisons against either the Original Code or
+ another well known, available Covered Code of the Contributor's
+ choice. The Source Code can be in a compressed or archival form,
+ provided the appropriate decompression or de-archiving software is
+ widely available for no charge.
+ * 1.15 "You" (or "Your") means an individual or a legal entity
+ exercising rights under, and complying with all of the terms of,
+ this License or a future version of this License issued under
+ Section 6.1. For legal entities, "You" includes any entity which
+ controls, is controlled by, or is under common control with You.
+ For purposes of this definition, "control" means (a) the power,
+ direct or indirect, to cause the direction or management of such
+ entity, whether by contract or otherwise, or (b) ownership of more
+ than fifty percent (50%) of the outstanding shares or beneficial
+ ownership of such entity
+
+*2. Source Code License.*
+
+ * 2.1 The Initial Developer Grant. The Initial Developer hereby
+ grants You a world-wide, royalty-free, non-exclusive license,
+ subject to third party intellectual property claims:
+ o (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Initial Developer to use,
+ reproduce, modify, display, perform, sublicense and
+ distribute the Original Code (or portions thereof) with or
+ without Modifications, and/or as part of a Larger Work; and
+ o (b) under Patents Claims infringed by the making, using or
+ selling of Original Code, to make, have made, use, practice,
+ sell, and offer for sale, and/or otherwise dispose of the
+ Original Code (or portions thereof).
+ o (c) the licenses granted in this Section 2.1(a) and (b) are
+ effective on the date Initial Developer first distributes
+ Original Code under the terms of this License.
+ o (d) Notwithstanding Section 2.1(b) above, no patent license
+ is granted: 1) for code that You delete from the Original
+ Code; 2) separate from the Original Code; or 3) for
+ infringements caused by: i) the modification of the Original
+ Code or ii) the combination of the Original Code with other
+ software or devices.
+
+ * 2.2 Contributor Grant. Subject to third party intellectual
+ property claims, each Contributor hereby grants You a world-wide,
+ royalty-free, non-exclusive license
+ o (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Contributor, to use, reproduce,
+ modify, display, perform, sublicense and distribute the
+ Modifications created by such Contributor (or portions
+ thereof) either on an unmodified basis, with other
+ Modifications, as Covered Code and/or as part of a Larger
+ Work; and
+ o (b) under Patent Claims infringed by the making, using, or
+ selling of Modifications made by that Contributor either
+ alone and/or in combination with its Contributor Version (or
+ portions of such combination), to make, use, sell, offer for
+ sale, have made, and/or otherwise dispose of: 1)
+ Modifications made by that Contributor (or portions
+ thereof); and 2) the combination of Modifications made by
+ that Contributor with its Contributor Version (or portions
+ of such combination).
+ o (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
+ effective on the date Contributor first makes Commercial Use
+ of the Covered Code.
+ o (d) Notwithstanding Section 2.2(b) above, no patent license
+ is granted: 1) for any code that Contributor has deleted
+ from the Contributor Version; 2) separate from the
+ Contributor Version; 3) for infringements caused by: i)
+ third party modifications of Contributor Version or ii) the
+ combination of Modifications made by that Contributor with
+ other software (except as part of the Contributor Version)
+ or other devices; or 4) under Patent Claims infringed by
+ Covered Code in the absence of Modifications made by that
+ Contributor.
+
+*3. Distribution Obligations.*
+
+ * 3.1 Application of License. The Modifications which You create or
+ to which You contribute are governed by the terms of this License,
+ including without limitation Section 2.2. The Source Code version
+ of Covered Code may be distributed only under the terms of this
+ License or a future version of this License released under Section
+ 6.1, and You must include a copy of this License with every copy
+ of the Source Code You distribute. You may not offer or impose any
+ terms on any Source Code version that alters or restricts the
+ applicable version of this License or the recipients' rights
+ hereunder. However, You may include an additional document
+ offering the additional rights described in Section 3.5.
+ * 3.2 Availability of Source Code. Any Modification which You create
+ or to which You contribute must be made available in Source Code
+ form under the terms of this License either on the same media as
+ an Executable version or via an accepted Electronic Distribution
+ Mechanism to anyone to whom you made an Executable version
+ available; and if made available via Electronic Distribution
+ Mechanism, must remain available for at least twelve (12) months
+ after the date it initially became available, or at least six (6)
+ months after a subsequent version of that particular Modification
+ has been made available to such recipients. You are responsible
+ for ensuring that the Source Code version remains available even
+ if the Electronic Distribution Mechanism is maintained by a third
+ party.
+ * 3.3 Description of Modifications. You must cause all Covered Code
+ to which You contribute to contain a file documenting the changes
+ You made to create that Covered Code and the date of any change.
+ You must include a prominent statement that the Modification is
+ derived, directly or indirectly, from Original Code provided by
+ the Initial Developer and including the name of the Initial
+ Developer in (a) the Source Code, and (b) in any notice in an
+ Executable version or related documentation in which You describe
+ the origin or ownership of the Covered Code.
+ * 3.4 Intellectual Property Matters.
+ o (a) Third Party Claims. If Contributor has actual knowledge
+ that a license under a third party's intellectual property
+ rights is required to exercise the rights granted by such
+ Contributor under Sections 2.1 or 2.2, Contributor must
+ include a text file with the Source Code distribution titled
+ "LEGAL" which describes the claim and the party making the
+ claim in sufficient detail that a recipient will know whom
+ to contact. If Contributor obtains such knowledge after the
+ Modification is made available as described in Section 3.2,
+ Contributor shall promptly modify the LEGAL file in all
+ copies Contributor makes available thereafter.
+ o (b) Contributor API's. If Contributor's Modifications
+ include an application programming interface and Contributor
+ has actual knowledge of patent licenses which are reasonably
+ necessary to implement that API, Contributor must also
+ include this information in the LEGAL file.
+ o (c) Representations. Contributor represents that, except as
+ disclosed pursuant to Section 3.4(a) above, Contributor
+ believes that Contributor's Modifications are Contributor's
+ original creation(s) and/or Contributor has sufficient
+ rights to grant the rights conveyed by this License.
+ * 3.5 Required Notices. You must duplicate the notice in *Exhibit A*
+ in each file of the Source Code. If it is not possible to put such
+ notice in a particular Source Code file due to its structure, then
+ You must include such notice in a location (such as a relevant
+ directory) where a user would be most likely to look for such a
+ notice. If You created one or more Modification(s) You may add
+ your name as a Contributor to the notice described in *Exhibit A.
+ *You must also duplicate this License in any documentation for the
+ Source Code where You describe recipients' rights or ownership
+ rights relating to Covered Code. You may choose to offer, and to
+ charge a fee for, warranty, support, indemnity or liability
+ obligations to one or more recipients of Covered Code. However,
+ You may do so only on Your own behalf, and not on behalf of the
+ Initial Developer or any Contributor. You must make it absolutely
+ clear that any such warranty, support, indemnity or liability
+ obligation is offered by You alone, and You hereby agree to
+ indemnify the Initial Developer and every Contributor for any
+ liability (excluding any liability arising from intellectual
+ property claims relating to the Covered Code) incurred by the
+ Initial Developer or such Contributor as a result of warranty,
+ support, indemnity or liability terms You offer.
+ * 3.6 Distribution of Executable Versions. You may distribute
+ Covered Code in Executable form only if the requirements of
+ Section* 3.1-3.5 *have been met for that Covered Code, and if You
+ include a notice stating that the Source Code version of the
+ Covered Code is available under the terms of this License,
+ including a description of how and where You have fulfilled the
+ obligation of Section *3.2.* The notice must be conspicuously
+ included in any notice in an Executable version, related
+ documentation or collateral in which You describe recipients'
+ rights relating to the Covered Code. You may distribute the
+ Executable version of Covered Code or ownership rights under a
+ license of Your choice, which may contain terms different from
+ this License, provided that You are in compliance with the terms
+ of this License and that the license for the Executable version
+ does not attempt to limit or alter the recipient's rights in the
+ Source Code version from the rights set forth in this License. If
+ You distribute the Executable version under a different license
+ You must make it absolutely clear that any terms which differ from
+ this License are offered by You alone, not by the Initial
+ Developer or any Contributor. You hereby agree to indemnify the
+ Initial Developer and every Contributor for any liability
+ (excluding any liability arising from intellectual property claims
+ relating to the Covered Code) incurred by the Initial Developer or
+ such Contributor as a result of any such terms You offer.
+ * 3.7 Larger Works. You may create a Larger Work by combining
+ Covered Code with other code not governed by the terms of this
+ License and distribute the Larger Work as a single product. In
+ such a case, You must make sure the requirements of this License
+ are fulfilled for the Covered Code.
+
+*4. Inability to Comply Due to Statute or Regulation.* If it is
+impossible for You to comply with any of the terms of this License with
+respect to some or all of the Covered Code due to statute, judicial
+order, or regulation then You must: (a) comply with the terms of this
+License to the maximum extent possible; and (b) describe the limitations
+and the code they affect. Such description must be included in the LEGAL
+file described in Section 3.4 and must be included with all
+distributions of the Source Code. Except to the extent prohibited by
+statute or regulation, such description must be sufficiently detailed
+for a recipient of ordinary skill to be able to understand it.
+
+*5. Application of this License.* This License applies to code to which
+the Initial Developer has attached the notice in Exhibit A and to
+related Covered Code.
+
+*6. Versions of the License.*
+
+ * 6.1 New Versions. The Storage Networking Industry Association (the
+ "SNIA") may publish revised and/or new versions of the License
+ from time to time. Each version will be given a distinguishing
+ version number.
+ * 6.2 Effect of New Versions. Once Covered Code has been published
+ under a particular version of the License, You may always continue
+ to use it under the terms of that version. You may also choose to
+ use such Covered Code under the terms of any subsequent version of
+ the License published by the SNIA. No one other than the SNIA has
+ the right to modify the terms applicable to Covered Code created
+ under this License.
+ * 6.3 Derivative Works. If You create or use a modified version of
+ this License (which you may only do in order to apply it to code
+ which is not already Covered Code governed by this License), You
+ must (a) rename Your license so that the phrases "Storage
+ Networking Industry Association," "SNIA," or any confusingly
+ similar phrase do not appear in your license (except to note that
+ your license differs from this License) and (b) otherwise make it
+ clear that Your version of the license contains terms which differ
+ from the SNIA Public License. (Filling in the name of the Initial
+ Developer, Original Code or Contributor in the notice described in
+ Exhibit A shall not of themselves be deemed to be modifications of
+ this License.)
+
+*7. DISCLAIMER OF WARRANTY. COVERED CODE IS PROVIDED UNDER THIS LICENSE
+ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
+IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE
+IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
+NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY
+RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME
+THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS
+DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO
+USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS
+DISCLAIMER.*
+
+*8. TERMINATION.*
+
+ * *8.1 *This License and the rights granted hereunder will terminate
+ automatically if You fail to comply with terms herein and fail to
+ cure such breach within a reasonable time after becoming aware of
+ the breach. All sublicenses to the Covered Code which are properly
+ granted shall survive any termination of this License. Provisions
+ which, by their nature, must remain in effect beyond the
+ termination of this License shall survive.
+ * *8.2* If You initiate litigation by asserting a patent
+ infringement claim (excluding declaratory judgment actions)
+ against Initial Developer or a Contributor (the Initial Developer
+ or Contributor against whom You file such action is referred to as
+ "Participant") alleging that:
+ o *(a)* such Participant's Contributor Version directly or
+ indirectly infringes any patent, then any and all rights
+ granted by such Participant to You under Sections 2.1 and/or
+ 2.2 of this License shall, upon 60 days notice from
+ Participant terminate prospectively, unless if within 60
+ days after receipt of notice You either: (i) agree in
+ writing to pay Participant a mutually agreeable reasonable
+ royalty for Your past and future use of Modifications made
+ by such Participant, or (ii) withdraw Your litigation claim
+ with respect to the Contributor Version against such
+ Participant. If within 60 days of notice, a reasonable
+ royalty and payment arrangement are not mutually agreed upon
+ in writing by the parties or the litigation claim is not
+ withdrawn, the rights granted by Participant to You under
+ Sections 2.1 and/or 2.2 automatically terminate at the
+ expiration of the 60 day notice period specified above.
+ * *8.3* If You assert a patent infringement claim against
+ Participant alleging that such Participant's Contributor Version
+ directly or indirectly infringes any patent where such claim is
+ resolved (such as by license or settlement) prior to the
+ initiation of patent infringement litigation, then the reasonable
+ value of the licenses granted by such Participant under Sections
+ 2.1 or 2.2 shall be taken into account in determining the amount
+ or value of any payment or license.
+
+
+
+ * *8.4* In the event of termination under Sections 8.1 or 8.2 above,
+ all end user license agreements (excluding distributors and
+ resellers) which have been validly granted by You or any
+ distributor hereunder prior to termination shall survive termination.
+
+*9. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL
+THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE,
+SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY
+DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE
+LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
+CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION,
+DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR
+MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF
+SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.
+THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR
+PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT
+APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT
+ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL
+DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.*
+
+*10. U.S. GOVERNMENT END USERS.* The Covered Code is a "commercial
+item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995),
+consisting of "commercial computer software" and "commercial computer
+software documentation," as such terms are used in 48 C.F.R. 12.212
+(Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1
+through 227.7202-4 (June 1995), all U.S. Government End Users acquire
+Covered Code with only those rights set forth herein.
+
+*11. MISCELLANEOUS *This License represents the complete agreement
+concerning subject matter hereof. If any provision of this License is
+held to be unenforceable, such provision shall be reformed only to the
+extent necessary to make it enforceable. This License shall be governed
+by California law provisions (except to the extent applicable law, if
+any, provides otherwise), excluding its conflict-of-law provisions. The
+application of the United Nations Convention on Contracts for the
+International Sale of Goods is expressly excluded. Any law or regulation
+which provides that the language of a contract shall be construed
+against the drafter shall not apply to this License.
+
+*12. RESPONSIBILITY FOR CLAIMS.* As between Initial Developer and the
+Contributors, each party is responsible for claims and damages arising,
+directly or indirectly, out of its utilization of rights under this
+License and You agree to work with Initial Developer and Contributors to
+distribute such responsibility on an equitable basis. Nothing herein is
+intended or shall be deemed to constitute any admission of liability.
+
+*13. MULTIPLE-LICENSED CODE.* Initial Developer may designate portions
+of the Covered Code as "Multiple-Licensed". "Multiple-Licensed" means
+that the Initial Developer permits you to utilize portions of the
+Covered Code under Your choice of this License or the alternative
+licenses, if any, specified by the Initial Developer in the file
+described in Exhibit A.
+
+*14. ACCEPTANCE.* This License is accepted by You if You retain, use, or
+distribute the Covered Code for any purpose.
+
+*EXHIBIT A —The SNIA Public License.*
+
+The contents of this file are subject to the SNIA 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://mp-mgmt-api.sourceforge.net/SourceLicense-v1.1.html
+
+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 Initial Developer of the Original Code is _ [COMPLETE THIS] _.
+
+Contributor(s): ______________________________________.
+