summaryrefslogtreecommitdiffstats
path: root/extra/grub/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2009-12-24 23:53:02 +0100
committertnut <thierryn1 at hispeed dot ch>2009-12-24 23:53:02 +0100
commit8e8ad512d60cb2a150926713c7a4e8e6abd000de (patch)
treef27fda8a3ef122d4212dff11fcc1880bcda8ccb0 /extra/grub/Pkgfile
parentada4d25277d8d686b8e6b1c22340924e871e0ae0 (diff)
downloadnutyx-extra-8e8ad512d60cb2a150926713c7a4e8e6abd000de.tar.gz
nutyx-extra-8e8ad512d60cb2a150926713c7a4e8e6abd000de.tar.bz2
nutyx-extra-8e8ad512d60cb2a150926713c7a4e8e6abd000de.tar.xz
nutyx-extra-8e8ad512d60cb2a150926713c7a4e8e6abd000de.zip
Paquets avec dépendances déplacés dans extra
Diffstat (limited to 'extra/grub/Pkgfile')
-rwxr-xr-xextra/grub/Pkgfile53
1 files changed, 53 insertions, 0 deletions
diff --git a/extra/grub/Pkgfile b/extra/grub/Pkgfile
new file mode 100755
index 000000000..81206c66d
--- /dev/null
+++ b/extra/grub/Pkgfile
@@ -0,0 +1,53 @@
+# 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=5
+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://kiao.no-ip.info/NuTyX/files/patchs/grub/use_ferror.diff \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/$name-$version-path-patch
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/grub-R \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/bad-assert-sideeffect \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/chainloader-devicefix \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/$name-$version-devicemap.diff \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/reiser-unpack \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/grub-gfxmenu-v8.diff \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/grub-a20.patch \
+ http://kiao.no-ip.info/NuTyX/files/patchs/grub/ext4.patch )
+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 ../$name-$version-disk_geometry-1.patch
+ patch -Np1 -i ../$name-$version-256byte_inode-1.patch
+
+ patch -Np1 -i ../ext4.patch
+ unset CXXFLAGS
+ unset CFLAGS
+ if [ "`uname -m`" == "x86_64" ]; then
+ echo "Ce paquet doit être builder dans i686"
+ echo 'Ajouter CFLAGS="-static" avant ./configure'
+ echo 'CFLAGS="-static" ./configure --prefix=/usr'
+ exit 1
+ fi
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+ make DESTDIR=$PKG install
+ install -d $PKG/usr/share
+ if [ -f $PKG/usr/share/info/dir ]; then
+ rm $PKG/usr/share/info/dir
+ fi
+}