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