summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/wget/wget.inc
blob: 0cd70b06af5d0c0b1a7edfd064184beb5074ff76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
DESCRIPTION = "A console URL download utility featuring HTTP, FTP, and more."
SECTION = "console/network"
LICENSE = "GPL"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
INC_PR = "r10"

S = "${WORKDIR}/wget-${PV}"

inherit autotools gettext

EXTRA_OECONF = " \
  --enable-ipv6 \ 
  --with-libssl-prefix=${STAGING_DIR}${HOST_SYS}"

do_install_append () {
  mv ${D}${bindir}/wget ${D}${bindir}/wget.${PN}
}

pkg_postinst_${PN} () {
  update-alternatives --install ${bindir}/wget wget wget.${PN} 100
}

pkg_prerm_${PN} () {
  update-alternatives --remove wget wget.${PN}
}