open-src/app/xdm/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Mon, 22 Feb 2016 16:57:16 -0800
changeset 1610 77a2e608a1ff
parent 1597 a41f7519dbad
permissions -rw-r--r--
22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1199
diff changeset
     3
# xdm - X Display Manager with support for XDMCP and host chooser
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
1597
a41f7519dbad 22589675 Remove SUN-DES-1 X11 authentication method [PSARC/2016/003]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1508
diff changeset
     5
# Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     8
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     9
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    10
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    11
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    12
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    14
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    15
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    16
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    18
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    19
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    20
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    21
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    22
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    23
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    24
# DEALINGS IN THE SOFTWARE.
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# Package name used in tarballs
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
MODULE_NAME=xdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    31
# pkg(5) name we deliver the files in (override default)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    32
MODULE_PKGNAME=system/display-manager/xdm
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    33
MODULE_PKGNAME_SET=yes
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1199
diff changeset
    34
MODULE_DESC = the X Display Manager (xdm) server
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    35
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
# Version number (used in path names)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
MODULE_VERSION=1.1.9
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    39
# Checksums for upstream tarball
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    40
TARBALL_MD5  = 030ae4bd9b8d428749d68bfdf56ce8a5
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    41
TARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    42
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
# Patches to apply to source after unpacking, in order
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
SOURCE_PATCHES = \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
	mkdir.patch,-p1 \
1141
e98284f37c98 6960231 xdm login fails with: pam_unix_cred: cannot load ttyname with c2audit loaded
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1097
diff changeset
    46
	pam_tty.patch,-p1 \
e98284f37c98 6960231 xdm login fails with: pam_unix_cred: cannot load ttyname with c2audit loaded
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1097
diff changeset
    47
	pam_user.patch,-p1 \
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    48
	greeter-linking.patch,-p1 \
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    49
	bindir.patch,-p1 \
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
	terminateServer.patch \
930
1d5fde7d897b 6822636 xdm: Xterminals unable to login via XDM due to possible race condition - Sol 10
Naveen Gundlagutta <Naveen.Gundlagutta@Sun.COM>
parents: 924
diff changeset
    51
	bug-6822636.patch \
924
107931382538 6820612 Sol10: cde dtchooser does not connect to Sol 10 xdm via host list
Naveen Gundlagutta <Naveen.Gundlagutta@Sun.COM>
parents: 919
diff changeset
    52
	bug-6820612.patch,-p1 \
1440
950b77b486dd 17782453 xdm: slow Xterminals unable to login via XDM
ravikuku <ravi.n.kumar@oracle.com>
parents: 1425
diff changeset
    53
	Xsession.patch \
1508
5023d4d9a642 20508188 xdm core dump: libX11.so.4`append_pending_request
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1466
diff changeset
    54
	18286609.patch,-p1 \
5023d4d9a642 20508188 xdm core dump: libX11.so.4`append_pending_request
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1466
diff changeset
    55
	20508188.patch,-p1
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    57
# Need to rebuild configure/Makefile.in after applying bindir.patch
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    58
AUTORECONF=yes
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    59
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
# Man pages to apply Sun footer to & attributes to list
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
SUNTOUCHED_MANPAGES=xdm.man.cpp
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
MODULE_STABILITY=Committed
1610
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1597
diff changeset
    63
MODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_SBIN_DIR)/
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    64
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    65
# Additional configure script options
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    66
# Only build shared greeter module, not static
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
# Set various paths to better match Solaris
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    68
# Find xrdb & xterm in /usr/bin even with --bindir set to /usr/sbin
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    69
MODULE_CONFIG_OPTS= \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    70
	--enable-shared=yes --enable-static=no \
1597
a41f7519dbad 22589675 Remove SUN-DES-1 X11 authentication method [PSARC/2016/003]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1508
diff changeset
    71
	--disable-secure-rpc \
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    72
	--with-xdmconfigdir=/etc/X11/xdm \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    73
	--with-piddir=/var/run/xdm \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    74
	--with-authdir=/var/run/xdm \
