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 | 50 |
1 files changed, 25 insertions, 25 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 index 155befec1b..603bf01762 100644 --- a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb +++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb | |||
| @@ -25,40 +25,40 @@ inherit autotools gettext | |||
| 25 | 25 | ||
| 26 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" | 26 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" |
| 27 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ | 27 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ |
| 28 | --with-path-procnet-dev=/proc/net/dev \ | 28 | --with-path-procnet-dev=/proc/net/dev \ |
| 29 | ${noipv6} \ | 29 | ${noipv6} \ |
| 30 | " | 30 | " |
| 31 | 31 | ||
| 32 | do_configure_prepend () { | 32 | do_configure_prepend () { |
| 33 | export HELP2MAN='true' | 33 | export HELP2MAN='true' |
| 34 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath | 34 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath |
| 35 | rm -f ${S}/glob/configure* | 35 | rm -f ${S}/glob/configure* |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | do_install () { | 38 | do_install () { |
| 39 | autotools_do_install | 39 | autotools_do_install |
| 40 | install -d ${D}${base_sbindir} ${D}${base_bindir} | 40 | install -d ${D}${base_sbindir} ${D}${base_bindir} |
| 41 | mv ${D}${bindir}/tftp ${D}${bindir}/tftp.${BPN} | 41 | mv ${D}${bindir}/tftp ${D}${bindir}/tftp.${BPN} |
| 42 | mv ${D}${bindir}/telnet ${D}${bindir}/telnet.${BPN} | 42 | mv ${D}${bindir}/telnet ${D}${bindir}/telnet.${BPN} |
| 43 | mv ${D}${bindir}/logger ${D}${bindir}/logger.${BPN} | 43 | mv ${D}${bindir}/logger ${D}${bindir}/logger.${BPN} |
| 44 | mv ${D}${bindir}/traceroute ${D}${bindir}/traceroute.${BPN} | 44 | mv ${D}${bindir}/traceroute ${D}${bindir}/traceroute.${BPN} |
| 45 | mv ${D}${bindir}/hostname ${D}${base_bindir}/hostname.${BPN} | 45 | mv ${D}${bindir}/hostname ${D}${base_bindir}/hostname.${BPN} |
| 46 | mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/ifconfig.${BPN} | 46 | mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/ifconfig.${BPN} |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | pkg_postinst_${PN} () { | 49 | pkg_postinst_${PN} () { |
| 50 | update-alternatives --install ${bindir}/tftp tftp tftp.${BPN} 100 | 50 | update-alternatives --install ${bindir}/tftp tftp tftp.${BPN} 100 |
| 51 | update-alternatives --install ${bindir}/telnet telnet telnet.${BPN} 100 | 51 | update-alternatives --install ${bindir}/telnet telnet telnet.${BPN} 100 |
| 52 | update-alternatives --install ${bindir}/logger logger logger.${BPN} 100 | 52 | update-alternatives --install ${bindir}/logger logger logger.${BPN} 100 |
| 53 | update-alternatives --install ${bindir}/traceroute traceroute traceroute.${BPN} 100 | 53 | update-alternatives --install ${bindir}/traceroute traceroute traceroute.${BPN} 100 |
| 54 | update-alternatives --install ${base_bindir}/hostname hostname hostname.${BPN} 100 | 54 | update-alternatives --install ${base_bindir}/hostname hostname hostname.${BPN} 100 |
| 55 | update-alternatives --install ${base_sbindir}/ifconfig ifconfig ifconfig.${BPN} 100 | 55 | update-alternatives --install ${base_sbindir}/ifconfig ifconfig ifconfig.${BPN} 100 |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | pkg_prerm_${PN} () { | 58 | pkg_prerm_${PN} () { |
| 59 | update-alternatives --remove tftp tftp.${BPN} | 59 | update-alternatives --remove tftp tftp.${BPN} |
| 60 | update-alternatives --remove telnet telnet.${BPN} | 60 | update-alternatives --remove telnet telnet.${BPN} |
| 61 | update-alternatives --remove logger logger.${BPN} | 61 | update-alternatives --remove logger logger.${BPN} |
| 62 | update-alternatives --remove traceroute traceroute.${BPN} | 62 | update-alternatives --remove traceroute traceroute.${BPN} |
| 63 | update-alternatives --remove ifconfig ifconfig.${BPN} | 63 | update-alternatives --remove ifconfig ifconfig.${BPN} |
| 64 | } | 64 | } |
