Makefile revision 618
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# CDDL HEADER START
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# The contents of this file are subject to the terms of the
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# Common Development and Distribution License (the "License").
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt# You may not use this file except in compliance with the License.
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# See the License for the specific language governing permissions
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# and limitations under the License.
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
7ec97ae74e42ec21b354fd2d1366313b41d947d6Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
002f1373374a0b72fc0329baa682917929bef168Tony Finch# information: Portions Copyright [yyyy] [name of copyright owner]
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# CDDL HEADER END
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan HuntHUMAN_VERSION= $(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:11c2951526476d9f52307aa714851463aa76aa61
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# mod_gss subcomponent
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan HuntCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
635e4351b04fd61ca6d853bdac6268c090b55129Mark AndrewsCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
635e4351b04fd61ca6d853bdac6268c090b55129Mark AndrewsCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# instead of 'e'.
1cf118a656f5fd210787908b845362077fc507f8Evan HuntCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Force immediate binding because of chroot().
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund SivaramanCONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund SivaramanCONFIGURE_OPTIONS += install_user=$(LOGNAME)
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund SivaramanCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
fd82c70695888c134287b8018296028c252d100eMukund SivaramanCONFIGURE_OPTIONS += --localstatedir=/var/run
fd82c70695888c134287b8018296028c252d100eMukund SivaramanCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt# Copy Solaris modules and GSSAPI modules to proftpd source tree
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
7e1a62eea2e4ba9d6c3fc718e679b965fa514f69Mark Andrews# proftpd configure and build is not ready for run out of the source tree
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# libcheck and specific Perl Test::Unit version is required for full test