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