diff options
author | Mike Westerhof <mwester@dls.net> | 2009-02-18 21:07:15 -0600 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2009-02-18 21:08:29 -0600 |
commit | 6f8fa10e4d703298f6dbd32c99d51e5146159256 (patch) | |
tree | 8ec7194e5adf614b34166634834976d441c519ab | |
parent | 07ff9b4089825ac5c6911f9fb337b6f437c3e52d (diff) |
inetutils: Added tftp, telnet, logger to the update-alternatives list
-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} +} |