4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
25 include ..
/Makefile.lib
27 SUBDIRS
= help
$(MACH
)
28 $(BUILD64
)SUBDIRS
+= $(MACH64
)
34 clobber:= TARGET
= clobber
35 install:= TARGET
= install
42 ROOTETCSECURITY
= $(ROOTETC
)/security
45 EFILESRC
= $(EFILES
:%=%)
46 ETCFILES
= $(EFILES
:%=$(ROOTETC
)/%)
47 ETCDFILES
= $(EFILES
:%=$(ROOTETC
)/%.d
/SUNWcs
)
49 ESDFILES
= auth_attr exec_attr prof_attr
50 ESFILES
= $(ESDFILES
) policy.conf
51 ESSRC
= $(ESFILES
:%=%)
52 ETCSECURITYFILES
= $(ESFILES
:%=$(ROOTETCSECURITY
)/%)
53 ETCSECURITYDFILES
= $(ESDFILES
:%=$(ROOTETCSECURITY
)/%.d
/SUNWcs
)
57 MANIFESTDIR
= $(ROOT
)/lib
/svc
/manifest
/system
58 MANIFEST
= $(MFSTFILES
:%=$(MANIFESTDIR
)/%)
59 $(MANIFEST
) := FILEMODE
= 0444
61 METHODFILES
= svc-rbac
62 METHODDIR
= $(ROOT
)/lib
/svc
/method
63 METHOD
= $(METHODFILES
:%=$(METHODDIR
)/%)
64 $(METHOD
) := FILEMODE
= 0555
66 SCRIPTS
= i.rbac r.rbac
67 CLASS_SCR_SRC_DIR
= common
68 INSTALL_DIR
= $(ROOT
)/usr
/sadm
/install
70 CLASS_SCR_DIR
= $(INSTALL_DIR
)/scripts
72 CLASS_SCR_FILES
= $(SCRIPTS
:%=$(CLASS_SCR_DIR
)/%)
73 $(CLASS_SCR_FILES
) := FILEMODE
= 0555
75 all clean clobber delete
install lint package
: $(SUBDIRS
)
80 install_data: $(ETCSECURITYFILES
) $(ETCSECURITYDFILES
) $(ETCFILES
) \
81 $(ETCDFILES
) $(CLASS_SCR_FILES
) $(MANIFESTDIR
) $(MANIFEST
) \
82 $(METHODDIR
) $(METHOD
)
84 ATTR_FILES
= auth_attr exec_attr prof_attr user_attr
85 ${ATTR_FILES}: $$@.txt
${CLASS_SCR_SRC_DIR}/i.rbac
87 $(ECHO
) $@.txt
$@ |
$(SHELL
) ${CLASS_SCR_SRC_DIR}/i.rbac
89 $(ETCSECURITYDFILES
) $(ETCDFILES
): $$(@D
)
91 $(ETCSECURITYFILES
) $(ETCFILES
): $(ETCSECURITY
) $(ROOTETCSECURITY
)
99 $(ROOTETCSECURITY
)/%: %
102 $(ROOTETCSECURITY
)/%.d
/SUNWcs
: %
108 $(ROOTETC
)/%.d
/SUNWcs
: %
123 $(CLASS_SCR_FILES
): $(INSTALL_DIR
) $(CLASS_SCR_DIR
)
131 $(CLASS_SCR_DIR
)/%: $(CLASS_SCR_SRC_DIR
)/%
138 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)