diff options
Diffstat (limited to 'meta/packages/console-tools')
12 files changed, 797 insertions, 0 deletions
diff --git a/meta/packages/console-tools/console-tools-0.3.2/codepage.patch b/meta/packages/console-tools/console-tools-0.3.2/codepage.patch new file mode 100644 index 0000000000..f6bd91e3e0 --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/codepage.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | |||
| 2 | # | ||
| 3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
| 4 | # | ||
| 5 | |||
| 6 | --- console-tools-0.3.2/contrib/codepage.c~codepage | ||
| 7 | +++ console-tools-0.3.2/contrib/codepage.c | ||
| 8 | @@ -229,7 +229,7 @@ | ||
| 9 | return 0; | ||
| 10 | |||
| 11 | fprintf(stderr, "\ | ||
| 12 | -Warning: CP format is a hack!\n | ||
| 13 | +Warning: CP format is a hack!\n\ | ||
| 14 | The files produced may or may not be usable!\n"); | ||
| 15 | |||
| 16 | sprintf(outfile, "%d.cp", CPEntryHeader.codepage); | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/compile.patch b/meta/packages/console-tools/console-tools-0.3.2/compile.patch new file mode 100644 index 0000000000..29012fe884 --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/compile.patch | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | --- console-tools-0.3.2/kbdtools/showkey.c~compile 1999-08-25 17:20:08.000000000 -0400 | ||
| 2 | +++ console-tools-0.3.2/kbdtools/showkey.c 2004-05-09 03:03:23.000000000 -0400 | ||
| 3 | @@ -264,7 +264,6 @@ | ||
| 4 | break; | ||
| 5 | case cmd_keymap: | ||
| 6 | printf(")\n"); | ||
| 7 | - default: | ||
| 8 | } | ||
| 9 | } | ||
| 10 | |||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4 b/meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4 new file mode 100644 index 0000000000..863c9cfa7e --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4 | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #serial AM1 | ||
| 2 | |||
| 3 | dnl From Bruno Haible. | ||
| 4 | |||
| 5 | AC_DEFUN([AM_LANGINFO_CODESET], | ||
| 6 | [ | ||
| 7 | AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, | ||
| 8 | [AC_TRY_LINK([#include <langinfo.h>], | ||
| 9 | [char* cs = nl_langinfo(CODESET);], | ||
| 10 | am_cv_langinfo_codeset=yes, | ||
| 11 | am_cv_langinfo_codeset=no) | ||
| 12 | ]) | ||
| 13 | if test $am_cv_langinfo_codeset = yes; then | ||
| 14 | AC_DEFINE(HAVE_LANGINFO_CODESET, 1, | ||
| 15 | [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) | ||
| 16 | fi | ||
| 17 | ]) | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/config/gettext.m4 b/meta/packages/console-tools/console-tools-0.3.2/config/gettext.m4 new file mode 100644 index 0000000000..e4d524cf0f --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/config/gettext.m4 | |||
| @@ -0,0 +1,370 @@ | |||
| 1 | # Macro to add for using GNU gettext. | ||
| 2 | # Ulrich Drepper <drepper@cygnus.com>, 1995. | ||
| 3 | # | ||
| 4 | # This file can be copied and used freely without restrictions. It can | ||
| 5 | # be used in projects which are not available under the GNU General Public | ||
| 6 | # License or the GNU Library General Public License but which still want | ||
| 7 | # to provide support for the GNU gettext functionality. | ||
| 8 | # Please note that the actual code of the GNU gettext library is covered | ||
| 9 | # by the GNU Library General Public License, and the rest of the GNU | ||
| 10 | # gettext package package is covered by the GNU General Public License. | ||
| 11 | # They are *not* in the public domain. | ||
| 12 | |||
| 13 | # serial 10 | ||
| 14 | |||
| 15 | dnl Usage: AM_WITH_NLS([TOOLSYMBOL], [NEEDSYMBOL], [LIBDIR]). | ||
| 16 | dnl If TOOLSYMBOL is specified and is 'use-libtool', then a libtool library | ||
| 17 | dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, | ||
| 18 | dnl depending on --{enable,disable}-{shared,static} and on the presence of | ||
| 19 | dnl AM-DISABLE-SHARED). Otherwise, a static library | ||
| 20 | dnl $(top_builddir)/intl/libintl.a will be created. | ||
| 21 | dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext | ||
| 22 | dnl implementations (in libc or libintl) without the ngettext() function | ||
| 23 | dnl will be ignored. | ||
| 24 | dnl LIBDIR is used to find the intl libraries. If empty, | ||
| 25 | dnl the value `$(top_builddir)/intl/' is used. | ||
| 26 | dnl | ||
| 27 | dnl The result of the configuration is one of three cases: | ||
| 28 | dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled | ||
| 29 | dnl and used. | ||
| 30 | dnl Catalog format: GNU --> install in $(datadir) | ||
| 31 | dnl Catalog extension: .mo after installation, .gmo in source tree | ||
| 32 | dnl 2) GNU gettext has been found in the system's C library. | ||
| 33 | dnl Catalog format: GNU --> install in $(datadir) | ||
| 34 | dnl Catalog extension: .mo after installation, .gmo in source tree | ||
| 35 | dnl 3) No internationalization, always use English msgid. | ||
| 36 | dnl Catalog format: none | ||
| 37 | dnl Catalog extension: none | ||
| 38 | dnl The use of .gmo is historical (it was needed to avoid overwriting the | ||
| 39 | dnl GNU format catalogs when building on a platform with an X/Open gettext), | ||
| 40 | dnl but we keep it in order not to force irrelevant filename changes on the | ||
| 41 | dnl maintainers. | ||
| 42 | dnl | ||
| 43 | AC_DEFUN([AM_WITH_NLS], | ||
| 44 | [AC_MSG_CHECKING([whether NLS is requested]) | ||
| 45 | dnl Default is enabled NLS | ||
| 46 | AC_ARG_ENABLE(nls, | ||
| 47 | [ --disable-nls do not use Native Language Support], | ||
| 48 | USE_NLS=$enableval, USE_NLS=yes) | ||
| 49 | AC_MSG_RESULT($USE_NLS) | ||
| 50 | AC_SUBST(USE_NLS) | ||
| 51 | |||
| 52 | BUILD_INCLUDED_LIBINTL=no | ||
| 53 | USE_INCLUDED_LIBINTL=no | ||
| 54 | INTLLIBS= | ||
| 55 | |||
| 56 | dnl If we use NLS figure out what method | ||
| 57 | if test "$USE_NLS" = "yes"; then | ||
| 58 | AC_DEFINE(ENABLE_NLS, 1, | ||
| 59 | [Define to 1 if translation of program messages to the user's native language | ||
| 60 | is requested.]) | ||
| 61 | AC_MSG_CHECKING([whether included gettext is requested]) | ||
| 62 | AC_ARG_WITH(included-gettext, | ||
| 63 | [ --with-included-gettext use the GNU gettext library included here], | ||
| 64 | nls_cv_force_use_gnu_gettext=$withval, | ||
| 65 | nls_cv_force_use_gnu_gettext=no) | ||
| 66 | AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) | ||
| 67 | |||
| 68 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | ||
| 69 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | ||
| 70 | dnl User does not insist on using GNU NLS library. Figure out what | ||
| 71 | dnl to use. If GNU gettext is available we use this. Else we have | ||
| 72 | dnl to fall back to GNU NLS library. | ||
| 73 | CATOBJEXT=NONE | ||
| 74 | |||
| 75 | dnl Add a version number to the cache macros. | ||
| 76 | define(gt_cv_func_gnugettext_libc, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libc]) | ||
| 77 | define(gt_cv_func_gnugettext_libintl, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libintl]) | ||
| 78 | |||
| 79 | AC_CHECK_HEADER(libintl.h, | ||
| 80 | [AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, | ||
| 81 | [AC_TRY_LINK([#include <libintl.h> | ||
| 82 | extern int _nl_msg_cat_cntr;], | ||
| 83 | [bindtextdomain ("", ""); | ||
| 84 | return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr], | ||
| 85 | gt_cv_func_gnugettext_libc=yes, | ||
| 86 | gt_cv_func_gnugettext_libc=no)]) | ||
| 87 | |||
| 88 | if test "$gt_cv_func_gnugettext_libc" != "yes"; then | ||
| 89 | AC_CACHE_CHECK([for GNU gettext in libintl], | ||
| 90 | gt_cv_func_gnugettext_libintl, | ||
| 91 | [gt_save_LIBS="$LIBS" | ||
| 92 | LIBS="$LIBS -lintl $LIBICONV" | ||
| 93 | AC_TRY_LINK([#include <libintl.h> | ||
| 94 | extern int _nl_msg_cat_cntr;], | ||
| 95 | [bindtextdomain ("", ""); | ||
| 96 | return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr], | ||
| 97 | gt_cv_func_gnugettext_libintl=yes, | ||
| 98 | gt_cv_func_gnugettext_libintl=no) | ||
| 99 | LIBS="$gt_save_LIBS"]) | ||
| 100 | fi | ||
| 101 | |||
| 102 | dnl If an already present or preinstalled GNU gettext() is found, | ||
| 103 | dnl use it. But if this macro is used in GNU gettext, and GNU | ||
| 104 | dnl gettext is already preinstalled in libintl, we update this | ||
| 105 | dnl libintl. (Cf. the install rule in intl/Makefile.in.) | ||
| 106 | if test "$gt_cv_func_gnugettext_libc" = "yes" \ | ||
| 107 | || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ | ||
| 108 | && test "$PACKAGE" != gettext; }; then | ||
| 109 | AC_DEFINE(HAVE_GETTEXT, 1, | ||
| 110 | [Define if the GNU gettext() function is already present or preinstalled.]) | ||
| 111 | |||
| 112 | if test "$gt_cv_func_gnugettext_libintl" = "yes"; then | ||
| 113 | dnl If iconv() is in a separate libiconv library, then anyone | ||
| 114 | dnl linking with libintl{.a,.so} also needs to link with | ||
| 115 | dnl libiconv. | ||
| 116 | INTLLIBS="-lintl $LIBICONV" | ||
| 117 | fi | ||
| 118 | |||
| 119 | gt_save_LIBS="$LIBS" | ||
| 120 | LIBS="$LIBS $INTLLIBS" | ||
| 121 | AC_CHECK_FUNCS(dcgettext) | ||
| 122 | LIBS="$gt_save_LIBS" | ||
| 123 | |||
| 124 | dnl Search for GNU msgfmt in the PATH. | ||
| 125 | AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
| 126 | [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :) | ||
| 127 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
| 128 | |||
| 129 | dnl Search for GNU xgettext in the PATH. | ||
| 130 | AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
| 131 | [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :) | ||
| 132 | |||
| 133 | CATOBJEXT=.gmo | ||
| 134 | fi | ||
| 135 | ]) | ||
| 136 | |||
| 137 | if test "$CATOBJEXT" = "NONE"; then | ||
| 138 | dnl GNU gettext is not found in the C library. | ||
| 139 | dnl Fall back on GNU gettext library. | ||
| 140 | nls_cv_use_gnu_gettext=yes | ||
| 141 | fi | ||
| 142 | fi | ||
| 143 | |||
| 144 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
| 145 | dnl Mark actions used to generate GNU NLS library. | ||
| 146 | INTLOBJS="\$(GETTOBJS)" | ||
| 147 | AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | ||
| 148 | [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :) | ||
| 149 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
| 150 | AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | ||
| 151 | [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :) | ||
| 152 | AC_SUBST(MSGFMT) | ||
| 153 | BUILD_INCLUDED_LIBINTL=yes | ||
| 154 | USE_INCLUDED_LIBINTL=yes | ||
| 155 | CATOBJEXT=.gmo | ||
| 156 | INTLLIBS="ifelse([$3],[],\$(top_builddir)/intl,[$3])/libintl.ifelse([$1], use-libtool, [l], [])a $LIBICONV" | ||
| 157 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | ||
| 158 | fi | ||
| 159 | |||
| 160 | dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. | ||
| 161 | dnl Test whether we really found GNU msgfmt. | ||
| 162 | if test "$GMSGFMT" != ":"; then | ||
| 163 | dnl If it is no GNU msgfmt we define it as : so that the | ||
| 164 | dnl Makefiles still can work. | ||
| 165 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then | ||
| 166 | : ; | ||
| 167 | else | ||
| 168 | AC_MSG_RESULT( | ||
| 169 | [found msgfmt program is not GNU msgfmt; ignore it]) | ||
| 170 | GMSGFMT=":" | ||
| 171 | fi | ||
| 172 | fi | ||
| 173 | |||
| 174 | dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. | ||
| 175 | dnl Test whether we really found GNU xgettext. | ||
| 176 | if test "$XGETTEXT" != ":"; then | ||
| 177 | dnl If it is no GNU xgettext we define it as : so that the | ||
| 178 | dnl Makefiles still can work. | ||
| 179 | if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then | ||
| 180 | : ; | ||
| 181 | else | ||
| 182 | AC_MSG_RESULT( | ||
| 183 | [found xgettext program is not GNU xgettext; ignore it]) | ||
| 184 | XGETTEXT=":" | ||
| 185 | fi | ||
| 186 | fi | ||
| 187 | |||
| 188 | dnl We need to process the po/ directory. | ||
| 189 | POSUB=po | ||
| 190 | fi | ||
| 191 | AC_OUTPUT_COMMANDS( | ||
| 192 | [for ac_file in $CONFIG_FILES; do | ||
| 193 | # Support "outfile[:infile[:infile...]]" | ||
| 194 | case "$ac_file" in | ||
| 195 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
| 196 | esac | ||
| 197 | # PO directories have a Makefile.in generated from Makefile.in.in. | ||
| 198 | case "$ac_file" in */Makefile.in) | ||
| 199 | # Adjust a relative srcdir. | ||
| 200 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ||
| 201 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | ||
| 202 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ||
| 203 | # In autoconf-2.13 it is called $ac_given_srcdir. | ||
| 204 | # In autoconf-2.50 it is called $srcdir. | ||
| 205 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | ||
| 206 | case "$ac_given_srcdir" in | ||
| 207 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | ||
| 208 | /*) top_srcdir="$ac_given_srcdir" ;; | ||
| 209 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
| 210 | esac | ||
| 211 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | ||
| 212 | rm -f "$ac_dir/POTFILES" | ||
| 213 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | ||
| 214 | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" | ||
| 215 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | ||
| 216 | sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | ||
| 217 | fi | ||
| 218 | ;; | ||
| 219 | esac | ||
| 220 | done]) | ||
| 221 | |||
| 222 | |||
| 223 | dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL | ||
| 224 | dnl to 'yes' because some of the testsuite requires it. | ||
| 225 | if test "$PACKAGE" = gettext; then | ||
| 226 | BUILD_INCLUDED_LIBINTL=yes | ||
| 227 | fi | ||
| 228 | |||
| 229 | dnl intl/plural.c is generated from intl/plural.y. It requires bison, | ||
| 230 | dnl because plural.y uses bison specific features. It requires at least | ||
| 231 | dnl bison-1.26 because earlier versions generate a plural.c that doesn't | ||
| 232 | dnl compile. | ||
| 233 | dnl bison is only needed for the maintainer (who touches plural.y). But in | ||
| 234 | dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put | ||
| 235 | dnl the rule in general Makefile. Now, some people carelessly touch the | ||
| 236 | dnl files or have a broken "make" program, hence the plural.c rule will | ||
| 237 | dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not | ||
| 238 | dnl present or too old. | ||
| 239 | AC_CHECK_PROGS([INTLBISON], [bison]) | ||
| 240 | if test -z "$INTLBISON"; then | ||
| 241 | ac_verc_fail=yes | ||
| 242 | else | ||
| 243 | dnl Found it, now check the version. | ||
| 244 | AC_MSG_CHECKING([version of bison]) | ||
| 245 | changequote(<<,>>)dnl | ||
| 246 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | ||
| 247 | case $ac_prog_version in | ||
| 248 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | ||
| 249 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | ||
| 250 | changequote([,])dnl | ||
| 251 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | ||
| 252 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | ||
| 253 | esac | ||
| 254 | AC_MSG_RESULT([$ac_prog_version]) | ||
| 255 | fi | ||
| 256 | if test $ac_verc_fail = yes; then | ||
| 257 | INTLBISON=: | ||
| 258 | fi | ||
| 259 | |||
| 260 | dnl These rules are solely for the distribution goal. While doing this | ||
| 261 | dnl we only have to keep exactly one list of the available catalogs | ||
| 262 | dnl in configure.in. | ||
| 263 | for lang in $ALL_LINGUAS; do | ||
| 264 | GMOFILES="$GMOFILES $lang.gmo" | ||
| 265 | POFILES="$POFILES $lang.po" | ||
| 266 | done | ||
| 267 | |||
| 268 | dnl Make all variables we use known to autoconf. | ||
| 269 | AC_SUBST(BUILD_INCLUDED_LIBINTL) | ||
| 270 | AC_SUBST(USE_INCLUDED_LIBINTL) | ||
| 271 | AC_SUBST(CATALOGS) | ||
| 272 | AC_SUBST(CATOBJEXT) | ||
| 273 | AC_SUBST(GMOFILES) | ||
| 274 | AC_SUBST(INTLLIBS) | ||
| 275 | AC_SUBST(INTLOBJS) | ||
| 276 | AC_SUBST(POFILES) | ||
| 277 | AC_SUBST(POSUB) | ||
| 278 | |||
| 279 | dnl For backward compatibility. Some configure.ins may be using this. | ||
| 280 | nls_cv_header_intl= | ||
| 281 | nls_cv_header_libgt= | ||
| 282 | |||
| 283 | dnl For backward compatibility. Some Makefiles may be using this. | ||
| 284 | DATADIRNAME=share | ||
| 285 | AC_SUBST(DATADIRNAME) | ||
| 286 | |||
| 287 | dnl For backward compatibility. Some Makefiles may be using this. | ||
| 288 | INSTOBJEXT=.mo | ||
| 289 | AC_SUBST(INSTOBJEXT) | ||
| 290 | |||
| 291 | dnl For backward compatibility. Some Makefiles may be using this. | ||
| 292 | GENCAT=gencat | ||
| 293 | AC_SUBST(GENCAT) | ||
| 294 | ]) | ||
| 295 | |||
| 296 | dnl Usage: Just like AM_WITH_NLS, which see. | ||
| 297 | AC_DEFUN([AM_GNU_GETTEXT], | ||
| 298 | [AC_REQUIRE([AC_PROG_MAKE_SET])dnl | ||
| 299 | AC_REQUIRE([AC_PROG_CC])dnl | ||
| 300 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
| 301 | AC_REQUIRE([AC_PROG_RANLIB])dnl | ||
| 302 | AC_REQUIRE([AC_ISC_POSIX])dnl | ||
| 303 | AC_REQUIRE([AC_HEADER_STDC])dnl | ||
| 304 | AC_REQUIRE([AC_C_CONST])dnl | ||
| 305 | AC_REQUIRE([AC_C_INLINE])dnl | ||
| 306 | AC_REQUIRE([AC_TYPE_OFF_T])dnl | ||
| 307 | AC_REQUIRE([AC_TYPE_SIZE_T])dnl | ||
| 308 | AC_REQUIRE([AC_FUNC_ALLOCA])dnl | ||
| 309 | AC_REQUIRE([AC_FUNC_MMAP])dnl | ||
| 310 | AC_REQUIRE([jm_GLIBC21])dnl | ||
| 311 | |||
| 312 | AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | ||
| 313 | stdlib.h string.h unistd.h sys/param.h]) | ||
| 314 | AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getcwd getegid geteuid \ | ||
| 315 | getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ | ||
| 316 | strdup strtoul tsearch __argz_count __argz_stringify __argz_next]) | ||
| 317 | |||
| 318 | AM_ICONV | ||
| 319 | AM_LANGINFO_CODESET | ||
| 320 | AM_LC_MESSAGES | ||
| 321 | AM_WITH_NLS([$1],[$2],[$3]) | ||
| 322 | |||
| 323 | if test "x$CATOBJEXT" != "x"; then | ||
| 324 | if test "x$ALL_LINGUAS" = "x"; then | ||
| 325 | LINGUAS= | ||
| 326 | else | ||
| 327 | AC_MSG_CHECKING(for catalogs to be installed) | ||
| 328 | NEW_LINGUAS= | ||
| 329 | for presentlang in $ALL_LINGUAS; do | ||
| 330 | useit=no | ||
| 331 | for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do | ||
| 332 | # Use the presentlang catalog if desiredlang is | ||
| 333 | # a. equal to presentlang, or | ||
| 334 | # b. a variant of presentlang (because in this case, | ||
| 335 | # presentlang can be used as a fallback for messages | ||
| 336 | # which are not translated in the desiredlang catalog). | ||
| 337 | case "$desiredlang" in | ||
| 338 | "$presentlang"*) useit=yes;; | ||
| 339 | esac | ||
| 340 | done | ||
| 341 | if test $useit = yes; then | ||
| 342 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | ||
| 343 | fi | ||
| 344 | done | ||
| 345 | LINGUAS=$NEW_LINGUAS | ||
| 346 | AC_MSG_RESULT($LINGUAS) | ||
| 347 | fi | ||
| 348 | |||
| 349 | dnl Construct list of names of catalog files to be constructed. | ||
| 350 | if test -n "$LINGUAS"; then | ||
| 351 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | ||
| 352 | fi | ||
| 353 | fi | ||
| 354 | |||
| 355 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
| 356 | dnl find the mkinstalldirs script in another subdir but $(top_srcdir). | ||
| 357 | dnl Try to locate is. | ||
| 358 | MKINSTALLDIRS= | ||
| 359 | if test -n "$ac_aux_dir"; then | ||
| 360 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | ||
| 361 | fi | ||
| 362 | if test -z "$MKINSTALLDIRS"; then | ||
| 363 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
| 364 | fi | ||
| 365 | AC_SUBST(MKINSTALLDIRS) | ||
| 366 | |||
| 367 | dnl Enable libtool support if the surrounding package wishes it. | ||
| 368 | INTL_LIBTOOL_SUFFIX_PREFIX=ifelse([$1], use-libtool, [l], []) | ||
| 369 | AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) | ||
| 370 | ]) | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/config/glibc21.m4 b/meta/packages/console-tools/console-tools-0.3.2/config/glibc21.m4 new file mode 100644 index 0000000000..5b88ef231c --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/config/glibc21.m4 | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | #serial 2 | ||
| 2 | |||
| 3 | # Test for the GNU C Library, version 2.1 or newer. | ||
| 4 | # From Bruno Haible. | ||
| 5 | |||
| 6 | AC_DEFUN([jm_GLIBC21], | ||
| 7 | [ | ||
| 8 | AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, | ||
| 9 | ac_cv_gnu_library_2_1, | ||
| 10 | [AC_EGREP_CPP([Lucky GNU user], | ||
| 11 | [ | ||
| 12 | #include <features.h> | ||
| 13 | #ifdef __GNU_LIBRARY__ | ||
| 14 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | ||
| 15 | Lucky GNU user | ||
| 16 | #endif | ||
| 17 | #endif | ||
| 18 | ], | ||
| 19 | ac_cv_gnu_library_2_1=yes, | ||
| 20 | ac_cv_gnu_library_2_1=no) | ||
| 21 | ] | ||
| 22 | ) | ||
| 23 | AC_SUBST(GLIBC21) | ||
| 24 | GLIBC21="$ac_cv_gnu_library_2_1" | ||
| 25 | ] | ||
| 26 | ) | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/config/iconv.m4 b/meta/packages/console-tools/console-tools-0.3.2/config/iconv.m4 new file mode 100644 index 0000000000..17237344af --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/config/iconv.m4 | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | #serial AM2 | ||
| 2 | |||
| 3 | dnl From Bruno Haible. | ||
| 4 | |||
| 5 | AC_DEFUN([AM_ICONV], | ||
| 6 | [ | ||
| 7 | dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and | ||
| 8 | dnl those with the standalone portable GNU libiconv installed). | ||
| 9 | |||
| 10 | AC_ARG_WITH([libiconv-prefix], | ||
| 11 | [ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [ | ||
| 12 | for dir in `echo "$withval" | tr : ' '`; do | ||
| 13 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | ||
| 14 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | ||
| 15 | done | ||
| 16 | ]) | ||
| 17 | |||
| 18 | AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ | ||
| 19 | am_cv_func_iconv="no, consider installing GNU libiconv" | ||
| 20 | am_cv_lib_iconv=no | ||
| 21 | AC_TRY_LINK([#include <stdlib.h> | ||
| 22 | #include <iconv.h>], | ||
| 23 | [iconv_t cd = iconv_open("",""); | ||
| 24 | iconv(cd,NULL,NULL,NULL,NULL); | ||
| 25 | iconv_close(cd);], | ||
| 26 | am_cv_func_iconv=yes) | ||
| 27 | if test "$am_cv_func_iconv" != yes; then | ||
| 28 | am_save_LIBS="$LIBS" | ||
| 29 | LIBS="$LIBS -liconv" | ||
| 30 | AC_TRY_LINK([#include <stdlib.h> | ||
| 31 | #include <iconv.h>], | ||
| 32 | [iconv_t cd = iconv_open("",""); | ||
| 33 | iconv(cd,NULL,NULL,NULL,NULL); | ||
| 34 | iconv_close(cd);], | ||
| 35 | am_cv_lib_iconv=yes | ||
| 36 | am_cv_func_iconv=yes) | ||
| 37 | LIBS="$am_save_LIBS" | ||
| 38 | fi | ||
| 39 | ]) | ||
| 40 | if test "$am_cv_func_iconv" = yes; then | ||
| 41 | AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) | ||
| 42 | AC_MSG_CHECKING([for iconv declaration]) | ||
| 43 | AC_CACHE_VAL(am_cv_proto_iconv, [ | ||
| 44 | AC_TRY_COMPILE([ | ||
| 45 | #include <stdlib.h> | ||
| 46 | #include <iconv.h> | ||
| 47 | extern | ||
| 48 | #ifdef __cplusplus | ||
| 49 | "C" | ||
| 50 | #endif | ||
| 51 | #if defined(__STDC__) || defined(__cplusplus) | ||
| 52 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | ||
| 53 | #else | ||
| 54 | size_t iconv(); | ||
| 55 | #endif | ||
| 56 | ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") | ||
| 57 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) | ||
| 58 | am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | ||
| 59 | AC_MSG_RESULT([$]{ac_t:- | ||
| 60 | }[$]am_cv_proto_iconv) | ||
| 61 | AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, | ||
| 62 | [Define as const if the declaration of iconv() needs const.]) | ||
| 63 | fi | ||
| 64 | LIBICONV= | ||
| 65 | if test "$am_cv_lib_iconv" = yes; then | ||
| 66 | LIBICONV="-liconv" | ||
| 67 | fi | ||
| 68 | AC_SUBST(LIBICONV) | ||
| 69 | ]) | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/config/lcmessage.m4 b/meta/packages/console-tools/console-tools-0.3.2/config/lcmessage.m4 new file mode 100644 index 0000000000..18d47a94f7 --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/config/lcmessage.m4 | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # Check whether LC_MESSAGES is available in <locale.h>. | ||
| 2 | # Ulrich Drepper <drepper@cygnus.com>, 1995. | ||
| 3 | # | ||
| 4 | # This file can be copied and used freely without restrictions. It can | ||
| 5 | # be used in projects which are not available under the GNU General Public | ||
| 6 | # License or the GNU Library General Public License but which still want | ||
| 7 | # to provide support for the GNU gettext functionality. | ||
| 8 | # Please note that the actual code of the GNU gettext library is covered | ||
| 9 | # by the GNU Library General Public License, and the rest of the GNU | ||
| 10 | # gettext package package is covered by the GNU General Public License. | ||
| 11 | # They are *not* in the public domain. | ||
| 12 | |||
| 13 | # serial 2 | ||
| 14 | |||
| 15 | AC_DEFUN([AM_LC_MESSAGES], | ||
| 16 | [if test $ac_cv_header_locale_h = yes; then | ||
| 17 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
| 18 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
| 19 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
| 20 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
| 21 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
| 22 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
| 23 | fi | ||
| 24 | fi]) | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/config/progtest.m4 b/meta/packages/console-tools/console-tools-0.3.2/config/progtest.m4 new file mode 100644 index 0000000000..35dc3da1f7 --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/config/progtest.m4 | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | # Search path for a program which passes the given test. | ||
| 2 | # Ulrich Drepper <drepper@cygnus.com>, 1996. | ||
| 3 | # | ||
| 4 | # This file can be copied and used freely without restrictions. It can | ||
| 5 | # be used in projects which are not available under the GNU General Public | ||
| 6 | # License or the GNU Library General Public License but which still want | ||
| 7 | # to provide support for the GNU gettext functionality. | ||
| 8 | # Please note that the actual code of the GNU gettext library is covered | ||
| 9 | # by the GNU Library General Public License, and the rest of the GNU | ||
| 10 | # gettext package package is covered by the GNU General Public License. | ||
| 11 | # They are *not* in the public domain. | ||
| 12 | |||
| 13 | # serial 2 | ||
| 14 | |||
| 15 | dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | ||
| 16 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | ||
| 17 | AC_DEFUN([AM_PATH_PROG_WITH_TEST], | ||
| 18 | [# Extract the first word of "$2", so it can be a program name with args. | ||
| 19 | set dummy $2; ac_word=[$]2 | ||
| 20 | AC_MSG_CHECKING([for $ac_word]) | ||
| 21 | AC_CACHE_VAL(ac_cv_path_$1, | ||
| 22 | [case "[$]$1" in | ||
| 23 | /*) | ||
| 24 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | ||
| 25 | ;; | ||
| 26 | *) | ||
| 27 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | ||
| 28 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | ||
| 29 | test -z "$ac_dir" && ac_dir=. | ||
| 30 | if test -f $ac_dir/$ac_word; then | ||
| 31 | if [$3]; then | ||
| 32 | ac_cv_path_$1="$ac_dir/$ac_word" | ||
| 33 | break | ||
| 34 | fi | ||
| 35 | fi | ||
| 36 | done | ||
| 37 | IFS="$ac_save_ifs" | ||
| 38 | dnl If no 4th arg is given, leave the cache variable unset, | ||
| 39 | dnl so AC_PATH_PROGS will keep looking. | ||
| 40 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | ||
| 41 | ])dnl | ||
| 42 | ;; | ||
| 43 | esac])dnl | ||
| 44 | $1="$ac_cv_path_$1" | ||
| 45 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | ||
| 46 | AC_MSG_RESULT([$]$1) | ||
| 47 | else | ||
| 48 | AC_MSG_RESULT(no) | ||
| 49 | fi | ||
| 50 | AC_SUBST($1)dnl | ||
| 51 | ]) | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/configure.patch b/meta/packages/console-tools/console-tools-0.3.2/configure.patch new file mode 100644 index 0000000000..f5b75327e9 --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/configure.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | |||
| 2 | # | ||
| 3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
| 4 | # | ||
| 5 | |||
| 6 | --- console-tools-0.3.2/configure.in~configure | ||
| 7 | +++ console-tools-0.3.2/configure.in | ||
| 8 | @@ -2,13 +2,14 @@ | ||
| 9 | dnl Process this file with autoconf to produce a configure script. | ||
| 10 | |||
| 11 | # Initialize | ||
| 12 | -AC_INIT(kbdtools/loadkeys.y) | ||
| 13 | +AC_INIT | ||
| 14 | +AC_CONFIG_SRCDIR([kbdtools/loadkeys.y]) | ||
| 15 | |||
| 16 | define(ct_unicodedata_default,/usr/share/unidata/UnicodeData-2.txt) | ||
| 17 | ct_localdatadir_default=/usr/local/share # iff --enable-localdatadir without specific dir | ||
| 18 | |||
| 19 | #AC_CONFIG_AUX_DIR(autoconf) | ||
| 20 | -AC_CANONICAL_SYSTEM | ||
| 21 | +AC_CANONICAL_TARGET([]) | ||
| 22 | AM_INIT_AUTOMAKE(console-tools, 0.3.2) | ||
| 23 | |||
| 24 | # Defaults | ||
| 25 | @@ -25,7 +26,7 @@ | ||
| 26 | # i18n stuff | ||
| 27 | ALL_LINGUAS="cs de ru ga fr" | ||
| 28 | AM_GNU_GETTEXT | ||
| 29 | -AC_OUTPUT_COMMANDS([sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile]) | ||
| 30 | +AC_CONFIG_COMMANDS([default-1],[[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile]],[[]]) | ||
| 31 | |||
| 32 | AC_DEFINE_UNQUOTED(LOCALEDIR, "/usr/share/locale") | ||
| 33 | |||
| 34 | @@ -172,10 +173,11 @@ | ||
| 35 | AC_SUBST(CHARMAPDIR) | ||
| 36 | |||
| 37 | # Output | ||
| 38 | -AC_OUTPUT([Makefile lib/Makefile lib/console/Makefile lib/cfont/Makefile | ||
| 39 | +AC_CONFIG_FILES([Makefile lib/Makefile lib/console/Makefile lib/cfont/Makefile | ||
| 40 | lib/ctutils/Makefile lib/ctlocal/Makefile lib/generic/Makefile | ||
| 41 | fontfiletools/Makefile vttools/Makefile | ||
| 42 | kbdtools/Makefile screenfonttools/Makefile contrib/Makefile | ||
| 43 | include/Makefile include/lct/Makefile compat/Makefile | ||
| 44 | doc/Makefile doc/man/Makefile examples/Makefile | ||
| 45 | po/Makefile.in intl/Makefile]) | ||
| 46 | +AC_OUTPUT | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/kbdrate.patch b/meta/packages/console-tools/console-tools-0.3.2/kbdrate.patch new file mode 100644 index 0000000000..47d7ea54b9 --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/kbdrate.patch | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | Patch from Matthias Goebl <oe@m.goebl.net> | ||
| 2 | Added via OE bugtracker: bug #478 | ||
| 3 | |||
| 4 | --- console-tools-0.3.2/kbdtools/kbd_mode.c.orig | ||
| 5 | +++ console-tools-0.3.2/kbdtools/kbd_mode.c | ||
| 6 | @@ -29,11 +29,16 @@ | ||
| 7 | OPT("-u --unicode ", _("UTF-8 mode (UNICODE)")); | ||
| 8 | OPT("-s --scancode ", _("scancode mode (RAW)")); | ||
| 9 | OPT(" --mode={8bit,keycode,unicode,scancode} ", _("set mode")); | ||
| 10 | + OPT("-r --rate=RATE ", _("set repeat rate (default: 33)")); | ||
| 11 | + OPT("-d --delay=DELAY ", _("set repeat delay (default: 250)")); | ||
| 12 | |||
| 13 | OPT("-h --help ", HELPDESC); | ||
| 14 | OPT("-V --version ", VERSIONDESC); | ||
| 15 | } | ||
| 16 | |||
| 17 | +int rate=-1; | ||
| 18 | +int delay=-1; | ||
| 19 | + | ||
| 20 | static int parse_cmdline (int argc, char *argv[]) | ||
| 21 | { | ||
| 22 | int mode = -1; | ||
| 23 | @@ -46,11 +51,13 @@ | ||
| 24 | { "mode" , required_argument, NULL, 'm' }, | ||
| 25 | { "scancode" , no_argument, NULL, 's' }, | ||
| 26 | { "unicode" , no_argument, NULL, 'u' }, | ||
| 27 | + { "rate" , required_argument, NULL, 'r' }, | ||
| 28 | + { "delay" , required_argument, NULL, 'd' }, | ||
| 29 | { NULL, 0, NULL, 0 } | ||
| 30 | }; | ||
| 31 | int c; | ||
| 32 | |||
| 33 | - while ( (c = getopt_long (argc, argv, "Vhaksu", long_opts, NULL)) != EOF) | ||
| 34 | + while ( (c = getopt_long (argc, argv, "Vhaksur:d:", long_opts, NULL)) != EOF) | ||
| 35 | switch (c) { | ||
| 36 | case 'h': | ||
| 37 | usage (); | ||
| 38 | @@ -58,6 +65,14 @@ | ||
| 39 | case 'V': | ||
| 40 | version (); | ||
| 41 | exit(0); | ||
| 42 | + case 'r': | ||
| 43 | + rate = atoi(optarg); | ||
| 44 | + mode = -2; | ||
| 45 | + break; | ||
| 46 | + case 'd': | ||
| 47 | + delay = atoi(optarg); | ||
| 48 | + mode = -2; | ||
| 49 | + break; | ||
| 50 | case 'a': | ||
| 51 | mode = K_XLATE; | ||
| 52 | break; | ||
| 53 | @@ -129,6 +144,20 @@ | ||
| 54 | exit(0); | ||
| 55 | } | ||
| 56 | |||
| 57 | + if ( rate != -1 || delay != -1 ) | ||
| 58 | + { | ||
| 59 | + struct kbd_repeat kbd_rep; | ||
| 60 | + kbd_rep.delay = delay; | ||
| 61 | + kbd_rep.period = rate; | ||
| 62 | + if (ioctl(fd, KDKBDREP, &kbd_rep)) | ||
| 63 | + { | ||
| 64 | + fprintf(stderr, progname); | ||
| 65 | + perror(_(": error setting keyboard repeat mode\n")); | ||
| 66 | + exit(1); | ||
| 67 | + } | ||
| 68 | + if(mode==-2) exit(0); | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | if (ioctl(fd, KDSKBMODE, mode)) | ||
| 72 | { | ||
| 73 | fprintf(stderr, progname); | ||
diff --git a/meta/packages/console-tools/console-tools-0.3.2/uclibc-fileno.patch b/meta/packages/console-tools/console-tools-0.3.2/uclibc-fileno.patch new file mode 100644 index 0000000000..c73d8a3d9e --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/uclibc-fileno.patch | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | Fixing the locale issues isn't enough, console-tools also does a couple of | ||
| 2 | other pretty stupid things (like FILE *f; f->_fileno instead of fileno(f)), | ||
| 3 | |||
| 4 | --- console-tools-0.3.2/lib/cfont/fontstruct.c.ark 2005-05-22 19:12:38.000000000 +0000 | ||
| 5 | +++ console-tools-0.3.2/lib/cfont/fontstruct.c 2005-05-22 19:13:23.000000000 +0000 | ||
| 6 | @@ -50,8 +50,7 @@ | ||
| 7 | * get filesize | ||
| 8 | */ | ||
| 9 | |||
| 10 | - /* FIXME: should not use _fileno ! */ | ||
| 11 | - if (fstat(fontfile->_fileno, &stbuf) == -1) | ||
| 12 | + if (fstat(fileno(fontfile), &stbuf) == -1) | ||
| 13 | goto rsf_return_error; | ||
| 14 | |||
| 15 | if (S_ISREG(stbuf.st_mode)) | ||
| 16 | @@ -211,8 +210,7 @@ | ||
| 17 | * get filesize | ||
| 18 | */ | ||
| 19 | |||
| 20 | - /* FIXME: should not use _fileno ! */ | ||
| 21 | - if (fstat(fontfile->_fileno, &stbuf) == -1) | ||
| 22 | + if (fstat(fileno(fontfile), &stbuf) == -1) | ||
| 23 | goto rfg_return_error; | ||
| 24 | |||
| 25 | if (S_ISREG(stbuf.st_mode)) | ||
| 26 | --- console-tools-0.3.2/lib/console/acm.c.ark 2005-05-22 19:17:15.000000000 +0000 | ||
| 27 | +++ console-tools-0.3.2/lib/console/acm.c 2005-05-22 19:17:23.000000000 +0000 | ||
| 28 | @@ -30,7 +30,7 @@ | ||
| 29 | lct_boolean parse_failed = False; | ||
| 30 | lct_boolean is_unicode; | ||
| 31 | |||
| 32 | - if (fstat(fp->_fileno, &stbuf)) | ||
| 33 | + if (fstat(fileno(fp), &stbuf)) | ||
| 34 | perror(_("Cannot stat ACM file")), exit(1); | ||
| 35 | |||
| 36 | /* first try a wg15-charmap (glibc) file format */ | ||
| 37 | --- console-tools-0.3.2/include/lct/local.h.ark 2005-05-22 19:08:54.000000000 +0000 | ||
| 38 | +++ console-tools-0.3.2/include/lct/local.h 2005-05-22 19:09:12.000000000 +0000 | ||
| 39 | @@ -8,7 +8,7 @@ | ||
| 40 | #include <locale.h> | ||
| 41 | |||
| 42 | |||
| 43 | -#ifdef HAVE_LOCALE_H | ||
| 44 | +#if defined(HAVE_LOCALE_H) && defined(HAVE_LIBINTL_H) | ||
| 45 | # include <libintl.h> | ||
| 46 | # define _(String) gettext (String) | ||
| 47 | # ifdef gettext_noop | ||
diff --git a/meta/packages/console-tools/console-tools_0.3.2.bb b/meta/packages/console-tools/console-tools_0.3.2.bb new file mode 100644 index 0000000000..01c2e42a31 --- /dev/null +++ b/meta/packages/console-tools/console-tools_0.3.2.bb | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | SECTION = "base" | ||
| 2 | LICENSE = "GPL" | ||
| 3 | DESCRIPTION = "Allows you to set-up and manipulate the Linux console." | ||
| 4 | PR = "r2" | ||
| 5 | |||
| 6 | SRC_URI = "${SOURCEFORGE_MIRROR}/lct/console-tools-${PV}.tar.gz \ | ||
| 7 | file://codepage.patch;patch=1 \ | ||
| 8 | file://configure.patch;patch=1 \ | ||
| 9 | file://compile.patch;patch=1 \ | ||
| 10 | file://kbdrate.patch;patch=1 \ | ||
| 11 | file://uclibc-fileno.patch;patch=1 \ | ||
| 12 | file://config/*.m4" | ||
| 13 | |||
| 14 | export SUBDIRS = "fontfiletools vttools kbdtools screenfonttools contrib \ | ||
| 15 | examples po intl compat" | ||
| 16 | |||
| 17 | acpaths = "-I config" | ||
| 18 | do_configure_prepend () { | ||
| 19 | mkdir -p config | ||
| 20 | cp ${WORKDIR}/config/*.m4 config/ | ||
| 21 | } | ||
| 22 | |||
| 23 | do_compile () { | ||
| 24 | oe_runmake -C lib | ||
| 25 | oe_runmake 'SUBDIRS=${SUBDIRS}' | ||
| 26 | } | ||
| 27 | |||
| 28 | inherit autotools | ||
| 29 | |||
| 30 | do_install () { | ||
| 31 | autotools_do_install | ||
| 32 | mv ${D}${bindir}/chvt ${D}${bindir}/chvt.${PN} | ||
| 33 | mv ${D}${bindir}/deallocvt ${D}${bindir}/deallocvt.${PN} | ||
| 34 | mv ${D}${bindir}/openvt ${D}${bindir}/openvt.${PN} | ||
| 35 | } | ||
| 36 | |||
| 37 | pkg_postinst_${PN} () { | ||
| 38 | update-alternatives --install ${bindir}/chvt chvt chvt.${PN} 100 | ||
| 39 | update-alternatives --install ${bindir}/deallocvt deallocvt deallocvt.${PN} 100 | ||
| 40 | update-alternatives --install ${bindir}/openvt openvt openvt.${PN} 100 | ||
| 41 | } | ||
| 42 | |||
| 43 | pkg_prerm_${PN} () { | ||
| 44 | update-alternatives --remove chvt chvt.${PN} | ||
| 45 | update-alternatives --remove deallocvt deallocvt.${PN} | ||
| 46 | update-alternatives --remove openvt openvt.${PN} | ||
| 47 | } | ||
| 48 | |||
