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