Makefile revision 586
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# The contents of this file are subject to the terms of the
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User# Common Development and Distribution License (the "License").
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# You may not use this file except in compliance with the License.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# or http://www.opensolaris.org/os/licensing.
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# See the License for the specific language governing permissions
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# CDDL HEADER END
1753d3c4d74241a847794f7e7cfd94cc79be6600Evan Hunt# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_ARCHIVE_HASH= sha1:823e94c24447936ade6ae3948fe638077e0ba933
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# mod_gss subcomponent
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
3398334b3acda24b086957286288ca9852662b12Automatic UpdaterCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
d60212e03fbef1d3dd7f7eb05c0545cc373cb9fcAutomatic UpdaterCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# instead of 'e'.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Force immediate binding because of chroot().
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Copy Solaris modules and GSSAPI modules to proftpd source tree
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# proftpd configure and build is not ready for run out of the source tree
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# libcheck and specific Perl Test::Unit version is required for full test