diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb')
| -rw-r--r-- | meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb new file mode 100644 index 0000000000..81457d7d66 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | DESCRIPTION = "The GNU inetutils are a collection of common \ | ||
| 2 | networking utilities and servers including ftp, ftpd, rcp, \ | ||
| 3 | rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, \ | ||
| 4 | talkd, telnet, telnetd, tftp, tftpd, and uucpd." | ||
| 5 | SECTION = "libs" | ||
| 6 | DEPENDS = "ncurses" | ||
| 7 | LICENSE = "GPLv3" | ||
| 8 | |||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7" | ||
| 10 | |||
| 11 | |||
| 12 | SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ | ||
| 13 | file://disable-pre-ANSI-compilers.patch \ | ||
| 14 | file://version.patch \ | ||
| 15 | file://remove-gets.patch \ | ||
| 16 | file://inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch \ | ||
| 17 | file://inetutils-1.8-0003-wchar.patch \ | ||
| 18 | file://fix-disable-ipv6.patch \ | ||
| 19 | " | ||
| 20 | SRC_URI[md5sum] = "944f7196a2b3dba2d400e9088576000c" | ||
| 21 | SRC_URI[sha256sum] = "02a9ebde8a198cb85f87545b9d88fb103a183958139864a85fe9e027ad79ff2b" | ||
| 22 | |||
| 23 | inherit autotools gettext | ||
| 24 | |||
| 25 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" | ||
| 26 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ | ||
| 27 | --with-path-procnet-dev=/proc/net/dev \ | ||
| 28 | ${noipv6} \ | ||
| 29 | " | ||
| 30 | |||
| 31 | do_configure_prepend () { | ||
| 32 | export HELP2MAN='true' | ||
| 33 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath | ||
| 34 | rm -f ${S}/glob/configure* | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install () { | ||
| 38 | autotools_do_install | ||
| 39 | install -d ${D}${base_sbindir} ${D}${base_bindir} | ||
| 40 | mv ${D}${bindir}/tftp ${D}${bindir}/tftp.${PN} | ||
| 41 | mv ${D}${bindir}/telnet ${D}${bindir}/telnet.${PN} | ||
| 42 | mv ${D}${bindir}/logger ${D}${bindir}/logger.${PN} | ||
| 43 | mv ${D}${bindir}/traceroute ${D}${bindir}/traceroute.${PN} | ||
| 44 | mv ${D}${bindir}/hostname ${D}${base_bindir}/hostname.${PN} | ||
| 45 | mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/ifconfig.${PN} | ||
| 46 | } | ||
| 47 | |||
| 48 | pkg_postinst_${PN} () { | ||
| 49 | update-alternatives --install ${bindir}/tftp tftp tftp.${PN} 100 | ||
| 50 | update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100 | ||
| 51 | update-alternatives --install ${bindir}/logger logger logger.${PN} 100 | ||
| 52 | update-alternatives --install ${bindir}/traceroute traceroute traceroute.${PN} 100 | ||
| 53 | update-alternatives --install ${base_bindir}/hostname hostname hostname.${PN} 100 | ||
| 54 | update-alternatives --install ${base_sbindir}/ifconfig ifconfig ifconfig.${PN} 100 | ||
| 55 | } | ||
| 56 | |||
| 57 | pkg_prerm_${PN} () { | ||
| 58 | update-alternatives --remove tftp tftp.${PN} | ||
| 59 | update-alternatives --remove telnet telnet.${PN} | ||
| 60 | update-alternatives --remove logger logger.${PN} | ||
| 61 | update-alternatives --remove traceroute traceroute.${PN} | ||
| 62 | update-alternatives --remove ifconfig ifconfig.${PN} | ||
| 63 | } | ||
