open-src/data/smf-rbac/Makefile
changeset 922 db66e53f0c94
parent 919 425233ae7236
child 943 294f64612d23
equal deleted inserted replaced
921:bd34dddb37b8 922:db66e53f0c94
    31 
    31 
    32 # No upstream sources for these files, since they're Solaris-specific
    32 # No upstream sources for these files, since they're Solaris-specific
    33 MODULE_VERSION=NONE
    33 MODULE_VERSION=NONE
    34 SOURCE_TARBALL_NAME=NONE
    34 SOURCE_TARBALL_NAME=NONE
    35 SOURCE_TARBALL_NAME_SET=yes
    35 SOURCE_TARBALL_NAME_SET=yes
       
    36 SOURCE_TARGETS=
       
    37 SOURCE_TARGETS_SET=yes
    36 
    38 
    37 # Build per-arch, not per-bitsize
    39 CONFIGURE_TARGETS=
    38 BUILD_TYPES_SET=yes
    40 CONFIGURE_TARGETS_SET=yes
    39 BUILD_TYPES=$(MACH)
       
    40 
    41 
    41 BUILD_TARGETS = x11-server.xml check
    42 BUILD_TARGETS = x11-server.xml check
    42 BUILD_TARGETS_SET=yes
    43 BUILD_TARGETS_SET=yes
    43 
    44 
    44 INSTALL_TARGETS =
    45 INSTALL_TARGETS = install_common install_ogl-select
    45 INSTALL_TARGETS_SET=yes
    46 INSTALL_TARGETS_SET=yes
    46 
    47 
    47 ### Include common rulesets
    48 ### Include common rulesets
    48 include ../Makefile.inc
    49 include ../Makefile.inc
    49 
    50 
    50 source_i386:
       
    51 
       
    52 source_sparc:
       
    53 
       
    54 SUN_SMF_MANIFEST_DIR=/var/svc/manifest/application
    51 SUN_SMF_MANIFEST_DIR=/var/svc/manifest/application
    55 SUN_SMF_METHOD_DIR=/lib/svc/method
    52 SUN_SMF_METHOD_DIR=/lib/svc/method
    56 DESTDIR=$(PROTODIR)
    53 DESTDIR=$(PROTODIR)
    57 
       
    58 build_common: $(BUILD_TARGETS)
       
    59 build_sparc: build_common
       
    60 build_i386: build_common
       
    61 
    54 
    62 DEFAULT_XSERVER=$(X11_BIN_DIR)/Xorg
    55 DEFAULT_XSERVER=$(X11_BIN_DIR)/Xorg
    63 
    56 
    64 x11-server.xml: x11-server.xml.in
    57 x11-server.xml: x11-server.xml.in
    65 	sed -e 's|@DEFAULT_XSERVER@|$(DEFAULT_XSERVER)|' < x11-server.xml.in > $@
    58 	sed -e 's|@DEFAULT_XSERVER@|$(DEFAULT_XSERVER)|' < x11-server.xml.in > $@
    69 	/usr/sbin/svccfg validate ogl-select.xml
    62 	/usr/sbin/svccfg validate ogl-select.xml
    70 
    63 
    71 clean_common:
    64 clean_common:
    72 	$(RM) x11-server.xml
    65 	$(RM) x11-server.xml
    73 
    66 
    74 clean_sparc: clean_common
    67 clean: clean_common
    75 clean_i386: clean_common
       
    76 
    68 
    77 RBAC_ATTR_FILES=auth_attr exec_attr prof_attr 
    69 RBAC_ATTR_FILES=auth_attr exec_attr prof_attr 
    78 RBAC_AUTH_HELP=X11States.html FontStates.html
    70 RBAC_AUTH_HELP=X11States.html FontStates.html
    79 RBAC_PROFILE_HELP=RtDesktopConfiguration.html
    71 RBAC_PROFILE_HELP=RtDesktopConfiguration.html
    80 
    72 
    92 	cp -pf $(RBAC_ATTR_FILES) $(DESTDIR)/etc/security
    84 	cp -pf $(RBAC_ATTR_FILES) $(DESTDIR)/etc/security
    93 	cp -pf $(RBAC_AUTH_HELP) $(DESTDIR)/usr/lib/help/auths/locale/C
    85 	cp -pf $(RBAC_AUTH_HELP) $(DESTDIR)/usr/lib/help/auths/locale/C
    94 	cp -pf $(RBAC_PROFILE_HELP) $(DESTDIR)/usr/lib/help/profiles/locale/C
    86 	cp -pf $(RBAC_PROFILE_HELP) $(DESTDIR)/usr/lib/help/profiles/locale/C
    95 	cp -pf ogl-select.man $(DESTDIR)$(X11_DIR)/share/man/man1/ogl-select.1
    87 	cp -pf ogl-select.man $(DESTDIR)$(X11_DIR)/share/man/man1/ogl-select.1
    96 
    88 
    97 install_sparc: install_common install_ogl-select
       
    98 install_i386: install_common install_ogl-select
       
    99 
       
   100 OGL_VENDOR_SCRIPTS_sparc=sun_vendor_select
    89 OGL_VENDOR_SCRIPTS_sparc=sun_vendor_select
   101 OGL_VENDOR_SCRIPTS_i386=nvidia_vendor_select
    90 OGL_VENDOR_SCRIPTS_i386=nvidia_vendor_select
   102 OGL_VENDOR_SCRIPTS=mesa_vendor_select $(OGL_VENDOR_SCRIPTS_$(MACH))
    91 OGL_VENDOR_SCRIPTS=mesa_vendor_select $(OGL_VENDOR_SCRIPTS_$(MACH))
   103 
    92 
   104 install_ogl-select: install_common
    93 install_ogl-select: install_common