diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-12-14 18:09:35 -0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-12-15 09:21:29 -0500 |
commit | 3773725982e9160d7ddf20c3a8e31fd6fa04c549 (patch) | |
tree | ceb222b50e6cc2fb3b8d5e2b99d92780a3eee248 /meta-networking | |
parent | 70980214ede19cbc6b3e4c5a1d3b00553e2d703e (diff) | |
download | meta-openembedded-3773725982e9160d7ddf20c3a8e31fd6fa04c549.tar.gz |
inetutils: Disable rsh, rcp, rlogin on musl
They all need rcmd() API from rpc implementation
and while glibc provides it bundled, musl does not
so we disable these apps
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb index a35e0b4a7..a8c40254b 100644 --- a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb +++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb | |||
@@ -5,6 +5,7 @@ talkd, telnet, telnetd, tftp, tftpd, and uucpd." | |||
5 | HOMEPAGE = "http://www.gnu.org/software/inetutils" | 5 | HOMEPAGE = "http://www.gnu.org/software/inetutils" |
6 | SECTION = "net" | 6 | SECTION = "net" |
7 | DEPENDS = "ncurses netbase readline" | 7 | DEPENDS = "ncurses netbase readline" |
8 | |||
8 | LICENSE = "GPLv3" | 9 | LICENSE = "GPLv3" |
9 | 10 | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7" |
@@ -48,6 +49,8 @@ EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ | |||
48 | --enable-rpath=no \ | 49 | --enable-rpath=no \ |
49 | " | 50 | " |
50 | 51 | ||
52 | EXTRA_OECONF_append_libc-musl = " --disable-rsh --disable-rcp --disable-rlogin " | ||
53 | |||
51 | do_configure_prepend () { | 54 | do_configure_prepend () { |
52 | export HELP2MAN='true' | 55 | export HELP2MAN='true' |
53 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath | 56 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath |
@@ -66,9 +69,15 @@ do_install_append () { | |||
66 | mv ${D}${libexecdir}/tftpd ${D}${sbindir}/in.tftpd | 69 | mv ${D}${libexecdir}/tftpd ${D}${sbindir}/in.tftpd |
67 | mv ${D}${libexecdir}/telnetd ${D}${sbindir}/in.telnetd | 70 | mv ${D}${libexecdir}/telnetd ${D}${sbindir}/in.telnetd |
68 | mv ${D}${libexecdir}/rexecd ${D}${sbindir}/in.rexecd | 71 | mv ${D}${libexecdir}/rexecd ${D}${sbindir}/in.rexecd |
69 | mv ${D}${libexecdir}/rlogind ${D}${sbindir}/in.rlogind | 72 | if [ -e ${D}${libexecdir}/rlogind ]; then |
70 | mv ${D}${libexecdir}/rshd ${D}${sbindir}/in.rshd | 73 | mv ${D}${libexecdir}/rlogind ${D}${sbindir}/in.rlogind |
71 | mv ${D}${libexecdir}/talkd ${D}${sbindir}/in.talkd | 74 | fi |
75 | if [ -e ${D}${libexecdir}/rshd ]; then | ||
76 | mv ${D}${libexecdir}/rshd ${D}${sbindir}/in.rshd | ||
77 | fi | ||
78 | if [ -e ${D}${libexecdir}/talkd ]; then | ||
79 | mv ${D}${libexecdir}/talkd ${D}${sbindir}/in.talkd | ||
80 | fi | ||
72 | mv ${D}${libexecdir}/uucpd ${D}${sbindir}/in.uucpd | 81 | mv ${D}${libexecdir}/uucpd ${D}${sbindir}/in.uucpd |
73 | mv ${D}${libexecdir}/* ${D}${bindir}/ | 82 | mv ${D}${libexecdir}/* ${D}${bindir}/ |
74 | cp ${WORKDIR}/rexec.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rexec | 83 | cp ${WORKDIR}/rexec.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rexec |
@@ -78,7 +87,9 @@ do_install_append () { | |||
78 | cp ${WORKDIR}/tftpd.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/tftpd | 87 | cp ${WORKDIR}/tftpd.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/tftpd |
79 | 88 | ||
80 | sed -e 's,@SBINDIR@,${sbindir},g' -i ${D}/${sysconfdir}/xinetd.d/* | 89 | sed -e 's,@SBINDIR@,${sbindir},g' -i ${D}/${sysconfdir}/xinetd.d/* |
81 | 90 | if [ -e ${D}${libdir}/charset.alias ]; then | |
91 | rm -rf ${D}${libdir}/charset.alias | ||
92 | fi | ||
82 | rm -rf ${D}${libexecdir}/ | 93 | rm -rf ${D}${libexecdir}/ |
83 | # remove usr/lib if empty | 94 | # remove usr/lib if empty |
84 | rmdir ${D}${libdir} || true | 95 | rmdir ${D}${libdir} || true |