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