1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  25 # Copyright 2014 Andrew Stormont.
  26 #
  27 
  28 set name=pkg.fmri value=pkg:/service/storage/removable-media@$(PKGVERS)
  29 set name=pkg.description value="Storage media management library"
  30 set name=pkg.summary value="Storage media management library"
  31 set name=info.classification \
  32     value=org.opensolaris.category.2008:System/Libraries
  33 set name=variant.arch value=$(ARCH)
  34 dir path=lib
  35 dir path=lib/svc
  36 dir path=lib/svc/manifest group=sys
  37 dir path=lib/svc/manifest/network group=sys
  38 dir path=lib/svc/manifest/network/rpc group=sys
  39 dir path=usr group=sys
  40 dir path=usr/lib
  41 $(BUILD64)dir path=usr/lib/$(ARCH64)
  42 dir path=usr/lib/smedia
  43 $(BUILD64)dir path=usr/lib/smedia/$(ARCH64)
  44 dir path=usr/share/man/man1m
  45 file path=lib/svc/manifest/network/rpc/smserver.xml group=sys mode=0444
  46 $(BUILD64)file path=usr/lib/$(ARCH64)/libsmedia.so.1
  47 $(BUILD64)file path=usr/lib/$(ARCH64)/llib-lsmedia.ln
  48 file path=usr/lib/libsmedia.so.1
  49 file path=usr/lib/llib-lsmedia
  50 file path=usr/lib/llib-lsmedia.ln
  51 $(BUILD64)file path=usr/lib/smedia/$(ARCH64)/sm_blkdev.so.1 mode=0555
  52 $(BUILD64)file path=usr/lib/smedia/$(ARCH64)/sm_fd.so.1 mode=0555
  53 $(BUILD64)file path=usr/lib/smedia/$(ARCH64)/sm_scsi.so.1 mode=0555
  54 file path=usr/lib/smedia/rpc.smserverd mode=0555
  55 file path=usr/lib/smedia/sm_blkdev.so.1 mode=0555
  56 file path=usr/lib/smedia/sm_fd.so.1 mode=0555
  57 file path=usr/lib/smedia/sm_scsi.so.1 mode=0555
  58 file path=usr/share/man/man1m/rpc.smserverd.1m
  59 legacy pkg=SUNWsmedia desc="Storage media management library" \
  60     name="Storage media management library"
  61 legacy pkg=SUNWsmediar desc="Storage media management library (Root)" \
  62     name="Storage media management library (Root)"
  63 license cr_Sun license=cr_Sun
  64 license lic_CDDL license=lic_CDDL
  65 $(BUILD64)link path=usr/lib/$(ARCH64)/libsmedia.so target=./libsmedia.so.1
  66 link path=usr/lib/libsmedia.so target=./libsmedia.so.1