summaryrefslogtreecommitdiff
path: root/sys-boot/quik
diff options
context:
space:
mode:
Diffstat (limited to 'sys-boot/quik')
-rw-r--r--sys-boot/quik/Manifest7
-rw-r--r--sys-boot/quik/files/headers.patch33
-rw-r--r--sys-boot/quik/files/md-fix.diff11
-rw-r--r--sys-boot/quik/metadata.xml8
-rw-r--r--sys-boot/quik/quik-2.1.6.ebuild43
5 files changed, 102 insertions, 0 deletions
diff --git a/sys-boot/quik/Manifest b/sys-boot/quik/Manifest
new file mode 100644
index 000000000000..e7f53b13dda6
--- /dev/null
+++ b/sys-boot/quik/Manifest
@@ -0,0 +1,7 @@
+AUX headers.patch 991 SHA256 3ef7f4ef85e8f210a82e4bb96e94e5c61b59cef119ca1cec7656746d3a83e2f6 SHA512 8cc1f3e41248198bb08c3f70d00e340318bdf11d9d03a8c76eba2a88d67a40265f31ad6b77076b597e37edce5fc64943d09d7d32551b179a598261c6691fc01e WHIRLPOOL bd3b30b97cb11464866694f1e9f074cdcd61dbd3398f85803dd716bc57c7c693d3aa2a1bafffaf1dc6da5703f6f5b4fd2daf636ccbf1edaee29c38c8e776c552
+AUX md-fix.diff 392 SHA256 6529d6b01a17e5a2a0cea17358c3c8376e1ef4be6d3943bcb0e39d42715a264f SHA512 b118693bb6c230fba7e371e3de2ae19f2d82760558b27e12c8bc4d3e1764225c1120104e11660ab2692b39a65e9b574af599cec62e81e7051c73e102acc6a2fd WHIRLPOOL bae80888b2ac71c7882633a4fdb444575c78b33ba9c5971eb6239fcf3ac1e41c1c1fc14d911069a51ff3cbf360a6877681d2a052839db686ae5725bbd5190939
+DIST quik-2.1-6.ydl4.src.rpm 91961 SHA256 a4c8c95fa97ef0e01e7ca981442c8dc8761f79c9bc4c683bfde03378a8ee9db2 SHA512 92cdea02afd5053fb51b390e79f4d2d404691be5de9ea3d9c88739fc4fa993b68a017be10ff1b5fa359f8c5493f34d0d743975f5ce99525bdaf5921b0146aa63 WHIRLPOOL 6326c38729dcd871858c75d74539b9d02c815b20b47825d0134d609e9e9be67e3ef91add7a4e7932ce105a6e4ac60a055489f3be285aadd6879b0a462b06597a
+EBUILD quik-2.1.6.ebuild 953 SHA256 f9b2a42c169e491a7c4b2f2fa4073f9e83e59ed8f07fe56b195d0e7e837419f4 SHA512 cab21263f9831ae8994dd8a532060e7a2f6c2cb77371b3c5b5d47d31cf591dc3e2c9b333a310ec44c500d82449f5df3fabac5f27fe03dd3684409cc1e199a8bd WHIRLPOOL 49baf10ab010627061dca1e459af3c84acec5fd61052ff8375ac49f076a49c50b8239d7b9483e15e7f011a107ea97c069473135573882fe72800db3ac2c15d04
+MISC ChangeLog 2460 SHA256 f3e2f93bf1ca69112571e3006b01e1726b8dbcc36a54e1f0444152e9f397529d SHA512 3bd2569005f069aa0af9b7f7ef68d85524391675c1953d0f30fb99e23ecc76bb7c58070f2e2467faced14d147a8587fa38d456f4d9a43d3a2c19898cb32db37b WHIRLPOOL f8f0745df0536807271a65f1f6a2a1c5f013e5c477a057b437446eb7d509c73468de1334da55ad896ba035729d509e89535b662e4949cc87beedc2006f569958
+MISC ChangeLog-2015 3665 SHA256 1bf4772423062fadce9cc2bc1da03879c890870826963caca75a1b1a224ca598 SHA512 972a611ccbb8626a773b3d436460773330aae20f2b461698c2e0271831e21e65df2a30b88e9b0dfcece6bf85643ae779078128ca51f062705e58782eb7814452 WHIRLPOOL 366b9be1da9dc3e83efaa3f5fc9bbd8c15aee4b3e185192e917129b19c55f62e5a73543a71dd0df63a1ff92cdbc73e93c9d03278d9d7f026a77af7390d9d462e
+MISC metadata.xml 259 SHA256 e7ac6b67c4c89040a00b23bda7a3b2fd4ac8affc1055daf3015ccc8580640f6f SHA512 ca71b1781806d20022c238e5b5d10f9154c78e0fa51f2603de34c48ecbe4cbc2c3190cf046526840546743644c691ee7fe51e31a4617b01bb7602dde803c1538 WHIRLPOOL 2a2aa19a448eca4dea84d129fd194a7ee4d77bdc1b5120abd3b667ce156cdeeb4616a7c7cd23fbccb7ba08e6e166aaba0fac63a6afa208d826acee37b0e560fe
diff --git a/sys-boot/quik/files/headers.patch b/sys-boot/quik/files/headers.patch
new file mode 100644
index 000000000000..eccfba698e17
--- /dev/null
+++ b/sys-boot/quik/files/headers.patch
@@ -0,0 +1,33 @@
+--- util/elfextract.c.bak 2006-12-04 23:08:33.000000000 -0500
++++ util/elfextract.c 2006-12-04 23:08:45.000000000 -0500
+@@ -6,7 +6,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #define __KERNEL__
+-#include <linux/elf.h>
++#include <elf.h>
+
+ FILE *fi, *fo;
+ char *ni, *no;
+--- second/quik.h.bak 2006-12-04 23:10:08.000000000 -0500
++++ second/quik.h 2006-12-04 23:10:12.000000000 -0500
+@@ -26,7 +26,7 @@
+ int tolower(int c);
+ int stricmp(const char *s1, const char *s2);
+ int strncmp(const char * cs,const char * ct,size_t count);
+-int strlen(const char *s1);
++// int strlen(const char *s1);
+ char *strcpy(char * dest,const char *src);
+ char *strncpy(char * dest,const char *src,size_t count);
+ char *strchr(const char * s, int c);
+--- second/misc.c.bak 2010-02-09 22:18:47.000000000 -0500
++++ second/misc.c 2010-02-09 22:18:52.000000000 -0500
+@@ -11,7 +11,7 @@
+ */
+ #include <linux/kernel.h>
+
+-#include <asm/page.h>
++// #include <asm/page.h>
+
+ #include <sys/types.h>
+ #include "setjmp.h"
diff --git a/sys-boot/quik/files/md-fix.diff b/sys-boot/quik/files/md-fix.diff
new file mode 100644
index 000000000000..2319397d93f1
--- /dev/null
+++ b/sys-boot/quik/files/md-fix.diff
@@ -0,0 +1,11 @@
+--- include/quik_md.h.bak 2005-05-27 00:42:36.000000000 +1000
++++ include/quik_md.h 2005-05-27 00:42:43.000000000 +1000
+@@ -88,8 +88,6 @@
+ #define BOOTDEV(dev,i) ((dev)->devs[(i)]->bootdev)
+ #define SPART(dev,i) ((dev)->devs[(i)]->spart)
+
+-dev_info_t * new_dev_info (unsigned char);
+-void free_dev_info (dev_info_t *);
+ int md_get_version (int);
+ mdev_info_t * md_get_info (const char *);
+
diff --git a/sys-boot/quik/metadata.xml b/sys-boot/quik/metadata.xml
new file mode 100644
index 000000000000..5eb05198076b
--- /dev/null
+++ b/sys-boot/quik/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>ppc@gentoo.org</email>
+ <name>Gentoo Linux PowerPC Development</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-boot/quik/quik-2.1.6.ebuild b/sys-boot/quik/quik-2.1.6.ebuild
new file mode 100644
index 000000000000..0b14ed0098cc
--- /dev/null
+++ b/sys-boot/quik/quik-2.1.6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs mount-boot eutils
+
+MY_PV=${PV%.*}-${PV#*.*.}
+
+HOMEPAGE="http://penguinppc.org/bootloaders/quik/"
+DESCRIPTION="OldWorld PowerMac Bootloader"
+SRC_URI="http://www.shiner.info/files/Yellow%20Dog%20Linux%204/quik/quik-${MY_PV}.ydl4.src.rpm"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ppc"
+IUSE=""
+
+DEPEND="app-arch/rpm2targz"
+RDEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ cd "${WORKDIR}"
+ rpm2targz "${DISTDIR}/quik-${MY_PV}.ydl4.src.rpm"
+ tar -xzf "${WORKDIR}/quik-${MY_PV}.ydl4.src.tar.gz" || die
+ tar -xzf "${WORKDIR}/quik_2.1.orig.tar.gz" || die
+
+ cd "${WORKDIR}/quik-2.1"
+ epatch "${WORKDIR}/quik_2.1-6.diff.gz"
+ epatch "${FILESDIR}/md-fix.diff"
+ epatch "${FILESDIR}/headers.patch"
+}
+
+src_compile() {
+ cd "${WORKDIR}/quik-2.1"
+ emake || die
+}
+
+src_install() {
+ cd "${WORKDIR}/quik-2.1"
+ DESTDIR=${D} make install
+ prepman /usr
+}