1610
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1597
diff changeset
    75
	--bindir=$(MODULE_SBIN_DIR) \
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    76
	--with-xrdb='$(X11_BIN_DIR)/xrdb' \
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    77
	--with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    78
	DEF_SERVER='$(X11_BIN_DIR)/X' \
1197
0dc02fa0d678 7084696 xdm default $PATH should stop including obsolete directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
    79
	DEF_USER_PATH=/usr/bin:/usr/sbin \
0dc02fa0d678 7084696 xdm default $PATH should stop including obsolete directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
    80
	DEF_SYSTEM_PATH=/usr/bin:/usr/sbin
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    81
1196
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1141
diff changeset
    82
# configure scripts add libraries like -lXt & -lXinerama to the global $(LIBS)
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1141
diff changeset
    83
# when only some objects need them, so ignore them in the rest.
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    84
MODULE_LD_OPTIONS  = $(ZDISCARD_UNUSED_DEP)
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    85
# but it misses adding -lc to the greeter shared object, so add it
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    86
MODULE_LD_OPTIONS += -lc
1196
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1141
diff changeset
    87
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
# Additional build & install targets
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    89
MODULE_ADD_BUILD_TARGETS=build_xdm_configs
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    90
MODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    91
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    92
# Need to fix libtool interference with our linker flags
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    93
DELIBTOOLIZE=yes
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    94
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    95
include ../Makefile.inc
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
# Move xdmshell from default location to the place we put in our packages
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    98
install_xdmshell: default_install
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
	-rm -f $(PROTODIR)/usr/lib/X11/xdm/xdmshell
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   100
	mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   101
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
# Copy xdm config files from /etc to /usr for use as prototypes
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   103
XDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   104
XDM_ETC_CONFIGDIR=/etc/X11/xdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   105
XDM_USR_CONFIGDIR=/usr/lib/X11/xdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   106
XCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   107
XCF_ETC_SRCDIR=$(SOURCE_DIR)/config
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   108
XCF_ETC_BLDDIR=$(BUILD_DIR)/config
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   109
XCF_ETC_BLDFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_BLDDIR)/%)
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   110
XCF_USR_BLDDIR=$(BUILD_DIR)/config/annotated
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   111
XCF_USR_BLDFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_BLDDIR)/%)
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   112
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   113
build_xdm_configs: $(XCF_USR_SRCFILES)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   114
install_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   115
$(XCF_ETC_BLDFILES): default_build
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   116
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   117
XCF_HEADER = %1$$s----------------------------------------------------------------------------
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   118
XCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   119
XCF_HEADER += \n%1$$s configuration file provided for your reference.
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   120
XCF_HEADER += \n%1$$s
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   121
XCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   122
XCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   123
XCF_HEADER += \n%1$$s  a file specified via the -config command line option).
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   124
XCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   125
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   126
$(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_BLDDIR):
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   127
	mkdir -p $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   128
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   129
$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_BLDFILES)
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   130
	-rm -f $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   131
	mkdir -p $(PROTODIR)/$(XDM_USR_CONFIGDIR)
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   132
	cp -p $(XCF_USR_BLDDIR)/$(@F) $@
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   133
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   134
$(XCF_USR_BLDFILES): $(XCF_USR_BLDDIR) $(XCF_ETC_BLDFILES)
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   135
	-rm -f $@
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   136
	FILENAME=$(@F) ; \
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   137
	if [[ -f $(XCF_ETC_BLDDIR)/$${FILENAME} ]] ; then \
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   138
	    ORIGFILE="$(XCF_ETC_BLDDIR)/$${FILENAME}" ; \
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   139
	else \
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   140
	    ORIGFILE="$(XCF_ETC_SRCDIR)/$${FILENAME}" ; \
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   141
	fi ; \
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   142
	COMMENT_CHAR=$$(head -n 1 $${ORIGFILE}) ; \
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   143
	printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1440
diff changeset
   144
	cat $${ORIGFILE} >> $@
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   145
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   146
$(PROTODIR)/$(XDM_USR_CONFIGDIR)/README:$(PROTODIR)/$(XDM_USR_CONFIGDIR)  config-README.txt
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   147
	cp -p config-README.txt $@