summaryrefslogtreecommitdiffstats
path: root/base/grub/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-08 15:44:25 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-08 15:44:25 +0200
commit4abf965c148577d811e1aad32b32bfd6ed332449 (patch)
tree31d70313d8097c8c1d246ca834fbbf142008c11a /base/grub/Pkgfile
parent01e89e9c467cbf5b31c52cdd998ed5deb22fd252 (diff)
downloadnutyx-pakxe-4abf965c148577d811e1aad32b32bfd6ed332449.tar.gz
nutyx-pakxe-4abf965c148577d811e1aad32b32bfd6ed332449.tar.bz2
nutyx-pakxe-4abf965c148577d811e1aad32b32bfd6ed332449.tar.xz
nutyx-pakxe-4abf965c148577d811e1aad32b32bfd6ed332449.zip
Ajout de grub#0.97-2
Diffstat (limited to 'base/grub/Pkgfile')
-rwxr-xr-xbase/grub/Pkgfile59
1 files changed, 59 insertions, 0 deletions
diff --git a/base/grub/Pkgfile b/base/grub/Pkgfile
new file mode 100755
index 000000000..1bb3f6634
--- /dev/null
+++ b/base/grub/Pkgfile
@@ -0,0 +1,59 @@
+# Description: GRand Unified Bootloader, le programme de chargement du noyau en mémoire vive
+# URL: http://www.gnu.org/software/grub/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on:
+
+name=grub
+version=0.97
+release=2
+source=(ftp://alpha.gnu.org/gnu/$name/$name-$version.tar.gz\
+ http://www.linuxfromscratch.org/patches/lfs/development/grub-0.97-disk_geometry-1.patch \
+ http://www.linuxfromscratch.org/patches/lfs/development/grub-0.97-256byte_inode-1.patch \
+ http://aur.archlinux.org/packages/grub-gfxboot/grub-gfxboot/00-grub-0.97-gfxboot.patch \
+ http://www.nutyx.org/files/patchs/grub/use_ferror.diff \
+ http://www.nutyx.org/files/patchs/grub/$name-$version-path-patch
+ http://www.nutyx.org/files/patchs/grub/grub-R \
+ http://www.nutyx.org/files/patchs/grub/bad-assert-sideeffect \
+ http://www.nutyx.org/files/patchs/grub/chainloader-devicefix \
+ http://www.nutyx.org/files/patchs/grub/$name-$version-devicemap.diff \
+ http://www.nutyx.org/files/patchs/grub/reiser-unpack \
+ http://www.nutyx.org/files/patchs/grub/grub-gfxmenu-v8.diff \
+ http://www.nutyx.org/files/patchs/grub/grub-a20.patch \
+ http://www.nutyx.org/files/patchs/grub/ext4.patch \
+ http://aur.archlinux.org/packages/grub-gfxboot/grub-gfxboot/02-grub-$version-debugcdboot.patch\
+ http://aur.archlinux.org/packages/grub-gfx/grub-gfx/grub-0.97-graphics.patch \
+
+ message )
+build() {
+ cd $name-$version
+ patch -Np1 -i ../$name-$version-path-patch
+ patch -Np0 -i ../use_ferror.diff
+ patch -Np1 -i ../grub-R
+ patch -Np1 -i ../bad-assert-sideeffect
+ patch -Np0 -i ../grub-gfxmenu-v8.diff
+ patch -Np1 -i ../reiser-unpack
+
+ patch -Np1 -i ../grub-a20.patch
+ patch -Np1 -i ../02-grub-$version-debugcdboot.patch
+ patch -Np1 -i ../$name-$version-disk_geometry-1.patch
+ patch -Np1 -i ../$name-$version-256byte_inode-1.patch
+
+ patch -Np1 -i ../ext4.patch
+ unset CXXFLAGS
+ unset CFLAGS
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+ make DESTDIR=$PKG install
+ install -d $PKG/boot/grub
+ install -d $PKG/usr/share
+ cp -v ../message $PKG/boot/
+ cp -v $PKG/usr/lib/grub/i386-pc/stage{1,2} $PKG/boot/grub
+ cp -v $PKG/usr/lib/grub/i386-pc/e2fs_stage1_5 $PKG/boot/grub
+ cp -v $PKG/usr/lib/grub/i386-pc/reiserfs_stage1_5 $PKG/boot/grub
+ if [ -f $PKG/usr/share/info/dir ]; then
+ rm $PKG/usr/share/info/dir
+ fi
+}