Magellan Linux

Contents of /smage/branches/alx07x-stable/core/wget/wget-1.19.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9967 - (show annotations) (download)
Thu Aug 3 14:30:16 2017 UTC (6 years, 8 months ago) by niro
File size: 1707 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="wget"
4 PVER="1.19.1"
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 >= dev-libs/openssl-dev-1.0.1
22 >= dev-libs/libpcre-dev-8.36
23 >= net-dns/libidn-dev-1.29
24 >= sys-libs/libuuid-dev-2.25
25 >= sys-libs/zlib-dev-1.2.8"
26
27 if mqueryfeature "check"
28 then
29 SDEPEND+="
30 >= dev-lang/python3-3.4
31 >= dev-perl/io-socket-ssl-2
32 >= dev-perl/http-daemon-6
33 >= virtual/sed"
34 fi
35
36 PROVIDE="virtual/wget"
37
38 SRCFILE="${PNAME}-${PVER}.tar.xz"
39 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
40
41 ALX_PKG_KEEP="etc/wgetrc usr/bin/wget"
42
43 # i686 unit test fails
44 msetfeature "!check"
45 sminclude mbuild alx-split
46
47 SRC_URI=(
48 gnu://${PNAME}/${SRCFILE}
49 mirror://${PNAME}/${SRCFILE}
50 )
51
52 #UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME}/?C=M;O=A\" | grep ${PNAME}-[0-9].* | lasttarball gz"
53 UP2DATE="updatecmd_gnu ${PNAME} xz"
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58 cd ${SRCDIR}
59
60 # enable passive mode by default
61 sed -i 's:#passive_ftp = off:passive_ftp = on:g' doc/sample.wgetrc || die
62
63 # use system ca-certificates
64 cat >> doc/sample.wgetrc <<EOF
65
66 # default root certs location
67 ca_certificate=/etc/ssl/certs/ca-certificates.crt
68 EOF
69 }
70
71 src_compile()
72 {
73 cd ${SRCDIR}
74 # force use openssl not gnutls
75 mconfigure --with-ssl=openssl || die
76 mmake || die
77 }
78
79 src_check()
80 {
81 cd ${SRCDIR}
82
83 # honor proxy settings
84 http_proxy="" https_proxy="" \
85 ftp_proxy="" ftps_proxy="" \
86 make -k check || die
87 }