summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-12-14 18:09:35 -0800
committerJoe MacDonald <joe_macdonald@mentor.com>2016-12-15 09:21:29 -0500
commit3773725982e9160d7ddf20c3a8e31fd6fa04c549 (patch)
treeceb222b50e6cc2fb3b8d5e2b99d92780a3eee248
parent70980214ede19cbc6b3e4c5a1d3b00553e2d703e (diff)
downloadmeta-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>
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb19
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."
5HOMEPAGE = "http://www.gnu.org/software/inetutils" 5HOMEPAGE = "http://www.gnu.org/software/inetutils"
6SECTION = "net" 6SECTION = "net"
7DEPENDS = "ncurses netbase readline" 7DEPENDS = "ncurses netbase readline"
8
8LICENSE = "GPLv3" 9LICENSE = "GPLv3"
9 10
10LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7" 11LIC_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
52EXTRA_OECONF_append_libc-musl = " --disable-rsh --disable-rcp --disable-rlogin "
53
51do_configure_prepend () { 54do_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