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