Magellan Linux

Contents of /trunk/core/wget/wget-1.16-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23250 - (show annotations) (download)
Wed Nov 5 13:05:02 2014 UTC (9 years, 10 months ago) by niro
File size: 1303 byte(s)
-added missing check depends
1 # $Id$
2
3 PNAME="wget"
4 PVER="1.16"
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/python-2
26 >= dev-perl/io-socket-ssl-2
27 >= dev-perl/http-daemon-6"
28 fi
29
30 PROVIDE="virtual/wget"
31
32 SRCFILE="${PNAME}-${PVER}.tar.xz"
33 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
34
35 sminclude mbuild
36
37 SRC_URI=(
38 gnu://${PNAME}/${SRCFILE}
39 mirror://${PNAME}/${SRCFILE}
40 )
41
42 #UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME}/?C=M;O=A\" | grep ${PNAME}-[0-9].* | lasttarball gz"
43 UP2DATE="updatecmd_gnu ${PNAME} xz"
44
45 src_prepare()
46 {
47 munpack ${SRCFILE} || die
48 cd ${SRCDIR}
49
50 # enable passive mode by default
51 sed -i 's:#passive_ftp = off:passive_ftp = on:g' doc/sample.wgetrc || die
52
53 # use system ca-certificates
54 cat >> doc/sample.wgetrc <<EOF
55
56 # default root certs location
57 ca_certificate=/etc/ssl/certs/ca-certificates.crt
58 EOF
59 }
60
61 src_compile()
62 {
63 cd ${SRCDIR}
64 # force use openssl not gnutls
65 mconfigure --with-ssl=openssl || die
66 mmake || die
67 }