diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-connectivity/inetutils | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/inetutils')
13 files changed, 451 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/disable-pre-ANSI-compilers.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/disable-pre-ANSI-compilers.patch new file mode 100644 index 0000000000..a7fa61c798 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/disable-pre-ANSI-compilers.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | disable pre-ANSI compilers | ||
4 | |||
5 | Signed-off-by: Chunrong Guo <b40290@freescale.com> | ||
6 | --- inetutils-1.9.1/configure.ac 2012-01-06 22:05:05.000000000 +0800 | ||
7 | +++ inetutils-1.9.1/configure.ac 2012-11-12 14:05:30.756957063 +0800 | ||
8 | @@ -586,7 +586,7 @@ | ||
9 | #include <arpa/tftp.h>]) | ||
10 | |||
11 | ### Checks for compiler characteristics. | ||
12 | -AM_C_PROTOTYPES dnl FIXME: Does inetutils even compile on pre-ANSI compilers? | ||
13 | +#AM_C_PROTOTYPES dnl FIXME: Does inetutils even compile on pre-ANSI compilers? | ||
14 | AC_C_CONST | ||
15 | |||
16 | dnl See if `weak refs' are possible; these make it possible (with shared | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/fix-disable-ipv6.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/fix-disable-ipv6.patch new file mode 100644 index 0000000000..bd3ae476bd --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/fix-disable-ipv6.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | Upstream: http://www.mail-archive.com/bug-inetutils@gnu.org/msg02103.html | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | diff -ur inetutils-1.8.orig/ping/ping_common.h inetutils-1.8/ping/ping_common.h | ||
6 | --- inetutils-1.8.orig/ping/ping_common.h 2010-05-15 20:55:47.000000000 +0930 | ||
7 | +++ inetutils-1.8/ping/ping_common.h 2010-12-01 12:19:08.000000000 +1030 | ||
8 | @@ -17,10 +17,14 @@ | ||
9 | You should have received a copy of the GNU General Public License | ||
10 | along with this program. If not, see `http://www.gnu.org/licenses/'. */ | ||
11 | |||
12 | +#include <config.h> | ||
13 | + | ||
14 | #include <netinet/in_systm.h> | ||
15 | #include <netinet/in.h> | ||
16 | #include <netinet/ip.h> | ||
17 | +#ifdef HAVE_IPV6 | ||
18 | #include <netinet/icmp6.h> | ||
19 | +#endif | ||
20 | #include <icmp.h> | ||
21 | #include <error.h> | ||
22 | #include <progname.h> | ||
23 | @@ -66,13 +70,19 @@ | ||
24 | (t).tv_usec = ((i)%PING_PRECISION)*(1000000/PING_PRECISION) ;\ | ||
25 | } while (0) | ||
26 | |||
27 | +#ifdef HAVE_IPV6 | ||
28 | /* Not sure about this step*/ | ||
29 | #define _PING_BUFLEN(p, USE_IPV6) ((USE_IPV6)? ((p)->ping_datalen + sizeof (struct icmp6_hdr)) : \ | ||
30 | ((p)->ping_datalen + sizeof (icmphdr_t))) | ||
31 | +#else | ||
32 | +#define _PING_BUFLEN(p, USE_IPV6) ((p)->ping_datalen + sizeof (icmphdr_t)) | ||
33 | +#endif | ||
34 | |||
35 | +#ifdef HAVE_IPV6 | ||
36 | typedef int (*ping_efp6) (int code, void *closure, struct sockaddr_in6 * dest, | ||
37 | struct sockaddr_in6 * from, struct icmp6_hdr * icmp, | ||
38 | int datalen); | ||
39 | +#endif | ||
40 | |||
41 | typedef int (*ping_efp) (int code, | ||
42 | void *closure, | ||
43 | @@ -81,13 +91,17 @@ | ||
44 | struct ip * ip, icmphdr_t * icmp, int datalen); | ||
45 | |||
46 | union event { | ||
47 | +#ifdef HAVE_IPV6 | ||
48 | ping_efp6 handler6; | ||
49 | +#endif | ||
50 | ping_efp handler; | ||
51 | }; | ||
52 | |||
53 | union ping_address { | ||
54 | struct sockaddr_in ping_sockaddr; | ||
55 | +#ifdef HAVE_IPV6 | ||
56 | struct sockaddr_in6 ping_sockaddr6; | ||
57 | +#endif | ||
58 | }; | ||
59 | |||
60 | typedef struct ping_data PING; | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch new file mode 100644 index 0000000000..3da4e9f55a --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 552a7d64ad4a7188a9b7cd89933ae7caf7ebfe90 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mike Frysinger <vapier at gentoo.org> | ||
3 | Date: Thu, 18 Nov 2010 16:59:14 -0500 | ||
4 | Subject: [PATCH gnulib] printf-parse: pull in features.h for __GLIBC__ | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Mike Frysinger <vapier at gentoo.org> | ||
9 | --- | ||
10 | lib/printf-parse.h | 3 +++ | ||
11 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
12 | |||
13 | diff --git a/lib/printf-parse.h b/lib/printf-parse.h | ||
14 | index 67a4a2a..3bd6152 100644 | ||
15 | --- a/lib/printf-parse.h | ||
16 | +++ b/lib/printf-parse.h | ||
17 | @@ -25,6 +25,9 @@ | ||
18 | |||
19 | #include "printf-args.h" | ||
20 | |||
21 | +#ifdef HAVE_FEATURES_H | ||
22 | +# include <features.h> /* for __GLIBC__ */ | ||
23 | +#endif | ||
24 | |||
25 | /* Flags */ | ||
26 | #define FLAG_GROUP 1 /* ' flag */ | ||
27 | -- | ||
28 | 1.7.3.2 | ||
29 | |||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0003-wchar.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0003-wchar.patch new file mode 100644 index 0000000000..b13bb9229f --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0003-wchar.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- inetutils-1.8/lib/wchar.in.h | ||
4 | +++ inetutils-1.8/lib/wchar.in.h | ||
5 | @@ -70,6 +70,9 @@ | ||
6 | /* The include_next requires a split double-inclusion guard. */ | ||
7 | #if @HAVE_WCHAR_H@ | ||
8 | # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ | ||
9 | +#else | ||
10 | +# include <stddef.h> | ||
11 | +# define MB_CUR_MAX 1 | ||
12 | #endif | ||
13 | |||
14 | #undef _GL_ALREADY_INCLUDING_WCHAR_H | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch new file mode 100644 index 0000000000..2592989a90 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | inetutils: define PATH_PROCNET_DEV if not already defined | ||
2 | |||
3 | this prevents the following compilation error : | ||
4 | system/linux.c:401:15: error: 'PATH_PROCNET_DEV' undeclared (first use in this function) | ||
5 | |||
6 | this patch comes from : | ||
7 | http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/ | ||
8 | |||
9 | Upstream-Status: Inappropriate [not author] | ||
10 | |||
11 | Signed-of-by: Eric Bénard <eric@eukrea.com> | ||
12 | --- | ||
13 | diff -Naur inetutils-1.9.orig/ifconfig/system/linux.c inetutils-1.9/ifconfig/system/linux.c | ||
14 | --- inetutils-1.9.orig/ifconfig/system/linux.c 2012-01-04 16:31:36.000000000 -0500 | ||
15 | +++ inetutils-1.9/ifconfig/system/linux.c 2012-01-04 16:40:53.000000000 -0500 | ||
16 | @@ -49,6 +49,10 @@ | ||
17 | #include "../ifconfig.h" | ||
18 | |||
19 | |||
20 | +#ifndef PATH_PROCNET_DEV | ||
21 | + #define PATH_PROCNET_DEV "/proc/net/dev" | ||
22 | +#endif | ||
23 | + | ||
24 | /* ARPHRD stuff. */ | ||
25 | |||
26 | static void | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch new file mode 100644 index 0000000000..61d16e3a74 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Uptream-Status: Pending | ||
2 | |||
3 | remove gets function | ||
4 | |||
5 | Signed-off-by: Chunrong Guo <b40290@freescale.com> | ||
6 | --- inetutils-1.9.1.org/lib/stdio.in.h 2012-01-06 22:11:13.000000000 +0800 | ||
7 | +++ inetutils-1.9.1/lib/stdio.in.h 2012-11-12 14:30:49.044958001 +0800 | ||
8 | @@ -715,9 +715,13 @@ | ||
9 | /* It is very rare that the developer ever has full control of stdin, | ||
10 | so any use of gets warrants an unconditional warning. Assume it is | ||
11 | always declared, since it is required by C89. */ | ||
12 | +#if defined gets | ||
13 | +#undef gets | ||
14 | _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | ||
15 | #endif | ||
16 | |||
17 | +#endif | ||
18 | + | ||
19 | |||
20 | #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ | ||
21 | struct obstack; | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rexec.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rexec.xinetd.inetutils new file mode 100644 index 0000000000..80aed36ffb --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rexec.xinetd.inetutils | |||
@@ -0,0 +1,20 @@ | |||
1 | # default: off | ||
2 | # description: | ||
3 | # Rexecd is the server for the rexec program. The server provides remote | ||
4 | # execution facilities with authentication based on user names and | ||
5 | # passwords. | ||
6 | # | ||
7 | service exec | ||
8 | { | ||
9 | socket_type = stream | ||
10 | protocol = tcp | ||
11 | flags = NAMEINARGS | ||
12 | wait = no | ||
13 | user = root | ||
14 | group = root | ||
15 | log_on_success += USERID | ||
16 | log_on_failure += USERID | ||
17 | server = /usr/bin/tcpd | ||
18 | server_args = /usr/sbin/in.rexecd | ||
19 | disable = yes | ||
20 | } | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rlogin.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rlogin.xinetd.inetutils new file mode 100644 index 0000000000..00dbf935bb --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rlogin.xinetd.inetutils | |||
@@ -0,0 +1,23 @@ | |||
1 | # default: off | ||
2 | # description: | ||
3 | # Rlogind is a server for the rlogin program. The server provides remote | ||
4 | # execution with authentication based on privileged port numbers from trusted | ||
5 | # host | ||
6 | # | ||
7 | service login | ||
8 | { | ||
9 | socket_type = stream | ||
10 | protocol = tcp | ||
11 | flags = NAMEINARGS | ||
12 | wait = no | ||
13 | user = root | ||
14 | group = root | ||
15 | log_on_success += USERID | ||
16 | log_on_failure += USERID | ||
17 | server = /usr/bin/tcpd | ||
18 | server_args = /usr/sbin/in.rlogind -a | ||
19 | disable = yes | ||
20 | } | ||
21 | |||
22 | |||
23 | |||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rsh.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rsh.xinetd.inetutils new file mode 100644 index 0000000000..ad59b62076 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rsh.xinetd.inetutils | |||
@@ -0,0 +1,21 @@ | |||
1 | # default: off | ||
2 | # description: | ||
3 | # The rshd server is a server for the rcmd(3) routine and, | ||
4 | # consequently, for the rsh(1) program. The server provides | ||
5 | # remote execution facilities with authentication based on | ||
6 | # privileged port numbers from trusted hosts. | ||
7 | # | ||
8 | service shell | ||
9 | { | ||
10 | socket_type = stream | ||
11 | protocol = tcp | ||
12 | flags = NAMEINARGS | ||
13 | wait = no | ||
14 | user = root | ||
15 | group = root | ||
16 | log_on_success += USERID | ||
17 | log_on_failure += USERID | ||
18 | server = /usr/bin/tcpd | ||
19 | server_args = /usr/sbin/in.rshd -aL | ||
20 | disable = yes | ||
21 | } | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/telnet.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/telnet.xinetd.inetutils new file mode 100644 index 0000000000..2a2a12e3ad --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/telnet.xinetd.inetutils | |||
@@ -0,0 +1,13 @@ | |||
1 | # default: on | ||
2 | # description: The telnet server serves telnet sessions; it uses \ | ||
3 | # unencrypted username/password pairs for authentication. | ||
4 | service telnet | ||
5 | { | ||
6 | disable = no | ||
7 | flags = REUSE | ||
8 | socket_type = stream | ||
9 | wait = no | ||
10 | user = root | ||
11 | server = /usr/sbin/in.telnetd | ||
12 | log_on_failure += USERID | ||
13 | } | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/tftpd.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/tftpd.xinetd.inetutils new file mode 100644 index 0000000000..f549163394 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/tftpd.xinetd.inetutils | |||
@@ -0,0 +1,19 @@ | |||
1 | # default: off | ||
2 | # description: | ||
3 | # Tftpd is a server which supports the Internet Trivial File Transfer | ||
4 | # Pro-tocol (RFC 783). The TFTP server operates at the port indicated | ||
5 | # in the tftp service description; see services(5). | ||
6 | # | ||
7 | service tftp | ||
8 | { | ||
9 | disable = yes | ||
10 | socket_type = dgram | ||
11 | protocol = udp | ||
12 | flags = IPv6 | ||
13 | wait = yes | ||
14 | user = root | ||
15 | group = root | ||
16 | server = /usr/sbin/in.tftpd | ||
17 | server_args = /tftpboot | ||
18 | } | ||
19 | |||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/version.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/version.patch new file mode 100644 index 0000000000..ac3181ddb2 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/version.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | remove m4_esyscmd function | ||
4 | |||
5 | Signed-off-by: Chunrong Guo <b40290@freescale.com> | ||
6 | --- inetutils-1.9.1/configure.ac 2012-01-06 22:05:05.000000000 +0800 | ||
7 | +++ inetutils-1.9.1/configure.ac 2012-11-12 14:01:11.732957019 +0800 | ||
8 | @@ -20,8 +20,7 @@ | ||
9 | |||
10 | AC_PREREQ(2.59) | ||
11 | |||
12 | -AC_INIT([GNU inetutils], | ||
13 | - m4_esyscmd([build-aux/git-version-gen .tarball-version 's/inetutils-/v/;s/_/./g']), | ||
14 | +AC_INIT([GNU inetutils],[1.9.1], | ||
15 | [bug-inetutils@gnu.org]) | ||
16 | |||
17 | AC_CONFIG_SRCDIR([src/inetd.c]) | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb new file mode 100644 index 0000000000..0e47015c0e --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb | |||
@@ -0,0 +1,172 @@ | |||
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 | PR = "r1" | ||
12 | SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ | ||
13 | file://disable-pre-ANSI-compilers.patch \ | ||
14 | file://version.patch \ | ||
15 | file://remove-gets.patch \ | ||
16 | file://inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch \ | ||
17 | file://inetutils-1.8-0003-wchar.patch \ | ||
18 | file://rexec.xinetd.inetutils \ | ||
19 | file://rlogin.xinetd.inetutils \ | ||
20 | file://rsh.xinetd.inetutils \ | ||
21 | file://telnet.xinetd.inetutils \ | ||
22 | file://tftpd.xinetd.inetutils \ | ||
23 | file://inetutils-1.9-PATH_PROCNET_DEV.patch \ | ||
24 | " | ||
25 | |||
26 | SRC_URI[md5sum] = "944f7196a2b3dba2d400e9088576000c" | ||
27 | SRC_URI[sha256sum] = "02a9ebde8a198cb85f87545b9d88fb103a183958139864a85fe9e027ad79ff2b" | ||
28 | |||
29 | inherit autotools gettext update-alternatives | ||
30 | |||
31 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'file://fix-disable-ipv6.patch', d)}" | ||
32 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" | ||
33 | |||
34 | PACKAGECONFIG ??= "ftp uucpd" | ||
35 | PACKAGECONFIG[ftp] = "--enable-ftp,--disable-ftp,readline" | ||
36 | PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline" | ||
37 | |||
38 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ | ||
39 | ${noipv6} \ | ||
40 | --with-libreadline-prefix=${STAGING_LIBDIR} \ | ||
41 | --enable-rpath=no \ | ||
42 | " | ||
43 | |||
44 | do_configure_prepend () { | ||
45 | export HELP2MAN='true' | ||
46 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath | ||
47 | rm -f ${S}/glob/configure* | ||
48 | } | ||
49 | |||
50 | do_install_append () { | ||
51 | install -m 0755 -d ${D}${base_bindir} | ||
52 | install -m 0755 -d ${D}${base_sbindir} | ||
53 | install -m 0755 -d ${D}${sbindir} | ||
54 | install -m 0755 -d ${D}${sysconfdir}/xinetd.d | ||
55 | mv ${D}${bindir}/ping ${D}${base_bindir}/ | ||
56 | mv ${D}${bindir}/ping6 ${D}${base_bindir}/ | ||
57 | mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/ | ||
58 | mv ${D}${libexecdir}/syslogd ${D}${base_sbindir}/ | ||
59 | mv ${D}${bindir}/hostname ${D}${base_bindir}/ | ||
60 | mv ${D}${libexecdir}/tftpd ${D}${sbindir}/in.tftpd | ||
61 | mv ${D}${libexecdir}/telnetd ${D}${sbindir}/in.telnetd | ||
62 | mv ${D}${libexecdir}/rexecd ${D}${sbindir}/in.rexecd | ||
63 | mv ${D}${libexecdir}/rlogind ${D}${sbindir}/in.rlogind | ||
64 | mv ${D}${libexecdir}/rshd ${D}${sbindir}/in.rshd | ||
65 | mv ${D}${libexecdir}/talkd ${D}${sbindir}/in.talkd | ||
66 | mv ${D}${libexecdir}/uucpd ${D}${sbindir}/in.uucpd | ||
67 | mv ${D}${libexecdir}/* ${D}${bindir}/ | ||
68 | cp ${WORKDIR}/rexec.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rexec | ||
69 | cp ${WORKDIR}/rlogin.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rlogin | ||
70 | cp ${WORKDIR}/rsh.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rsh | ||
71 | cp ${WORKDIR}/telnet.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/telnet | ||
72 | cp ${WORKDIR}/tftpd.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/tftpd | ||
73 | rm -rf ${D}${libexecdir}/ | ||
74 | # remove usr/lib if empty | ||
75 | rmdir ${D}${libdir} | ||
76 | } | ||
77 | |||
78 | PACKAGES =+ "${PN}-ping ${PN}-ping6 ${PN}-hostname ${PN}-ifconfig \ | ||
79 | ${PN}-tftp ${PN}-logger ${PN}-traceroute ${PN}-syslogd \ | ||
80 | ${PN}-ftp ${PN}-ftpd ${PN}-tftpd ${PN}-telnet ${PN}-telnetd ${PN}-inetd \ | ||
81 | ${PN}-rsh ${PN}-rshd" | ||
82 | |||
83 | # The packages tftpd, telnetd and rshd conflict with the ones | ||
84 | # provided by netkit, so add the corresponding -dbg packages | ||
85 | # for them to avoid the confliction between the dbg package | ||
86 | # of inetutils and netkit. | ||
87 | PACKAGES += "${PN}-tftpd-dbg ${PN}-telnetd-dbg ${PN}-rshd-dbg" | ||
88 | |||
89 | ALTERNATIVE_PRIORITY = "80" | ||
90 | ALTERNATIVE_${PN} = "talk whois" | ||
91 | ALTERNATIVE_LINK_NAME[talkd] = "${sbindir}/in.talkd" | ||
92 | ALTERNATIVE_LINK_NAME[uucpd] = "${sbindir}/in.uucpd" | ||
93 | |||
94 | ALTERNATIVE_${PN}-logger = "logger" | ||
95 | ALTERNATIVE_${PN}-syslogd = "syslogd" | ||
96 | ALTERNATIVE_LINK_NAME[syslogd] = "${base_sbindir}/syslogd" | ||
97 | |||
98 | ALTERNATIVE_${PN}-ftp = "ftp" | ||
99 | ALTERNATIVE_${PN}-ftpd = "ftpd" | ||
100 | ALTERNATIVE_${PN}-tftp = "tftp" | ||
101 | ALTERNATIVE_${PN}-tftpd = "tftpd" | ||
102 | ALTERNATIVE_LINK_NAME[tftpd] = "${bindir}/tftpd" | ||
103 | ALTERNATIVE_TARGET[tftpd] = "${sbindir}/in.tftpd" | ||
104 | |||
105 | ALTERNATIVE_${PN}-telnet = "telnet" | ||
106 | ALTERNATIVE_${PN}-telnetd = "telnetd" | ||
107 | ALTERNATIVE_LINK_NAME[telnetd] = "${bindir}/telnetd" | ||
108 | ALTERNATIVE_TARGET[telnetd] = "${sbindir}/in.telnetd" | ||
109 | |||
110 | ALTERNATIVE_${PN}-rsh = "rcp rexec rlogin rsh" | ||
111 | ALTERNATIVE_${PN}-rshd = "rshd rexecd rlogind" | ||
112 | ALTERNATIVE_LINK_NAME[rshd] = "${bindir}/rshd" | ||
113 | ALTERNATIVE_TARGET[rshd] = "${sbindir}/in.rshd" | ||
114 | ALTERNATIVE_LINK_NAME[rexecd] = "${bindir}/rexecd" | ||
115 | ALTERNATIVE_TARGET[rexecd] = "${sbindir}/in.rexecd" | ||
116 | ALTERNATIVE_LINK_NAME[rlogind] = "${bindir}/rlogind" | ||
117 | ALTERNATIVE_TARGET[rlogind] = "${sbindir}/in.rlogind" | ||
118 | |||
119 | ALTERNATIVE_${PN}-inetd= "inetd" | ||
120 | ALTERNATIVE_${PN}-traceroute = "traceroute" | ||
121 | |||
122 | ALTERNATIVE_${PN}-hostname = "hostname" | ||
123 | ALTERNATIVE_LINK_NAME[hostname] = "${base_bindir}/hostname" | ||
124 | |||
125 | ALTERNATIVE_${PN}-ifconfig = "ifconfig" | ||
126 | ALTERNATIVE_LINK_NAME[ifconfig] = "${base_sbindir}/ifconfig" | ||
127 | |||
128 | ALTERNATIVE_${PN}-ping = "ping" | ||
129 | ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping" | ||
130 | |||
131 | ALTERNATIVE_${PN}-ping6 = "ping6" | ||
132 | ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6" | ||
133 | |||
134 | |||
135 | FILES_${PN}-ping = "${base_bindir}/ping.${BPN}" | ||
136 | FILES_${PN}-ping6 = "${base_bindir}/ping6.${BPN}" | ||
137 | FILES_${PN}-hostname = "${base_bindir}/hostname.${BPN}" | ||
138 | FILES_${PN}-ifconfig = "${base_sbindir}/ifconfig.${BPN}" | ||
139 | FILES_${PN}-traceroute = "${bindir}/traceroute.${BPN}" | ||
140 | FILES_${PN}-logger = "${bindir}/logger.${BPN}" | ||
141 | FILES_${PN}-syslogd = "${base_sbindir}/syslogd.${BPN}" | ||
142 | FILES_${PN}-ftp = "${bindir}/ftp.${BPN}" | ||
143 | |||
144 | FILES_${PN}-tftp = "${bindir}/tftp.${BPN}" | ||
145 | FILES_${PN}-telnet = "${bindir}/telnet.${BPN}" | ||
146 | FILES_${PN}-rsh = "${bindir}/rsh.${BPN} ${bindir}/rlogin.${BPN} ${bindir}/rexec.${BPN} ${bindir}/rcp.${BPN}" | ||
147 | |||
148 | FILES_${PN}-rshd = "${sbindir}/in.rshd ${sbindir}/in.rlogind ${sbindir}/in.rexecd \ | ||
149 | ${sysconfdir}/xinetd.d/rsh ${sysconfdir}/xinetd.d/rlogin ${sysconfdir}/xinetd.d/rexec" | ||
150 | FILES_${PN}-rshd-dbg = "${sbindir}/.debug/in.rshd ${sbindir}/.debug/in.rlogind ${sbindir}/.debug/in.rexecd" | ||
151 | RDEPENDS_${PN}-rshd += "xinetd tcp-wrappers" | ||
152 | RCONFLICTS_${PN}-rshd += "netkit-rshd" | ||
153 | RPROVIDES_${PN}-rshd = "rshd" | ||
154 | |||
155 | FILES_${PN}-ftpd = "${bindir}/ftpd.${BPN}" | ||
156 | FILES_${PN}-ftpd-dbg = "${bindir}/.debug/ftpd.${BPN}" | ||
157 | RDEPENDS_${PN}-ftpd += "xinetd" | ||
158 | |||
159 | FILES_${PN}-tftpd = "${sbindir}/in.tftpd ${sysconfdir}/xinetd.d/tftpd" | ||
160 | FILES_${PN}-tftpd-dbg = "${sbindir}/.debug/in.tftpd" | ||
161 | RCONFLICTS_${PN}-tftpd += "netkit-tftpd" | ||
162 | RDEPENDS_${PN}-tftpd += "xinetd" | ||
163 | |||
164 | FILES_${PN}-telnetd = "${sbindir}/in.telnetd ${sysconfdir}/xinetd.d/telnet" | ||
165 | FILES_${PN}-telnetd-dbg = "${sbindir}/.debug/in.telnetd" | ||
166 | RCONFLICTS_${PN}-telnetd += "netkit-telnetd" | ||
167 | RPROVIDES_${PN}-telnetd = "telnetd" | ||
168 | RDEPENDS_${PN}-telnetd += "xinetd" | ||
169 | |||
170 | FILES_${PN}-inetd = "${bindir}/inetd.${BPN}" | ||
171 | |||
172 | RDEPENDS_${PN} = "xinetd" | ||