diff options
Diffstat (limited to 'recipes/inetutils')
-rw-r--r-- | recipes/inetutils/inetutils-1.4.2/configure.patch | 94 | ||||
-rw-r--r-- | recipes/inetutils/inetutils_1.4.2.bb | 18 | ||||
-rw-r--r-- | recipes/inetutils/inetutils_1.5.bb | 39 |
3 files changed, 151 insertions, 0 deletions
diff --git a/recipes/inetutils/inetutils-1.4.2/configure.patch b/recipes/inetutils/inetutils-1.4.2/configure.patch new file mode 100644 index 0000000000..95c75a33fc --- /dev/null +++ b/recipes/inetutils/inetutils-1.4.2/configure.patch @@ -0,0 +1,94 @@ + +# +# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher +# + +--- inetutils-1.4.2/acinclude.m4~configure 2002-12-11 07:37:59.000000000 -0500 ++++ inetutils-1.4.2/acinclude.m4 2004-01-26 16:19:05.000000000 -0500 +@@ -554,7 +554,7 @@ + dnl VERSION should be either 4 or 5 + dnl Defines KRB_CFLAGS and KRB_LIBS if found. + dnl Defines KRB_IMPL to "Heimdal", "MIT", or "OldMIT", or "none" if not found +-AC_DEFUN(IU_CHECK_KRB5, ++AC_DEFUN([IU_CHECK_KRB5], + [ + if test "x$iu_cv_lib_krb5_libs" = x; then + cache="" +--- inetutils-1.4.2/configure.ac~configure 2002-12-22 23:27:37.000000000 -0500 ++++ inetutils-1.4.2/configure.ac 2004-01-26 16:23:13.000000000 -0500 +@@ -529,8 +529,8 @@ + + jm_INCLUDED_REGEX(libinetutils/regex.c) + +-AC_CHECK_FUNC(_obstack_free, , +- AC_LIBOBJ(obstack) INCLUDES="$INCLUDES obstack.h") ++AC_CHECK_FUNC(_obstack_free, ,[ ++ AC_LIBOBJ(obstack) INCLUDES="$INCLUDES obstack.h"]) + + dnl Use (posix) `setpgid' if it's around, otherwise assume a BSD setpgrp + AC_CHECK_FUNC(setpgid, , AC_DEFINE(setpgid, setpgrp, +@@ -538,37 +538,37 @@ + + dnl We use our own version of getopt (including our own header file) if the + dnl system one doesn't have getopt_long. +-AC_CHECK_FUNC(getopt_long, , ++AC_CHECK_FUNC(getopt_long, ,[ + AC_LIBOBJ(getopt) + AC_LIBOBJ(getopt1) +- INCLUDES="$INCLUDES getopt.h") ++ INCLUDES="$INCLUDES getopt.h"]) + + dnl Supply a version of poll() if the libray is missing. + dnl syslogd uses poll() unconditionnaly. +-AC_CHECK_FUNC(poll, , ++AC_CHECK_FUNC(poll, ,[ + AC_DEFINE(HAVE_POLL_H, 1, [Define to one if you have <poll.h>]) + AC_LIBOBJ(poll) +- INCLUDES="$INCLUDES poll.h") ++ INCLUDES="$INCLUDES poll.h"]) + + dnl Supply versions of the BSD error reporting functions if the system doesn't +-AC_CHECK_FUNC(verrx, , ++AC_CHECK_FUNC(verrx, ,[ + AC_LIBOBJ(err) +- INCLUDES="$INCLUDES err.h") ++ INCLUDES="$INCLUDES err.h"]) + + dnl See if the __PROGNAME variable is defined, otherwise use our own. + AC_CHECK_FUNC(__progname, + AC_DEFINE(HAVE___PROGNAME, 1, [Define to one if you have __progname]), +- AC_LIBOBJ(__progname)) ++ [AC_LIBOBJ(__progname)]) + + dnl See if snprintf exists, otherwise just use a bogus version + AC_CHECK_FUNC(snprintf, + AC_DEFINE(HAVE_SNPRINTF, 1, [Define to one if you have snprintf]), +- AC_LIBOBJ(snprintf)) ++ [AC_LIBOBJ(snprintf)]) + + dnl See if vsnprintf exists, otherwise use our own. + AC_CHECK_FUNC(vsnprintf, + AC_DEFINE(HAVE_VSNPRINTF, 1, [FIXME]), +- AC_LIBOBJ(snprintf)) ++ [AC_LIBOBJ(snprintf)]) + AH_BOTTOM( + [#ifndef HAVE_VSNPRINTF + #include <sys/types.h> +@@ -581,7 +581,7 @@ + #endif]) + + dnl See if the system has strerror, and replace it if not +-AC_CHECK_FUNC(strerror, , AC_LIBOBJ(strerror)) ++AC_CHECK_FUNC(strerror, , [AC_LIBOBJ(strerror)]) + if test "$ac_cv_func_strerror" = no; then + # No strerror, so see if the SYS_ERRLIST variable can be used by ours + AC_CHECK_FUNC(sys_errlist, AC_DEFINE(HAVE_SYS_ERRLIST, 1, +@@ -596,7 +596,7 @@ + fi + + dnl See if the system has hstrerror, and replace it if not +-AC_CHECK_FUNC(hstrerror, , AC_LIBOBJ(hstrerror)) ++AC_CHECK_FUNC(hstrerror, , [AC_LIBOBJ(hstrerror)]) + if test "$ac_cv_func_hstrerror" = yes; then + AC_CHECK_DECL(hstrerror, , , [#include <netdb.h>]) + else diff --git a/recipes/inetutils/inetutils_1.4.2.bb b/recipes/inetutils/inetutils_1.4.2.bb new file mode 100644 index 0000000000..6d77638a77 --- /dev/null +++ b/recipes/inetutils/inetutils_1.4.2.bb @@ -0,0 +1,18 @@ +SECTION = "libs" +DEPENDS = "ncurses" +LICENSE = "GPL" +DESCRIPTION = "The GNU inetutils are a collection of common \ +networking utilities and servers including ftp, ftpd, rcp, \ +rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, \ +talkd, telnet, telnetd, tftp, tftpd, and uucpd." + +SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ + file://configure.patch;patch=1" + +inherit autotools + +EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR}" + +do_configure_prepend () { + rm -f ${S}/glob/configure* +} diff --git a/recipes/inetutils/inetutils_1.5.bb b/recipes/inetutils/inetutils_1.5.bb new file mode 100644 index 0000000000..17f202cfbe --- /dev/null +++ b/recipes/inetutils/inetutils_1.5.bb @@ -0,0 +1,39 @@ +SECTION = "libs" +DEPENDS = "ncurses" +LICENSE = "GPL" +DESCRIPTION = "The GNU inetutils are a collection of common \ +networking utilities and servers including ftp, ftpd, rcp, \ +rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, \ +talkd, telnet, telnetd, tftp, tftpd, and uucpd." + +PR = "r1" + +SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ +" + +inherit autotools + +EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR}" + +do_configure_prepend () { + rm -f ${S}/glob/configure* +} + +do_install () { + autotools_do_install + mv ${D}${bindir}/tftp ${D}${bindir}/tftp.${PN} + mv ${D}${bindir}/telnet ${D}${bindir}/telnet.${PN} + mv ${D}${bindir}/logger ${D}${bindir}/logger.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${bindir}/tftp tftp tftp.${PN} 100 + update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100 + update-alternatives --install ${bindir}/logger logger logger.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove tftp tftp.${PN} + update-alternatives --remove telnet telnet.${PN} + update-alternatives --remove logger logger.${PN} +} |