Makefile revision 3932
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
23N/Ainclude ../../make-rules/shared-macros.mk
23N/A
23N/ACOMPONENT_NAME= proftpd
23N/ACOMPONENT_VERSION= 1.3.5
23N/ACOMPONENT_SUBVERSION=
23N/AHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
2N/ACOMPONENT_PROJECT_URL= http://www.proftpd.org/
2N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
2N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2N/ACOMPONENT_ARCHIVE_HASH= \
2N/A sha256:c10316fb003bd25eccbc08c77dd9057e053693e6527ffa2ea2cc4e08ccb87715
2N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
2N/ACOMPONENT_BUGDB= service/ftp-server
2N/A
2N/A# mod_gss subcomponent
6N/ACOMPONENT_NAME_1= mod_gss
2N/ACOMPONENT_VERSION_1= 1.3.6
2N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
2N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
2N/ACOMPONENT_ARCHIVE_HASH_1= \
2N/A sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
2N/ACOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
2N/A
2N/ATPNO_PROFTPD= 17783
2N/ATPNO_MOD_GSS= 13480
2N/A
2N/Ainclude $(WS_MAKE_RULES)/prep.mk
2N/Ainclude $(WS_MAKE_RULES)/configure.mk
6N/Ainclude $(WS_MAKE_RULES)/ips.mk
2N/A
2N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
2N/A# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
2N/A# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
2N/A# instead of 'e'.
2N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION)
2N/A
2N/A# Remove -D_POSIX_PTHREAD_SEMANTICS and this comment after move to S12_45.
6N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_POSIX_PTHREAD_SEMANTICS -D_SOLARIS_DTRACE"
6N/A# Force immediate binding because of chroot().
6N/ACONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
2N/ACONFIGURE_OPTIONS += install_user=`id -nu`
2N/ACONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
6N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
2N/ACONFIGURE_OPTIONS += --localstatedir=/var/run
2N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
CONFIGURE_OPTIONS += --enable-ipv6
CONFIGURE_OPTIONS += --enable-ctrls
CONFIGURE_OPTIONS += --enable-facl
CONFIGURE_OPTIONS += --enable-nls
CONFIGURE_OPTIONS += --enable-dso
CONFIGURE_OPTIONS += --enable-openssl
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
CONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
CONFIGURE_OPTIONS += --enable-buffer-size=16384
# Copy Solaris modules and GSSAPI modules to proftpd source tree.
COMPONENT_PRE_CONFIGURE_ACTION = \
($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
$(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
cd $(BUILD_DIR) ; \
$(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
cd $(COMPONENT_SRC_1) ; \
./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
$(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
$(CP) mod_gss.h $(SOURCE_DIR)/include ; \
$(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
$(CLONEY) $(SOURCE_DIR) $(@D))
# Build Solaris dtrace object files and copy to proftpd build tree.
COMPONENT_PRE_BUILD_ACTION = \
(cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH32)")
# proftpd configure and build is not ready for run out of the source tree
CONFIGURE_SCRIPT = $(@D)/configure
# Do not apply the standard license transforms for this component. The
# license actions in the proftpd.p5m file are already tagged with the
# attributes.
LICENSE_TRANSFORMS =
configure: $(CONFIGURE_32)
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
# libcheck and specific Perl Test::Unit version is required for full test
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += service/security/kerberos-5
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/linker
REQUIRED_PACKAGES += system/network