Makefile revision 1379
32N/A###############################################################################
32N/A#
943N/A# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
32N/A#
32N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
32N/A#
32N/A###############################################################################
32N/A#
32N/A# Files for integration with Solaris Service Management Framework (SMF) and
493N/A# Role Based Access Control (RBAC) shared by all the X server variants
32N/A
32N/AMODULE_NAME = xserver-common
999N/A
32N/A# Package metadata
911N/AMODULE_DESC = Xserver SMF & RBAC configuration files
999N/AORACLE_TPNO = $(ORACLE_TPNO_xorg)
999N/A
911N/A# ARC cases that covered this module
32N/A# PSARC/2004/752 X Consolidation conversion to SMF
32N/AMODULE_ARC_CASES = PSARC/2004/752
32N/A# PSARC/2010/161 Xorg configuration file for VESA driver selection
32N/A# (addition of SMF property options/config_file)
32N/AMODULE_ARC_CASES += PSARC/2010/161
# No upstream sources for these files, since they're Solaris-specific
MODULE_VERSION=$(XORGSERVER_VERS)
SOURCE_TARBALL_NAME=NONE
SOURCE_TARBALL_NAME_SET=yes
SOURCE_TARGETS=
SOURCE_TARGETS_SET=yes
CONFIGURE_TARGETS=
CONFIGURE_TARGETS_SET=yes
BUILD_TARGETS = check
BUILD_TARGETS_SET=yes
INSTALL_TARGETS = install_common
INSTALL_TARGETS_SET=yes
# Dates to show in Oracle copyright notice in pkg license file
# Earliest & latest of the copyrights in the Oracle files in this pkg
ORACLE_COPYRIGHT_YEARS = 2004, 2011
# Compatibility links from /usr/X11/bin to /usr/bin
MODULE_X11_BINCOMPAT_LINKS = X Xserver
### Include common rulesets
include ../Makefile.inc
X11_SMF_MANIFEST_DIR=$(SMF_MANIFEST_DIR)/application/x11
DESTDIR=$(PROTODIR)
check: x11-server.xml
/usr/sbin/svccfg validate x11-server.xml
RBAC_AUTH_HELP=X11States.html
RBAC_PROFILE_HELP=RtDesktopConfiguration.html
install_common: $(BUILD_TARGETS)
mkdir -p \
$(DESTDIR)$(X11_SMF_MANIFEST_DIR) \
$(DESTDIR)$(SMF_METHOD_DIR) \
$(DESTDIR)$(X11_DIR)/bin \
$(DESTDIR)$(X11_DIR)/share/man/man1 \
$(DESTDIR)/etc/security/auth_attr.d \
$(DESTDIR)/etc/security/prof_attr.d \
$(DESTDIR)/usr/lib/help/auths/locale/C \
$(DESTDIR)/usr/lib/help/profiles/locale/C
$(INSTALL_SCRIPT) -c -m 0444 x11-server.xml \
$(DESTDIR)$(X11_SMF_MANIFEST_DIR)/
$(INSTALL_SCRIPT) -c -m 0755 x11-server $(DESTDIR)$(SMF_METHOD_DIR)/
$(INSTALL_SCRIPT) -c -m 0755 Xserver $(DESTDIR)$(X11_DIR)/bin/
$(INSTALL_SCRIPT) -c -m 0444 auth_attr \
$(DESTDIR)/etc/security/auth_attr.d/$(MODULE_NAME)
$(INSTALL_SCRIPT) -c -m 0444 prof_attr \
$(DESTDIR)/etc/security/prof_attr.d/$(MODULE_NAME)
$(INSTALL_SCRIPT) -c -m 0444 X11States.html \
$(DESTDIR)/usr/lib/help/auths/locale/C/
$(INSTALL_SCRIPT) -c -m 0444 RtDesktopConfiguration.html \
$(DESTDIR)/usr/lib/help/profiles/locale/C/
$(INSTALL_SCRIPT) -c -m 0444 Xnest.1 $(DESTDIR)$(X11_MAN_DIR)/man1/