Makefile revision 305
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
35006c658c32693022c67b70a3fcf53399e36bd7covener# The contents of this file are subject to the terms of the
35006c658c32693022c67b70a3fcf53399e36bd7covener# Common Development and Distribution License (the "License").
35006c658c32693022c67b70a3fcf53399e36bd7covener# You may not use this file except in compliance with the License.
35006c658c32693022c67b70a3fcf53399e36bd7covener# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# See the License for the specific language governing permissions
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# and limitations under the License.
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# When distributing Covered Code, include this CDDL HEADER in each
ee2d5a53a0fddf6c9e50ada6ad163ec7ee14cac3jailletc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ee2d5a53a0fddf6c9e50ada6ad163ec7ee14cac3jailletc# If applicable, add the following below this CDDL HEADER, with the
ee2d5a53a0fddf6c9e50ada6ad163ec7ee14cac3jailletc# fields enclosed by brackets "[]" replaced with your own identifying
7a1dee936d2bd3e4e70dd8a6e0090f8582ee2a8bylavic# information: Portions Copyright [yyyy] [name of copyright owner]
7a1dee936d2bd3e4e70dd8a6e0090f8582ee2a8bylavic# CDDL HEADER END
ac7482772673c7dab4afbf53649e07030fd57a8eylavic# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
dd1e093863f13a4a3fbf09497cbd5cb039fadd76ylavicCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
dd1e093863f13a4a3fbf09497cbd5cb039fadd76ylavicCOMPONENT_ARCHIVE_HASH= sha1:823e94c24447936ade6ae3948fe638077e0ba933
dd1e093863f13a4a3fbf09497cbd5cb039fadd76ylavicCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# mod_gss subcomponent
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
d7205b1a86c51c27b71a2c458dc453fd53a261c1covenerCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
44ff304057225e944e220e981d434a046d14cf06covener# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
44ff304057225e944e220e981d434a046d14cf06covener# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
44ff304057225e944e220e981d434a046d14cf06covener# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
ea30bfa68d711e27206df00abb140174b4e65ed7ylavic# instead of 'e'.
ea30bfa68d711e27206df00abb140174b4e65ed7ylavicCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
291eb44b3adaf8247425286615b4f4b69fbea274minfrinCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
5d1ba75b8794925e67591c209085a49279791de9covenerCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
caad2986f81ab263f7af41467dd622dc9add17f3ylavicCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
45a10d38e6051fd7bdf9d742aaae633d97ff02abjailletcCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
f7317ff316c2b141feea31bddb74d5d3fa1584edjorton# Copy Solaris modules and GSSAPI modules to proftpd source tree
939a5386274c80af51ee9fff4b0ca29f0c799da5covener ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
4472df9a373740420f81c4c14a331b54d2f91603covener $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
4472df9a373740420f81c4c14a331b54d2f91603covener ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
2165214331e4afafca4048f66f303d0253d7b001covener $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
08e054046d0c7e5532c66769ba80c69a7b4d8245ylavic# proftpd configure and build is not ready for run out of the source tree
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedooh# libcheck and specific Perl Test::Unit version is required for full test