Print this page
PSARC 2008/766 native zones p2v
6667924 physical to virtual utility for native zones

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/brand/native/zone/Makefile
          +++ new/usr/src/lib/brand/native/zone/Makefile
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23      -# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
       23 +# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -# ident "%Z%%M% %I%     %E% SMI"
  27      -#
  28   26  
       27 +ETCBRANDDIR=    $(ROOT)/etc/brand/native
       28 +ETCUSER=        $(USERFILES:%=$(ETCBRANDDIR)/%)
       29 +$(ETCUSER) :=   FILEMODE = 644
       30 +$(ETCUSER) :=   OWNER = root
       31 +$(ETCUSER) :=   GROUP = sys
       32 +
       33 +$(ETCBRANDDIR)/%: %
       34 +        $(INS.file)
       35 +
  29   36  PROG=           sw_support
  30   37  BRAND=          native
  31      -PROGS=          attach_update $(PROG)
  32      -XMLDOCS=        config.xml platform.xml
       38 +PROGS=          attach_update image_install p2v $(PROG)
       39 +XMLDOCS=        config.xml platform.xml smf_disable.lst pkgrm.lst
       40 +USERFILES=      smf_disable.conf pkgrm.conf
       41 +SHARED=         common.ksh
  33   42  TEMPLATES=      SUNWdefault.xml SUNWblank.xml
  34      -CLOBBERFILES=   $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES)
       43 +CLOBBERFILES=   $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \
       44 +        $(ETCUSER)
  35   45  
  36   46  all:    $(PROGS)
  37   47  
  38   48  include $(SRC)/cmd/Makefile.cmd
  39   49  include ../../Makefile.brand
  40   50  
  41   51  CPPFLAGS +=     -I/usr/include/libxml2 -D_REENTRANT
  42   52  LDLIBS += -lzonecfg -luutil
  43   53  
  44   54  POFILES=        $(PROGS:%=%.po)
  45   55  POFILE=         native_zone.po
  46   56  
  47   57  $(POFILE): $(POFILES)
  48   58          $(RM) $@
  49   59          $(BUILDPO.pofiles)
  50   60  
  51   61  _msg: $(MSGDOMAINPOFILE)
  52   62  
  53   63  lint: lint_PROG
  54   64  
  55      -install: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES)
       65 +install: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \
       66 +        $(ETCUSER)
  56   67  
  57   68  clean:
  58   69          -$(RM) $(PROGS)
  59   70  
  60   71  include $(SRC)/Makefile.msg.targ
  61   72  include $(SRC)/cmd/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX