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