7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# CDDL HEADER START
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# The contents of this file are subject to the terms of the
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# Common Development and Distribution License (the "License").
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# You may not use this file except in compliance with the License.
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# or http://www.opensolaris.org/os/licensing.
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# See the License for the specific language governing permissions
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# and limitations under the License.
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# If applicable, add the following below this CDDL HEADER, with the
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# CDDL HEADER END
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Siraineninclude ../../make-rules/shared-macros.mk
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_NAME= fetchmail
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_VERSION= 6.3.22
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_ARCHIVE_HASH= \
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen sha256:09093168552119e962617f86f2713564cf6e3fe7fd32d6799aa0b87df28f1e89
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_ARCHIVE_URL= http://download.berlios.de/fetchmail/$(COMPONENT_ARCHIVE)
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_PROJECT_URL= http://fetchmail.berlios.de/
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCOMPONENT_BUGDB= utility/fetchmail
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenTPNO= 8416
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Siraineninclude $(WS_MAKE_RULES)/prep.mk
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Siraineninclude $(WS_MAKE_RULES)/configure.mk
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Siraineninclude $(WS_MAKE_RULES)/ips.mk
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCONFIGURE_OPTIONS += PYTHON="$(PYTHON.2.7.32)"
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCONFIGURE_OPTIONS += --with-kerberos5
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCONFIGURE_OPTIONS += --with-ssl
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo SirainenCONFIGURE_OPTIONS += --enable-NTLM
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# Change the shebang line to use Python 2.7 explicitly, and drop the
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen# fixed file into /usr/bin, where our package manifest expects it.
COMPONENT_POST_INSTALL_ACTION = \
$(GSED) -e "s|/usr/bin/env python|$(PYTHON.2.7.32)|" \
$(PROTO_DIR)/usr/lib/python2.7/site-packages/fetchmailconf.py > \
$(PROTO_DIR)$(USRBIN.32)/fetchmailconf
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
REQUIRED_PACKAGES += library/python/tkinter-27
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += service/security/kerberos-5
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library