| 1 | # TODO (release-critical prefixed with !, non release-critical with *) |
|---|
| 2 | # ! Make sure to honour these on an update: |
|---|
| 3 | # http://www.mail-archive.com/pca@lists.univie.ac.at/msg02692.html |
|---|
| 4 | # https://lists.gnu.org/archive/html/bug-wget/2011-09/msg00001.html |
|---|
| 5 | |
|---|
| 6 | NAME = wget |
|---|
| 7 | VERSION = 1.13.4 |
|---|
| 8 | CATEGORIES = net |
|---|
| 9 | GARTYPE = v2 |
|---|
| 10 | |
|---|
| 11 | DESCRIPTION = A network utility to retrieve files from the Web |
|---|
| 12 | define BLURB |
|---|
| 13 | GNU Wget is a utility for noninteractive download of files from the Web. It |
|---|
| 14 | supports HTTP and FTP protocols, as well as retrieval through HTTP proxies. It |
|---|
| 15 | can follow HTML links, download many pages, and convert the links for local |
|---|
| 16 | viewing. It can also mirror FTP hierarchies or only those files that have |
|---|
| 17 | changed. Wget has been designed for robustness over slow network connections; |
|---|
| 18 | if a download fails due to a network problem, it will keep retrying until the |
|---|
| 19 | whole file has been retrieved. |
|---|
| 20 | endef |
|---|
| 21 | |
|---|
| 22 | MASTER_SITES = $(GNU_MIRROR) |
|---|
| 23 | DISTFILES = $(NAME)-$(VERSION).tar.xz |
|---|
| 24 | |
|---|
| 25 | VENDOR_URL = http://www.gnu.org/software/wget/ |
|---|
| 26 | |
|---|
| 27 | PACKAGES += CSWwget |
|---|
| 28 | SPKG_DESC_CSWwget = A network utility to retrieve files from the web |
|---|
| 29 | RUNTIME_DEP_PKGS_CSWwget += CSWlibintl8 |
|---|
| 30 | RUNTIME_DEP_PKGS_CSWwget += CSWlibiconv2 |
|---|
| 31 | RUNTIME_DEP_PKGS_CSWwget += CSWlibgcrypt11 |
|---|
| 32 | RUNTIME_DEP_PKGS_CSWwget += CSWlibz1 |
|---|
| 33 | RUNTIME_DEP_PKGS_CSWwget += CSWlibgpg-error0 |
|---|
| 34 | RUNTIME_DEP_PKGS_CSWwget += CSWlibgnutls26 |
|---|
| 35 | RUNTIME_DEP_PKGS_CSWwget += CSWlibidn11 |
|---|
| 36 | |
|---|
| 37 | EXTRA_MODULATORS = STATIC |
|---|
| 38 | MODULATIONS_STATIC = disable enable |
|---|
| 39 | |
|---|
| 40 | # Use the same CA as OpenSSL as reported in #4942 |
|---|
| 41 | REINPLACEMENTS += capath |
|---|
| 42 | REINPLACE_MATCH_capath = /etc/ssl/certs |
|---|
| 43 | REINPLACE_WITH_capath = /etc/opt/csw/ssl/certs |
|---|
| 44 | REINPLACE_FILES_capath += src/gnutls.c |
|---|
| 45 | |
|---|
| 46 | # Make sure our perl is used as the /usr/bin/perl lacks some needed modules |
|---|
| 47 | REINPLACEMENTS += cswperl |
|---|
| 48 | REINPLACE_MATCH_cswperl = \#!/usr/bin/env perl |
|---|
| 49 | REINPLACE_WITH_cswperl = \#!/opt/csw/bin/perl |
|---|
| 50 | REINPLACE_FILES_cswperl += tests/*.px |
|---|
| 51 | REINPLACE_FILES_cswperl += tests/run-px |
|---|
| 52 | |
|---|
| 53 | EXTRA_CONFIGURE_STATIC-disable += --with-ssl |
|---|
| 54 | # NTLM can only be enabled when used with OpenSSL instead of the defaulting GnuTLS |
|---|
| 55 | #EXTRA_CONFIGURE_STATIC-disable += --enable-ntlm |
|---|
| 56 | |
|---|
| 57 | EXTRA_CONFIGURE_STATIC-enable += --without-ssl |
|---|
| 58 | EXTRA_CONFIGURE_STATIC-enable += --disable-nls |
|---|
| 59 | EXTRA_CONFIGURE_STATIC-enable += --disable-iri |
|---|
| 60 | |
|---|
| 61 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 62 | CONFIGURE_ARGS += $(EXTRA_CONFIGURE_STATIC-$(STATIC)) |
|---|
| 63 | |
|---|
| 64 | PRESERVECONF = $(sysconfdir)/wgetrc |
|---|
| 65 | MIGRATE_FILES = wgetrc |
|---|
| 66 | |
|---|
| 67 | EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/charset.alias |
|---|
| 68 | |
|---|
| 69 | MERGE_SCRIPTS_isa-default-static-disable = copy-all |
|---|
| 70 | MERGE_SCRIPTS_isa-default-static-enable = copy-static-wget-only |
|---|
| 71 | MERGE_DIRS_isa-default-static-enable = $(bindir) |
|---|
| 72 | |
|---|
| 73 | # This is ok, it is just one example occurrence, all others have been replaced |
|---|
| 74 | CHECKPKG_OVERRIDES_CSWwget += file-with-bad-content|/usr/local|root/opt/csw/share/info/wget.info |
|---|
| 75 | |
|---|
| 76 | include gar/category.mk |
|---|
| 77 | |
|---|
| 78 | merge-copy-static-wget-only: |
|---|
| 79 | ginstall $(INSTALLISADIR)$(bindir)/wget $(PKGROOT)$(bindir)/wget.static |
|---|
| 80 | @$(MAKECOOKIE) |
|---|
| 81 | |
|---|
| 82 | post-install-modulated: |
|---|
| 83 | perl -pi -e 's,/usr/local/etc,$(sysconfdir),g' \ |
|---|
| 84 | $(DESTDIR)$(infodir)/wget.info \ |
|---|
| 85 | $(DESTDIR)$(mandir)/man1/wget.1 \ |
|---|
| 86 | $(DESTDIR)$(sysconfdir)/wgetrc |
|---|