Makefile revision 3260
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER START
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# The contents of this file are subject to the terms of the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Common Development and Distribution License (the "License").
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You may not use this file except in compliance with the License.
d63de4508a08b11f57c307a15eda3cd95485bf2cvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d63de4508a08b11f57c307a15eda3cd95485bf2cvboxsync# See the License for the specific language governing permissions
d63de4508a08b11f57c307a15eda3cd95485bf2cvboxsync# and limitations under the License.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# If applicable, add the following below this CDDL HEADER, with the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER END
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sha256:c10316fb003bd25eccbc08c77dd9057e053693e6527ffa2ea2cc4e08ccb87715
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsyncCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
2c691730ab202620fe427110841aa4e0075b7ccavboxsync# mod_gss subcomponent
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
2c691730ab202620fe427110841aa4e0075b7ccavboxsyncCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# instead of 'e'.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Remove -D_POSIX_PTHREAD_SEMANTICS and this comment after move to S12_45.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_POSIX_PTHREAD_SEMANTICS"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Force immediate binding because of chroot().
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copy Solaris modules and GSSAPI modules to proftpd source tree
3baadeafd9922582dad9b32431362e6296417dd8vboxsync ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# proftpd configure and build is not ready for run out of the source tree
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsync# Do not apply the standard license transforms for this component. The
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# license actions in the proftpd.p5m file are already tagged with the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# attributes.
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsync# libcheck and specific Perl Test::Unit version is required for full test