Makefile revision 305
448a83963e3ec557bc9f9020ab44f9681595d1eerbb#
448a83963e3ec557bc9f9020ab44f9681595d1eerbb# CDDL HEADER START
9180a5933673ffb1af633c255ceee029340f3b1erbb#
448a83963e3ec557bc9f9020ab44f9681595d1eerbb# The contents of this file are subject to the terms of the
e654452796751e21828a4078767e075eccf3b232stoddard# Common Development and Distribution License (the "License").
e654452796751e21828a4078767e075eccf3b232stoddard# You may not use this file except in compliance with the License.
e654452796751e21828a4078767e075eccf3b232stoddard#
e654452796751e21828a4078767e075eccf3b232stoddard# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e654452796751e21828a4078767e075eccf3b232stoddard# or http://www.opensolaris.org/os/licensing.
e654452796751e21828a4078767e075eccf3b232stoddard# See the License for the specific language governing permissions
4670899d8a45ac6add3105181adf1976a1fae109stoddard# and limitations under the License.
4670899d8a45ac6add3105181adf1976a1fae109stoddard#
85986096003221e8eb135ad1fda59a57c3d0528brbb# When distributing Covered Code, include this CDDL HEADER in each
cf293fe6e2515d89788ec515ce6266ad6f13a724stoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley# If applicable, add the following below this CDDL HEADER, with the
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley# fields enclosed by brackets "[]" replaced with your own identifying
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley# information: Portions Copyright [yyyy] [name of copyright owner]
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley#
cbed27f4c149736a6319a790c81aa8acc491fa18jwoolley# CDDL HEADER END
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley#
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley
8ff9257331986cb3646442ab61703fcc02158046trawick#
7537a55be7520037878a521d4ec8c8eb2d44a288rbb# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
7537a55be7520037878a521d4ec8c8eb2d44a288rbb#
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbbinclude ../../make-rules/shared-macros.mk
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbbCOMPONENT_NAME= proftpd
7537a55be7520037878a521d4ec8c8eb2d44a288rbbCOMPONENT_VERSION= 1.3.3
7537a55be7520037878a521d4ec8c8eb2d44a288rbbCOMPONENT_SUBVERSION= e
7537a55be7520037878a521d4ec8c8eb2d44a288rbbCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)$(COMPONENT_SUBVERSION)
7537a55be7520037878a521d4ec8c8eb2d44a288rbbCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7537a55be7520037878a521d4ec8c8eb2d44a288rbbCOMPONENT_ARCHIVE_HASH= sha1:823e94c24447936ade6ae3948fe638077e0ba933
7537a55be7520037878a521d4ec8c8eb2d44a288rbbCOMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE)
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wrowe
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wrowe# mod_gss subcomponent
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wroweCOMPONENT_NAME_1= mod_gss
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wroweCOMPONENT_VERSION_1= $(COMPONENT_VERSION)
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wroweCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
01f404bacecbd1354af8f04c23a28acef5044e73jwoolleyCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
01f404bacecbd1354af8f04c23a28acef5044e73jwoolleyCOMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522
01f404bacecbd1354af8f04c23a28acef5044e73jwoolleyCOMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
54f7f1c85247dad29d8fa275866cea31d465b392stoddard
54f7f1c85247dad29d8fa275866cea31d465b392stoddardinclude ../../make-rules/prep.mk
54f7f1c85247dad29d8fa275866cea31d465b392stoddardinclude ../../make-rules/configure.mk
54f7f1c85247dad29d8fa275866cea31d465b392stoddardinclude ../../make-rules/ips.mk
01f404bacecbd1354af8f04c23a28acef5044e73jwoolley
54f7f1c85247dad29d8fa275866cea31d465b392stoddard# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
3af8fbdd62c9495c8f879eef1eb952a638a18a7adougm# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
3af8fbdd62c9495c8f879eef1eb952a638a18a7adougm# Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawick# instead of 'e'.
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawickIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.5
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawick
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawickCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
227e0bfd39e7c757d3618c8ada78d80cd1143d32wroweCONFIGURE_OPTIONS += LDFLAGS="-lbsm"
227e0bfd39e7c757d3618c8ada78d80cd1143d32wroweCONFIGURE_OPTIONS += install_user=$(LOGNAME)
227e0bfd39e7c757d3618c8ada78d80cd1143d32wroweCONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '`
227e0bfd39e7c757d3618c8ada78d80cd1143d32wroweCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
8ff9257331986cb3646442ab61703fcc02158046trawickCONFIGURE_OPTIONS += --localstatedir=/var/run
8ff9257331986cb3646442ab61703fcc02158046trawickCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd
8ff9257331986cb3646442ab61703fcc02158046trawickCONFIGURE_OPTIONS += --enable-ipv6
8ff9257331986cb3646442ab61703fcc02158046trawickCONFIGURE_OPTIONS += --enable-ctrls
8ff9257331986cb3646442ab61703fcc02158046trawickCONFIGURE_OPTIONS += --enable-facl
d9b416f8cfaaadcbc739cd8c7c356e76efdd3a2agregamesCONFIGURE_OPTIONS += --enable-nls
d9b416f8cfaaadcbc739cd8c7c356e76efdd3a2agregamesCONFIGURE_OPTIONS += --enable-dso
d9b416f8cfaaadcbc739cd8c7c356e76efdd3a2agregamesCONFIGURE_OPTIONS += --enable-openssl
d9b416f8cfaaadcbc739cd8c7c356e76efdd3a2agregamesCONFIGURE_OPTIONS += --disable-static
d9b416f8cfaaadcbc739cd8c7c356e76efdd3a2agregamesCONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv
4192c91889a84b18aec0b046a94a2b2863be204cstoddardCONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss
4192c91889a84b18aec0b046a94a2b2863be204cstoddard
4192c91889a84b18aec0b046a94a2b2863be204cstoddard# Copy Solaris modules and GSSAPI modules to proftpd source tree
4192c91889a84b18aec0b046a94a2b2863be204cstoddardCOMPONENT_PRE_CONFIGURE_ACTION = \
4192c91889a84b18aec0b046a94a2b2863be204cstoddard ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \
4192c91889a84b18aec0b046a94a2b2863be204cstoddard $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \
4192c91889a84b18aec0b046a94a2b2863be204cstoddard cd $(BUILD_DIR) ; \
7af2fcad9e14a79d7020a33766fbd3a4dfd088dcorlikowski $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \
7af2fcad9e14a79d7020a33766fbd3a4dfd088dcorlikowski cd $(COMPONENT_SRC_1) ; \
7af2fcad9e14a79d7020a33766fbd3a4dfd088dcorlikowski ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \
b9d82dd4bc49204d9c2c5523e36b3109da298c04wrowe $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \
7cc9511b8f1fff69439041327dc55e3423ccf439stoddard $(CP) mod_gss.h $(SOURCE_DIR)/include ; \
7cc9511b8f1fff69439041327dc55e3423ccf439stoddard $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \
7cc9511b8f1fff69439041327dc55e3423ccf439stoddard $(CLONEY) $(SOURCE_DIR) $(@D))
b9d82dd4bc49204d9c2c5523e36b3109da298c04wrowe
b9d82dd4bc49204d9c2c5523e36b3109da298c04wrowe# proftpd configure and build is not ready for run out of the source tree
1ccb67ea7d1f2a3747d285835fd0ce0d123b66b2orlikowskiCONFIGURE_SCRIPT = $(@D)/configure
141c0f61e9a56fbf31abeb85d541949717128bf7orlikowski
1ccb67ea7d1f2a3747d285835fd0ce0d123b66b2orlikowskibuild: $(BUILD_32)
3f4d7fdb598d64d80ab8656852276246f2f3b502rbb
a7318397b355119d990d1f311b951dea2aafc53arbbinstall: $(INSTALL_32)
a7318397b355119d990d1f311b951dea2aafc53arbb
a7318397b355119d990d1f311b951dea2aafc53arbbtest: $(NO_TESTS)
a7318397b355119d990d1f311b951dea2aafc53arbb# libcheck and specific Perl Test::Unit version is required for full test
a7318397b355119d990d1f311b951dea2aafc53arbb
a7318397b355119d990d1f311b951dea2aafc53arbbBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3f4d7fdb598d64d80ab8656852276246f2f3b502rbb
3f4d7fdb598d64d80ab8656852276246f2f3b502rbbinclude ../../make-rules/depend.mk
3f4d7fdb598d64d80ab8656852276246f2f3b502rbb