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

*** 21,42 **** # # Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # ! TEMPLATES= SUNWdefault.xml SUNWblank.xml ! XMLDOCS= config.xml platform.xml ! CLOBBERFILES= $(ROOTXMLDOCS) $(ROOTTEMPLATES) ! all: include $(SRC)/cmd/Makefile.cmd include ../Makefile.ipkg ! install: $(ROOTXMLDOCS) $(ROOTTEMPLATES) ! clean: lint: include $(SRC)/cmd/Makefile.targ --- 21,69 ---- # # Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # + # Copyright 2015 Nexenta Systems, Inc. All rights reserved. + # ! PROGS= attach clone detach fmri_compare image_install p2v \ ! pkgcreatezone poststate prestate support system-unconfigure \ ! uninstall ! XMLDOCS= config.xml platform.xml smf_disable.lst pkgrm.lst common.ksh ! USERFILES= smf_disable.conf pkgrm.conf ! TEMPLATES= SUNWipkg.xml ! CLOBBERFILES= $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ETCUSER) include $(SRC)/cmd/Makefile.cmd include ../Makefile.ipkg ! .KEEP_STATE: ! all: $(PROGS) + # Our one .py file produces an empty .po file. + # This is the easiest way to deal with it. + GNUXGETFLAGS += --force-po + + POFILES = $(PROGS:%=%.po) common.po + POFILE = ipkg_zone.po + + $(POFILE): $(POFILES) + $(RM) $@ + $(CAT) $(POFILES) > $@ + + install: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ETCUSER) + lint: + clean: + -$(RM) $(PROGS) $(POFILES) $(POFILE) + + support := LDLIBS += -lzonecfg + + support: support.c + $(LINK.c) -o $@ $@.c $(LDLIBS) + $(POST_PROCESS) + include $(SRC)/cmd/Makefile.targ