Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=e12ce1e88667dc476f31daf65f6e31a6a3a47fbc

commit e12ce1e88667dc476f31daf65f6e31a6a3a47fbc
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Nov 8 14:51:28 2009 +0100

mkinitrd-4.2.0.3-1-i686
*new package

diff --git a/source/apps-extra/mkinitrd/FrugalBuild 
b/source/apps-extra/mkinitrd/FrugalBuild
new file mode 100644
index 0000000..449532b
--- /dev/null
+++ b/source/apps-extra/mkinitrd/FrugalBuild
@@ -0,0 +1,34 @@
+# Compiling Time: 0 SBU
+# Maintainer: bouleetbil <bouleet...@frogdev.info>
+
+pkgname=mkinitrd
+pkgver=4.2.0.3
+pkgrel=1
+pkgdesc="Creates an initial ramdisk image for preloading modules."
+url="http://git.fedoraproject.org/git/hosted/mkinitrd";
+up2date=$pkgver
+source=(http://cvs.fedora.redhat.com/repo/pkgs/$pkgname/$pkgname-$pkgver.tar.bz2/2935065b63321c2406b004e05bbddc78/$pkgname-$pkgver.tar.bz2
 \
+mkinitrd-4.2.0.3-glibc-2.10.patch)
+depends=('popt' 'util-linux' 'libnl' 'lvm2')
+groups=('apps-extra')
+archs=('i686')
+sha1sums=('c2ceacb60bbab52fc406a77b2e8c88d119c837ef' \
+          '265a43a90f870ccc1bdbc898faf7419c3a0463ef')
+export CFLAGS="${CFLAGS} -Dstrndup=strndup"
+
+build() {
+       Fcd
+       sed -i \
+               -e '/^CFLAGS/s: -Werror::' \
+               -e '/^CFLAGS/s: -g::' \
+               -e '/^CFLAGS/s:=:+=:' \
+               grubby/Makefile nash/Makefile || Fdie
+       Fsed '$(BUILDROOT)' "$Fdestdir" nash/Makefile
+       Fsed '$(BUILDROOT)' "$Fdestdir" grubby/Makefile
+       Fsed '$(BUILDROOT)' "$Fdestdir" Makefile
+       #We don't want mkinitrd from Redhat/Fedora just nash
+       Frm /usr/bin
+       Fbuild
+}
+
+# optimization OK
diff --git a/source/apps-extra/mkinitrd/mkinitrd-4.2.0.3-glibc-2.10.patch 
b/source/apps-extra/mkinitrd/mkinitrd-4.2.0.3-glibc-2.10.patch
new file mode 100644
index 0000000..b8f4842
--- /dev/null
+++ b/source/apps-extra/mkinitrd/mkinitrd-4.2.0.3-glibc-2.10.patch
@@ -0,0 +1,29 @@
+diff -ur mkinitrd-4.2.0.3.orig/grubby/grubby.c mkinitrd-4.2.0.3/grubby/grubby.c
+--- mkinitrd-4.2.0.3.orig/grubby/grubby.c      2005-01-19 06:29:14.000000000 
+0200
++++ mkinitrd-4.2.0.3/grubby/grubby.c   2009-08-09 19:19:41.000000000 +0300
+@@ -239,7 +239,9 @@
+ struct singleEntry * findEntryByPath(struct grubConfig * cfg,
+                                    const char * path, const char * prefix,
+                                    int * index);
++#ifndef strndup
+ static char * strndup(char * from, int len);
++#endif
+ static int readFile(int fd, char ** bufPtr);
+ static void lineInit(struct singleLine * line);
+ static void lineFree(struct singleLine * line);
+@@ -249,6 +251,7 @@
+                      struct configFileInfo * cfi);
+ static char * getRootSpecifier(char * str);
+
++#ifndef strndup
+ static char * strndup(char * from, int len) {
+     char * to;
+
+@@ -258,6 +261,7 @@
+
+     return to;
+ }
++#endif
+
+ static char * sdupprintf(const char *format, ...)
+ #ifdef __GNUC__
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to