19781SMoriah.Waterland@Sun.COM# 29781SMoriah.Waterland@Sun.COM# CDDL HEADER START 39781SMoriah.Waterland@Sun.COM# 49781SMoriah.Waterland@Sun.COM# The contents of this file are subject to the terms of the 59781SMoriah.Waterland@Sun.COM# Common Development and Distribution License (the "License"). 69781SMoriah.Waterland@Sun.COM# You may not use this file except in compliance with the License. 79781SMoriah.Waterland@Sun.COM# 89781SMoriah.Waterland@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99781SMoriah.Waterland@Sun.COM# or http://www.opensolaris.org/os/licensing. 109781SMoriah.Waterland@Sun.COM# See the License for the specific language governing permissions 119781SMoriah.Waterland@Sun.COM# and limitations under the License. 129781SMoriah.Waterland@Sun.COM# 139781SMoriah.Waterland@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 149781SMoriah.Waterland@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159781SMoriah.Waterland@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 169781SMoriah.Waterland@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 179781SMoriah.Waterland@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 189781SMoriah.Waterland@Sun.COM# 199781SMoriah.Waterland@Sun.COM# CDDL HEADER END 209781SMoriah.Waterland@Sun.COM# 219781SMoriah.Waterland@Sun.COM 229781SMoriah.Waterland@Sun.COM# 23*11996SThomas.Whitten@Sun.COM# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 249781SMoriah.Waterland@Sun.COM# Use is subject to license terms. 259781SMoriah.Waterland@Sun.COM# 269781SMoriah.Waterland@Sun.COM 279781SMoriah.Waterland@Sun.COMPROG= cmdexec 289781SMoriah.Waterland@Sun.COM 299781SMoriah.Waterland@Sun.COMOBJS= cmdexec.o 309781SMoriah.Waterland@Sun.COMSRCS= $(OBJS:.o=.c) 319781SMoriah.Waterland@Sun.COM 329781SMoriah.Waterland@Sun.COMCLASS_ACTION_SCRIPTS = i.awk \ 339781SMoriah.Waterland@Sun.COM i.build \ 349781SMoriah.Waterland@Sun.COM i.CompCpio \ 3510593SMoriah.Waterland@Sun.COM i.preserve \ 369781SMoriah.Waterland@Sun.COM i.sed \ 379781SMoriah.Waterland@Sun.COM r.awk \ 389781SMoriah.Waterland@Sun.COM r.build \ 399781SMoriah.Waterland@Sun.COM r.sed 409781SMoriah.Waterland@Sun.COMADMINFILE = default 419781SMoriah.Waterland@Sun.COM 42*11996SThomas.Whitten@Sun.COMROOTPKGMNFSTDIR=$(ROOT)/lib/svc/manifest/system 439869SCasper.Dik@Sun.COMROOTPKGMNFST= $(ROOTPKGMNFSTDIR)/pkgserv.xml 449869SCasper.Dik@Sun.COM 459869SCasper.Dik@Sun.COM$(ROOTPKGMNFST) := FILEMODE = 0444 469869SCasper.Dik@Sun.COM 479781SMoriah.Waterland@Sun.COM# cmdexec also installed in usr/sadm/install/scripts 489781SMoriah.Waterland@Sun.COMSCRIPTS = $(CLASS_ACTION_SCRIPTS) $(PROG) 499781SMoriah.Waterland@Sun.COM 509781SMoriah.Waterland@Sun.COMinclude $(SRC)/cmd/svr4pkg/Makefile.svr4pkg 519781SMoriah.Waterland@Sun.COMCLOBBERFILES += $(CLASS_ACTION_SCRIPTS) 529781SMoriah.Waterland@Sun.COM 5310601SMoriah.Waterland@Sun.COMROOTLINKS= $(ROOTCLASS_SCR_DIR)/i.CONFIG.prsv 5410601SMoriah.Waterland@Sun.COMPRESRV= $(ROOTCLASS_SCR_DIR)/i.preserve 5510601SMoriah.Waterland@Sun.COM 569781SMoriah.Waterland@Sun.COMLDLIBS += -lpkg 579781SMoriah.Waterland@Sun.COM 589781SMoriah.Waterland@Sun.COM.KEEP_STATE: 5910601SMoriah.Waterland@Sun.COM 609781SMoriah.Waterland@Sun.COMall: $(PROG) $(CLASS_ACTION_SCRIPTS) 619781SMoriah.Waterland@Sun.COM 629869SCasper.Dik@Sun.COMinstall: all $(ROOTCLASS_SCR_FILES) $(ROOTADMIN_SRC_FILE) \ 6310601SMoriah.Waterland@Sun.COM $(ROOTPKGMNFST) $(ROOTLINKS) 6410601SMoriah.Waterland@Sun.COM 6510601SMoriah.Waterland@Sun.COM$(ROOTLINKS): $(ROOTCLASS_SCR_FILES) 6610601SMoriah.Waterland@Sun.COM $(RM) $@ 6710601SMoriah.Waterland@Sun.COM $(LN) $(PRESRV) $@ 689781SMoriah.Waterland@Sun.COM 699781SMoriah.Waterland@Sun.COMinclude $(SRC)/cmd/svr4pkg/Makefile.svr4pkg.targ 70