Makefile revision 1258
4a81c8eb2a61b43a9dd0879a65feb834a6dde1d5stoddard# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# You may not use this file except in compliance with the License.
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# See the License for the specific language governing permissions
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# and limitations under the License.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# When distributing Covered Code, include this CDDL HEADER in each
4a81c8eb2a61b43a9dd0879a65feb834a6dde1d5stoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4a81c8eb2a61b43a9dd0879a65feb834a6dde1d5stoddard# If applicable, add the following below this CDDL HEADER, with the
4a81c8eb2a61b43a9dd0879a65feb834a6dde1d5stoddard# fields enclosed by brackets "[]" replaced with your own identifying
4a81c8eb2a61b43a9dd0879a65feb834a6dde1d5stoddard# information: Portions Copyright [yyyy] [name of copyright owner]
4a81c8eb2a61b43a9dd0879a65feb834a6dde1d5stoddard# CDDL HEADER END
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddardHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj sha256:1705192f8053978fdfc02d89ff500b385d7703555ac311d31c0d1c3accaaec76
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manojCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# mod_gss subcomponent
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
10b386767f6c87b45937244371cb751f0b454d16wrowe sha256:24702cf0333720730cc269eb30529061365b1384fdce274bc3d46ccfc300934e
10b386767f6c87b45937244371cb751f0b454d16wroweCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
75960f20f88dad6bc67892c711c429946063d133stoddard# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
75960f20f88dad6bc67892c711c429946063d133stoddard# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
10b386767f6c87b45937244371cb751f0b454d16wrowe# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
10b386767f6c87b45937244371cb751f0b454d16wrowe# instead of 'e'.
10b386767f6c87b45937244371cb751f0b454d16wroweCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER"
10b386767f6c87b45937244371cb751f0b454d16wrowe# Force immediate binding because of chroot().
10b386767f6c87b45937244371cb751f0b454d16wroweCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
10b386767f6c87b45937244371cb751f0b454d16wroweCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
2a6c49cfaef5979a5a06098f3ce987cd76769409manojCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
b187d568e1507d75139ebc13ca945b38fc05d55cstoddardCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard# Copy Solaris modules and GSSAPI modules to proftpd source tree
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
8bed76428f56e5c643174a2d6807c3f18016af5cbjh ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
8bed76428f56e5c643174a2d6807c3f18016af5cbjh $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard# proftpd configure and build is not ready for run out of the source tree
10b386767f6c87b45937244371cb751f0b454d16wrowe# libcheck and specific Perl Test::Unit version is required for full test