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