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