4134N/A#
4134N/A# CDDL HEADER START
4134N/A#
4134N/A# The contents of this file are subject to the terms of the
4134N/A# Common Development and Distribution License (the "License").
4134N/A# You may not use this file except in compliance with the License.
4134N/A#
4134N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4134N/A# or http://www.opensolaris.org/os/licensing.
4134N/A# See the License for the specific language governing permissions
4134N/A# and limitations under the License.
4134N/A#
4134N/A# When distributing Covered Code, include this CDDL HEADER in each
4134N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4134N/A# If applicable, add the following below this CDDL HEADER, with the
4134N/A# fields enclosed by brackets "[]" replaced with your own identifying
4134N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4134N/A#
4134N/A# CDDL HEADER END
4134N/A#
4134N/A
4134N/A#
4134N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4134N/A#
4170N/ABUILD_BITS= 64
5707N/Ainclude ../../make-rules/shared-macros.mk
4134N/A
4134N/ACOMPONENT_NAME= proftpd
4134N/ACOMPONENT_VERSION= 1.3.5
4134N/ACOMPONENT_SUBVERSION= b
4134N/AHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
4134N/ACOMPONENT_PROJECT_URL= http://www.proftpd.org/
4134N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
4134N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4134N/ACOMPONENT_ARCHIVE_HASH= \
4134N/A sha256:afc1789f2478acf88dfdc7d70da90a4fa2786d628218e9574273295d044b4fc8
4134N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
4134N/ACOMPONENT_BUGDB= service/proftpd
4134N/ATPNO_PROFTPD= 27604
4134N/A
4134N/A# mod_gss subcomponent
4134N/ACOMPONENT_NAME_1= mod_gss
4134N/ACOMPONENT_VERSION_1= 1.3.6
4134N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
4134N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
4134N/ACOMPONENT_ARCHIVE_HASH_1= \
4134N/A sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
4134N/ACOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
4134N/ATPNO_MOD_GSS= 13480
4134N/A
4134N/A# Requires 64-bit version of libwrap from ON, available in S12 but not 11.3,
4170N/A# so do not publish.
4170N/Aifeq ($(BUILD_TYPE), evaluation)
4170N/ABUILD_64=
4134N/AINSTALL_64=
5707N/APUBLISH_STAMP=
4134N/Aendif
4170N/A
4170N/A# Enable adiheap and adistack security extensions
4134N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
4134N/AADISTACK_MODE = $(ADISTACK_ENABLE)
4134N/A
4134N/A# libcheck and specific Perl Test::Unit version is required for full test
4170N/ATEST_TARGET= $(SKIP_TEST)
4170N/Ainclude $(WS_MAKE_RULES)/common.mk
4170N/A
4170N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
4170N/A# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
4170N/A# Because the IPS_COMPONENT_VERSION cannot contain letters
4170N/A# ...we will use '.2' instead of 'b'.
4170N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).2
4170N/A
4170N/ACFLAGS += -I$(USRINCDIR)/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE
4134N/Aifeq ($(OS_VERSION), 5.11)
4134N/ACFLAGS += -D_POSIX_PTHREAD_SEMANTICS
4134N/Aendif
4134N/ALDFLAGS += -m$(BITS)
4134N/A# Force immediate (no-lazy) binding because of chroot() can loose the access into (/usr)/lib
4134N/ALDFLAGS += -z guidance=nolazyload -z nolazyload -lbsm
4134N/A
4134N/ACONFIGURE_OPTIONS += install_user=`id -nu`
4134N/ACONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
4134N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
4134N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/run
4134N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd/$(MACH64)
4134N/ACONFIGURE_OPTIONS += --enable-ipv6
4134N/ACONFIGURE_OPTIONS += --enable-ctrls
4134N/ACONFIGURE_OPTIONS += --enable-facl
4134N/ACONFIGURE_OPTIONS += --enable-nls
4134N/ACONFIGURE_OPTIONS += --enable-dso
4134N/ACONFIGURE_OPTIONS += --enable-openssl
4170N/ACONFIGURE_OPTIONS += --disable-static
4170N/ACONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
4194N/ACONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
4194N/ACONFIGURE_OPTIONS += --enable-buffer-size=16384
4134N/A
4134N/A# Copy Solaris modules and GSSAPI modules to proftpd source tree.
4134N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
4134N/A ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
4134N/A $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
4134N/A cd $(BUILD_DIR) ; \
4134N/A $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
4134N/A cd $(COMPONENT_SRC_1) ; \
4170N/A ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
4134N/A $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
4134N/A $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
4134N/A $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
4134N/A $(CLONEY) $(SOURCE_DIR) $(@D))
4134N/A
4134N/A# Build Solaris dtrace object files and copy to proftpd build tree.
4134N/ACOMPONENT_PRE_BUILD_ACTION = \
4134N/A (cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH$(BITS))" BITS="$(BITS)")
4134N/A
4170N/A# proftpd configure and build is not ready for run out of the source tree
4170N/ACONFIGURE_SCRIPT = $(@D)/configure
4170N/A
4170N/A# Do not apply the standard license transforms for this component. The
4170N/A# license actions in the proftpd.p5m file are already tagged with the
4170N/A# attributes.
4170N/ALICENSE_TRANSFORMS =
4170N/A
4170N/AREQUIRED_PACKAGES += library/security/openssl
4170N/AREQUIRED_PACKAGES += security/kerberos-5
4170N/AREQUIRED_PACKAGES += shell/ksh93
4170N/AREQUIRED_PACKAGES += system/core-os
4170N/AREQUIRED_PACKAGES += system/network
4170N/A