Magellan Linux

Contents of /branches/R11-unstable/core/wget/wget-1.16.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25087 - (show annotations) (download)
Tue Nov 25 02:58:36 2014 UTC (9 years, 5 months ago) by niro
File size: 1633 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="wget"
4 PVER="1.16.3"
5 PBUILD="r1"
6
7 PCAT="net-misc"
8
9 DESCRIPTION="A useful utility for non-interactive downloading of files from the web."
10 HOMEPAGE="http://wget.sunsite.dk/"
11
12 DEPEND=">= dev-libs/openssl-1.0.1
13 >= dev-libs/libpcre-8.36
14 >= net-dns/libidn-1.29
15 >= sys-libs/libuuid-2.25
16 >= sys-libs/zlib-1.2.8
17 >= app-crypt/ca-certificates-2014"
18
19 SDEPEND=">= dev-lang/perl-5.20
20 >= dev-util/texinfo-5"
21
22 if mqueryfeature "check"
23 then
24 SDEPEND+="
25 >= dev-lang/python3-3.4
26 >= dev-perl/io-socket-ssl-2
27 >= dev-perl/http-daemon-6
28 >= virtual/sed"
29 fi
30
31 PROVIDE="virtual/wget"
32
33 SRCFILE="${PNAME}-${PVER}.tar.xz"
34 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
35
36 sminclude mbuild
37
38 SRC_URI=(
39 gnu://${PNAME}/${SRCFILE}
40 mirror://${PNAME}/${SRCFILE}
41 )
42
43 #UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME}/?C=M;O=A\" | grep ${PNAME}-[0-9].* | lasttarball gz"
44 UP2DATE="updatecmd_gnu ${PNAME} xz"
45
46 src_prepare()
47 {
48 munpack ${SRCFILE} || die
49 cd ${SRCDIR}
50
51 # enable passive mode by default
52 sed -i 's:#passive_ftp = off:passive_ftp = on:g' doc/sample.wgetrc || die
53
54 # use system ca-certificates
55 cat >> doc/sample.wgetrc <<EOF
56
57 # default root certs location
58 ca_certificate=/etc/ssl/certs/ca-certificates.crt
59 EOF
60 }
61
62 src_compile()
63 {
64 cd ${SRCDIR}
65 # force use openssl not gnutls
66 mconfigure --with-ssl=openssl || die
67 mmake || die
68 }
69
70 src_check()
71 {
72 cd ${SRCDIR}
73
74 # fix a race condition
75 # see http://lists.gnu.org/archive/html/bug-wget/2014-10/msg00148.html
76 sed -i '/Test-proxied-https-auth.px/d' tests/Makefile.{am,in} || die
77
78 # honor proxy settings
79 http_proxy="" https_proxy="" \
80 ftp_proxy="" ftps_profy="" \
81 make -k check || die
82 }