Makefile revision 586
377N/A#
377N/A# CDDL HEADER START
377N/A#
377N/A# The contents of this file are subject to the terms of the
377N/A# Common Development and Distribution License (the "License").
377N/A# You may not use this file except in compliance with the License.
377N/A#
377N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
377N/A# or http://www.opensolaris.org/os/licensing.
377N/A# See the License for the specific language governing permissions
377N/A# and limitations under the License.
377N/A#
377N/A# When distributing Covered Code, include this CDDL HEADER in each
377N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
377N/A# If applicable, add the following below this CDDL HEADER, with the
377N/A# fields enclosed by brackets "[]" replaced with your own identifying
377N/A# information: Portions Copyright [yyyy] [name of copyright owner]
377N/A#
377N/A# CDDL HEADER END
377N/A#
1938N/A
377N/A#
377N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
377N/A#
1244N/A
377N/Ainclude ../../make-rules/shared-macros.mk
1244N/A
1244N/ACOMPONENT_NAME= proftpd
377N/ACOMPONENT_VERSION= 1.3.3
377N/ACOMPONENT_SUBVERSION= e
844N/AHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
377N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1258N/ACOMPONENT_ARCHIVE_HASH= sha1:823e94c24447936ade6ae3948fe638077e0ba933
377N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
377N/A
377N/A# mod_gss subcomponent
377N/ACOMPONENT_NAME_1= mod_gss
377N/ACOMPONENT_VERSION_1= $(COMPONENT_VERSION)
377N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
377N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
377N/ACOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
377N/ACOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
377N/A
377N/Ainclude ../../make-rules/prep.mk
377N/Ainclude ../../make-rules/configure.mk
377N/Ainclude ../../make-rules/ips.mk
377N/A
377N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
377N/A# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
377N/A# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
1938N/A# instead of 'e'.
1938N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.5
377N/A
377N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
377N/A# Force immediate binding because of chroot().
377N/ACONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
377N/ACONFIGURE_OPTIONS += install_user=$(LOGNAME)
377N/ACONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
377N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
377N/ACONFIGURE_OPTIONS += --localstatedir=/var/run
377N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
377N/ACONFIGURE_OPTIONS += --enable-ipv6
CONFIGURE_OPTIONS += --enable-ctrls
CONFIGURE_OPTIONS += --enable-facl
CONFIGURE_OPTIONS += --enable-nls
CONFIGURE_OPTIONS += --enable-dso
CONFIGURE_OPTIONS += --enable-openssl
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
CONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
CONFIGURE_OPTIONS += --enable-buffer-size=16384
# 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))
# proftpd configure and build is not ready for run out of the source tree
CONFIGURE_SCRIPT = $(@D)/configure
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
# libcheck and specific Perl Test::Unit version is required for full test
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk