diff options
Diffstat (limited to 'packages/inetutils/inetutils_1.5.bb')
-rw-r--r-- | packages/inetutils/inetutils_1.5.bb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/inetutils/inetutils_1.5.bb b/packages/inetutils/inetutils_1.5.bb index 12a96b20b1..17f202cfbe 100644 --- a/packages/inetutils/inetutils_1.5.bb +++ b/packages/inetutils/inetutils_1.5.bb @@ -6,6 +6,8 @@ networking utilities and servers including ftp, ftpd, rcp, \ rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, \ talkd, telnet, telnetd, tftp, tftpd, and uucpd." +PR = "r1" + SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ " @@ -16,3 +18,22 @@ EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR}" do_configure_prepend () { rm -f ${S}/glob/configure* } + +do_install () { + autotools_do_install + mv ${D}${bindir}/tftp ${D}${bindir}/tftp.${PN} + mv ${D}${bindir}/telnet ${D}${bindir}/telnet.${PN} + mv ${D}${bindir}/logger ${D}${bindir}/logger.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${bindir}/tftp tftp tftp.${PN} 100 + update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100 + update-alternatives --install ${bindir}/logger logger logger.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove tftp tftp.${PN} + update-alternatives --remove telnet telnet.${PN} + update-alternatives --remove logger logger.${PN} +} |