#!/bin/bash ## src2pkg script for: grub ## Auto-generated by src2pkg-1.9.7 ## src2pkg Copyright 2005-2008 Gilbert Ashley SOURCE_NAME='grub-0.97.tar.gz' NAME='grub' VERSION='0.97' # ARCH='i486' BUILD='13' PRE_FIX='usr' # Any extra options go here EXTRA_CONFIGS='--disable-auto-linux-mem-opt \ --disable-minix --disable-md5-password \ --disable-hercules --disable-serial \ --disable-packet-retransmission \ --enable-ntfs \ --enable-pci-direct --sbindir=/usr/sbin ' # STD_FLAGS='-O2 -march=i486 -mtune=i686' PATCHLIST='grub-patches/000-preset-menu.diff grub-patches/001-cvs-sync.diff grub-patches/002-splashimage.diff grub-patches/003-xpmjunk.diff grub-patches/004hidden-menu-tweak.diff grub-patches/005-set-root.diff grub-patches/006-ntfs.diff grub-patches/007-256byte-inode.diff grub-patches/008-fix-findroot.diff grub-patches/009-quieten-automake10.diff grub-patches/010-grub-0.97-libpath.diff grub-patches/011-use_ferror.diff #grub-patches/012-grub-R.diff grub-patches/013-bad-assert-side-effect.diff grub-patches/014-chainloader-device-fix.diff grub-patches/015-grub-device-map.diff grub-patches/016-fix-uninitialized.diff grub-patches/017-grub-linux-setup-fix.diff grub-patches/018-force-LBA-off.diff grub-patches/019-gcc4-fixes.diff grub-patches/020-initraddr.diff grub-patches/021-a20-fix.diff grub-patches/022-disk-by-ID.diff grub-patches/023-e100-new-IDs.diff grub-patches/024-recognize-zen.diff grub-patches/025-grubinstall-fix-UUID-label.diff grub-patches/026-grubonce-no-wait.diff grub-patches/027-ext4-support.diff grub-patches/028-ntfs-gcc4-fix.diff grub-patches/029-x86_64-boot-support.diff' # 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 ( cd $SRC_DIR tar xzf $CWD/grubconfig-1.28.tar.gz cd grubconfig-1.28 cat $PATCHES_DIR/grub-patches/grubconfig_localefix.dif | patch cat $PATCHES_DIR/grub-patches/grubconfig_ext4fix.dif | patch chown -R root:root . chmod 644 README chmod 755 grubconfig mkdir -p $PKG_DIR/usr/doc/grubconfig-1.28 cp -a README $PKG_DIR/usr/doc/grubconfig-1.28 cp -a grubconfig $PKG_DIR/usr/sbin/grubconfig ) fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process # src2pkg - Copyright 2005-2008 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)