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
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
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
|
↓ 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