Makefile revision 3996
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# 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
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:c10316fb003bd25eccbc08c77dd9057e053693e6527ffa2ea2cc4e08ccb87715
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.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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"
68b30890ebd441a6a1ae3fdf71744d07d02cd030Mark Andrews# Force immediate binding because of chroot().
68b30890ebd441a6a1ae3fdf71744d07d02cd030Mark AndrewsCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_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
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrews $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# proftpd configure and build is not ready for run out of the source tree
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# Do not apply the standard license transforms for this component. The
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# license actions in the proftpd.p5m file are already tagged with the
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# attributes.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# libcheck and specific Perl Test::Unit version is required for full test