Makefile revision 5969
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#
58N/A
2N/A#
2N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/ABUILD_BITS= 64
23N/Ainclude ../../make-rules/shared-macros.mk
23N/A
23N/ACOMPONENT_NAME= proftpd
23N/ACOMPONENT_VERSION= 1.3.5
23N/ACOMPONENT_SUBVERSION= b
32N/AHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
32N/ACOMPONENT_PROJECT_URL= http://www.proftpd.org/
32N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
34N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
32N/ACOMPONENT_ARCHIVE_HASH= \
34N/A sha256:afc1789f2478acf88dfdc7d70da90a4fa2786d628218e9574273295d044b4fc8
32N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
32N/ACOMPONENT_BUGDB= service/proftpd
58N/ATPNO_PROFTPD= 27604
32N/A
225N/A# mod_gss subcomponent
225N/ACOMPONENT_NAME_1= mod_gss
225N/ACOMPONENT_VERSION_1= 1.3.6
225N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
225N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
225N/ACOMPONENT_ARCHIVE_HASH_1= \
225N/A sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
225N/ACOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
225N/ATPNO_MOD_GSS= 13480
225N/A
2N/A# libcheck and specific Perl Test::Unit version is required for full test
38N/ATEST_TARGET= $(SKIP_TEST)
38N/Ainclude $(WS_MAKE_RULES)/common.mk
38N/A
38N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
38N/A# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
38N/A# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
38N/A# instead of 'e'.
83N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION)
83N/A
99N/ACFLAGS += -I$(USRINCDIR)/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE
2N/Aifeq ($(OS_VERSION), 5.11)
92N/ACFLAGS += -D_POSIX_PTHREAD_SEMANTICS
92N/Aendif
92N/ALDFLAGS += -m$(BITS)
2N/ALDFLAGS += -z guidance=nolazyload -z nolazyload -lbsm -z guidance=lazyload -z lazyload
2N/A
313N/A# Force immediate binding because of chroot().
2N/ACONFIGURE_OPTIONS += install_user=`id -nu`
34N/ACONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
2N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
313N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/run
313N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd/$(MACH64)
313N/ACONFIGURE_OPTIONS += --enable-ipv6
34N/ACONFIGURE_OPTIONS += --enable-ctrls
2N/ACONFIGURE_OPTIONS += --enable-facl
313N/ACONFIGURE_OPTIONS += --enable-nls
53N/ACONFIGURE_OPTIONS += --enable-dso
34N/ACONFIGURE_OPTIONS += --enable-openssl
70N/ACONFIGURE_OPTIONS += --disable-static
2N/ACONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
2N/ACONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
2N/ACONFIGURE_OPTIONS += --enable-buffer-size=16384
2N/A
70N/A# Copy Solaris modules and GSSAPI modules to proftpd source tree.
105N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
105N/A ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
2N/A $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
70N/A cd $(BUILD_DIR) ; \
70N/A $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
70N/A cd $(COMPONENT_SRC_1) ; \
70N/A ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
70N/A $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
70N/A $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
70N/A $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
70N/A $(CLONEY) $(SOURCE_DIR) $(@D))
70N/A
70N/A# Build Solaris dtrace object files and copy to proftpd build tree.
6N/ACOMPONENT_PRE_BUILD_ACTION = \
6N/A (cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH$(BITS))" BITS="$(BITS)")
6N/A
34N/A# proftpd configure and build is not ready for run out of the source tree
34N/ACONFIGURE_SCRIPT = $(@D)/configure
34N/A
34N/A# Do not apply the standard license transforms for this component. The
34N/A# license actions in the proftpd.p5m file are already tagged with the
34N/A# attributes.
34N/ALICENSE_TRANSFORMS =
313N/A
38N/AREQUIRED_PACKAGES += library/security/openssl
34N/AREQUIRED_PACKAGES += service/security/kerberos-5
38N/AREQUIRED_PACKAGES += shell/ksh93
34N/AREQUIRED_PACKAGES += system/core-os
92N/AREQUIRED_PACKAGES += system/library/security/gss
145N/AREQUIRED_PACKAGES += system/network
92N/A