Makefile revision 1924
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# CDDL HEADER START
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# The contents of this file are subject to the terms of the
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Common Development and Distribution License (the "License").
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# You may not use this file except in compliance with the License.
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# See the License for the specific language governing permissions
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# and limitations under the License.
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# CDDL HEADER END
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.proftpd.org/
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater sha256:fb80dd422969b8c900920a30a56f5e272862275d244d3857a980f5f2386ea912
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# mod_gss subcomponent
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic 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.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# instead of 'e'.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.3
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Force immediate binding because of chroot().
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterCONFIGURE_OPTIONS += --localstatedir=/var/run
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic UpdaterCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater# Copy Solaris modules and GSSAPI modules to proftpd source tree
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# proftpd configure and build is not ready for run out of the source tree
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater# Do not apply the standard license transforms for this component. The
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater# license actions in the proftpd.p5m file are already tagged with the
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# attributes.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# libcheck and specific Perl Test::Unit version is required for full test