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