PATCH_LIST="bash30-001 bash30-002 bash30-003 bash30-004 bash30-005 bash30-006 bash30-007 bash30-008 bash30-009 bash30-010 bash30-011 bash30-012 bash30-013 bash30-014 bash30-015 bash30-016 disable-size.diff" SRC_FETCH_METHOD="http" SRC_FETCH_PATH="ftp://ftp.gnu.org/gnu/bash/bash-3.0.tar.gz" MAKEDEPENDS=( 'ncurses-*:::*.so *.so.* *.h' 'readline-*:::*.so *.so.* *.h' ) PATCH_LEVEL=0 function do_config { # These options cannot be tested in cross-compile environment, let's force them # to same values as with native linux builds. ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_strcoll_works=yes ac_cv_func_working_mktime=yes bash_cv_func_ctype_nonascii=yes bash_cv_dup2_broken=no bash_cv_pgrp_pipe=no bash_cv_sys_siglist=no bash_cv_under_sys_siglist=yes bash_cv_opendir_not_robust=no bash_cv_ulimit_maxfds=yes bash_cv_getenv_redef=yes ac_cv_func_getcwd=yes bash_cv_func_sigsetjmp=present bash_cv_func_strcoll_broken=no bash_cv_printf_a_format=yes bash_cv_must_reinstall_sighandlers=no bash_cv_job_control_missing=present bash_cv_sys_named_pipes=present bash_cv_unusable_rtsigs=no sh_cv_func_ctype_nonascii=yes \ CFLAGS="$GCC_OPT_FAST $GCC_ARCH_COMMON $GCC_CPU_COMMON" \ ./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc --enable-alias --enable-arith-for-command --enable-array-variables --enable-brace-expansion --enable-command-timing --enable-cond-command --enable-cond-regexp --enable-debugger --enable-directory-stack --enable-dparen-arithmetic --enable-extended-glob --enable-history --enable-job-control --disable-multibyte --enable-net-redirections --enable-process-substitution --enable-progcomp --enable-prompt-string-decoding --enable-readline --enable-restricted --enable-select --enable-xpg-echo-default --disable-nls --with-installed-readline=$FLXROOTDIR/usr --without-bash-malloc --disable-rpath --build=$FLXARCH --host=$FLXTARG } function do_compile_only { $FLXMAKE HISTORY_LIB=-lreadline } function do_prepack { $FLXMAKE install prefix=$ROOTDIR/usr bindir=$ROOTDIR/bin sysconfdir=$ROOTDIR/etc cp doc/bash.1 doc/bashbug.1 doc/builtins.1 doc/rbash.1 $ROOTDIR/usr/man/man1/ cd $ROOTDIR/bin ln -s bash sh set_default_perm $ROOTDIR }