Makefile revision 5970
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User# CDDL HEADER START
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The contents of this file are subject to the terms of the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Common Development and Distribution License (the "License").
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sha256:afc1789f2478acf88dfdc7d70da90a4fa2786d628218e9574273295d044b4fc8
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# mod_gss subcomponent
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# libcheck and specific Perl Test::Unit version is required for full test
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Because the IPS_COMPONENT_VERSION cannot contain letters
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# ...we will use '.2' instead of 'b'.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).2
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCFLAGS += -I$(USRINCDIR)/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonLDFLAGS += -z guidance=nolazyload -z nolazyload -lbsm -z guidance=lazyload -z lazyload
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Force immediate binding because of chroot().
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += install_user=`id -nu`
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd/$(MACH64)
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas GustafssonCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Copy Solaris modules and GSSAPI modules to proftpd source tree.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Build Solaris dtrace object files and copy to proftpd build tree.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH$(BITS))" BITS="$(BITS)")
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# proftpd configure and build is not ready for run out of the source tree
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Do not apply the standard license transforms for this component. The
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# license actions in the proftpd.p5m file are already tagged with the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# attributes.