summaryrefslogtreecommitdiff
path: root/packages/inetutils/inetutils_1.5.bb
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2009-02-20 17:46:13 +0100
committerMarcin Juszkiewicz <hrw@openembedded.org>2009-02-20 17:46:13 +0100
commitd5d5c027ad4fd61de578287ace6e308c4f7f5836 (patch)
treefd9329ef8e3aeb02682f4e923d657f4506364cd7 /packages/inetutils/inetutils_1.5.bb
parenta86a6c4ab8cbb99b7dd79a44a3756e7cf2e2df80 (diff)
parent62f7b8ece8a1154fc5ed43d47beec7eb61f543f7 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/inetutils/inetutils_1.5.bb')
-rw-r--r--packages/inetutils/inetutils_1.5.bb21
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}
+}