diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/wget/wget.inc')
| -rw-r--r-- | meta-oe/recipes-connectivity/wget/wget.inc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/wget/wget.inc b/meta-oe/recipes-connectivity/wget/wget.inc new file mode 100644 index 0000000000..8903fee36b --- /dev/null +++ b/meta-oe/recipes-connectivity/wget/wget.inc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | DESCRIPTION = "A console URL download utility featuring HTTP, FTP, and more." | ||
| 2 | SECTION = "console/network" | ||
| 3 | LICENSE = "GPL" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
| 5 | INC_PR = "r10" | ||
| 6 | |||
| 7 | S = "${WORKDIR}/wget-${PV}" | ||
| 8 | |||
| 9 | inherit autotools gettext | ||
| 10 | |||
| 11 | EXTRA_OECONF = " \ | ||
| 12 | --enable-ipv6 | ||
| 13 | --with-libssl-prefix=${STAGING_DIR}${HOST_SYS}" | ||
| 14 | |||
| 15 | # The unslung kernel does not support ipv6 | ||
| 16 | EXTRA_OECONF_unslung = "--without-ssl" | ||
| 17 | # SlugOS kernels do not support ipv6. Can be loaded as a module. | ||
| 18 | EXTRA_OECONF_slugos = "--without-ssl" | ||
| 19 | |||
| 20 | do_install_append () { | ||
| 21 | mv ${D}${bindir}/wget ${D}${bindir}/wget.${PN} | ||
| 22 | } | ||
| 23 | |||
| 24 | pkg_postinst_${PN} () { | ||
| 25 | update-alternatives --install ${bindir}/wget wget wget.${PN} 100 | ||
| 26 | } | ||
| 27 | |||
| 28 | pkg_prerm_${PN} () { | ||
| 29 | update-alternatives --remove wget wget.${PN} | ||
| 30 | } | ||
