Makefile revision 3260
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER START
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# The contents of this file are subject to the terms of the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Common Development and Distribution License (the "License").
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You may not use this file except in compliance with the License.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
d63de4508a08b11f57c307a15eda3cd95485bf2cvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d63de4508a08b11f57c307a15eda3cd95485bf2cvboxsync# or http://www.opensolaris.org/os/licensing.
d63de4508a08b11f57c307a15eda3cd95485bf2cvboxsync# See the License for the specific language governing permissions
d63de4508a08b11f57c307a15eda3cd95485bf2cvboxsync# and limitations under the License.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# If applicable, add the following below this CDDL HEADER, with the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER END
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude ../../make-rules/shared-macros.mk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_NAME= proftpd
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_VERSION= 1.3.5
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_SUBVERSION=
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_PROJECT_URL= http://www.proftpd.org/
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_ARCHIVE_HASH= \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sha256:c10316fb003bd25eccbc08c77dd9057e053693e6527ffa2ea2cc4e08ccb87715
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsyncCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_BUGDB= service/ftp-server
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
2c691730ab202620fe427110841aa4e0075b7ccavboxsync# mod_gss subcomponent
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_NAME_1= mod_gss
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_VERSION_1= 1.3.6
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
79dc091db288c096b6e03888a095477ded84f503vboxsyncCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_ARCHIVE_HASH_1= \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
2c691730ab202620fe427110841aa4e0075b7ccavboxsyncCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncTPNO_PROFTPD= 17783
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncTPNO_MOD_GSS= 13480
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude ../../make-rules/prep.mk
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsyncinclude ../../make-rules/configure.mk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude ../../make-rules/ips.mk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# instead of 'e'.
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsyncIPS_COMPONENT_VERSION= $(COMPONENT_VERSION)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Remove -D_POSIX_PTHREAD_SEMANTICS and this comment after move to S12_45.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_POSIX_PTHREAD_SEMANTICS"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Force immediate binding because of chroot().
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += install_user=`id -nu`
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
f03d2f859a6661088b765809ff4feb39bdd7a311vboxsyncCONFIGURE_OPTIONS += --localstatedir=/var/run
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
f2ca52afeb0baed982c05e9d8591e0e4c7539dbdvboxsyncCONFIGURE_OPTIONS += --enable-ipv6
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --enable-ctrls
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --enable-facl
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --enable-nls
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --enable-dso
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --enable-openssl
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --disable-static
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --enable-buffer-size=16384
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copy Solaris modules and GSSAPI modules to proftpd source tree
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = \
3baadeafd9922582dad9b32431362e6296417dd8vboxsync ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync cd $(BUILD_DIR) ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync cd $(COMPONENT_SRC_1) ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
f2ca52afeb0baed982c05e9d8591e0e4c7539dbdvboxsync $(CLONEY) $(SOURCE_DIR) $(@D))
49c9958a74e4a297fb7ec141ee764e872430f4bavboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# proftpd configure and build is not ready for run out of the source tree
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_SCRIPT = $(@D)/configure
62f795a8cb052ea10678f54272612bb087bab1a1vboxsync
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsync# Do not apply the standard license transforms for this component. The
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# license actions in the proftpd.p5m file are already tagged with the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# attributes.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncLICENSE_TRANSFORMS =
0bd6dc6980372bcbc72756dfd401df65640b13a7vboxsync
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsyncbuild: $(BUILD_32)
0bd6dc6980372bcbc72756dfd401df65640b13a7vboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinstall: $(INSTALL_32)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsynctest: $(NO_TESTS)
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsync# libcheck and specific Perl Test::Unit version is required for full test
c215a948010614887014a258c1751602d8bf7781vboxsync
4bc1bbf45f30ff3ca38c2ad006836e490972c7ccvboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude ../../make-rules/depend.mk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync