diff options
17 files changed, 57 insertions, 1729 deletions
diff --git a/app-text/pdftk/files/pdftk-1.41-r2.patch b/app-text/pdftk/files/pdftk-1.41-r2.patch deleted file mode 100644 index ee27009..0000000 --- a/app-text/pdftk/files/pdftk-1.41-r2.patch +++ /dev/null @@ -1,274 +0,0 @@ -diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/bc/asn1/Makefile pdftk-1.41/java_libs/com/lowagie/bc/asn1/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/bc/asn1/Makefile 2006-07-27 19:18:06.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/bc/asn1/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -25,8 +25,7 @@ classes= $(patsubst %.java, %.class, $(s - # the "$*" automatic variable, here - # - %.h : %.class -- $(GCJH) --classpath="." $*; -- $(RM) $< -+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*; - - ## - # targets -diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/ImgPostscript.java pdftk-1.41/java_libs/com/lowagie/text/ImgPostscript.java ---- pdftk-1.41.orig/java_libs/com/lowagie/text/ImgPostscript.java 2006-07-26 19:12:26.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/ImgPostscript.java 2009-05-12 13:01:43.000000000 -0400 -@@ -53,7 +53,6 @@ package com.lowagie.text;
- import java.io.*;
- import java.net.*;
- import com.lowagie.text.pdf.*;
--import com.lowagie.text.pdf.codec.postscript.*;
- import java.util.StringTokenizer;
-
- /**
-@@ -194,7 +193,7 @@ implements Element {
- * @throws IOException on error
- * @throws DocumentException on error
- */
-- public void readPostscript(PdfTemplate template) throws IOException,
-+/* public void readPostscript(PdfTemplate template) throws IOException,
- DocumentException {
- setTemplateData(template);
- template.setWidth(width());
-@@ -215,5 +214,5 @@ implements Element {
- is.close();
- }
- }
-- }
-+ } */
- }
-diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/Makefile pdftk-1.41/java_libs/com/lowagie/text/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/text/Makefile 2006-07-26 17:14:34.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -25,14 +25,15 @@ classes= $(patsubst %.java, %.class, $(s - # the "$*" automatic variable, here - # - %.h : %.class -- $(GCJH) --classpath="." $*; -- $(RM) $< -+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*; - - ## - # targets - - all : $(library) $(headers) - -+$(classes): $(sources) -+ - $(library) : $(objects) - $(AR) $(ARFLAGS) $(library) $(objects); - -diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/markup/Makefile pdftk-1.41/java_libs/com/lowagie/text/markup/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/text/markup/Makefile 2006-07-26 17:14:54.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/markup/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -25,8 +25,7 @@ classes= $(patsubst %.java, %.class, $(s - # the "$*" automatic variable, here - # - %.h : %.class -- $(GCJH) --classpath="." $*; -- $(RM) $< -+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*; - - ## - # targets -diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/Makefile 2006-07-26 17:15:20.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -25,8 +25,7 @@ classes= $(patsubst %.java, %.class, $(s - # the "$*" automatic variable, here
- #
- %.h : %.class
-- $(GCJH) --classpath="." $*;
-- $(RM) $<
-+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*;
-
- ##
- # targets
-diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile 2006-07-26 17:15:32.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -25,8 +25,7 @@ classes= $(patsubst %.java, %.class, $(s - # the "$*" automatic variable, here
- #
- %.h : %.class
-- $(GCJH) --classpath="." $*;
-- $(RM) $<
-+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*;
-
- ##
- # targets
-diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/fonts/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/fonts/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/fonts/Makefile 2006-07-26 17:15:48.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/fonts/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -34,8 +34,7 @@ afm_objects= $(patsubst %.afm, %.o, $(af - # the "$*" automatic variable, here - # - %.h : %.class -- $(GCJH) --classpath="." $*; -- $(RM) $< -+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*; - - ## - # targets -diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/Makefile 2006-07-26 17:15:10.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -25,8 +25,7 @@ classes= $(patsubst %.java, %.class, $(s - # the "$*" automatic variable, here - # - %.h : %.class -- $(GCJH) --classpath="." $*; -- $(RM) $< -+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*; - - ## - # targets -@@ -37,4 +36,4 @@ $(library) : $(objects) - $(AR) $(ARFLAGS) $(library) $(objects); - - clean : -- $(RM) $(RMFLAGS) *.o *.h *.class *.a -+ $(RM) $(RMFLAGS) *.o *.h *.class *.a hyphenation/*.class -diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfEncryption.java pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfEncryption.java ---- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2006-07-26 20:02:28.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2009-05-12 13:02:16.000000000 -0400 -@@ -50,7 +50,7 @@ -
- package com.lowagie.text.pdf;
-
--import java_local.security.MessageDigest; // ssteward
-+import java.security.MessageDigest; // ssteward
- import com.lowagie.text.ExceptionConverter;
-
- /**
-diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfWriter.java pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfWriter.java ---- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfWriter.java 2006-10-24 19:43:32.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfWriter.java 2009-05-12 13:01:43.000000000 -0400 -@@ -947,7 +947,7 @@ public class PdfWriter extends DocWriter - catch (Exception e) {
- throw new DocumentException(e);
- }
-- }else{
-+ } /* else{
- try {
- ((ImgPostscript)image).readPostscript(getDirectContent().createTemplate(0, 0));
- }
-@@ -955,7 +955,7 @@ public class PdfWriter extends DocWriter - throw new DocumentException(e);
- }
-
-- }
-+ } */
- }
- }
- else {
-diff -urNp pdftk-1.41.orig/java_libs/com/lowagie/text/xml/xmp/Makefile pdftk-1.41/java_libs/com/lowagie/text/xml/xmp/Makefile ---- pdftk-1.41.orig/java_libs/com/lowagie/text/xml/xmp/Makefile 2006-07-26 20:53:34.000000000 -0400 -+++ pdftk-1.41/java_libs/com/lowagie/text/xml/xmp/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -25,8 +25,7 @@ classes= $(patsubst %.java, %.class, $(s - # the "$*" automatic variable, here - # - %.h : %.class -- $(GCJH) --classpath="." $*; -- $(RM) $< -+ $(GCJH) --classpath="/usr/share/java/libgcj-4.3.jar:$(PWD):." $*; - - ## - # targets -diff -urNp pdftk-1.41.orig/java_libs/Makefile pdftk-1.41/java_libs/Makefile ---- pdftk-1.41.orig/java_libs/Makefile 2006-08-29 02:44:26.000000000 -0400 -+++ pdftk-1.41/java_libs/Makefile 2009-05-12 13:02:16.000000000 -0400 -@@ -11,15 +11,9 @@ - java_libs_root= $(CURDIR) - - # append gcj flags --export GCJFLAGS+= --encoding=UTF-8 --classpath="$(java_libs_root)" -+export GCJFLAGS+= --encoding=UTF-8 --classpath="/usr/share/java/libgcj-4.3.jar:$(java_libs_root)" - --all : libgcj_local itext -- --libgcj_local : -- $(MAKE) -C "$(java_libs_root)/gnu_local/java/security"; -- $(MAKE) -C "$(java_libs_root)/gnu_local/java/security/provider"; -- $(MAKE) -C "$(java_libs_root)/gnu/gcj/convert"; -- $(MAKE) -C "$(java_libs_root)/java_local/security"; -+all : itext - - itext : - $(MAKE) -C "$(java_libs_root)/com/lowagie/text"; -@@ -33,15 +27,9 @@ itext : - $(MAKE) -C "$(java_libs_root)/com/lowagie/text/pdf/fonts"; - $(MAKE) -C "$(java_libs_root)/com/lowagie/text/xml/xmp"; - $(MAKE) -C "$(java_libs_root)/com/lowagie/bc/asn1"; -- $(MAKE) -C "$(java_libs_root)/com/lowagie/text/pdf/codec/postscript"; -- --clean : libgcj_local_clean itext_clean -+# $(MAKE) -C "$(java_libs_root)/com/lowagie/text/pdf/codec/postscript"; - --libgcj_local_clean : -- $(MAKE) -iC "$(java_libs_root)/gnu_local/java/security" clean; -- $(MAKE) -iC "$(java_libs_root)/gnu_local/java/security/provider" clean; -- $(MAKE) -iC "$(java_libs_root)/gnu/gcj/convert" clean; -- $(MAKE) -iC "$(java_libs_root)/java_local/security" clean; -+clean : itext_clean - - itext_clean : - $(MAKE) -iC "$(java_libs_root)/com/lowagie/text" clean; -@@ -55,4 +43,4 @@ itext_clean : - $(MAKE) -iC "$(java_libs_root)/com/lowagie/text/pdf/fonts" clean; - $(MAKE) -iC "$(java_libs_root)/com/lowagie/text/xml/xmp" clean; - $(MAKE) -iC "$(java_libs_root)/com/lowagie/bc/asn1" clean; -- $(MAKE) -iC "$(java_libs_root)/com/lowagie/text/pdf/codec/postscript" clean; -+# $(MAKE) -iC "$(java_libs_root)/com/lowagie/text/pdf/codec/postscript" clean; -diff -urNp pdftk-1.41.orig/pdftk/Makefile.Base pdftk-1.41/pdftk/Makefile.Base ---- pdftk-1.41.orig/pdftk/Makefile.Base 2006-10-24 19:44:06.000000000 -0400 -+++ pdftk-1.41/pdftk/Makefile.Base 2009-05-12 13:02:16.000000000 -0400 -@@ -25,24 +25,13 @@ $(java_libs_root)/com/lowagie/text/pdf/f - $(java_libs_root)/com/lowagie/text/markup/markup.a \ - $(java_libs_root)/com/lowagie/text/xml/xmp/xmp.a \ - $(java_libs_root)/com/lowagie/bc/asn1/asn1.a \ --$(java_libs_root)/com/lowagie/text/pdf/codec/postscript/postscript.a \ -+ -+# $(java_libs_root)/com/lowagie/text/pdf/codec/postscript/postscript.a \ - - # font metric files, included as resources - afms= $(wildcard $(java_libs_root)/com/lowagie/text/pdf/fonts/*.afm) - afm_objects= $(patsubst %.afm, %.o, $(afms)) - --# older versions of libgcj might not have the MD5 algorithm, --# so I added it here; these *_local java files were grabbed from --# libgcj CVS on March 7, 2004; diffed September 5, 2006 w/ gcc 4.1.1 --# --# gnu/gcj/convert/Input_UnicodeBig.java was grabbed March 26, 2004; diffed September 5, 2006 w/ gcc 4.1.1 --# --libgcj_local_libs = \ --$(java_libs_root)/java_local/security/security.a \ --$(java_libs_root)/gnu_local/java/security/provider/provider.a \ --$(java_libs_root)/gnu_local/java/security/security.a \ --$(java_libs_root)/gnu/gcj/convert/convert.a -- - # this must already be set according to your platform Makefile; - # we're just appending to it, here - # -diff -urNp pdftk-1.41.orig/pdftk/pdftk.cc pdftk-1.41/pdftk/pdftk.cc ---- pdftk-1.41.orig/pdftk/pdftk.cc 2006-11-28 17:51:36.000000000 -0500 -+++ pdftk-1.41/pdftk/pdftk.cc 2009-05-12 13:02:44.000000000 -0400 -@@ -71,6 +71,8 @@ - #include "com/lowagie/text/pdf/PdfIndirectObject.h" - #include "com/lowagie/text/pdf/PdfFileSpecification.h" - #include "com/lowagie/text/pdf/PdfBoolean.h" -+#include "com/lowagie/text/pdf/PdfEncodings.h" -+#include "com/lowagie/text/pdf/BaseFont.h" - - #include "com/lowagie/text/pdf/RandomAccessFileOrArray.h" // for InputStreamToArray() - -@@ -2672,6 +2674,8 @@ int main(int argc, char** argv) - JvInitClass(&itext::PdfDictionary::class$); - JvInitClass(&itext::PdfOutline::class$); - JvInitClass(&itext::PdfBoolean::class$); -+ JvInitClass(&itext::PdfEncodings::class$); -+ JvInitClass(&itext::BaseFont::class$); - - TK_Session tk_session( argc, argv ); - diff --git a/app-text/pdftk/pdftk-1.41-r2.ebuild b/app-text/pdftk/pdftk-1.41-r2.ebuild deleted file mode 100644 index 267fe45..0000000 --- a/app-text/pdftk/pdftk-1.41-r2.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-1.41-r1.ebuild,v 1.1 2008/12/26 21:44:37 caster Exp $ - -EAPI="2" - -inherit eutils - -DESCRIPTION="A tool for manipulating PDF documents" -HOMEPAGE="http://www.pdfhacks.com/pdftk" -SRC_URI="http://www.pdfhacks.com/pdftk/${P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="" -DEPEND=">=sys-devel/gcc-4.3.1[gcj]" - -S="${WORKDIR}/${P}/${PN}" - -src_unpack() { - unpack ${A} - - epatch "${FILESDIR}/pdftk-1.41-r2.patch" - -} - -src_compile() { - # java-config settings break compilation by gcj. - unset CLASSPATH - unset JAVA_HOME - # parallel make fails - emake -j1 -f Makefile.Generic || die "Compilation failed." -} - -src_install() { - dobin pdftk - newman ../debian/pdftk.1 pdftk.1 - dohtml ../pdftk.1.html -} diff --git a/eclass/kernel-libre.eclass b/eclass/kernel-libre.eclass deleted file mode 100644 index 80cc3ec..0000000 --- a/eclass/kernel-libre.eclass +++ /dev/null @@ -1,65 +0,0 @@ -# -# Original Author: Nick White -# Purpose: override of kernel-2.eclass for the linux-libre kernel -# - -inherit kernel-2 -EXPORT_FUNCTIONS src_unpack - -KERNEL_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre${LIBRE_VER}/linux-${PV}-libre${LIBRE_VER}.tar.bz2" -DEBLOB_CHECK="deblob-check" -DEBLOB_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre${LIBRE_VER}/${DEBLOB_CHECK}" - -KERNEL_VER=${PV/-r*} - -# rename deblob-check to avoid collisions -if [[ $EAPI == 2 ]]; then - DEBLOB_CHECK="${DEBLOB_CHECK}-${KERNEL_VER}" - DEBLOB_URI="${DEBLOB_URI} -> ${DEBLOB_CHECK}" -fi - -# override the kernel-2 function as tarball is named differently -universal_unpack() { - cd ${WORKDIR} - unpack linux-${KERNEL_VER}-libre${LIBRE_VER}.tar.bz2 - mv ${WORKDIR}/linux-${KERNEL_VER} ${WORKDIR}/linux-${KV_FULL} \ - || die "Unable to move source tree to ${KV_FULL}." - cd ${S} - - # remove all backup files - find . -iname "*~" -exec rm {} \; 2> /dev/null -} - -check_for_blobs() { - # usage: check_for_blobs name_of_variable_containing_paths_to_check - # we want the name of a variable (not just its contents) - # so can unset it if blobs are found - - [[ "$SKIP_PATCH_DEBLOB" == "1" ]] && return 0 - [[ -z "${!1}" ]] && return 1 - - sh ${DISTDIR}/${DEBLOB_CHECK} ${!1} - - if [ $? -ne 0 ]; then - ewarn "Warning: A file in ${1} appears to contain blobs." - ewarn "Disabling ${1} for now." - eval "${1}=''" - ewarn "Please report this to http://bugs.gentoo.org/266157" - return 1 - fi - - return 0 -} - -kernel-libre_src_unpack() { - # kernel revision patches are included in tarball - UNIPATCH_LIST_DEFAULT="" - - if [ -n "${UNIPATCH_LIST_GENPATCHES}" ] || [ -n "${UNIPATCH_LIST}" ]; then - echo "Checking all patches are clean of blobs" - check_for_blobs "UNIPATCH_LIST_GENPATCHES" - check_for_blobs "UNIPATCH_LIST" - fi - - kernel-2_src_unpack -} diff --git a/games-rpg/digital/digital-1.1.ebuild b/games-rpg/digital/digital-1.1.ebuild deleted file mode 100644 index 0607301..0000000 --- a/games-rpg/digital/digital-1.1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -inherit games - -DESCRIPTION="Digital: A love story - A computer mystery/romance set five minutes into the future of 1988" -HOMEPAGE="http://scoutshonour.com/digital/" -SRC_URI="http://digital.artfulgamer.com/${P}.tar.bz2" - -EAPI="2" - -LICENSE="CCPL-Attribution-ShareAlike-NonCommercial-3.0" -SLOT="0" -KEYWORDS="~x86" -IUSE="" - -DEPEND="dev-games/renpy:6.10 - media-video/ffmpeg" -RDEPEND="${DEPEND}" - -src_install() { - cd Digital-linux-x86 - - insinto "${GAMES_DATADIR}/${PN}" - doins -r game/* || die "doins failed" - - games_make_wrapper ${PN} "renpy-6.10 \"${GAMES_DATADIR}/${PN}\"" - - dodoc README.html || die "dodoc failed" - - prepgamesdirs -} diff --git a/kernel-2.eclass b/kernel-2.eclass deleted file mode 100644 index 4f97871..0000000 --- a/kernel-2.eclass +++ /dev/null @@ -1,1124 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.224 2009/12/13 18:56:49 mpagano Exp $ - -# Description: kernel.eclass rewrite for a clean base regarding the 2.6 -# series of kernel with back-compatibility for 2.4 -# -# Original author: John Mylchreest <johnm@gentoo.org> -# Maintainer: kernel-misc@gentoo.org -# -# Please direct your bugs to the current eclass maintainer :) - -# added functionality: -# unipatch - a flexible, singular method to extract, add and remove patches. - -# A Couple of env vars are available to effect usage of this eclass -# These are as follows: -# -# K_USEPV - When setting the EXTRAVERSION variable, it should -# add PV to the end. -# this is useful for thigns like wolk. IE: -# EXTRAVERSION would be something like : -wolk-4.19-r1 -# K_NOSETEXTRAVERSION - if this is set then EXTRAVERSION will not be -# automatically set within the kernel Makefile -# K_NOUSENAME - if this is set then EXTRAVERSION will not include the -# first part of ${PN} in EXTRAVERSION -# K_NOUSEPR - if this is set then EXTRAVERSION will not include the -# anything based on ${PR}. -# K_PREPATCHED - if the patchset is prepatched (ie: mm-sources, -# ck-sources, ac-sources) it will use PR (ie: -r5) as -# the patchset version for -# and not use it as a true package revision -# K_EXTRAEINFO - this is a new-line seperated list of einfo displays in -# postinst and can be used to carry additional postinst -# messages -# K_EXTRAELOG - same as K_EXTRAEINFO except using elog instead of einfo -# K_EXTRAEWARN - same as K_EXTRAEINFO except using ewarn instead of einfo -# K_SYMLINK - if this is set, then forcably create symlink anyway -# -# K_DEFCONFIG - Allow specifying a different defconfig target. -# If length zero, defaults to "defconfig". -# K_WANT_GENPATCHES - Apply genpatches to kernel source. Provide any -# combination of "base" and "extras" -# K_GENPATCHES_VER - The version of the genpatches tarball(s) to apply. -# A value of "5" would apply genpatches-2.6.12-5 to -# my-sources-2.6.12.ebuild -# K_SECURITY_UNSUPPORTED- If set, this kernel is unsupported by Gentoo Security - -# H_SUPPORTEDARCH - this should be a space separated list of ARCH's which -# can be supported by the headers ebuild - -# UNIPATCH_LIST - space delimetered list of patches to be applied to the -# kernel -# UNIPATCH_EXCLUDE - an addition var to support exlusion based completely -# on "<passedstring>*" and not "<passedno#>_*" -# - this should _NOT_ be used from the ebuild as this is -# reserved for end users passing excludes from the cli -# UNIPATCH_DOCS - space delimemeted list of docs to be installed to -# the doc dir -# UNIPATCH_STRICTORDER - if this is set places patches into directories of -# order, so they are applied in the order passed - -inherit eutils toolchain-funcs versionator multilib -EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_preinst pkg_postinst - -# Added by Daniel Ostrow <dostrow@gentoo.org> -# This is an ugly hack to get around an issue with a 32-bit userland on ppc64. -# I will remove it when I come up with something more reasonable. -[[ ${PROFILE_ARCH} == "ppc64" ]] && CHOST="powerpc64-${CHOST#*-}" - -export CTARGET=${CTARGET:-${CHOST}} -if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then - export CTARGET=${CATEGORY/cross-} -fi - -HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ ${HOMEPAGE}" -LICENSE="GPL-2" - -# No need to run scanelf/strip on kernel sources/headers (bug #134453). -RESTRICT="binchecks strip" - -# set LINUX_HOSTCFLAGS if not already set -[[ -z ${LINUX_HOSTCFLAGS} ]] && \ - LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include" - -# debugging functions -#============================================================== -# this function exists only to help debug kernel-2.eclass -# if you are adding new functionality in, put a call to it -# at the start of src_unpack, or during SRC_URI/dep generation. -debug-print-kernel2-variables() { - debug-print "PVR: ${PVR}" - debug-print "CKV: ${CKV}" - debug-print "OKV: ${OKV}" - debug-print "KV: ${KV}" - debug-print "KV_FULL: ${KV_FULL}" - debug-print "RELEASETYPE: ${RELEASETYPE}" - debug-print "RELEASE: ${RELEASE}" - debug-print "UNIPATCH_LIST_DEFAULT: ${UNIPATCH_LIST_DEFAULT} " - debug-print "UNIPATCH_LIST_GENPATCHES: ${UNIPATCH_LIST_GENPATCHES} " - debug-print "UNIPATCH_LIST: ${UNIPATCH_LIST}" - debug-print "S: ${S}" - debug-print "KERNEL_URI: ${KERNEL_URI}" -} - -#Eclass functions only from here onwards ... -#============================================================== -handle_genpatches() { - local tarball - [[ -z ${K_WANT_GENPATCHES} || -z ${K_GENPATCHES_VER} ]] && return 1 - - for i in ${K_WANT_GENPATCHES} ; do - tarball="genpatches-${OKV}-${K_GENPATCHES_VER}.${i}.tar.bz2" - GENPATCHES_URI="${GENPATCHES_URI} mirror://gentoo/${tarball}" - UNIPATCH_LIST_GENPATCHES="${UNIPATCH_LIST_GENPATCHES} ${DISTDIR}/${tarball}" - done -} - -detect_version() { - # this function will detect and set - # - OKV: Original Kernel Version (2.6.0/2.6.0-test11) - # - KV: Kernel Version (2.6.0-gentoo/2.6.0-test11-gentoo-r1) - # - EXTRAVERSION: The additional version appended to OKV (-gentoo/-gentoo-r1) - - if [[ -n ${KV_FULL} ]]; then - # we will set this for backwards compatibility. - KV=${KV_FULL} - - # we know KV_FULL so lets stop here. but not without resetting S - S=${WORKDIR}/linux-${KV_FULL} - return - fi - - # CKV is used as a comparison kernel version, which is used when - # PV doesnt reflect the genuine kernel version. - # this gets set to the portage style versioning. ie: - # CKV=2.6.11_rc4 - CKV=${CKV:-${PV}} - OKV=${OKV:-${CKV}} - OKV=${OKV/_beta/-test} - OKV=${OKV/_rc/-rc} - OKV=${OKV/-r*} - OKV=${OKV/_p*} - - KV_MAJOR=$(get_version_component_range 1 ${OKV}) - KV_MINOR=$(get_version_component_range 2 ${OKV}) - KV_PATCH=$(get_version_component_range 3 ${OKV}) - - if [[ ${KV_MAJOR}${KV_MINOR}${KV_PATCH} -ge 269 ]]; then - KV_EXTRA=$(get_version_component_range 4- ${OKV}) - KV_EXTRA=${KV_EXTRA/[-_]*} - else - KV_PATCH=$(get_version_component_range 3- ${OKV}) - fi - KV_PATCH=${KV_PATCH/[-_]*} - - KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" - - RELEASE=${CKV/${OKV}} - RELEASE=${RELEASE/_beta} - RELEASE=${RELEASE/_rc/-rc} - RELEASE=${RELEASE/_pre/-pre} - kernel_is ge 2 6 && RELEASE=${RELEASE/-pre/-git} - RELEASETYPE=${RELEASE//[0-9]} - - # Now we know that RELEASE is the -rc/-git - # and RELEASETYPE is the same but with its numerics stripped - # we can work on better sorting EXTRAVERSION. - # first of all, we add the release - EXTRAVERSION="${RELEASE}" - debug-print "0 EXTRAVERSION:${EXTRAVERSION}" - [[ -n ${KV_EXTRA} ]] && EXTRAVERSION=".${KV_EXTRA}${EXTRAVERSION}" - - debug-print "1 EXTRAVERSION:${EXTRAVERSION}" - if [[ -n "${K_NOUSEPR}" ]]; then - # Don't add anything based on PR to EXTRAVERSION - debug-print "1.0 EXTRAVERSION:${EXTRAVERSION}" - elif [[ -n ${K_PREPATCHED} ]]; then - debug-print "1.1 EXTRAVERSION:${EXTRAVERSION}" - EXTRAVERSION="${EXTRAVERSION}-${PN/-*}${PR/r}" - elif [[ "${ETYPE}" = "sources" ]]; then - debug-print "1.2 EXTRAVERSION:${EXTRAVERSION}" - # For some sources we want to use the PV in the extra version - # This is because upstream releases with a completely different - # versioning scheme. - case ${PN/-*} in - wolk) K_USEPV=1;; - vserver) K_USEPV=1;; - esac - - [[ -z "${K_NOUSENAME}" ]] && EXTRAVERSION="${EXTRAVERSION}-${PN/-*}" - [[ -n "${K_USEPV}" ]] && EXTRAVERSION="${EXTRAVERSION}-${PV//_/-}" - [[ -n "${PR//r0}" ]] && EXTRAVERSION="${EXTRAVERSION}-${PR}" - fi - debug-print "2 EXTRAVERSION:${EXTRAVERSION}" - - # The only messing around which should actually effect this is for KV_EXTRA - # since this has to limit OKV to MAJ.MIN.PAT and strip EXTRA off else - # KV_FULL evaluates to MAJ.MIN.PAT.EXT.EXT after EXTRAVERSION - if [[ -n ${KV_EXTRA} ]]; then - OKV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" - KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/patch-${CKV}.bz2 - mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.tar.bz2" - UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV}.bz2" - fi - - # We need to set this using OKV, but we need to set it before we do any - # messing around with OKV based on RELEASETYPE - KV_FULL=${OKV}${EXTRAVERSION} - - # we will set this for backwards compatibility. - S=${WORKDIR}/linux-${KV_FULL} - KV=${KV_FULL} - - # -rc-git pulls can be achieved by specifying CKV - # for example: - # CKV="2.6.11_rc3_pre2" - # will pull: - # linux-2.6.10.tar.bz2 & patch-2.6.11-rc3.bz2 & patch-2.6.11-rc3-git2.bz2 - - if [[ ${RELEASETYPE} == -rc ]] || [[ ${RELEASETYPE} == -pre ]]; then - OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))" - KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${CKV//_/-}.bz2 - mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" - UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.bz2" - fi - - if [[ ${RELEASETYPE} == -git ]]; then - KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${OKV}${RELEASE}.bz2 - mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" - UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${OKV}${RELEASE}.bz2" - fi - - if [[ ${RELEASETYPE} == -rc-git ]]; then - OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))" - KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2 - mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2 - mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" - UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2 ${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2" - fi - - debug-print-kernel2-variables - - handle_genpatches - - DEBLOB_SCRIPT="deblob-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" - KERNEL_URI="${KERNEL_URI} - deblob? ( - http://www.linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.N/${DEBLOB_SCRIPT} )" -} - -kernel_is() { - [[ -z ${OKV} ]] && detect_version - local operator test value x=0 y=0 z=0 - - case ${1} in - lt) operator="-lt"; shift;; - gt) operator="-gt"; shift;; - le) operator="-le"; shift;; - ge) operator="-ge"; shift;; - eq) operator="-eq"; shift;; - *) operator="-eq";; - esac - - for x in ${@}; do - for((y=0; y<$((3 - ${#x})); y++)); do value="${value}0"; done - value="${value}${x}" - z=$((${z} + 1)) - - case ${z} in - 1) for((y=0; y<$((3 - ${#KV_MAJOR})); y++)); do test="${test}0"; done; - test="${test}${KV_MAJOR}";; - 2) for((y=0; y<$((3 - ${#KV_MINOR})); y++)); do test="${test}0"; done; - test="${test}${KV_MINOR}";; - 3) for((y=0; y<$((3 - ${#KV_PATCH})); y++)); do test="${test}0"; done; - test="${test}${KV_PATCH}";; - *) die "Error in kernel-2_kernel_is(): Too many parameters.";; - esac - done - - [ ${test} ${operator} ${value} ] && return 0 || return 1 -} - -kernel_is_2_4() { - kernel_is 2 4 -} - -kernel_is_2_6() { - kernel_is 2 6 || kernel_is 2 5 -} - -# Capture the sources type and set DEPENDs -if [[ ${ETYPE} == sources ]]; then - DEPEND="!build? ( sys-apps/sed - >=sys-devel/binutils-2.11.90.0.31 )" - RDEPEND="!build? ( >=sys-libs/ncurses-5.2 - sys-devel/make )" - PDEPEND="!build? ( virtual/dev-manager )" - - PROVIDE="virtual/linux-sources" - kernel_is gt 2 4 && PROVIDE="${PROVIDE} virtual/alsa" - - SLOT="${PVR}" - DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel" - IUSE="symlink build deblob" -elif [[ ${ETYPE} == headers ]]; then - DESCRIPTION="Linux system headers" - - # Since we should NOT honour KBUILD_OUTPUT in headers - # lets unset it here. - unset KBUILD_OUTPUT - - if [[ ${CTARGET} = ${CHOST} ]]; then - DEPEND="!virtual/os-headers" - PROVIDE="virtual/os-headers" - SLOT="0" - else - SLOT="${CTARGET}" - fi -else - eerror "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\"" - die "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\"" -fi - -# Cross-compile support functions -#============================================================== -kernel_header_destdir() { - [[ ${CTARGET} == ${CHOST} ]] \ - && echo /usr/include \ - || echo /usr/${CTARGET}/usr/include -} - -cross_pre_c_headers() { - use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] -} - -env_setup_xmakeopts() { - # Kernel ARCH != portage ARCH - export KARCH=$(tc-arch-kernel) - - # When cross-compiling, we need to set the ARCH/CROSS_COMPILE - # variables properly or bad things happen ! - xmakeopts="ARCH=${KARCH}" - if [[ ${CTARGET} != ${CHOST} ]] && ! cross_pre_c_headers ; then - xmakeopts="${xmakeopts} CROSS_COMPILE=${CTARGET}-" - elif type -p ${CHOST}-ar > /dev/null ; then - xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-" - fi - export xmakeopts -} - -# Unpack functions -#============================================================== -unpack_2_4() { - # this file is required for other things to build properly, - # so we autogenerate it - make -s mrproper ${xmakeopts} || die "make mrproper failed" - make -s symlinks ${xmakeopts} || die "make symlinks failed" - make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed" - echo ">>> version.h compiled successfully." -} - -unpack_2_6() { - # this file is required for other things to build properly, so we - # autogenerate it ... generate a .config to keep version.h build from - # spitting out an annoying warning - make -s mrproper ${xmakeopts} 2>/dev/null \ - || die "make mrproper failed" - - # quick fix for bug #132152 which triggers when it cannot include linux - # headers (ie, we have not installed it yet) - if ! make -s defconfig ${xmakeopts} &>/dev/null 2>&1 ; then - touch .config - eerror "make defconfig failed." - eerror "assuming you dont have any headers installed yet and continuing" - epause 5 - fi - - make -s include/linux/version.h ${xmakeopts} 2>/dev/null \ - || die "make include/linux/version.h failed" - rm -f .config >/dev/null -} - -universal_unpack() { - cd "${WORKDIR}" - unpack linux-${OKV}.tar.bz2 - if [[ -d "linux" ]]; then - mv linux linux-${KV_FULL} \ - || die "Unable to move source tree to ${KV_FULL}." - elif [[ "${OKV}" != "${KV_FULL}" ]]; then - mv linux-${OKV} linux-${KV_FULL} \ - || die "Unable to move source tree to ${KV_FULL}." - fi - cd "${S}" - - # remove all backup files - find . -iname "*~" -exec rm {} \; 2> /dev/null - - # fix a problem on ppc where TOUT writes to /usr/src/linux breaking sandbox - # only do this for kernel < 2.6.27 since this file does not exist in later - # kernels - if [[ ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} < 2.6.27 ]] - then - sed -i \ - -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \ - "${S}"/arch/ppc/Makefile - else - sed -i \ - -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \ - "${S}"/arch/powerpc/Makefile - fi -} - -unpack_set_extraversion() { - cd "${S}" - sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile - cd "${OLDPWD}" -} - -# Should be done after patches have been applied -# Otherwise patches that modify the same area of Makefile will fail -unpack_fix_install_path() { - cd "${S}" - sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' Makefile -} - -# Compile Functions -#============================================================== -compile_headers() { - env_setup_xmakeopts - - # if we couldnt obtain HOSTCFLAGS from the Makefile, - # then set it to something sane - local HOSTCFLAGS=$(getfilevar HOSTCFLAGS "${S}"/Makefile) - HOSTCFLAGS=${HOSTCFLAGS:--Wall -Wstrict-prototypes -O2 -fomit-frame-pointer} - - if kernel_is 2 4; then - yes "" | make oldconfig ${xmakeopts} - echo ">>> make oldconfig complete" - make dep ${xmakeopts} - elif kernel_is 2 6; then - # 2.6.18 introduces headers_install which means we dont need any - # of this crap anymore :D - kernel_is ge 2 6 18 && return 0 - - # autoconf.h isnt generated unless it already exists. plus, we have - # no guarantee that any headers are installed on the system... - [[ -f ${ROOT}/usr/include/linux/autoconf.h ]] \ - || touch include/linux/autoconf.h - - # if K_DEFCONFIG isn't set, force to "defconfig" - # needed by mips - if [[ -z ${K_DEFCONFIG} ]]; then - if [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.16) ]]; then - case ${CTARGET} in - powerpc64*) K_DEFCONFIG="ppc64_defconfig";; - powerpc*) K_DEFCONFIG="pmac32_defconfig";; - *) K_DEFCONFIG="defconfig";; - esac - else - K_DEFCONFIG="defconfig" - fi - fi - - # if there arent any installed headers, then there also isnt an asm - # symlink in /usr/include/, and make defconfig will fail, so we have - # to force an include path with $S. - HOSTCFLAGS="${HOSTCFLAGS} -I${S}/include/" - ln -sf asm-${KARCH} "${S}"/include/asm - cross_pre_c_headers && return 0 - - make ${K_DEFCONFIG} HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "defconfig failed (${K_DEFCONFIG})" - if compile_headers_tweak_config ; then - yes "" | make oldconfig HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "2nd oldconfig failed" - fi - make prepare HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed" - make prepare-all HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed" - fi -} - -compile_headers_tweak_config() { - # some targets can be very very picky, so let's finesse the - # .config based upon any info we may have - case ${CTARGET} in - sh*) - sed -i '/CONFIG_CPU_SH/d' .config - echo "CONFIG_CPU_SH${CTARGET:2:1}=y" >> .config - return 0;; - esac - - # no changes, so lets do nothing - return 1 -} - -# install functions -#============================================================== -install_universal() { - #fix silly permissions in tarball - cd "${WORKDIR}" - chown -R root:0 * >& /dev/null - chmod -R a+r-w+X,u+w * - cd ${OLDPWD} -} - -install_headers() { - local ddir=$(kernel_header_destdir) - - # 2.6.18 introduces headers_install which means we dont need any - # of this crap anymore :D - if kernel_is ge 2 6 18 ; then - env_setup_xmakeopts - emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. ${xmakeopts} || die - - # let other packages install some of these headers - rm -rf "${D}"/${ddir}/sound #alsa-headers - rm -rf "${D}"/${ddir}/scsi #glibc/uclibc/etc... - return 0 - fi - - # Do not use "linux/*" as that can cause problems with very long - # $S values where the cmdline to cp is too long - cd "${S}" - dodir ${ddir}/linux - cp -pPR "${S}"/include/linux "${D}"/${ddir}/ || die - rm -rf "${D}"/${ddir}/linux/modules - - # Handle multilib headers and crap - local multi_dirs="" multi_defs="" - case $(tc-arch-kernel) in - sparc64) - multi_dirs="sparc sparc64" - multi_defs="!__arch64__ __arch64__" - ;; - x86_64) - multi_dirs="i386 x86_64" - multi_defs="__i386__ __x86_64__" - ;; - ppc64) - multi_dirs="ppc ppc64" - multi_defs="!__powerpc64__ __powerpc64__" - ;; - s390x) - multi_dirs="s390 s390x" - multi_defs="!__s390x__ __s390x__" - ;; - arm) - dodir ${ddir}/asm - cp -pPR "${S}"/include/asm/* "${D}"/${ddir}/asm - [[ ! -e ${D}/${ddir}/asm/arch ]] && ln -sf arch-ebsa285 "${D}"/${ddir}/asm/arch - [[ ! -e ${D}/${ddir}/asm/proc ]] && ln -sf proc-armv "${D}"/${ddir}/asm/proc - ;; - powerpc) - dodir ${ddir}/asm - cp -pPR "${S}"/include/asm/* "${D}"/${ddir}/asm - if [[ -e "${S}"/include/asm-ppc ]] ; then - dodir ${ddir}/asm-ppc - cp -pPR "${S}"/include/asm-ppc/* "${D}"/${ddir}/asm-ppc - fi - ;; - *) - dodir ${ddir}/asm - cp -pPR "${S}"/include/asm/* "${D}"/${ddir}/asm - ;; - esac - if [[ -n ${multi_dirs} ]] ; then - local d ml_inc="" - for d in ${multi_dirs} ; do - dodir ${ddir}/asm-${d} - cp -pPR "${S}"/include/asm-${d}/* "${D}"/${ddir}/asm-${d}/ || die "cp asm-${d} failed" - - ml_inc="${ml_inc} ${multi_defs%% *}:${ddir}/asm-${d}" - multi_defs=${multi_defs#* } - done - create_ml_includes ${ddir}/asm ${ml_inc} - fi - - if kernel_is 2 6; then - dodir ${ddir}/asm-generic - cp -pPR "${S}"/include/asm-generic/* "${D}"/${ddir}/asm-generic - fi - - # clean up - find "${D}" -name '*.orig' -exec rm -f {} \; - - cd ${OLDPWD} -} - -install_sources() { - local file - - cd "${S}" - dodir /usr/src - echo ">>> Copying sources ..." - - file="$(find ${WORKDIR} -iname "docs" -type d)" - if [[ -n ${file} ]]; then - for file in $(find ${file} -type f); do - echo "${file//*docs\/}" >> "${S}"/patches.txt - echo "===================================================" >> "${S}"/patches.txt - cat ${file} >> "${S}"/patches.txt - echo "===================================================" >> "${S}"/patches.txt - echo "" >> "${S}"/patches.txt - done - fi - - if [[ ! -f ${S}/patches.txt ]]; then - # patches.txt is empty so lets use our ChangeLog - [[ -f ${FILESDIR}/../ChangeLog ]] && \ - echo "Please check the ebuild ChangeLog for more details." \ - > "${S}"/patches.txt - fi - - mv ${WORKDIR}/linux* "${D}"/usr/src -} - -# pkg_preinst functions -#============================================================== -preinst_headers() { - local ddir=$(kernel_header_destdir) - [[ -L ${ddir}/linux ]] && rm ${ddir}/linux - [[ -L ${ddir}/asm ]] && rm ${ddir}/asm -} - -# pkg_postinst functions -#============================================================== -postinst_sources() { - local MAKELINK=0 - - # if we have USE=symlink, then force K_SYMLINK=1 - use symlink && K_SYMLINK=1 - - # if we're using a deblobbed kernel, it's not supported - use deblob && K_SECURITY_UNSUPPORTED=1 - - # if we are to forcably symlink, delete it if it already exists first. - if [[ ${K_SYMLINK} > 0 ]]; then - [[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux - MAKELINK=1 - fi - - # if the link doesnt exist, lets create it - [[ ! -h ${ROOT}usr/src/linux ]] && MAKELINK=1 - - if [[ ${MAKELINK} == 1 ]]; then - cd "${ROOT}"usr/src - ln -sf linux-${KV_FULL} linux - cd ${OLDPWD} - fi - - # Don't forget to make directory for sysfs - [[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys - - echo - elog "If you are upgrading from a previous kernel, you may be interested" - elog "in the following document:" - elog " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml" - echo - - # if K_EXTRAEINFO is set then lets display it now - if [[ -n ${K_EXTRAEINFO} ]]; then - echo ${K_EXTRAEINFO} | fmt | - while read -s ELINE; do einfo "${ELINE}"; done - fi - - # if K_EXTRAELOG is set then lets display it now - if [[ -n ${K_EXTRAELOG} ]]; then - echo ${K_EXTRAELOG} | fmt | - while read -s ELINE; do elog "${ELINE}"; done - fi - - # if K_EXTRAEWARN is set then lets display it now - if [[ -n ${K_EXTRAEWARN} ]]; then - echo ${K_EXTRAEWARN} | fmt | - while read -s ELINE; do ewarn "${ELINE}"; done - fi - - # optionally display security unsupported message - if [[ -n ${K_SECURITY_UNSUPPORTED} ]]; then - echo - ewarn "${PN} is UNSUPPORTED by Gentoo Security." - ewarn "This means that it is likely to be vulnerable to recent security issues." - ewarn "For specific information on why this kernel is unsupported, please read:" - ewarn "http://www.gentoo.org/proj/en/security/kernel.xml" - fi - - # warn sparc users that they need to do cross-compiling with >= 2.6.25(bug #214765) - KV_MAJOR=$(get_version_component_range 1 ${OKV}) - KV_MINOR=$(get_version_component_range 2 ${OKV}) - KV_PATCH=$(get_version_component_range 3 ${OKV}) - if [[ "$(tc-arch)" = "sparc" ]] \ - && [[ ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.24 ]] - then - echo - elog "NOTE: Since 2.6.25 the kernel Makefile has changed in a way that" - elog "you now need to do" - elog " make CROSS_COMPILE=sparc64-unknown-linux-gnu-" - elog "instead of just" - elog " make" - elog "to compile the kernel. For more information please browse to" - elog "https://bugs.gentoo.org/show_bug.cgi?id=214765" - echo - fi -} - -postinst_headers() { - elog "Kernel headers are usually only used when recompiling your system libc, as" - elog "such, following the installation of newer headers, it is advised that you" - elog "re-merge your system libc." - elog "Failure to do so will cause your system libc to not make use of newer" - elog "features present in the updated kernel headers." -} - -# pkg_setup functions -#============================================================== -setup_headers() { - [[ -z ${H_SUPPORTEDARCH} ]] && H_SUPPORTEDARCH=${PN/-*/} - for i in ${H_SUPPORTEDARCH}; do - [[ $(tc-arch) == "${i}" ]] && H_ACCEPT_ARCH="yes" - done - - if [[ ${H_ACCEPT_ARCH} != "yes" ]]; then - echo - eerror "This version of ${PN} does not support $(tc-arch)." - eerror "Please merge the appropriate sources, in most cases" - eerror "(but not all) this will be called $(tc-arch)-headers." - die "Package unsupported for $(tc-arch)" - fi -} - -# unipatch -#============================================================== -unipatch() { - local i x y z extention PIPE_CMD UNIPATCH_DROP KPATCH_DIR PATCH_DEPTH ELINE - local STRICT_COUNT PATCH_LEVEL myLC_ALL myLANG extglob_bak - - # set to a standard locale to ensure sorts are ordered properly. - myLC_ALL="${LC_ALL}" - myLANG="${LANG}" - LC_ALL="C" - LANG="" - - [ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/" - [ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR} - - # We're gonna need it when doing patches with a predefined patchlevel - extglob_bak=$(shopt -p extglob) - shopt -s extglob - - # This function will unpack all passed tarballs, add any passed patches, and remove any passed patchnumbers - # usage can be either via an env var or by params - # although due to the nature we pass this within this eclass - # it shall be by param only. - # -z "${UNIPATCH_LIST}" ] && UNIPATCH_LIST="${@}" - UNIPATCH_LIST="${@}" - - #unpack any passed tarballs - for i in ${UNIPATCH_LIST}; do - if echo ${i} | grep -qs -e "\.tar" -e "\.tbz" -e "\.tgz" ; then - if [ -n "${UNIPATCH_STRICTORDER}" ]; then - unset z - STRICT_COUNT=$((10#${STRICT_COUNT} + 1)) - for((y=0; y<$((6 - ${#STRICT_COUNT})); y++)); - do z="${z}0"; - done - PATCH_ORDER="${z}${STRICT_COUNT}" - - mkdir -p "${KPATCH_DIR}/${PATCH_ORDER}" - pushd "${KPATCH_DIR}/${PATCH_ORDER}" >/dev/null - unpack ${i##*/} - popd >/dev/null - else - pushd "${KPATCH_DIR}" >/dev/null - unpack ${i##*/} - popd >/dev/null - fi - - [[ ${i} == *:* ]] && echo ">>> Strict patch levels not currently supported for tarballed patchsets" - else - extention=${i/*./} - extention=${extention/:*/} - PIPE_CMD="" - case ${extention} in - bz2) PIPE_CMD="bzip2 -dc";; - patch) PIPE_CMD="cat";; - diff) PIPE_CMD="cat";; - gz|Z|z) PIPE_CMD="gzip -dc";; - ZIP|zip) PIPE_CMD="unzip -p";; - *) UNIPATCH_DROP="${UNIPATCH_DROP} ${i/:*/}";; - esac - - PATCH_LEVEL=${i/*([^:])?(:)} - i=${i/:*/} - x=${i/*\//} - x=${x/\.${extention}/} - - if [ -n "${PIPE_CMD}" ]; then - if [ ! -r "${i}" ]; then - echo - eerror "FATAL: unable to locate:" - eerror "${i}" - eerror "for read-only. The file either has incorrect permissions" - eerror "or does not exist." - die Unable to locate ${i} - fi - - if [ -n "${UNIPATCH_STRICTORDER}" ]; then - unset z - STRICT_COUNT=$((10#${STRICT_COUNT} + 1)) - for((y=0; y<$((6 - ${#STRICT_COUNT})); y++)); - do z="${z}0"; - done - PATCH_ORDER="${z}${STRICT_COUNT}" - - mkdir -p ${KPATCH_DIR}/${PATCH_ORDER}/ - $(${PIPE_CMD} ${i} > ${KPATCH_DIR}/${PATCH_ORDER}/${x}.patch${PATCH_LEVEL}) - else - $(${PIPE_CMD} ${i} > ${KPATCH_DIR}/${x}.patch${PATCH_LEVEL}) - fi - fi - fi - done - - #populate KPATCH_DIRS so we know where to look to remove the excludes - x=${KPATCH_DIR} - KPATCH_DIR="" - for i in $(find ${x} -type d | sort -n); do - KPATCH_DIR="${KPATCH_DIR} ${i}" - done - - # do not apply fbcondecor patch to sparc/sparc64 as it breaks boot - # bug #272676 - if [[ "$(tc-arch)" = "sparc" || "$(tc-arch)" = "sparc64" ]]; then - if [[ ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then - UNIPATCH_DROP="${UNIPATCH_DROP} *_fbcondecor-0.9.6.patch" - echo - ewarn "fbcondecor currently prevents sparc/sparc64 from booting" - ewarn "for kernel versions >= 2.6.29. Removing fbcondecor patch." - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=272676 for details" - echo - fi - fi - - #so now lets get rid of the patchno's we want to exclude - UNIPATCH_DROP="${UNIPATCH_EXCLUDE} ${UNIPATCH_DROP}" - for i in ${UNIPATCH_DROP}; do - ebegin "Excluding Patch #${i}" - for x in ${KPATCH_DIR}; do rm -f ${x}/${i}* 2>/dev/null; done - eend $? - done - - # and now, finally, we patch it :) - for x in ${KPATCH_DIR}; do - for i in $(find ${x} -maxdepth 1 -iname "*.patch*" -or -iname "*.diff*" | sort -n); do - STDERR_T="${T}/${i/*\//}" - STDERR_T="${STDERR_T/.patch*/.err}" - - [ -z ${i/*.patch*/} ] && PATCH_DEPTH=${i/*.patch/} - #[ -z ${i/*.diff*/} ] && PATCH_DEPTH=${i/*.diff/} - - if [ -z "${PATCH_DEPTH}" ]; then PATCH_DEPTH=0; fi - - ebegin "Applying ${i/*\//} (-p${PATCH_DEPTH}+)" - while [ ${PATCH_DEPTH} -lt 5 ]; do - echo "Attempting Dry-run:" >> ${STDERR_T} - echo "cmd: patch -p${PATCH_DEPTH} --no-backup-if-mismatch --dry-run -f < ${i}" >> ${STDERR_T} - echo "=======================================================" >> ${STDERR_T} - if [ $(patch -p${PATCH_DEPTH} --no-backup-if-mismatch --dry-run -f < ${i} >> ${STDERR_T}) $? -eq 0 ]; then - echo "Attempting patch:" > ${STDERR_T} - echo "cmd: patch -p${PATCH_DEPTH} --no-backup-if-mismatch -f < ${i}" >> ${STDERR_T} - echo "=======================================================" >> ${STDERR_T} - if [ $(patch -p${PATCH_DEPTH} --no-backup-if-mismatch -f < ${i} >> ${STDERR_T}) "$?" -eq 0 ]; then - eend 0 - rm ${STDERR_T} - break - else - eend 1 - eerror "Failed to apply patch ${i/*\//}" - eerror "Please attach ${STDERR_T} to any bug you may post." - die "Failed to apply ${i/*\//}" - fi - else - PATCH_DEPTH=$((${PATCH_DEPTH} + 1)) - fi - done - if [ ${PATCH_DEPTH} -eq 5 ]; then - eend 1 - eerror "Please attach ${STDERR_T} to any bug you may post." - die "Unable to dry-run patch." - fi - done - done - - # This is a quick, and kind of nasty hack to deal with UNIPATCH_DOCS which - # sit in KPATCH_DIR's. This is handled properly in the unipatch rewrite, - # which is why I'm not taking too much time over this. - local tmp - for i in ${UNIPATCH_DOCS}; do - tmp="${tmp} ${i//*\/}" - cp -f ${i} "${T}"/ - done - UNIPATCH_DOCS="${tmp}" - - # clean up KPATCH_DIR's - fixes bug #53610 - for x in ${KPATCH_DIR}; do rm -Rf ${x}; done - - LC_ALL="${myLC_ALL}" - LANG="${myLANG}" - eval ${extglob_bak} -} - -# getfilevar accepts 2 vars as follows: -# getfilevar <VARIABLE> <CONFIGFILE> -# pulled from linux-info - -getfilevar() { - local workingdir basefname basedname xarch=$(tc-arch-kernel) - - if [[ -z ${1} ]] && [[ ! -f ${2} ]]; then - echo -e "\n" - eerror "getfilevar requires 2 variables, with the second a valid file." - eerror " getfilevar <VARIABLE> <CONFIGFILE>" - else - workingdir=${PWD} - basefname=$(basename ${2}) - basedname=$(dirname ${2}) - unset ARCH - - cd ${basedname} - echo -e "include ${basefname}\ne:\n\t@echo \$(${1})" | \ - make ${BUILD_FIXES} -s -f - e 2>/dev/null - cd ${workingdir} - - ARCH=${xarch} - fi -} - -detect_arch() { - # This function sets ARCH_URI and ARCH_PATCH - # with the neccessary info for the arch sepecific compatibility - # patchsets. - - local ALL_ARCH LOOP_ARCH COMPAT_URI i - - # COMPAT_URI is the contents of ${ARCH}_URI - # ARCH_URI is the URI for all the ${ARCH}_URI patches - # ARCH_PATCH is ARCH_URI broken into files for UNIPATCH - - ARCH_URI="" - ARCH_PATCH="" - ALL_ARCH="ALPHA AMD64 ARM HPPA IA64 M68K MIPS PPC PPC64 S390 SH SPARC X86" - - for LOOP_ARCH in ${ALL_ARCH}; do - COMPAT_URI="${LOOP_ARCH}_URI" - COMPAT_URI="${!COMPAT_URI}" - - [[ -n ${COMPAT_URI} ]] && \ - ARCH_URI="${ARCH_URI} $(echo ${LOOP_ARCH} | tr '[:upper:]' '[:lower:]')? ( ${COMPAT_URI} )" - - if [[ ${LOOP_ARCH} == "$(echo $(tc-arch-kernel) | tr '[:lower:]' '[:upper:]')" ]]; then - for i in ${COMPAT_URI}; do - ARCH_PATCH="${ARCH_PATCH} ${DISTDIR}/${i/*\//}" - done - fi - done -} - -# sparc nastiness -#============================================================== -# This script generates the files in /usr/include/asm for sparc systems -# during installation of sys-kernel/linux-headers. -# Will no longer be needed when full 64 bit support is used on sparc64 -# systems. -# -# Shamefully ripped from Debian -# ---------------------------------------------------------------------- - -# Idea borrowed from RedHat's kernel package - -# This is gonna get replaced by something in multilib.eclass soon... -# --eradicator -generate_sparc_asm() { - local name - - cd $1 || die - mkdir asm - - for h in `( ls asm-sparc; ls asm-sparc64 ) | grep '\.h$' | sort -u`; do - name="$(echo $h | tr a-z. A-Z_)" - # common header - echo "/* All asm/ files are generated and point to the corresponding - * file in asm-sparc or asm-sparc64. - */ - -#ifndef __SPARCSTUB__${name}__ -#define __SPARCSTUB__${name}__ -" > asm/${h} - - # common for sparc and sparc64 - if [ -f asm-sparc/$h -a -f asm-sparc64/$h ]; then - echo "#ifdef __arch64__ -#include <asm-sparc64/$h> -#else -#include <asm-sparc/$h> -#endif -" >> asm/${h} - - # sparc only - elif [ -f asm-sparc/$h ]; then -echo "#ifndef __arch64__ -#include <asm-sparc/$h> -#endif -" >> asm/${h} - - # sparc64 only - else -echo "#ifdef __arch64__ -#include <asm-sparc64/$h> -#endif -" >> asm/${h} - fi - - # common footer - echo "#endif /* !__SPARCSTUB__${name}__ */" >> asm/${h} - done - return 0 -} - -headers___fix() { - # Voodoo to partially fix broken upstream headers. - # note: do not put inline/asm/volatile together (breaks "inline asm volatile") - sed -i \ - -e '/^\#define.*_TYPES_H/{:loop n; bloop}' \ - -e 's:\<\([us]\(8\|16\|32\|64\)\)\>:__\1:g' \ - -e "s/\([[:space:]]\)inline\([[:space:](]\)/\1__inline__\2/g" \ - -e "s/\([[:space:]]\)asm\([[:space:](]\)/\1__asm__\2/g" \ - -e "s/\([[:space:]]\)volatile\([[:space:](]\)/\1__volatile__\2/g" \ - "$@" -} - -# common functions -#============================================================== -kernel-2_src_unpack() { - universal_unpack - debug-print "Doing unipatch" - - [[ -n ${UNIPATCH_LIST} || -n ${UNIPATCH_LIST_DEFAULT} || -n ${UNIPATCH_LIST_GENPATCHES} ]] && \ - unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST_GENPATCHES} ${UNIPATCH_LIST}" - - debug-print "Doing premake" - - # allow ebuilds to massage the source tree after patching but before - # we run misc `make` functions below - [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake - - debug-print "Doing epatch_user" - epatch_user - - debug-print "Doing unpack_set_extraversion" - - [[ -z ${K_NOSETEXTRAVERSION} ]] && unpack_set_extraversion - unpack_fix_install_path - - # Setup xmakeopts and cd into sourcetree. - env_setup_xmakeopts - cd "${S}" - - # We dont need a version.h for anything other than headers - # at least, I should hope we dont. If this causes problems - # take out the if/fi block and inform me please. - # unpack_2_6 should now be 2.6.17 safe anyways - if [[ ${ETYPE} == headers ]]; then - kernel_is 2 4 && unpack_2_4 - kernel_is 2 6 && unpack_2_6 - fi - - if use deblob ; then - chmod +x "${DISTDIR}/${DEBLOB_SCRIPT}" - fi -} - -kernel-2_src_compile() { - cd "${S}" - [[ ${ETYPE} == headers ]] && compile_headers - - if use deblob ; then - echo ">>> Running deblob script ..." - sh "${DISTDIR}/${DEBLOB_SCRIPT}" --force - fi -} - -kernel-2_pkg_preinst() { - [[ ${ETYPE} == headers ]] && preinst_headers -} - -kernel-2_src_install() { - install_universal - [[ ${ETYPE} == headers ]] && install_headers - [[ ${ETYPE} == sources ]] && install_sources -} - -kernel-2_pkg_postinst() { - [[ ${ETYPE} == headers ]] && postinst_headers - [[ ${ETYPE} == sources ]] && postinst_sources -} - -kernel-2_pkg_setup() { - if kernel_is 2 4; then - if [ "$( gcc-major-version )" -eq "4" ] ; then - echo - ewarn "Be warned !! >=sys-devel/gcc-4.0.0 isn't supported with linux-2.4!" - ewarn "Either switch to another gcc-version (via gcc-config) or use a" - ewarn "newer kernel that supports gcc-4." - echo - ewarn "Also be aware that bugreports about gcc-4 not working" - ewarn "with linux-2.4 based ebuilds will be closed as INVALID!" - echo - epause 10 - fi - fi - - ABI="${KERNEL_ABI}" - [[ ${ETYPE} == headers ]] && setup_headers - [[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." -} diff --git a/media-sound/goldenpod/goldenpod-0.8.3.ebuild b/media-sound/goldenpod/goldenpod-0.8.3.ebuild new file mode 100644 index 0000000..ec66715 --- /dev/null +++ b/media-sound/goldenpod/goldenpod-0.8.3.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="A simple podcast aggregator written in Perl" +HOMEPAGE="http://random.zerodogg.org/goldenpod" +SRC_URI="http://download.gna.org/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="dev-lang/perl + || ( net-misc/curl libwww/perl )" + +src_install() { + dodoc AUTHORS COPYING NEWS README TODO + dobin goldenpod + doman goldenpod.1 +} diff --git a/sys-kernel/libre-sources/Manifest b/sys-kernel/libre-sources/Manifest index c7d1b40..1a7ba10 100644 --- a/sys-kernel/libre-sources/Manifest +++ b/sys-kernel/libre-sources/Manifest @@ -9,16 +9,6 @@ EBUILD libre-sources-2.6.31.ebuild 413 RMD160 29d1e7ad5aa80e7b32694f58eafc8e8529 EBUILD libre-sources-2.6.32.6.ebuild 401 RMD160 fb6166f15ac2de41d5db9c43e689614df86f0325 SHA1 356afb194c8d5398c2850aa9eecd65653aa5b981 SHA256 7663f893a8163d49fdd9ba055b446b1d73febf598061d36c64850b75e532570b EBUILD libre-sources-2.6.32.7.ebuild 401 RMD160 fb6166f15ac2de41d5db9c43e689614df86f0325 SHA1 356afb194c8d5398c2850aa9eecd65653aa5b981 SHA256 7663f893a8163d49fdd9ba055b446b1d73febf598061d36c64850b75e532570b EBUILD libre-sources-2.6.32.8.ebuild 401 RMD160 fb6166f15ac2de41d5db9c43e689614df86f0325 SHA1 356afb194c8d5398c2850aa9eecd65653aa5b981 SHA256 7663f893a8163d49fdd9ba055b446b1d73febf598061d36c64850b75e532570b +EBUILD libre-sources-2.6.32.9.ebuild 401 RMD160 fb6166f15ac2de41d5db9c43e689614df86f0325 SHA1 356afb194c8d5398c2850aa9eecd65653aa5b981 SHA256 7663f893a8163d49fdd9ba055b446b1d73febf598061d36c64850b75e532570b EBUILD libre-sources-2.6.32.ebuild 401 RMD160 fb6166f15ac2de41d5db9c43e689614df86f0325 SHA1 356afb194c8d5398c2850aa9eecd65653aa5b981 SHA256 7663f893a8163d49fdd9ba055b446b1d73febf598061d36c64850b75e532570b -DIST linux-2.6.32.7-libre.tar.bz2 62665861 RMD160 6792b930d12aa5a9f0a3207da4f7081147bf624a SHA1 765673867e801f8bf8c82aee7f88676b7200b6c2 SHA256 931c92cccd27b015d8b5b3956cec8f8e7179b2ebb15176abd0d4b227cf523d36 -DIST linux-2.6.31.6-libre1.tar.bz2 59703296 RMD160 f9a07596c27e326290653ea462b0b391518301a9 SHA1 f2be8df8741bff8064dae86c5f94cf9b05fa20cf SHA256 89a71db84f8c8cbf2c00eb9f57612f0b34f68ed955d5299c54e2211d2a4940cb -DIST linux-2.6.30.5-libre.tar.bz2 57897130 RMD160 5c8bd2a1eaed0f5e95aa8a5ac3324ea7d54e836b SHA1 e083c419fdb6a20778989adb0f3f1336c5bbde43 SHA256 f69c1b63e8d3a84bb518097638ff78215bcc18ade963276c37fd7f287dde1b2d -DIST linux-2.6.31-libre1.tar.bz2 59701514 RMD160 3130d6c2f5e27414d30c3f29b6f00d58ef12e93a SHA1 dcb8bed76de5033daf2c936940dbd91b814eb13e SHA256 cdcc3ac22dc2f44407a1b4a66c826ad742d564035f13e86596e96fed4b4a7d8c -DIST linux-2.6.30.6-libre.tar.bz2 57892679 RMD160 159b3c554899bcf8ca59d1f3e78704db8b294bfe SHA1 c4561b0338b05c1e540702bae007bb69b0a215d3 SHA256 9be9328c3e6b05af2cd4868649dc4276be83554c8b2c8fd734e7d344ee9a57d7 -DIST linux-2.6.31.3-libre1.tar.bz2 59702884 RMD160 e78bd6fb95168fbc9a34f35b7125e54b1024c82d SHA1 ab7356f3e960cd173f16f18acc7a900e2185a1b3 SHA256 3df9b815a1fb6540dee4d8b92786b0e2af2798723a463db4211c0eadc5ee781c -DIST linux-2.6.31.4-libre1.tar.bz2 59711055 RMD160 00faf151a1a5aae9477560e94eafb8dd08468093 SHA1 dbf7c234c0bdd415e20e31ea55b6fd8e9791eb8b SHA256 2c6c042e19465b947b72104a4215f5c3ed506fce99cf1cc19a781a65523b3cdd -DIST linux-2.6.30-libre.tar.bz2 57889432 RMD160 260777281693fe1d14c92a5967a71407962cae31 SHA1 914a3c969a0ccda43493c63fb3a20d6c95176664 SHA256 172ca2eb1d4cbe34381cda7b7e307cb0b0b48f31a3d77cad2c4b113dce62a3a5 -DIST linux-2.6.31.5-libre1.tar.bz2 59708973 RMD160 1997af61a2453f289bb948dae4271f79ad5b7674 SHA1 a6eff56b25e48d58040c86fefa79f3b6fb7d5b09 SHA256 5474de8b6f624a82451412d5c2e113b606656a0b818572fe1754b23ee4ea3528 -DIST linux-2.6.32-libre.tar.bz2 62634375 RMD160 4bb5a049bd993068f0093497c754142cb3efcfa5 SHA1 bec0cb38007cab008d43ff66b91ad7bcbfb590d7 SHA256 20cd73b93c958927a5367e2f6750cbd6cbb4f4a6e438b63d25010cfc57f2171c -DIST linux-2.6.32.6-libre.tar.bz2 62653154 RMD160 23860b29f3ee65ff45a8597cd07ffade705f38e2 SHA1 69336fd6e6390fbf7fb77055db75356b6d3ea68b SHA256 4f04db67221057f8d5f19db62a163c4327d7802bf2c3ee61bfb56eb6afdfa7a4 -DIST linux-2.6.32.8-libre.tar.bz2 62661784 RMD160 2d821a7b170a0b29d1be1b49504dc12bbe8e6f18 SHA1 4d6997a92e2417d9a7282a7ea4cb5d9a8f026f4b SHA256 82ad96a53565202adfd844e7376924ef9d3cd839e1138482df6ae8093cf76821 +EBUILD libre-sources-2.6.33.ebuild 401 RMD160 fb6166f15ac2de41d5db9c43e689614df86f0325 SHA1 356afb194c8d5398c2850aa9eecd65653aa5b981 SHA256 7663f893a8163d49fdd9ba055b446b1d73febf598061d36c64850b75e532570b diff --git a/sys-kernel/libre-sources/libre-sources-2.6.32.9.ebuild b/sys-kernel/libre-sources/libre-sources-2.6.32.9.ebuild new file mode 100644 index 0000000..5921545 --- /dev/null +++ b/sys-kernel/libre-sources/libre-sources-2.6.32.9.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +K_SECURITY_UNSUPPORTED="1" +ETYPE="sources" +inherit kernel-libre +detect_version + +DESCRIPTION="Full sources for the BLOB free version of the Linux kernel" +HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" +SRC_URI="${KERNEL_URI}" + +KEYWORDS="~amd64 ~x86" +IUSE="" diff --git a/sys-kernel/libre-sources/libre-sources-2.6.33.ebuild b/sys-kernel/libre-sources/libre-sources-2.6.33.ebuild new file mode 100644 index 0000000..5921545 --- /dev/null +++ b/sys-kernel/libre-sources/libre-sources-2.6.33.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +K_SECURITY_UNSUPPORTED="1" +ETYPE="sources" +inherit kernel-libre +detect_version + +DESCRIPTION="Full sources for the BLOB free version of the Linux kernel" +HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" +SRC_URI="${KERNEL_URI}" + +KEYWORDS="~amd64 ~x86" +IUSE="" diff --git a/sys-kernel/libregentoo-sources/Manifest b/sys-kernel/libregentoo-sources/Manifest deleted file mode 100644 index bb96372..0000000 --- a/sys-kernel/libregentoo-sources/Manifest +++ /dev/null @@ -1,17 +0,0 @@ -EBUILD libregentoo-sources-2.6.31-r1.ebuild 606 RMD160 cf86db345226bd12ba53ee91a7ef363d71633910 SHA1 03ec01229326da66c82d7dc74636de81e2f8e89e SHA256 833a6dd69fda48e15f27967552660ae6af34b358466fac226bb30027d797a4a7 -EBUILD libregentoo-sources-2.6.31-r2.ebuild 606 RMD160 cf14a76220f41f89f37e3cf6e5ca5a5ec695411a SHA1 dfd8b6d0707cd1666fdda29917e684476737efca SHA256 c4a83581766f39e333865bceddd37c27833daa400c5f6d33df1a781e3a54c805 -EBUILD libregentoo-sources-2.6.31-r3.ebuild 628 RMD160 aa28b924dfdfd508185dce09c3ae8169a4c489e8 SHA1 2106a93f50795b51ab8b51482114b6bd94699f51 SHA256 3988e36cd0e3a2676f6030f1e09cc137674ae461379085c813509b5907b5cf92 -EBUILD libregentoo-sources-2.6.31-r4.ebuild 628 RMD160 c412bed8eee509b6a9167cf9cd9105d61045b1db SHA1 e1ec66b9ad911be22a6bc744ddf59d1cf1cb3ab6 SHA256 a295856b9b4b7a4c3f8f9d6b1c9d0cc4fc521ab5b1c6e7c92bd630911518bcb9 -EBUILD libregentoo-sources-2.6.31.ebuild 606 RMD160 65bef4b5dc48171869accfa84ac43a024a8a755f SHA1 c912108812a5969b04e4ee614d7903f0c5c33010 SHA256 304bcc76f7b18085518c0c613d4cfed9b314fe7b6799edc6c1d5e5ee74e8659b -DIST linux-2.6.31-libre1.tar.bz2 59701514 RMD160 3130d6c2f5e27414d30c3f29b6f00d58ef12e93a SHA1 dcb8bed76de5033daf2c936940dbd91b814eb13e SHA256 cdcc3ac22dc2f44407a1b4a66c826ad742d564035f13e86596e96fed4b4a7d8c -DIST genpatches-2.6.31-4.base.tar.bz2 93174 RMD160 67df4ebe2c15e23e8bebaffffb769c1b76a35365 SHA1 fbb4ec5765ffe692686375898391b15781176f8b SHA256 ec587f2d0a02405cc9e2f7be9abe82ed175955464799c5cefc64ece157181dd7 -DIST genpatches-2.6.31-4.extras.tar.bz2 24940 RMD160 c492175a249866311f8f8ae10a221adffc855806 SHA1 0b08312cfde1b7cf8445661ea0d26a7b2a4a47a2 SHA256 301642e9874e0afde820dbbf650172552e898bf965f1598e1ec34ce0874c5d80 -DIST deblob-check-2.6.31 189722 RMD160 600f33523f13406c44ffe34b05fa4d30ae1e975c SHA1 19f3cee269b6d8c0eb9b41f030f64119b524e2ce SHA256 a5f640524653e0996d192ef2ea70eeabbb2e8aa12681c8ae1d8da5ebcab7f901 -DIST genpatches-2.6.31-3.base.tar.bz2 80806 RMD160 ab6a0286caf8c5c6b55ee218d50e771d2f296d2c SHA1 c96d6a2f3e0e80dd35c4f0863f8f638d7dd3c833 SHA256 e550e3a0ced69110abd133604871ac01fd51714208a48dac3ce5b9778125cfd2 -DIST genpatches-2.6.31-3.extras.tar.bz2 24940 RMD160 c492175a249866311f8f8ae10a221adffc855806 SHA1 0b08312cfde1b7cf8445661ea0d26a7b2a4a47a2 SHA256 301642e9874e0afde820dbbf650172552e898bf965f1598e1ec34ce0874c5d80 -DIST genpatches-2.6.31-1.base.tar.bz2 941 RMD160 abca8dd59976433b376095e5692f90511bcbdba2 SHA1 8a59a94b52e08c5adf69dfc0b3dab955b728e3d3 SHA256 f36ab3103801ab3cb672d1596406b851f7c46380c1c416d4d4de1e5fce6189da -DIST genpatches-2.6.31-1.extras.tar.bz2 24978 RMD160 3d7efe69b70580343927b031460b225b2987791a SHA1 ad6d1b383ae3c9073c45dab6ce355695bdbf0e83 SHA256 ad111e0117f15d54a514add96a08bb15db6726fb19085e27a9d270e36e458c1d -DIST genpatches-2.6.31-5.base.tar.bz2 112611 RMD160 dab5d152b178a2384008522c4070dd783a6c8df3 SHA1 b89564aa873f71f98d33e95a776761952ffef619 SHA256 03ae19a723974c6fc17eb05a4e202495c5eb1dcc0003313c1f60341eb6458707 -DIST genpatches-2.6.31-5.extras.tar.bz2 24961 RMD160 20c268bccebfe31a2897359ae17534363d0136b4 SHA1 6ba14f68ce80068eb3e4abe1069848e85b6a31a1 SHA256 ccf0dc37d1a799bcc67bd9eb3e971b346af8495d1826d7d3f3711819812c2120 -DIST genpatches-2.6.31-2.base.tar.bz2 23763 RMD160 6cade8251df85907c1f4f7d02b5d3272932dd0a3 SHA1 b2fbb60bafaa7cf0bc9d690f5a4194f76af18320 SHA256 824e031f36cfae7c69d48bb6f0e4f99e8c2475beb051da48a6546d89513c66f5 -DIST genpatches-2.6.31-2.extras.tar.bz2 24978 RMD160 3d7efe69b70580343927b031460b225b2987791a SHA1 ad6d1b383ae3c9073c45dab6ce355695bdbf0e83 SHA256 ad111e0117f15d54a514add96a08bb15db6726fb19085e27a9d270e36e458c1d diff --git a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r1.ebuild b/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r1.ebuild deleted file mode 100644 index 057b066..0000000 --- a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r1.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -K_SECURITY_UNSUPPORTED="1" -ETYPE="sources" -K_WANT_GENPATCHES="base extras" -K_GENPATCHES_VER="2" -LIBRE_VER=1 -inherit kernel-libre -detect_version -detect_arch - -KEYWORDS="~x86" -IUSE="" -HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/ http://dev.gentoo.org/~dsd/genpatches" - -DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} blob free version of the kernel tree" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${DEBLOB_URI}" diff --git a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r2.ebuild b/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r2.ebuild deleted file mode 100644 index e654186..0000000 --- a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r2.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -K_SECURITY_UNSUPPORTED="1" -ETYPE="sources" -K_WANT_GENPATCHES="base extras" -K_GENPATCHES_VER="3" -LIBRE_VER=1 -inherit kernel-libre -detect_version -detect_arch - -KEYWORDS="~x86" -IUSE="" -HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/ http://dev.gentoo.org/~dsd/genpatches" - -DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} blob free version of the kernel tree" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${DEBLOB_URI}" diff --git a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r3.ebuild b/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r3.ebuild deleted file mode 100644 index e9f91b5..0000000 --- a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r3.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -K_SECURITY_UNSUPPORTED="1" -ETYPE="sources" -K_WANT_GENPATCHES="base extras" -K_GENPATCHES_VER="4" -LIBRE_VER=1 -SKIP_PATCH_DEBLOB="1" -inherit kernel-libre -detect_version -detect_arch - -KEYWORDS="~x86" -IUSE="" -HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/ http://dev.gentoo.org/~dsd/genpatches" - -DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} blob free version of the kernel tree" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${DEBLOB_URI}" diff --git a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r4.ebuild b/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r4.ebuild deleted file mode 100644 index 4afd4fd..0000000 --- a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31-r4.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -K_SECURITY_UNSUPPORTED="1" -ETYPE="sources" -K_WANT_GENPATCHES="base extras" -K_GENPATCHES_VER="5" -LIBRE_VER=1 -SKIP_PATCH_DEBLOB="1" -inherit kernel-libre -detect_version -detect_arch - -KEYWORDS="~x86" -IUSE="" -HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/ http://dev.gentoo.org/~dsd/genpatches" - -DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} blob free version of the kernel tree" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${DEBLOB_URI}" diff --git a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31.ebuild b/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31.ebuild deleted file mode 100644 index 1eb9813..0000000 --- a/sys-kernel/libregentoo-sources/libregentoo-sources-2.6.31.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -K_SECURITY_UNSUPPORTED="1" -ETYPE="sources" -K_WANT_GENPATCHES="base extras" -K_GENPATCHES_VER="1" -LIBRE_VER=1 -inherit kernel-libre -detect_version -detect_arch - -KEYWORDS="~x86" -IUSE="" -HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/ http://dev.gentoo.org/~dsd/genpatches" - -DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} blob free version of the kernel tree" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${DEBLOB_URI}" diff --git a/sys-kernel/librehardened-sources/Manifest b/sys-kernel/librehardened-sources/Manifest deleted file mode 100644 index dfc9dc9..0000000 --- a/sys-kernel/librehardened-sources/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -EBUILD librehardened-sources-2.6.29.ebuild 1863 RMD160 693154bd947dc19a59bb456d5ad712c0719053d1 SHA1 76c802ea83c5010e0dc3ecbc9c059a93f29e86b2 SHA256 6beecc753c482ac67607c961fdb89d737e48f5e02092620f6a45a3b168636644 -DIST linux-2.6.29-libre1.tar.bz2 54973266 RMD160 4a3820d7a451e22e0f415cd17141d4db4d403382 SHA1 51a171c608c394646f72229fb584f90955d83137 SHA256 b9044eb2d0aa9118c88497cadb3cf10897147dc63b8baffd8ddf6466120a6289 -DIST hardened-patches-2.6.29-1.extras.tar.bz2 235849 RMD160 a97d2c41b4b229b650ba9e3609c4f8d67078e104 SHA1 d60da480b62232a1735cd7a4c95a84434f3809f3 SHA256 6709c2f0c4d614d69ee72b4e7ac7b75bfd08a0771b444702e881095ddb9aa918 -DIST genpatches-2.6.29-6.base.tar.bz2 75258 RMD160 f41c3e4e8467b6ce3117e2e5efada8fcaa46f019 SHA1 852091b7f7c10bd1dace3817739980039a96c8c1 SHA256 750a80f060b189330c94fdaa4c9fe0901c6f23c45e118c3264227d5f3b8fa398 -DIST genpatches-2.6.29-6.extras.tar.bz2 24680 RMD160 51b986cb7efa8790ac9a5fdf88f60796f9d36863 SHA1 31f748af82f1e85114699cc34db59c61bf7bf29e SHA256 02ad0d5d63fc63bebecf8f2175002336e10997e1a0c34dace597e3eb1776f97a -DIST deblob-check-2.6.29 179056 RMD160 7521baa36229fc46014ed191fc610a2a7a76dc46 SHA1 387477ebcd5ad99028923d0d3cdd8095c88bd96b SHA256 9b17a3734afcffb931a45b0219f4b0efbe92abe83b4dd652207f9cc47472f1bb diff --git a/sys-kernel/librehardened-sources/librehardened-sources-2.6.29.ebuild b/sys-kernel/librehardened-sources/librehardened-sources-2.6.29.ebuild deleted file mode 100644 index 32f924c..0000000 --- a/sys-kernel/librehardened-sources/librehardened-sources-2.6.29.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -K_SECURITY_UNSUPPORTED="1" -ETYPE="sources" -K_WANT_GENPATCHES="base extras" -K_GENPATCHES_VER="6" -LIBRE_VER="1" - -inherit kernel-libre -detect_version - -HGPV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-1" -HGPV_URI="http://dev.gentoo.org/~gengor/distfiles/${CATEGORY}/${PN}/hardened-patches-${HGPV}.extras.tar.bz2" - -UNIPATCH_LIST="${DISTDIR}/hardened-patches-${HGPV}.extras.tar.bz2" -UNIPATCH_EXCLUDE="4201_fbcondecor-0.9.6.patch" - -KEYWORDS="~x86" -IUSE="" -HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/ -http://www.gentoo.org/proj/en/hardened/" - -DESCRIPTION="Hardened kernel sources (blob-free kernel, series -${KV_MAJOR}.${KV_MINOR})" -SRC_URI="${KERNEL_URI} ${HGPV_URI} ${GENPATCHES_URI} ${ARCH_URI} ${DEBLOB_URI}" - -pkg_postinst() { - kernel-2_pkg_postinst - - local GRADM_COMPAT="sys-apps/gradm-2.1.14*" - - ewarn - ewarn "As of ${CATEGORY}/${PN}-2.6.24 the predefined" - ewarn "\"Hardened [Gentoo]\" grsecurity level has been removed." - ewarn "Two improved predefined security levels replace it:" - ewarn "\"Hardened Gentoo [server]\" and \"Hardened Gentoo [workstation]\"" - ewarn - ewarn "Those who intend to use one of these predefined grsecurity levels" - ewarn "should read the help associated with the level. Users importing a" - ewarn "kernel configuration from a kernel prior to ${PN}-2.6.24," - ewarn "should review their selected grsecurity/PaX options carefully." - ewarn - ewarn - ewarn "Users of grsecurity's RBAC system must ensure they are using" - ewarn "${GRADM_COMPAT}, which is compatible with kernel series ${OKV}." - ewarn "Therefore, it is strongly recommended that the following command is" - ewarn "issued prior to booting a ${P} series kernel for" - ewarn "the first time:" - ewarn - ewarn "emerge -na =${GRADM_COMPAT}" - ewarn -} |