1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/wget/trunk/Makefile

Revision 18007, 3.1 KB (checked in by dmichelsen, 12 days ago)

wget/trunk: Use just one CA fixing #4942 and use reinplacements for other things

Line 
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
6NAME = wget
7VERSION = 1.13.4
8CATEGORIES = net
9GARTYPE = v2
10
11DESCRIPTION = A network utility to retrieve files from the Web
12define 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.
20endef
21
22MASTER_SITES = $(GNU_MIRROR)
23DISTFILES = $(NAME)-$(VERSION).tar.xz
24
25VENDOR_URL = http://www.gnu.org/software/wget/
26
27PACKAGES += CSWwget
28SPKG_DESC_CSWwget = A network utility to retrieve files from the web
29RUNTIME_DEP_PKGS_CSWwget += CSWlibintl8
30RUNTIME_DEP_PKGS_CSWwget += CSWlibiconv2
31RUNTIME_DEP_PKGS_CSWwget += CSWlibgcrypt11
32RUNTIME_DEP_PKGS_CSWwget += CSWlibz1
33RUNTIME_DEP_PKGS_CSWwget += CSWlibgpg-error0
34RUNTIME_DEP_PKGS_CSWwget += CSWlibgnutls26
35RUNTIME_DEP_PKGS_CSWwget += CSWlibidn11
36
37EXTRA_MODULATORS = STATIC
38MODULATIONS_STATIC = disable enable
39
40# Use the same CA as OpenSSL as reported in #4942
41REINPLACEMENTS += capath
42REINPLACE_MATCH_capath = /etc/ssl/certs
43REINPLACE_WITH_capath = /etc/opt/csw/ssl/certs
44REINPLACE_FILES_capath += src/gnutls.c
45
46# Make sure our perl is used as the /usr/bin/perl lacks some needed modules
47REINPLACEMENTS += cswperl
48REINPLACE_MATCH_cswperl = \#!/usr/bin/env perl
49REINPLACE_WITH_cswperl = \#!/opt/csw/bin/perl
50REINPLACE_FILES_cswperl += tests/*.px
51REINPLACE_FILES_cswperl += tests/run-px
52
53EXTRA_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
57EXTRA_CONFIGURE_STATIC-enable += --without-ssl
58EXTRA_CONFIGURE_STATIC-enable += --disable-nls
59EXTRA_CONFIGURE_STATIC-enable += --disable-iri
60
61CONFIGURE_ARGS  = $(DIRPATHS)
62CONFIGURE_ARGS += $(EXTRA_CONFIGURE_STATIC-$(STATIC))
63
64PRESERVECONF = $(sysconfdir)/wgetrc
65MIGRATE_FILES = wgetrc
66
67EXTRA_MERGE_EXCLUDE_FILES += $(libdir)/charset.alias
68
69MERGE_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
74CHECKPKG_OVERRIDES_CSWwget += file-with-bad-content|/usr/local|root/opt/csw/share/info/wget.info
75
76include gar/category.mk
77
78merge-copy-static-wget-only:
79        ginstall $(INSTALLISADIR)$(bindir)/wget $(PKGROOT)$(bindir)/wget.static
80        @$(MAKECOOKIE)
81
82post-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
Note: See TracBrowser for help on using the browser.