summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2003-12-02 08:21:51 +0000
committerBrian Jackson <iggy@gentoo.org>2003-12-02 08:21:51 +0000
commitbc5ac5f3cd59d38da5b6564a87a5d6a1bde6901d (patch)
treed2efb4a830b96e89532cc653f72c7113601c1ccf /sys-kernel/ppc-sources-crypto
parentversion bump for do_brk vuln (diff)
downloadgentoo-2-bc5ac5f3cd59d38da5b6564a87a5d6a1bde6901d.tar.gz
gentoo-2-bc5ac5f3cd59d38da5b6564a87a5d6a1bde6901d.tar.bz2
gentoo-2-bc5ac5f3cd59d38da5b6564a87a5d6a1bde6901d.zip
version bump for do_brk vuln
Diffstat (limited to 'sys-kernel/ppc-sources-crypto')
-rw-r--r--sys-kernel/ppc-sources-crypto/ChangeLog8
-rw-r--r--sys-kernel/ppc-sources-crypto/Manifest4
-rw-r--r--sys-kernel/ppc-sources-crypto/files/digest-ppc-sources-crypto-2.4.20-r11
-rw-r--r--sys-kernel/ppc-sources-crypto/ppc-sources-crypto-2.4.20-r1.ebuild115
4 files changed, 125 insertions, 3 deletions
diff --git a/sys-kernel/ppc-sources-crypto/ChangeLog b/sys-kernel/ppc-sources-crypto/ChangeLog
index a708d96630b1..1964874b8086 100644
--- a/sys-kernel/ppc-sources-crypto/ChangeLog
+++ b/sys-kernel/ppc-sources-crypto/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-kernel/ppc-sources-crypto
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ppc-sources-crypto/ChangeLog,v 1.4 2003/12/02 04:10:31 iggy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ppc-sources-crypto/ChangeLog,v 1.5 2003/12/02 08:21:49 iggy Exp $
+
+*ppc-sources-crypto-2.4.20-r1 (02 Dec 2003)
+
+ 02 Dec 2003; Brian Jackson <iggy@gentoo.org>
+ ppc-sources-crypto-2.4.20-r1.ebuild:
+ version bump for do_brk vuln
01 Dec 2003; Brian Jackson <iggy@gentoo.org>
ppc-sources-crypto-2.4.20.ebuild, files/do_brk_fix.patch:
diff --git a/sys-kernel/ppc-sources-crypto/Manifest b/sys-kernel/ppc-sources-crypto/Manifest
index 3216851a8aa3..f7718679390b 100644
--- a/sys-kernel/ppc-sources-crypto/Manifest
+++ b/sys-kernel/ppc-sources-crypto/Manifest
@@ -1,6 +1,6 @@
-MD5 733191c17e9184205fb18d6008fc22ba ppc-sources-crypto-2.4.20-r1.ebuild 3304
+MD5 dd333d6438c768303b669ca007549497 ppc-sources-crypto-2.4.20-r1.ebuild 3307
MD5 733191c17e9184205fb18d6008fc22ba ppc-sources-crypto-2.4.20.ebuild 3304
-MD5 4134929c2c4f76588c3c19a8dbfbbbc9 ChangeLog 706
+MD5 f1e844adc3e8f03bfa944b9431b93a3e ChangeLog 869
MD5 043b3ab3fa1052b12838dfa30667cb19 metadata.xml 353
MD5 e637c6fa41097ea2c4693d0766f2e1c5 files/do_brk_fix.patch 242
MD5 02d35ae561da62158d02dd7264e7e5db files/digest-ppc-sources-crypto-2.4.20-r1 78
diff --git a/sys-kernel/ppc-sources-crypto/files/digest-ppc-sources-crypto-2.4.20-r1 b/sys-kernel/ppc-sources-crypto/files/digest-ppc-sources-crypto-2.4.20-r1
new file mode 100644
index 000000000000..3089021840ea
--- /dev/null
+++ b/sys-kernel/ppc-sources-crypto/files/digest-ppc-sources-crypto-2.4.20-r1
@@ -0,0 +1 @@
+MD5 5c74ec29e69e4eb8b5b5229a26a7a9a5 linux-ppc-crypto-2.4.20.tar.bz2 27628151
diff --git a/sys-kernel/ppc-sources-crypto/ppc-sources-crypto-2.4.20-r1.ebuild b/sys-kernel/ppc-sources-crypto/ppc-sources-crypto-2.4.20-r1.ebuild
new file mode 100644
index 000000000000..ba51147cfeee
--- /dev/null
+++ b/sys-kernel/ppc-sources-crypto/ppc-sources-crypto-2.4.20-r1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ppc-sources-crypto/ppc-sources-crypto-2.4.20-r1.ebuild,v 1.1 2003/12/02 08:21:49 iggy Exp $
+
+IUSE="build crypt"
+
+# OKV=original kernel version, KV=patched kernel version. They can be the same.
+OKV=2.4.20
+KV=2.4.20
+S=${WORKDIR}/linux-ppc-crypto-${KV}
+
+# Kernel ebuilds using the kernel.eclass can remove any patch that you
+# do not want to apply by simply setting the KERNEL_EXCLUDE shell
+# variable to the string you want to exclude (for instance
+# KERNEL_EXCLUDE="evms" would not patch any patches whose names match
+# *evms*). Kernels are only tested in the default configuration, but
+# this may be useful if you know that a particular patch is causing a
+# conflict with a patch you personally want to apply, or some other
+# similar situation.
+
+ETYPE="sources"
+
+#inherit kernel
+
+DESCRIPTION="Full cryptoapi enabled sources for the Gentoo Linux PPC kernel"
+SRC_URI="http://perso.wanadoo.fr/olivier.reisch/linux-ppc-crypto/linux-ppc-crypto-${OKV}.tar.bz2"
+KEYWORDS="-x86 ppc -sparc -alpha"
+PROVIDE="virtual/linux-sources"
+HOMEPAGE="http://www.kernel.org/ http://www.kerneli.org/ http://www.gentoo.org/"
+LICENSE="GPL-2"
+SLOT="${KV}"
+
+if [ $ETYPE = "sources" ] && [ -z "`use build`" ]
+then
+ #console-tools is needed to solve the loadkeys fiasco; binutils version needed to avoid Athlon/PIII/SSE assembler bugs.
+ DEPEND=">=sys-devel/binutils-2.11.90.0.31"
+ RDEPEND=">=sys-libs/ncurses-5.2 dev-lang/perl
+ virtual/modutils sys-devel/make"
+fi
+
+
+src_unpack() {
+
+ cd ${WORKDIR}
+ unpack linux-ppc-crypto-${OKV}.tar.bz2
+ cd ${S}
+ pwd
+
+ epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln"
+
+ #sometimes we have icky kernel symbols; this seems to get rid of them
+ make mrproper || die
+
+ #this file is required for other things to build properly, so we autogenerate it
+ make include/linux/version.h || die
+
+ #fix silly permissions in tarball
+ cd ${WORKDIR}
+ chown -R 0.0 *
+ chmod -R a+r-w+X,u+w *
+
+ # Gentoo Linux uses /boot, so fix 'make install' to work properly
+ cd ${S}
+ mv Makefile Makefile.orig
+ sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
+ Makefile.orig >Makefile || die # test, remove me if Makefile ok
+ rm Makefile.orig
+
+}
+
+src_compile() {
+ if [ "$ETYPE" = "headers" ]
+ then
+ yes "" | make oldconfig
+ echo "Ignore any errors from the yes command above."
+ fi
+}
+
+src_install() {
+ if [ "$ETYPE" = "sources" ]
+ then
+ dodir /usr/src
+ cd ${S}
+ echo ">>> Copying sources..."
+ mv ${WORKDIR}/* ${D}/usr/src
+ else
+ #linux-headers
+ yes "" | make oldconfig
+ echo "Ignore any errors from the yes command above."
+ make dep
+ dodir /usr/include/linux
+ cp -ax ${S}/include/linux/* ${D}/usr/include/linux
+ dodir /usr/include/asm
+ cp -ax ${S}/include/asm-ppc/* ${D}/usr/include/asm
+ fi
+}
+
+pkg_preinst() {
+ if [ "$ETYPE" = "headers" ]
+ then
+ [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux
+ [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm
+ true
+ fi
+}
+
+pkg_postinst() {
+ [ "$ETYPE" = "headers" ] && return
+ if [ ! -e ${ROOT}usr/src/linux ]
+ then
+ rm -f ${ROOT}usr/src/linux
+ ln -sf linux-ppc-crypto-${KV} ${ROOT}/usr/src/linux
+ fi
+ [ `use xfs` ] && ewarn "XFS is no longer included!"
+}