Makefile revision 919
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER START
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# The contents of this file are subject to the terms of the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Common Development and Distribution License (the "License").
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You may not use this file except in compliance with the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b2bd54c98edb185a3985410367754ab33217362bnicholes# or http://www.opensolaris.org/os/licensing.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# See the License for the specific language governing permissions
9b2bd54c98edb185a3985410367754ab33217362bnicholes# and limitations under the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# When distributing Covered Code, include this CDDL HEADER in each
9b2bd54c98edb185a3985410367754ab33217362bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If applicable, add the following below this CDDL HEADER, with the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
9b2bd54c98edb185a3985410367754ab33217362bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER END
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/shared-macros.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_NAME= proftpd
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_VERSION= 1.3.3
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_SUBVERSION= g
9b2bd54c98edb185a3985410367754ab33217362bnicholesHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_PROJECT_URL= http://www.proftpd.org/
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_HASH= \
9b2bd54c98edb185a3985410367754ab33217362bnicholes sha256:1705192f8053978fdfc02d89ff500b385d7703555ac311d31c0d1c3accaaec76
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# mod_gss subcomponent
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_NAME_1= mod_gss
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_VERSION_1= $(COMPONENT_VERSION)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_HASH_1= \
9b2bd54c98edb185a3985410367754ab33217362bnicholes sha256:24702cf0333720730cc269eb30529061365b1384fdce274bc3d46ccfc300934e
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/prep.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/configure.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/ips.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
9b2bd54c98edb185a3985410367754ab33217362bnicholes# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
9b2bd54c98edb185a3985410367754ab33217362bnicholes# instead of 'e'.
9b2bd54c98edb185a3985410367754ab33217362bnicholesIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.7
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Force immediate binding because of chroot().
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += install_user=$(LOGNAME)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --localstatedir=/var/run
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --enable-ipv6
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --enable-ctrls
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --enable-facl
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --enable-nls
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --enable-dso
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --enable-openssl
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --disable-static
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --enable-buffer-size=16384
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Copy Solaris modules and GSSAPI modules to proftpd source tree
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_PRE_CONFIGURE_ACTION = \
9b2bd54c98edb185a3985410367754ab33217362bnicholes ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes cd $(BUILD_DIR) ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes cd $(COMPONENT_SRC_1) ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(CLONEY) $(SOURCE_DIR) $(@D))
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# proftpd configure and build is not ready for run out of the source tree
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_SCRIPT = $(@D)/configure
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesbuild: $(BUILD_32)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall: $(INSTALL_32)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholestest: $(NO_TESTS)
9b2bd54c98edb185a3985410367754ab33217362bnicholes# libcheck and specific Perl Test::Unit version is required for full test
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/depend.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholes