94N/A#
94N/A# CDDL HEADER START
94N/A#
94N/A# The contents of this file are subject to the terms of the
94N/A# Common Development and Distribution License (the "License").
94N/A# You may not use this file except in compliance with the License.
94N/A#
94N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94N/A# or http://www.opensolaris.org/os/licensing.
94N/A# See the License for the specific language governing permissions
94N/A# and limitations under the License.
94N/A#
94N/A# When distributing Covered Code, include this CDDL HEADER in each
94N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
94N/A# If applicable, add the following below this CDDL HEADER, with the
94N/A# fields enclosed by brackets "[]" replaced with your own identifying
94N/A# information: Portions Copyright [yyyy] [name of copyright owner]
94N/A#
94N/A# CDDL HEADER END
94N/A#
94N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
94N/A#
5269N/Ainclude ../../make-rules/shared-macros.mk
94N/A
94N/ACOMPONENT_NAME= wget
94N/ACOMPONENT_VERSION= 1.18
94N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/wget/
94N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5269N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
5269N/ACOMPONENT_ARCHIVE_HASH= \
618N/A sha256:b5b55b75726c04c06fe253daec9329a6f1a3c0c1878e3ea76ebfebc139ea9cc1
94N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/wget/$(COMPONENT_ARCHIVE)
94N/ACOMPONENT_BUGDB= utility/wget
844N/A
5269N/ATPNO= 29459
94N/A
1258N/Ainclude $(WS_MAKE_RULES)/prep.mk
94N/Ainclude $(WS_MAKE_RULES)/configure.mk
5269N/Ainclude $(WS_MAKE_RULES)/ips.mk
2899N/A
3817N/A# Enforce wget binary to standard path
3817N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
3817N/A
94N/A# Enforce openssl (--with-ssl=openssl) instead of default gnutls
94N/A# (--with-ssl) as wget doesn't work for secure connections with gnutls.
94N/A# Set PATH to find /usr/perl5/bin/pod2man, so that the man page wget.1
94N/A# can be automatically generated
3993N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
3993N/ACONFIGURE_OPTIONS += --with-ssl=openssl
3993N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
3993N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4339N/ACONFIGURE_OPTIONS += PATH="$(PATH):/usr/perl5/bin"
94N/A
94N/A# Wget test suite will skip majority of tests with few Perl modules
94N/A# missing on system. By uncommenting following lines it will pass 82
94N/A# tests out of 83 total tests (1 test in which wget tries to output
94N/A# to a non-existing device /dev/full fails with wrong error code).
1591N/A#URI=URI-1.60
1591N/A#WWW=libwww-perl-5.837
94N/A#SOCK=IO-Socket-SSL-1.62
94N/A#COMPONENT_TEST_ENV = "http_proxy="
94N/A#COMPONENT_TEST_ENV += "https_proxy="
3440N/A#COMPONENT_TEST_ENV += "ftp_proxy="
4339N/A#COMPONENT_TEST_ENV += "no_proxy="
3440N/A#COMPONENT_PRE_TEST_ACTION = ( \
5269N/A cd $(COMPONENT_SRC)/tests; \
5269N/A wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$(URI).tar.gz; \
5269N/A wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$(WWW).tar.gz; \
5269N/A wget http://cpan.metacpan.org/authors/id/S/SU/SULLR/$(SOCK).tar.gz; \
5269N/A gtar --get $(URI)/URI $(URI)/URI.pm \
5269N/A --strip-components=1 -f $(URI).tar.gz; \
5269N/A gtar --get $(WWW)/lib/HTTP $(WWW)/lib/LWP $(WWW)/lib/LWP.pm \
5269N/A --strip-components=2 -f $(WWW).tar.gz; \
5269N/A gtar --get $(SOCK)/SSL.pm \
1591N/A --strip-components=1 -f $(SOCK).tar.gz; \
1591N/A mkdir -p IO/Socket; mv SSL.pm IO/Socket; )
94N/A
3477N/A# Enable ASLR for this component
3477N/AASLR_MODE = $(ASLR_ENABLE)
1591N/A
94N/Abuild: $(BUILD_64)
1591N/A
94N/Ainstall: $(INSTALL_64)
3440N/A
94N/Atest: $(TEST_64)
4339N/A
4339N/A
4337N/AREQUIRED_PACKAGES += library/libidn
3817N/AREQUIRED_PACKAGES += library/pcre
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/linker