Makefile revision 455
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# and limitations under the License.
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# When distributing Covered Code, include this CDDL HEADER in each
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# CDDL HEADER END
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= sha1:823e94c24447936ade6ae3948fe638077e0ba933
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# mod_gss subcomponent
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# instead of 'e'.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.5
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Force immediate binding because of chroot().
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
80faf1588895fd26490f82f95a7a1b771df1c324Automatic UpdaterCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic UpdaterCONFIGURE_OPTIONS += --enable-buffer-size=16384
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater# Copy Solaris modules and GSSAPI modules to proftpd source tree
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# proftpd configure and build is not ready for run out of the source tree
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# libcheck and specific Perl Test::Unit version is required for full test