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#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
305N/A#
5969N/ABUILD_BITS= 64
305N/Ainclude ../../make-rules/shared-macros.mk
305N/A
305N/ACOMPONENT_NAME= proftpd
2912N/ACOMPONENT_VERSION= 1.3.5
5854N/ACOMPONENT_SUBVERSION= b
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= \
5854N/A sha256:afc1789f2478acf88dfdc7d70da90a4fa2786d628218e9574273295d044b4fc8
305N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
4949N/ACOMPONENT_BUGDB= service/proftpd
5854N/ATPNO_PROFTPD= 27604
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)
2899N/ATPNO_MOD_GSS= 13480
2899N/A
6010N/A# Requires 64-bit version of libwrap from ON, available in S12 but not 11.3,
6010N/A# so do not publish.
6010N/Aifeq ($(BUILD_TYPE), evaluation)
6010N/ABUILD_64=
6010N/AINSTALL_64=
6010N/APUBLISH_STAMP=
6010N/Aendif
6010N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
5680N/A# libcheck and specific Perl Test::Unit version is required for full test
5680N/ATEST_TARGET= $(SKIP_TEST)
5680N/Ainclude $(WS_MAKE_RULES)/common.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.
5970N/A# Because the IPS_COMPONENT_VERSION cannot contain letters
5970N/A# ...we will use '.2' instead of 'b'.
5970N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).2
305N/A
5680N/ACFLAGS += -I$(USRINCDIR)/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE
5704N/Aifeq ($(OS_VERSION), 5.11)
5704N/ACFLAGS += -D_POSIX_PTHREAD_SEMANTICS
5704N/Aendif
5969N/ALDFLAGS += -m$(BITS)
6698N/A# Force immediate (no-lazy) binding because of chroot() can loose the access into (/usr)/lib
6697N/ALDFLAGS += -z guidance=nolazyload -z nolazyload -lbsm
5704N/A
1794N/ACONFIGURE_OPTIONS += install_user=`id -nu`
305N/ACONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
305N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/run
5969N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd/$(MACH64)
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
3932N/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
3932N/A# Build Solaris dtrace object files and copy to proftpd build tree.
3932N/ACOMPONENT_PRE_BUILD_ACTION = \
5969N/A (cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH$(BITS))" BITS="$(BITS)")
3932N/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
3817N/AREQUIRED_PACKAGES += library/security/openssl
6067N/AREQUIRED_PACKAGES += security/kerberos-5
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/network