Contents of /branches/R11-stable/core/wget/wget-1.15-r1.smage2
Parent Directory | Revision Log
Revision 20814 -
(show annotations)
(download)
Tue Feb 11 09:51:53 2014 UTC (10 years, 7 months ago) by niro
File size: 1175 byte(s)
Tue Feb 11 09:51:53 2014 UTC (10 years, 7 months ago) by niro
File size: 1175 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="wget" |
4 | PVER="1.15" |
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.34 |
14 | >= net-dns/libidn-1.28 |
15 | >= sys-libs/libuuid-2.24 |
16 | >= sys-libs/zlib-1.2.5 |
17 | >= app-crypt/ca-certificates-2013" |
18 | |
19 | SDEPEND=">= dev-lang/perl-5.18 |
20 | >= dev-util/texinfo-5" |
21 | |
22 | PROVIDE="virtual/wget" |
23 | |
24 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
25 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
26 | |
27 | sminclude mbuild |
28 | |
29 | SRC_URI=( |
30 | gnu://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | ) |
33 | |
34 | #UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME}/?C=M;O=A\" | grep ${PNAME}-[0-9].* | lasttarball gz" |
35 | UP2DATE="updatecmd_gnu ${PNAME} xz" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # enable passive mode by default |
43 | sed -i 's:#passive_ftp = off:passive_ftp = on:g' doc/sample.wgetrc || die |
44 | |
45 | # use system ca-certificates |
46 | cat >> doc/sample.wgetrc <<EOF |
47 | |
48 | # default root certs location |
49 | ca_certificate=/etc/ssl/certs/ca-certificates.crt |
50 | EOF |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | cd ${SRCDIR} |
56 | # force use openssl not gnutls |
57 | mconfigure --with-ssl=openssl || die |
58 | mmake || die |
59 | } |