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