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