Ravenports generated: 11 May 2018 00:26
[ravenports.git] / bucket_DF / wget
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               wget
4 VERSION=                1.19.5
5 KEYWORDS=               ftp www
6 VARIANTS=               standard ravensys
7 SDESC[ravensys]=        Minimal alias for fetch for Solaris Ravensys root
8 SDESC[standard]=        Program to retrieve files via http/s and ftp
9 HOMEPAGE=               https://www.gnu.org/software/wget/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GNU/wget
14 DISTFILE[1]=            wget-1.19.5.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[ravensys]=        primary
17 SPKGS[standard]=        complete
18                         primary
19                         docs
20
21 OPTIONS_AVAILABLE=      RAVENSYS
22 OPTIONS_STANDARD=       none
23 VOPTS[ravensys]=        RAVENSYS=ON
24
25 USES=                   charsetfix cpe pkgconfig
26
27 LICENSE=                GPLv3+:primary
28 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
29 LICENSE_FILE=           GPLv3+:{{WRKSRC}}/COPYING
30 LICENSE_AWK=            TERMS:"^\#include"
31 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/src/main.c
32 LICENSE_SCHEME=         solo
33
34 CPE_VENDOR=             gnu
35 FPC_EQUIVALENT=         ftp/wget
36 INFO_SUBDIR=            .
37
38 MUST_CONFIGURE=         gnu
39 CONFIGURE_ARGS=         --with-ssl=openssl
40                         --with-ssl-prefix={{OPENSSLBASE}}
41                         --without-libpsl
42                         --enable-iri
43 CONFIGURE_ENV=          MAKEINFO="{{MAKEINFO}}"
44
45 CPPFLAGS=               -I{{OPENSSLINC}}
46 LDFLAGS=                -L{{OPENSSLLIB}}
47
48 [RAVENSYS].DESCRIPTION=                 Minimal static version used as alias for fetch
49 [RAVENSYS].BUILDRUN_DEPENDS_OFF=        pcre:shared:standard
50                                         libmetalink:primary:standard
51                                         libidn2:primary:standard
52                                         libunistring:primary:standard
53 [RAVENSYS].BUILD_DEPENDS_OFF=           pcre:static:standard
54 [RAVENSYS].BUILD_DEPENDS_ON=            zlib:static:standard
55                                         libressl:single:static
56 [RAVENSYS].CONFIGURE_ARGS_OFF=          --enable-pcre
57                                         --enable-nls
58                                         --with-metalink
59                                         --with-libidn={{LOCALBASE}}
60                                         --with-libunistring-prefix={{LOCALBASE}}
61 [RAVENSYS].INFO_OFF=                    primary:wget
62 [RAVENSYS].RUN_DEPENDS_ON=              nss:caroot:standard
63 [RAVENSYS].SUB_FILES_ON=                fetch
64 [RAVENSYS].USES_OFF=                    gettext-runtime
65                                         perl:build
66                                         makeinfo
67                                         zlib
68                                         ssl
69                                         iconv
70 [RAVENSYS].USES_ON=                     iconv:build
71
72 post-patch:
73         ${REINPLACE_CMD} -e 's,WGETRC = $$(sysconfdir)/wgetrc,&.sample,' \
74                 ${WRKSRC}/doc/Makefile.in
75         ${REINPLACE_CMD} -e 's,/usr/local/etc/wgetrc,${PREFIX}/etc/wgetrc,' \
76                 ${WRKSRC}/doc/sample.wgetrc* \
77                 ${WRKSRC}/doc/wget.texi
78
79 post-install-RAVENSYS-ON:
80         ${RM} ${STAGEDIR}${PREFIX}/etc/wgetrc.sample
81         ${INSTALL_SCRIPT} ${WRKDIR}/fetch ${STAGEDIR}${PREFIX}/bin
82
83 post-patch-RAVENSYS-ON:
84         ${REINPLACE_CMD} \
85                 -e '/^all: wget.info/ s,wget.info,,' \
86                 -e '/^all-am:/ s, $$(INFO_DEPS),,' \
87                 -e '/^install-data-am:/ s, install-info-am,,' \
88                 ${WRKSRC}/doc/Makefile.in
89
90 [FILE:996:descriptions/desc.primary]
91 GNU wget is a free software package for retrieving files using HTTP,
92 HTTPS and FTP, the most widely-used Internet protocols. It is a
93 non-interactive command-line tool, so it may easily be called from
94 scripts, cron jobs, terminals without X-Windows support, etc.
95
96 GNU wget has many features to make retrieving large files or mirroring
97 entire web or FTP sites easy, including:
98
99  o Can resume aborted downloads, using REST and RANGE
100  o Can use filename wild cards and recursively mirror directories
101  o NLS-based message files for many different languages
102  o Optionally converts absolute links in downloaded documents to
103    relative, so that downloaded documents may link to each other locally
104  o Supports HTTP and SOCKS proxies
105  o Supports HTTP cookies
106  o Supports persistent HTTP connections
107  o Unattended / background operation
108  o Uses local file timestamps to determine whether documents need to
109    be re-downloaded when mirroring
110  o GNU wget is distributed under the GNU General Public License.
111
112
113 [FILE:97:distinfo]
114 b39212abe1a73f2b28f4c6cb223c738559caac91d6e416a6d91d4b9d55c9faee      4455797 wget-1.19.5.tar.gz
115
116
117 [FILE:1476:manifests/plist.primary.standard]
118 @sample etc/wgetrc.sample
119 bin/wget
120 share/locale/be/LC_MESSAGES/wget.mo
121 share/locale/bg/LC_MESSAGES/wget.mo
122 share/locale/ca/LC_MESSAGES/wget.mo
123 share/locale/cs/LC_MESSAGES/wget.mo
124 share/locale/da/LC_MESSAGES/wget.mo
125 share/locale/de/LC_MESSAGES/wget.mo
126 share/locale/el/LC_MESSAGES/wget.mo
127 share/locale/en_GB/LC_MESSAGES/wget.mo
128 share/locale/eo/LC_MESSAGES/wget.mo
129 share/locale/es/LC_MESSAGES/wget.mo
130 share/locale/et/LC_MESSAGES/wget.mo
131 share/locale/eu/LC_MESSAGES/wget.mo
132 share/locale/fi/LC_MESSAGES/wget.mo
133 share/locale/fr/LC_MESSAGES/wget.mo
134 share/locale/ga/LC_MESSAGES/wget.mo
135 share/locale/gl/LC_MESSAGES/wget.mo
136 share/locale/he/LC_MESSAGES/wget.mo
137 share/locale/hr/LC_MESSAGES/wget.mo
138 share/locale/hu/LC_MESSAGES/wget.mo
139 share/locale/id/LC_MESSAGES/wget.mo
140 share/locale/it/LC_MESSAGES/wget.mo
141 share/locale/ja/LC_MESSAGES/wget.mo
142 share/locale/lt/LC_MESSAGES/wget.mo
143 share/locale/nb/LC_MESSAGES/wget.mo
144 share/locale/nl/LC_MESSAGES/wget.mo
145 share/locale/pl/LC_MESSAGES/wget.mo
146 share/locale/pt/LC_MESSAGES/wget.mo
147 share/locale/pt_BR/LC_MESSAGES/wget.mo
148 share/locale/ro/LC_MESSAGES/wget.mo
149 share/locale/ru/LC_MESSAGES/wget.mo
150 share/locale/sk/LC_MESSAGES/wget.mo
151 share/locale/sl/LC_MESSAGES/wget.mo
152 share/locale/sr/LC_MESSAGES/wget.mo
153 share/locale/sv/LC_MESSAGES/wget.mo
154 share/locale/tr/LC_MESSAGES/wget.mo
155 share/locale/uk/LC_MESSAGES/wget.mo
156 share/locale/vi/LC_MESSAGES/wget.mo
157 share/locale/zh_CN/LC_MESSAGES/wget.mo
158 share/locale/zh_TW/LC_MESSAGES/wget.mo
159 share/man/man1/wget.1.gz
160
161
162 [FILE:18:manifests/plist.primary.ravensys]
163 bin/
164  fetch
165  wget
166
167
168 [FILE:2029:files/fetch.in]
169 #!/bin/sh
170 #
171 # Make wget masquerade as fetch
172 # look for:
173 #   -q : (quiet),       wget=--quiet
174 #   -o : (output=file), wget=--output-document
175 #   --no-verify-peer,   wget=--no-check-certificate
176 #   -Fpr : (force-restart, passive (default), restart, keep output),
177 #          wget=
178 #   --require-size,     wget= NOT SUPPORTED (mimickable?)
179 #  assume env: SSL_NO_VERIFY_PEER=1 SSL_NO_VERIFY_HOSTNAME=1
180
181 VERBOSITY="--no-verbose"
182 CERTS="--no-check-certificate --ca-certificate %%PREFIX%%/share/certs/ca-root-nss.crt"
183 REQUIRE_SIZE=0
184 OUTPUT_FILE=
185 SENDTO=
186 URL=not-defined
187
188 while test ${#} -gt 0
189 do
190    case "${1}" in
191       -q|--quiet)
192                 VERBOSITY="--quiet"
193                 ;;
194       --no-verify-peer)
195                 ;;
196       -F|-p|-r|-Fpr|-Fp|-pF|-Fr|-rF|-pr|-rp|-rpF|-rFp|-pFr|-prF)
197                 ;;
198       -S|--require-size)
199                 shift
200                 REQUIRE_SIZE=${1}
201                 ;;
202       -o)
203                 shift
204                 OUTPUT_FILE="${1}"
205                 ;;
206       *)
207                 URL="${1}"
208                 ;;
209    esac
210    shift
211 done
212
213 GETLENGTH='\
214 BEGIN { remotelen = 0 }\
215 /^Length:/ { remotelen = $2}\
216 { next }\
217 END {\
218   if (!remotelen) { print "continue" }\
219   else {\
220     if ((remotelen != knownlen) && (remotelen != "unspecified"))\
221       { printf ("size mismatch: expected %d, actual %d\n", knownlen, remotelen) }\
222     else\
223       { print "continue" }\
224   }\
225 }'
226
227 LASTSEG='{ print $NF }'
228 checkfile=$(echo ${URL} | awk -F'/' "${LASTSEG}")
229 BPATH1=$(/usr/bin/dirname ${0})
230 BASEPATH=$(cd ${BPATH1} && /bin/pwd)
231 WGET="${BASEPATH}/wget"
232
233 if [ -n "${OUTPUT_FILE}" ]; then
234         # If this is a directory, set directory prefix
235         if [ -d "${OUTPUT_FILE}" ]; then
236            SENDTO="--output-document ${OUTPUT_FILE}/${checkfile}"
237         else
238            SENDTO="--output-document ${OUTPUT_FILE}"
239         fi
240 else
241         SENDTO="--output-document ${checkfile}"
242 fi
243 if [ ${REQUIRE_SIZE} -gt 0 ]; then
244    message=$(${WGET} --spider ${URL} 2>&1 | awk -v knownlen=${REQUIRE_SIZE} "${GETLENGTH}")
245    if [ "${message}" != "continue" ]; then
246       echo ${message}
247       exit 1
248    fi
249 fi
250 COMMAND="${WGET} ${VERBOSITY} ${CERTS} ${URL} ${SENDTO}"
251
252 ${COMMAND}
253