|
1 ############################################################################### |
|
2 # |
|
3 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
|
4 # |
|
5 # Permission is hereby granted, free of charge, to any person obtaining a |
|
6 # copy of this software and associated documentation files (the "Software"), |
|
7 # to deal in the Software without restriction, including without limitation |
|
8 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
9 # and/or sell copies of the Software, and to permit persons to whom the |
|
10 # Software is furnished to do so, subject to the following conditions: |
|
11 # |
|
12 # The above copyright notice and this permission notice (including the next |
|
13 # paragraph) shall be included in all copies or substantial portions of the |
|
14 # Software. |
|
15 # |
|
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
19 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
22 # DEALINGS IN THE SOFTWARE. |
|
23 # |
|
24 ############################################################################### |
|
25 # |
|
26 # Files for integration with Solaris Service Management Framework (SMF) and |
|
27 # Role Based Access Control (RBAC) shared by all the X server variants |
|
28 |
|
29 MODULE_NAME = xserver-common |
|
30 |
|
31 # ARC cases that covered this module |
|
32 # PSARC/2004/752 X Consolidation conversion to SMF |
|
33 MODULE_ARC_CASES = PSARC/2004/752 |
|
34 |
|
35 # No upstream sources for these files, since they're Solaris-specific |
|
36 MODULE_VERSION=$(XORGSERVER_VERS) |
|
37 SOURCE_TARBALL_NAME=NONE |
|
38 SOURCE_TARBALL_NAME_SET=yes |
|
39 SOURCE_TARGETS= |
|
40 SOURCE_TARGETS_SET=yes |
|
41 |
|
42 CONFIGURE_TARGETS= |
|
43 CONFIGURE_TARGETS_SET=yes |
|
44 |
|
45 BUILD_TARGETS = check |
|
46 BUILD_TARGETS_SET=yes |
|
47 |
|
48 INSTALL_TARGETS = install_common |
|
49 INSTALL_TARGETS_SET=yes |
|
50 |
|
51 # Compatibility links from /usr/X11/bin to /usr/bin |
|
52 MODULE_X11_BINCOMPAT_LINKS = X Xserver |
|
53 |
|
54 ### Include common rulesets |
|
55 include ../Makefile.inc |
|
56 |
|
57 X11_SMF_MANIFEST_DIR=/var/svc/manifest/application/x11 |
|
58 SMF_METHOD_DIR=/lib/svc/method |
|
59 DESTDIR=$(PROTODIR) |
|
60 |
|
61 check: x11-server.xml |
|
62 /usr/sbin/svccfg validate x11-server.xml |
|
63 |
|
64 RBAC_AUTH_HELP=X11States.html |
|
65 RBAC_PROFILE_HELP=RtDesktopConfiguration.html |
|
66 |
|
67 install_common: $(BUILD_TARGETS) |
|
68 mkdir -p \ |
|
69 $(DESTDIR)$(X11_SMF_MANIFEST_DIR) \ |
|
70 $(DESTDIR)$(SMF_METHOD_DIR) \ |
|
71 $(DESTDIR)$(X11_DIR)/bin \ |
|
72 $(DESTDIR)$(X11_DIR)/share/man/man1 \ |
|
73 $(DESTDIR)/etc/security/auth_attr.d \ |
|
74 $(DESTDIR)/etc/security/prof_attr.d \ |
|
75 $(DESTDIR)/usr/lib/help/auths/locale/C \ |
|
76 $(DESTDIR)/usr/lib/help/profiles/locale/C |
|
77 $(INSTALL_SCRIPT) -c -m 0444 x11-server.xml \ |
|
78 $(DESTDIR)$(X11_SMF_MANIFEST_DIR)/ |
|
79 $(INSTALL_SCRIPT) -c -m 0755 x11-server $(DESTDIR)$(SMF_METHOD_DIR)/ |
|
80 $(INSTALL_SCRIPT) -c -m 0755 Xserver $(DESTDIR)$(X11_DIR)/bin/ |
|
81 $(INSTALL_SCRIPT) -c -m 0444 auth_attr \ |
|
82 $(DESTDIR)/etc/security/auth_attr.d/$(MODULE_NAME) |
|
83 $(INSTALL_SCRIPT) -c -m 0444 prof_attr \ |
|
84 $(DESTDIR)/etc/security/prof_attr.d/$(MODULE_NAME) |
|
85 $(INSTALL_SCRIPT) -c -m 0444 X11States.html \ |
|
86 $(DESTDIR)/usr/lib/help/auths/locale/C/ |
|
87 $(INSTALL_SCRIPT) -c -m 0444 RtDesktopConfiguration.html \ |
|
88 $(DESTDIR)/usr/lib/help/profiles/locale/C/ |
|
89 $(INSTALL_SCRIPT) -c -m 0444 Xnest.1 $(DESTDIR)$(X11_MAN_DIR)/man1/ |