Print this page
NEX-3937 update zone brand scripts for latest pkg support
Reviewed by: Gordon Ross <gwr@nexenta.com>
Reviewed by: Steve Peng <steve.peng@nexenta.com>
re #13553 rb4471 add ipkg brand scripts

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/brand/ipkg/zone/Makefile
          +++ new/usr/src/lib/brand/ipkg/zone/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  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   23  # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
       26 +# Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
       27 +#
  26   28  
  27      -TEMPLATES=      SUNWdefault.xml SUNWblank.xml
  28      -XMLDOCS=        config.xml platform.xml
  29      -CLOBBERFILES=   $(ROOTXMLDOCS) $(ROOTTEMPLATES)
       29 +PROGS=          attach clone detach fmri_compare image_install p2v \
       30 +                pkgcreatezone poststate prestate support system-unconfigure \
       31 +                uninstall
       32 +XMLDOCS=        config.xml platform.xml smf_disable.lst pkgrm.lst common.ksh
       33 +USERFILES=      smf_disable.conf pkgrm.conf
       34 +TEMPLATES=      SUNWipkg.xml
  30   35  
  31      -all:
       36 +CLOBBERFILES=   $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ETCUSER)
  32   37  
  33   38  include $(SRC)/cmd/Makefile.cmd
  34   39  include ../Makefile.ipkg
  35   40  
  36      -install: $(ROOTXMLDOCS) $(ROOTTEMPLATES)
       41 +.KEEP_STATE:
  37   42  
  38      -clean:
       43 +all:    $(PROGS)
  39   44  
       45 +# Our one .py file produces an empty .po file.
       46 +# This is the easiest way to deal with it.
       47 +GNUXGETFLAGS += --force-po
       48 +
       49 +POFILES =       $(PROGS:%=%.po) common.po
       50 +POFILE =        ipkg_zone.po
       51 +
       52 +$(POFILE): $(POFILES)
       53 +        $(RM) $@
       54 +        $(CAT) $(POFILES) > $@
       55 +
       56 +install: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ETCUSER)
       57 +
  40   58  lint:
  41   59  
       60 +clean:
       61 +        -$(RM) $(PROGS) $(POFILES) $(POFILE)
       62 +
       63 +support := LDLIBS += -lzonecfg
       64 +
       65 +support: support.c
       66 +        $(LINK.c) -o $@ $@.c $(LDLIBS)
       67 +        $(POST_PROCESS)
       68 +
  42   69  include $(SRC)/cmd/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX