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