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