open-src/xserver/xserver-common/Makefile
changeset 1610 77a2e608a1ff
parent 1529 b565c1abd62a
equal deleted inserted replaced
1609:d5bab3427828 1610:77a2e608a1ff
     1 ###############################################################################
     1 ###############################################################################
     2 #
     2 #
     3 # Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
     4 #
     4 #
     5 # Permission is hereby granted, free of charge, to any person obtaining a
     5 # Permission is hereby granted, free of charge, to any person obtaining a
     6 # copy of this software and associated documentation files (the "Software"),
     6 # copy of this software and associated documentation files (the "Software"),
     7 # to deal in the Software without restriction, including without limitation
     7 # to deal in the Software without restriction, including without limitation
     8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
     8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    63 MODULE_X11_BINCOMPAT_LINKS = X Xserver
    63 MODULE_X11_BINCOMPAT_LINKS = X Xserver
    64 
    64 
    65 ### Include common rulesets
    65 ### Include common rulesets
    66 include ../Makefile.inc
    66 include ../Makefile.inc
    67 
    67 
    68 X11_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/x11
       
    69 DESTDIR=$(PROTODIR)
    68 DESTDIR=$(PROTODIR)
    70 
    69 
    71 check: x11-server.xml
    70 check: x11-server.xml
    72 	/usr/sbin/svccfg validate x11-server.xml
    71 	/usr/sbin/svccfg validate x11-server.xml
    73 
    72 
    74 install_common: $(BUILD_TARGETS)
    73 install_common: $(BUILD_TARGETS)
    75 	mkdir -p \
    74 	mkdir -p \
    76 		$(DESTDIR)$(X11_SMF_MANIFEST_DIR) \
    75 		$(DESTDIR)$(X11_SMF_MANIFEST_DIR) \
    77 		$(DESTDIR)$(SMF_METHOD_DIR) \
    76 		$(DESTDIR)$(SMF_METHOD_DIR) \
    78 		$(DESTDIR)$(X11_DIR)/bin \
    77 		$(DESTDIR)$(MODULE_BIN_DIR) \
    79 		$(DESTDIR)$(X11_DIR)/share/man/man1 \
    78 		$(DESTDIR)$(MODULE_MAN_DIR)/man1 \
    80 		$(DESTDIR)/etc/security/auth_attr.d \
    79 		$(DESTDIR)/etc/security/auth_attr.d \
    81 		$(DESTDIR)/etc/security/prof_attr.d
    80 		$(DESTDIR)/etc/security/prof_attr.d
    82 	$(INSTALL_SCRIPT) -c -m 0444 x11-server.xml \
    81 	$(INSTALL_SCRIPT) -c -m 0444 x11-server.xml \
    83 		$(DESTDIR)$(X11_SMF_MANIFEST_DIR)/
    82 		$(DESTDIR)$(X11_SMF_MANIFEST_DIR)/
    84 	$(INSTALL_SCRIPT) -c -m 0755 x11-server $(DESTDIR)$(SMF_METHOD_DIR)/
    83 	$(INSTALL_SCRIPT) -c -m 0755 x11-server $(DESTDIR)$(SMF_METHOD_DIR)/
    85 	$(INSTALL_SCRIPT) -c -m 0755 Xserver $(DESTDIR)$(X11_DIR)/bin/
    84 	$(INSTALL_SCRIPT) -c -m 0755 Xserver $(DESTDIR)$(MODULE_BIN_DIR)/
    86 	$(INSTALL_SCRIPT) -c -m 0444 auth_attr \
    85 	$(INSTALL_SCRIPT) -c -m 0444 auth_attr \
    87 		$(DESTDIR)/etc/security/auth_attr.d/$(MODULE_NAME)
    86 		$(DESTDIR)/etc/security/auth_attr.d/$(MODULE_NAME)
    88 	$(INSTALL_SCRIPT) -c -m 0444 prof_attr \
    87 	$(INSTALL_SCRIPT) -c -m 0444 prof_attr \
    89 		$(DESTDIR)/etc/security/prof_attr.d/$(MODULE_NAME)
    88 		$(DESTDIR)/etc/security/prof_attr.d/$(MODULE_NAME)
    90 	$(INSTALL_SCRIPT) -c -m 0444 Xnest.1 $(DESTDIR)$(X11_MAN_DIR)/man1/
    89 	$(INSTALL_SCRIPT) -c -m 0444 Xnest.1 $(DESTDIR)$(MODULE_MAN_DIR)/man1/