Makefile revision 615
4e10d188042815c5285edf00ea96896b862e0863aurium# CDDL HEADER START
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# The contents of this file are subject to the terms of the
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Common Development and Distribution License (the "License").
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# You may not use this file except in compliance with the License.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# See the License for the specific language governing permissions
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# and limitations under the License.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# When distributing Covered Code, include this CDDL HEADER in each
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# If applicable, add the following below this CDDL HEADER, with the
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# fields enclosed by brackets "[]" replaced with your own identifying
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# information: Portions Copyright [yyyy] [name of copyright owner]
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# CDDL HEADER END
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4e10d188042815c5285edf00ea96896b862e0863auriumHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
4e10d188042815c5285edf00ea96896b862e0863auriumCOMPONENT_ARCHIVE_HASH= sha1:11c2951526476d9f52307aa714851463aa76aa61
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
4e10d188042815c5285edf00ea96896b862e0863aurium# mod_gss subcomponent
4e10d188042815c5285edf00ea96896b862e0863auriumCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
4e10d188042815c5285edf00ea96896b862e0863auriumCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
4e10d188042815c5285edf00ea96896b862e0863auriumCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
4e10d188042815c5285edf00ea96896b862e0863aurium# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
4e10d188042815c5285edf00ea96896b862e0863aurium# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
4e10d188042815c5285edf00ea96896b862e0863aurium# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
4e10d188042815c5285edf00ea96896b862e0863aurium# instead of 'e'.
83aaf46c9feab529aeb9add871c05c3d1177afccauriumCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
83aaf46c9feab529aeb9add871c05c3d1177afccaurium# Force immediate binding because of chroot().
83aaf46c9feab529aeb9add871c05c3d1177afccauriumCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
4e10d188042815c5285edf00ea96896b862e0863auriumCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
83aaf46c9feab529aeb9add871c05c3d1177afccauriumCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
d4d3743f0388af16b07b640a8b145eee32f36f73Alex ValavanisCONFIGURE_OPTIONS += --enable-buffer-size=16384
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis# Copy Solaris modules and GSSAPI modules to proftpd source tree
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
d4d3743f0388af16b07b640a8b145eee32f36f73Alex Valavanis $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
83aaf46c9feab529aeb9add871c05c3d1177afccaurium# proftpd configure and build is not ready for run out of the source tree
83aaf46c9feab529aeb9add871c05c3d1177afccaurium# libcheck and specific Perl Test::Unit version is required for full test