Makefile revision 615
297be3708069ef31814d6d75c0d71a50a78feb03Mark Andrews# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
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
dc91524e4b73ee70908a295e3f2f62305680c5c2Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH= sha1:11c2951526476d9f52307aa714851463aa76aa61
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# mod_gss subcomponent
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
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.
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic Updater# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# instead of 'e'.
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Force immediate binding because of chroot().
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic UpdaterCONFIGURE_OPTIONS += install_user=$(LOGNAME)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic UpdaterCONFIGURE_OPTIONS += --localstatedir=/var/run
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic UpdaterCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic UpdaterCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic UpdaterCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic UpdaterCONFIGURE_OPTIONS += --enable-buffer-size=16384
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic Updater# Copy Solaris modules and GSSAPI modules to proftpd source tree
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
98b5a9d1099f72169c90de39712fc4f63e9d990eAutomatic Updater $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
c6d486af36165da7eb970354981d145249e342e4Mark Andrews $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
dc91524e4b73ee70908a295e3f2f62305680c5c2Automatic Updater $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
dc91524e4b73ee70908a295e3f2f62305680c5c2Automatic Updater# proftpd configure and build is not ready for run out of the source tree
dc91524e4b73ee70908a295e3f2f62305680c5c2Automatic Updater# libcheck and specific Perl Test::Unit version is required for full test