Makefile revision 586
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# The contents of this file are subject to the terms of the
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User# Common Development and Distribution License (the "License").
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# You may not use this file except in compliance with the License.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# or http://www.opensolaris.org/os/licensing.
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# See the License for the specific language governing permissions
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# CDDL HEADER END
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
1753d3c4d74241a847794f7e7cfd94cc79be6600Evan Hunt# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyinclude ../../make-rules/shared-macros.mk
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_NAME= proftpd
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_VERSION= 1.3.3
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_SUBVERSION= e
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_ARCHIVE_HASH= sha1:823e94c24447936ade6ae3948fe638077e0ba933
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# mod_gss subcomponent
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_NAME_1= mod_gss
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_VERSION_1= $(COMPONENT_VERSION)
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark AndrewsCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
3398334b3acda24b086957286288ca9852662b12Automatic UpdaterCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
d60212e03fbef1d3dd7f7eb05c0545cc373cb9fcAutomatic UpdaterCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/prep.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/configure.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/ips.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# instead of 'e'.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.5
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Force immediate binding because of chroot().
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += install_user=$(LOGNAME)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --localstatedir=/var/run
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --enable-ipv6
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --enable-ctrls
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --enable-facl
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --enable-nls
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --enable-dso
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --enable-openssl
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --disable-static
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --enable-buffer-size=16384
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Copy Solaris modules and GSSAPI modules to proftpd source tree
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_PRE_CONFIGURE_ACTION = \
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein cd $(BUILD_DIR) ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein cd $(COMPONENT_SRC_1) ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley $(CLONEY) $(SOURCE_DIR) $(@D))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# proftpd configure and build is not ready for run out of the source tree
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_SCRIPT = $(@D)/configure
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinbuild: $(BUILD_32)
f9f11eb54be19b7deedf3978496f71d81432a5eeJeremy Reed
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall: $(INSTALL_32)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleytest: $(NO_TESTS)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# libcheck and specific Perl Test::Unit version is required for full test
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/depend.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein