#!/bin/bash ## src2pkg script for: bash ## Auto-generated by src2pkg-1.9.7 ## src2pkg Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='bash-3.1.tar.gz' NAME='bash' ALT_VERSION='3.1.017' # ARCH='i486' BUILD='1' PRE_FIX='usr' # Any extra options go here EXTRA_CONFIGS="--with-bash-malloc=no --mandir=$mandir --infodir=$infodir" #STD_FLAGS='-O2 -march=i486 -mtune=i686' export CPPFLAGS=-D_GNU_SOURCE ADD_HOST=YES OPTIMIZE_4_SIZE=YES # set to '1' to have dot_config files installed to etc/skel INSTALL_SKEL=1 DOCLIST='AUTHORS CHANGES COMPAT COPYING INSTALL MANIFEST NEWS NOTES \ README Y2K doc/FAQ doc/INTRO examples/bashdb examples/functions \ examples/misc examples/scripts.noah examples/scripts.v2 examples/scripts \ examples/startup-files examples/complete' PATCHLIST='bash-patches/001-bash31-001.diff bash-patches/002-bash31-002.diff bash-patches/003-bash31-003.diff bash-patches/004-bash31-004.diff bash-patches/005-bash31-005.diff bash-patches/006-bash31-006.diff bash-patches/007-bash31-007.diff bash-patches/008-bash31-008.diff bash-patches/009-bash31-009.diff bash-patches/010-bash31-010.diff bash-patches/011-bash31-011.diff bash-patches/012-bash31-012.diff bash-patches/013-bash31-013.diff bash-patches/014-bash31-014.diff bash-patches/015.bash31-015.diff bash-patches/016-bash31-016.diff bash-patches/017-bash31-017.diff bash-patches/018-bash-2.03-paths.patch bash-patches/019-bash-2.02-security.patch bash-patches/020-bash-2.03-profile.patch bash-patches/021-bash-3.1-requires.diff bash-patches/022-bash-aq.patch bash-patches/023-bash-login.patch bash-patches/024-bash-2.05a-interpreter.patch bash-patches/025-bash-2.05b-readline-oom.patch bash-patches/026-bash-ulimit.patch bash-patches/027-bash-2.05b-xcc.patch bash-patches/028-bash-2.05b-pgrp_sync.patch bash-patches/029-bash-2.05b-manso.patch bash-patches/030-bash-2.05b-debuginfo.patch bash-patches/031-bash-tty-tests.patch bash-patches/032-bash-setlocale.patch bash-patches/033-bash-sighandler.patch bash-patches/034-bash-read-memleak.patch' # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # do_all_processes can substitute these 16 steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source compile_source fake_install mkdir -p $PKG_DIR/bin mv $PKG_DIR/usr/bin/bash $PKG_DIR/bin/bash3.new rm -f $PKG_DIR/usr/bin/* # install the man-pages and link the builtins mkdir -p $MAN_DIR/man1 cp $SRC_DIR/doc/bash.1 $SRC_DIR/doc/builtins.1 $MAN_DIR/man1 ( cd $MAN_DIR/man1 ; for i in $(cat $CWD/bash-patches/builtins.man-pages) ; do ln -sf builtins.1 $i.1 done ln -sf bash.1 sh.1 ) if [[ $INSTALL_SKEL = 1 ]] ; then mkdir -p $PKG_DIR/etc/skel install -m644 $CWD/bash-patches/dot-bashrc $PKG_DIR/etc/skel/.bashrc.new install -m644 $CWD/bash-patches/dot-bash_profile $PKG_DIR/etc/skel/.bash_profile.new install -m644 $CWD/bash-patches/dot-bash_logout $PKG_DIR/etc/skel/.bash_logout.new fi fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process # src2pkg - Copyright 2005-2009 Gilbert Ashley ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # EXTRA_CONFIGS='' PRE_FIX='' DOCLIST='' # MAKE_COMMAND='' INSTALL_LINE='' # SHELL_INSTALL='YES' CORRECT_PERMS='NO' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)