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