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]
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.5.1
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.bz2
39 COMPONENT_ARCHIVE_HASH
= sha256
:6a7ce45ab5f110540ca3e4a03de36cac7afc85d21a7b51cd8bec0c1a37f4033d
40 COMPONENT_ARCHIVE_URL
= https
://gitlab.com
/fetchmail
/fetchmail
/-/archive
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
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 COMPONENT_PREP_ACTION
= (cd
$(@D
); sh autogen.sh
)
51 # Change the shebang line to use our default Python version explicitly, drop the fixed file into /usr/bin,
52 # where our package manifest expects it, and remove the superfluous script from the site-packages folder.
53 COMPONENT_POST_INSTALL_ACTION
+= \
54 $(GSED
) -e
"s|/usr/bin/env python|$(PYTHON)|" \
55 $(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/site-packages
/fetchmailconf.py
&& \
56 $(GSED
) -i
-e
's?\/usr\/bin\/python?\/usr\/bin\/python$(PYTHON_VERSION)?' \
57 $(PROTOUSRBINDIR
)/fetchmailconf
&& \
58 $(GSED
) -i
-e
's?site-packages?vendor-packages?' \
59 $(PROTOUSRBINDIR
)/fetchmailconf
&& \
60 if
[ -d
$(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
) ]; then \
61 $(MKDIR
) -p
$(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
&& \
62 $(MV
) $(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/site-packages
/* $(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
&& \
63 $(RM
) -fr
$(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/site-packages
&& \
64 $(PYTHON
) -m compileall
$(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
; \
67 CONFIGURE_OPTIONS
+= --with-kerberos5
68 CONFIGURE_OPTIONS
+= --with-ssl
=$(OPENSSL_PREFIX
)
69 CONFIGURE_OPTIONS
+= --enable-NTLM
71 # Auto-generated dependencies
72 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
73 REQUIRED_PACKAGES
+= service
/security
/kerberos-5
74 REQUIRED_PACKAGES
+= system
/library