Makefile revision 1244
224N/A#
224N/A# CDDL HEADER START
224N/A#
224N/A# The contents of this file are subject to the terms of the
224N/A# Common Development and Distribution License (the "License").
224N/A# You may not use this file except in compliance with the License.
224N/A#
224N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
224N/A# or http://www.opensolaris.org/os/licensing.
224N/A# See the License for the specific language governing permissions
224N/A# and limitations under the License.
224N/A#
224N/A# When distributing Covered Code, include this CDDL HEADER in each
224N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
224N/A# If applicable, add the following below this CDDL HEADER, with the
224N/A# fields enclosed by brackets "[]" replaced with your own identifying
224N/A# information: Portions Copyright [yyyy] [name of copyright owner]
224N/A#
224N/A# CDDL HEADER END
224N/A#
5680N/A
5680N/A#
5296N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
224N/A#
5680N/A
224N/Ainclude ../../make-rules/shared-macros.mk
224N/A
224N/ACOMPONENT_NAME= proftpd
2624N/ACOMPONENT_VERSION= 1.3.3
5666N/ACOMPONENT_SUBVERSION= g
5666N/AHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
618N/ACOMPONENT_PROJECT_URL= http://www.proftpd.org/
224N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
2624N/A sha256:1705192f8053978fdfc02d89ff500b385d7703555ac311d31c0d1c3accaaec76
224N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
224N/A
1258N/A# mod_gss subcomponent
224N/ACOMPONENT_NAME_1= mod_gss
5198N/ACOMPONENT_VERSION_1= $(COMPONENT_VERSION)
2899N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
5680N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
224N/ACOMPONENT_ARCHIVE_HASH_1= \
5666N/A sha256:24702cf0333720730cc269eb30529061365b1384fdce274bc3d46ccfc300934e
5666N/ACOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
5666N/A
5666N/Ainclude ../../make-rules/prep.mk
5666N/Ainclude ../../make-rules/configure.mk
5666N/Ainclude ../../make-rules/ips.mk
5666N/A
5666N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
5666N/A# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
5666N/A# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
5680N/A# instead of 'e'.
5680N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.7
5680N/A
5666N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER"
5666N/A# Force immediate binding because of chroot().
5666N/ACONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
224N/ACONFIGURE_OPTIONS += install_user=$(LOGNAME)
5666N/ACONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
5666N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
224N/ACONFIGURE_OPTIONS += --localstatedir=/var/run
5666N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
5666N/ACONFIGURE_OPTIONS += --enable-ipv6
5666N/ACONFIGURE_OPTIONS += --enable-ctrls
5666N/ACONFIGURE_OPTIONS += --enable-facl
5666N/ACONFIGURE_OPTIONS += --enable-nls
5680N/ACONFIGURE_OPTIONS += --enable-dso
5680N/ACONFIGURE_OPTIONS += --enable-openssl
5666N/ACONFIGURE_OPTIONS += --disable-static
5680N/ACONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
224N/ACONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
5666N/ACONFIGURE_OPTIONS += --enable-buffer-size=16384
5666N/A
5666N/A# Copy Solaris modules and GSSAPI modules to proftpd source tree
1392N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5666N/A ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
5666N/A $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
5666N/A cd $(BUILD_DIR) ; \
3477N/A $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
5666N/A cd $(COMPONENT_SRC_1) ; \
5666N/A $(GPATCH) -p1 < ../../mod_gss-patches/*; \
224N/A ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
5666N/A $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
5666N/A $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
5666N/A $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
5666N/A $(CLONEY) $(SOURCE_DIR) $(@D))
5666N/A
5666N/A# proftpd configure and build is not ready for run out of the source tree
5666N/ACONFIGURE_SCRIPT = $(@D)/configure
5666N/A
224N/Abuild: $(BUILD_32)
5666N/A
5666N/Ainstall: $(INSTALL_32)
5666N/A
5666N/Atest: $(NO_TESTS)
224N/A# libcheck and specific Perl Test::Unit version is required for full test
5666N/A
224N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5666N/A
5666N/Ainclude ../../make-rules/depend.mk
5666N/A