fetchmail: update to 6.4.39
[oi-userland.git] / components / mail / fetchmail / Makefile
blob887ad35fd083a92835b8727bc3a6b50e4e272c26
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2018, Michal Nowak
25 # Copyright 2021, Nona Hansel
28 USE_DEFAULT_TEST_TRANSFORMS= yes
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= fetchmail
32 COMPONENT_VERSION= 6.4.39
33 COMPONENT_SUMMARY= fetch mail from a POP, IMAP, ETRN, or ODMR-capable server
34 COMPONENT_DESCRIPTION= Fetchmail is a full-featured, robust, well-documented remote-mail retrieval and forwarding utility intended \
35 to be used over on-demand TCP/IP links (such as SLIP or PPP connections). It supports every remote-mail protocol now in use on \
36 the Internet: POP2, POP3, RPOP, APOP, KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and IPsec.
37 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
38 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
39 COMPONENT_ARCHIVE_HASH= sha256:75109a1f307b538155fa05f5ef298e8298cb4deae95aed24c16b38d36ff0a186
40 COMPONENT_ARCHIVE_URL= https://sourceforge.net/projects/$(COMPONENT_NAME)/files/branch_6.4/$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.xz/download
41 COMPONENT_PROJECT_URL= https://www.fetchmail.info/
42 COMPONENT_FMRI= mail/fetchmail
43 COMPONENT_CLASSIFICATION= Applications/Internet
44 COMPONENT_LICENSE= GPLv2
45 COMPONENT_LICENSE_FILE= COPYING
47 include $(WS_MAKE_RULES)/common.mk
49 # Change the shebang line to use our default Python version explicitly, drop the fixed file into /usr/bin,
50 # where our package manifest expects it, and remove the superfluous script from the site-packages folder.
51 COMPONENT_POST_INSTALL_ACTION += \
52 $(GSED) -e "s|/usr/bin/env python|$(PYTHON)|" \
53 $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/site-packages/fetchmailconf.py && \
54 $(GSED) -i -e 's?\/usr\/bin\/python?\/usr\/bin\/python$(PYTHON_VERSION)?' \
55 $(PROTOUSRBINDIR)/fetchmailconf && \
56 $(GSED) -i -e 's?site-packages?vendor-packages?' \
57 $(PROTOUSRBINDIR)/fetchmailconf && \
58 if [ -d $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION) ]; then \
59 $(MKDIR) -p $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages && \
60 $(MV) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/site-packages/* $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages && \
61 $(RM) -fr $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/site-packages && \
62 $(PYTHON) -m compileall $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages ; \
63 fi ;
65 CONFIGURE_OPTIONS += --with-kerberos5
66 CONFIGURE_OPTIONS += --with-ssl=$(OPENSSL_PREFIX)
67 CONFIGURE_OPTIONS += --enable-NTLM
69 # Auto-generated dependencies
70 REQUIRED_PACKAGES += $(OPENSSL_PKG)
71 REQUIRED_PACKAGES += service/security/kerberos-5
72 REQUIRED_PACKAGES += system/library