diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb')
-rw-r--r-- | meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb | 170 |
1 files changed, 170 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb new file mode 100644 index 000000000..e46133efb --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb | |||
@@ -0,0 +1,170 @@ | |||
1 | DESCRIPTION = "The GNU inetutils are a collection of common \ | ||
2 | networking utilities and servers including ftp, ftpd, rcp, \ | ||
3 | rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, \ | ||
4 | talkd, telnet, telnetd, tftp, tftpd, and uucpd." | ||
5 | SECTION = "libs" | ||
6 | DEPENDS = "ncurses netbase readline" | ||
7 | LICENSE = "GPLv3" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7" | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ | ||
12 | file://version.patch \ | ||
13 | file://inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch \ | ||
14 | file://inetutils-1.8-0003-wchar.patch \ | ||
15 | file://rexec.xinetd.inetutils \ | ||
16 | file://rlogin.xinetd.inetutils \ | ||
17 | file://rsh.xinetd.inetutils \ | ||
18 | file://telnet.xinetd.inetutils \ | ||
19 | file://tftpd.xinetd.inetutils \ | ||
20 | file://inetutils-1.9-PATH_PROCNET_DEV.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI[md5sum] = "aa1a9a132259db83e66c1f3265065ba2" | ||
24 | SRC_URI[sha256sum] = "0423ea40a160cd4630f817e247df5c08ecc625378d2bb56a0509117a36a89913" | ||
25 | |||
26 | inherit autotools gettext update-alternatives texinfo | ||
27 | |||
28 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'file://fix-disable-ipv6.patch', d)}" | ||
29 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" | ||
30 | |||
31 | PACKAGECONFIG ??= "ftp uucpd" | ||
32 | PACKAGECONFIG[ftp] = "--enable-ftp,--disable-ftp,readline" | ||
33 | PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline" | ||
34 | |||
35 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ | ||
36 | ${noipv6} \ | ||
37 | inetutils_cv_path_login=${base_bindir}/login \ | ||
38 | --with-libreadline-prefix=${STAGING_LIBDIR} \ | ||
39 | --enable-rpath=no \ | ||
40 | " | ||
41 | |||
42 | do_configure_prepend () { | ||
43 | export HELP2MAN='true' | ||
44 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath | ||
45 | rm -f ${S}/glob/configure* | ||
46 | } | ||
47 | |||
48 | do_install_append () { | ||
49 | install -m 0755 -d ${D}${base_bindir} | ||
50 | install -m 0755 -d ${D}${base_sbindir} | ||
51 | install -m 0755 -d ${D}${sbindir} | ||
52 | install -m 0755 -d ${D}${sysconfdir}/xinetd.d | ||
53 | mv ${D}${bindir}/ping ${D}${base_bindir}/ | ||
54 | mv ${D}${bindir}/ping6 ${D}${base_bindir}/ | ||
55 | mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/ | ||
56 | mv ${D}${libexecdir}/syslogd ${D}${base_sbindir}/ | ||
57 | mv ${D}${bindir}/hostname ${D}${base_bindir}/ | ||
58 | mv ${D}${libexecdir}/tftpd ${D}${sbindir}/in.tftpd | ||
59 | mv ${D}${libexecdir}/telnetd ${D}${sbindir}/in.telnetd | ||
60 | mv ${D}${libexecdir}/rexecd ${D}${sbindir}/in.rexecd | ||
61 | mv ${D}${libexecdir}/rlogind ${D}${sbindir}/in.rlogind | ||
62 | mv ${D}${libexecdir}/rshd ${D}${sbindir}/in.rshd | ||
63 | mv ${D}${libexecdir}/talkd ${D}${sbindir}/in.talkd | ||
64 | mv ${D}${libexecdir}/uucpd ${D}${sbindir}/in.uucpd | ||
65 | mv ${D}${libexecdir}/* ${D}${bindir}/ | ||
66 | cp ${WORKDIR}/rexec.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rexec | ||
67 | cp ${WORKDIR}/rlogin.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rlogin | ||
68 | cp ${WORKDIR}/rsh.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rsh | ||
69 | cp ${WORKDIR}/telnet.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/telnet | ||
70 | cp ${WORKDIR}/tftpd.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/tftpd | ||
71 | rm -rf ${D}${libexecdir}/ | ||
72 | # remove usr/lib if empty | ||
73 | rmdir ${D}${libdir} | ||
74 | } | ||
75 | |||
76 | PACKAGES =+ "${PN}-ping ${PN}-ping6 ${PN}-hostname ${PN}-ifconfig \ | ||
77 | ${PN}-tftp ${PN}-logger ${PN}-traceroute ${PN}-syslogd \ | ||
78 | ${PN}-ftp ${PN}-ftpd ${PN}-tftpd ${PN}-telnet ${PN}-telnetd ${PN}-inetd \ | ||
79 | ${PN}-rsh ${PN}-rshd" | ||
80 | |||
81 | # The packages tftpd, telnetd and rshd conflict with the ones | ||
82 | # provided by netkit, so add the corresponding -dbg packages | ||
83 | # for them to avoid the confliction between the dbg package | ||
84 | # of inetutils and netkit. | ||
85 | PACKAGES += "${PN}-tftpd-dbg ${PN}-telnetd-dbg ${PN}-rshd-dbg" | ||
86 | |||
87 | ALTERNATIVE_PRIORITY = "80" | ||
88 | ALTERNATIVE_${PN} = "talk whois" | ||
89 | ALTERNATIVE_LINK_NAME[talkd] = "${sbindir}/in.talkd" | ||
90 | ALTERNATIVE_LINK_NAME[uucpd] = "${sbindir}/in.uucpd" | ||
91 | |||
92 | ALTERNATIVE_${PN}-logger = "logger" | ||
93 | ALTERNATIVE_${PN}-syslogd = "syslogd" | ||
94 | ALTERNATIVE_LINK_NAME[syslogd] = "${base_sbindir}/syslogd" | ||
95 | |||
96 | ALTERNATIVE_${PN}-ftp = "ftp" | ||
97 | ALTERNATIVE_${PN}-ftpd = "ftpd" | ||
98 | ALTERNATIVE_${PN}-tftp = "tftp" | ||
99 | ALTERNATIVE_${PN}-tftpd = "tftpd" | ||
100 | ALTERNATIVE_LINK_NAME[tftpd] = "${bindir}/tftpd" | ||
101 | ALTERNATIVE_TARGET[tftpd] = "${sbindir}/in.tftpd" | ||
102 | |||
103 | ALTERNATIVE_${PN}-telnet = "telnet" | ||
104 | ALTERNATIVE_${PN}-telnetd = "telnetd" | ||
105 | ALTERNATIVE_LINK_NAME[telnetd] = "${bindir}/telnetd" | ||
106 | ALTERNATIVE_TARGET[telnetd] = "${sbindir}/in.telnetd" | ||
107 | |||
108 | ALTERNATIVE_${PN}-rsh = "rcp rexec rlogin rsh" | ||
109 | ALTERNATIVE_${PN}-rshd = "rshd rexecd rlogind" | ||
110 | ALTERNATIVE_LINK_NAME[rshd] = "${bindir}/rshd" | ||
111 | ALTERNATIVE_TARGET[rshd] = "${sbindir}/in.rshd" | ||
112 | ALTERNATIVE_LINK_NAME[rexecd] = "${bindir}/rexecd" | ||
113 | ALTERNATIVE_TARGET[rexecd] = "${sbindir}/in.rexecd" | ||
114 | ALTERNATIVE_LINK_NAME[rlogind] = "${bindir}/rlogind" | ||
115 | ALTERNATIVE_TARGET[rlogind] = "${sbindir}/in.rlogind" | ||
116 | |||
117 | ALTERNATIVE_${PN}-inetd= "inetd" | ||
118 | ALTERNATIVE_${PN}-traceroute = "traceroute" | ||
119 | |||
120 | ALTERNATIVE_${PN}-hostname = "hostname" | ||
121 | ALTERNATIVE_LINK_NAME[hostname] = "${base_bindir}/hostname" | ||
122 | |||
123 | ALTERNATIVE_${PN}-ifconfig = "ifconfig" | ||
124 | ALTERNATIVE_LINK_NAME[ifconfig] = "${base_sbindir}/ifconfig" | ||
125 | |||
126 | ALTERNATIVE_${PN}-ping = "ping" | ||
127 | ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping" | ||
128 | |||
129 | ALTERNATIVE_${PN}-ping6 = "ping6" | ||
130 | ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6" | ||
131 | |||
132 | |||
133 | FILES_${PN}-ping = "${base_bindir}/ping.${BPN}" | ||
134 | FILES_${PN}-ping6 = "${base_bindir}/ping6.${BPN}" | ||
135 | FILES_${PN}-hostname = "${base_bindir}/hostname.${BPN}" | ||
136 | FILES_${PN}-ifconfig = "${base_sbindir}/ifconfig.${BPN}" | ||
137 | FILES_${PN}-traceroute = "${bindir}/traceroute.${BPN}" | ||
138 | FILES_${PN}-logger = "${bindir}/logger.${BPN}" | ||
139 | FILES_${PN}-syslogd = "${base_sbindir}/syslogd.${BPN}" | ||
140 | FILES_${PN}-ftp = "${bindir}/ftp.${BPN}" | ||
141 | |||
142 | FILES_${PN}-tftp = "${bindir}/tftp.${BPN}" | ||
143 | FILES_${PN}-telnet = "${bindir}/telnet.${BPN}" | ||
144 | FILES_${PN}-rsh = "${bindir}/rsh.${BPN} ${bindir}/rlogin.${BPN} ${bindir}/rexec.${BPN} ${bindir}/rcp.${BPN}" | ||
145 | |||
146 | FILES_${PN}-rshd = "${sbindir}/in.rshd ${sbindir}/in.rlogind ${sbindir}/in.rexecd \ | ||
147 | ${sysconfdir}/xinetd.d/rsh ${sysconfdir}/xinetd.d/rlogin ${sysconfdir}/xinetd.d/rexec" | ||
148 | FILES_${PN}-rshd-dbg = "${sbindir}/.debug/in.rshd ${sbindir}/.debug/in.rlogind ${sbindir}/.debug/in.rexecd" | ||
149 | RDEPENDS_${PN}-rshd += "xinetd tcp-wrappers" | ||
150 | RCONFLICTS_${PN}-rshd += "netkit-rshd" | ||
151 | RPROVIDES_${PN}-rshd = "rshd" | ||
152 | |||
153 | FILES_${PN}-ftpd = "${bindir}/ftpd.${BPN}" | ||
154 | FILES_${PN}-ftpd-dbg = "${bindir}/.debug/ftpd.${BPN}" | ||
155 | RDEPENDS_${PN}-ftpd += "xinetd" | ||
156 | |||
157 | FILES_${PN}-tftpd = "${sbindir}/in.tftpd ${sysconfdir}/xinetd.d/tftpd" | ||
158 | FILES_${PN}-tftpd-dbg = "${sbindir}/.debug/in.tftpd" | ||
159 | RCONFLICTS_${PN}-tftpd += "netkit-tftpd" | ||
160 | RDEPENDS_${PN}-tftpd += "xinetd" | ||
161 | |||
162 | FILES_${PN}-telnetd = "${sbindir}/in.telnetd ${sysconfdir}/xinetd.d/telnet" | ||
163 | FILES_${PN}-telnetd-dbg = "${sbindir}/.debug/in.telnetd" | ||
164 | RCONFLICTS_${PN}-telnetd += "netkit-telnetd" | ||
165 | RPROVIDES_${PN}-telnetd = "telnetd" | ||
166 | RDEPENDS_${PN}-telnetd += "xinetd" | ||
167 | |||
168 | FILES_${PN}-inetd = "${bindir}/inetd.${BPN}" | ||
169 | |||
170 | RDEPENDS_${PN} = "xinetd" | ||