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