Makefile revision 911
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson###############################################################################
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# xfs Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Use is subject to license terms.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Permission is hereby granted, free of charge, to any person obtaining a
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# copy of this software and associated documentation files (the
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# "Software"), to deal in the Software without restriction, including
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# without limitation the rights to use, copy, modify, merge, publish,
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# distribute, and/or sell copies of the Software, and to permit persons
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# to whom the Software is furnished to do so, provided that the above
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# copyright notice(s) and this permission notice appear in all copies of
8a66318e41ed14c5a88130e8c362610e8faa2121Mark Andrews# the Software and that both the above copyright notice(s) and this
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# permission notice appear in supporting documentation.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Except as contained in this notice, the name of a copyright holder
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# shall not be used in advertising or otherwise to promote the sale, use
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# or other dealings in this Software without prior written authorization
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# of the copyright holder.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Package name used in tarballs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_NAME=xfs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Version number (used in path names)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_VERSION=1.1.0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Checksums for upstream tarball
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_MD5 = 5cfc06a320f74f07a0aa73da62307e9a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA1 = 040dee6ff7628c192874447fb178a965c744eea9
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Patches to apply to source after unpacking, in order
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSOURCE_PATCHES = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein smf-manpage.patch \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein config-warning.patch
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUNTOUCHED_MANPAGES=*.man
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUN_PACKAGE=SUNWxwfs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_STABILITY=Committed
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Additional command line options to GNU autoconf configure script
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_CONFIG_OPTS= --sysconfdir=$(X11_DIR)/lib \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein --enable-syslog --enable-inetd --disable-devel-docs \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein --with-default-font-path='catalogue:/etc/X11/fontpath.d' \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein --with-default-config-file='/etc/X11/fs/config,$(X11_X11LIB_DIR)/fs/config,/etc/openwin/fs/fontserver.cfg,/usr/openwin/lib/X11/fontserver.cfg'
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Need to link with libfontenc in server private directory
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_LDFLAGS=$(X11_SERVERLIBS_LDFLAGS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_ADD_INSTALL_TARGETS = install_smf install_fsadmin
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../Makefile.inc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Make sure SMF manifest is valid before installing it
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeincheck_smf: xfs.xml
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein /usr/sbin/svccfg validate xfs.xml
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSMF_MANIFEST_DIR=/var/svc/manifest/application/x11
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall_smf: check_smf
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein mkdir -p $(PROTODIR)$(SMF_MANIFEST_DIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(INSTALL_SCRIPT) xfs.xml $(PROTODIR)$(SMF_MANIFEST_DIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall_fsadmin:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein mkdir -p $(PROTODIR)$(X11_DIR)/sbin \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(PROTODIR)$(X11_MAN_DIR)/man/man1
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(INSTALL_SCRIPT) -m 0755 fsadmin $(PROTODIR)$(X11_DIR)/sbin
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson $(INSTALL_SCRIPT) fsadmin.1 $(PROTODIR)$(X11_MAN_DIR)/man1
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson