Makefile revision 3996
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# or http://www.opensolaris.org/os/licensing.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../../make-rules/shared-macros.mk
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_NAME= proftpd
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_VERSION= 1.3.5
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SUBVERSION=
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PROJECT_URL= http://www.proftpd.org/
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH= \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:c10316fb003bd25eccbc08c77dd9057e053693e6527ffa2ea2cc4e08ccb87715
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_BUGDB= service/ftp-server
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# mod_gss subcomponent
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_NAME_1= mod_gss
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_VERSION_1= 1.3.6
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH_1= \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
ac93437301f55ed69bf85883a497a75598c628f9Automatic UpdaterTPNO_PROFTPD= 17783
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTPNO_MOD_GSS= 13480
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updaterinclude $(WS_MAKE_RULES)/prep.mk
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(WS_MAKE_RULES)/configure.mk
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(WS_MAKE_RULES)/ips.mk
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# instead of 'e'.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinIPS_COMPONENT_VERSION= $(COMPONENT_VERSION)
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER"
68b30890ebd441a6a1ae3fdf71744d07d02cd030Mark Andrews# Force immediate binding because of chroot().
68b30890ebd441a6a1ae3fdf71744d07d02cd030Mark AndrewsCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += install_user=`id -nu`
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --localstatedir=/var/run
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-ipv6
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-ctrls
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-facl
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-nls
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-dso
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-openssl
b05bdb520d83f7ecaad708fe305268c3420be01dMark AndrewsCONFIGURE_OPTIONS += --disable-static
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-buffer-size=16384
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copy Solaris modules and GSSAPI modules to proftpd source tree
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PRE_CONFIGURE_ACTION = \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater cd $(BUILD_DIR) ; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater cd $(COMPONENT_SRC_1) ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrews $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater $(CLONEY) $(SOURCE_DIR) $(@D))
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# proftpd configure and build is not ready for run out of the source tree
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceCONFIGURE_SCRIPT = $(@D)/configure
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# Do not apply the standard license transforms for this component. The
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# license actions in the proftpd.p5m file are already tagged with the
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# attributes.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceLICENSE_TRANSFORMS =
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Lucebuild: $(BUILD_32)
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrewsinstall: $(INSTALL_32)
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Lucetest: $(NO_TESTS)
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# libcheck and specific Perl Test::Unit version is required for full test
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += library/security/openssl
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += service/security/kerberos-5
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += shell/ksh93
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += system/core-os
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += system/library
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += system/library/security/gss
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += system/linker
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += system/network
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews