From 68064b9faae53b72b78f25fdbd2c5371879f8962 Mon Sep 17 00:00:00 2001 From: Alexander Gabert Date: Tue, 29 Apr 2008 00:42:14 +0000 Subject: adding skeleton ebuild for hardened-gcc, tomorrow comes logic and testing in the chroots Package-Manager: portage-2.1.4.4 --- sys-devel/hardened-gcc/ChangeLog | 9 ++++ sys-devel/hardened-gcc/Manifest | 4 ++ sys-devel/hardened-gcc/hardened-gcc-4.2.3.ebuild | 65 ++++++++++++++++++++++++ sys-devel/hardened-gcc/metadata.xml | 5 ++ 4 files changed, 83 insertions(+) create mode 100644 sys-devel/hardened-gcc/ChangeLog create mode 100644 sys-devel/hardened-gcc/Manifest create mode 100644 sys-devel/hardened-gcc/hardened-gcc-4.2.3.ebuild create mode 100644 sys-devel/hardened-gcc/metadata.xml (limited to 'sys-devel') diff --git a/sys-devel/hardened-gcc/ChangeLog b/sys-devel/hardened-gcc/ChangeLog new file mode 100644 index 000000000000..5fca8b572ddd --- /dev/null +++ b/sys-devel/hardened-gcc/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sys-devel/hardened-gcc +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/hardened-gcc/ChangeLog,v 1.1 2008/04/29 00:42:14 pappy Exp $ + +*hardened-gcc-4.2.3 (29 Apr 2008) + + 29 Apr 2008; +metadata.xml, +hardened-gcc-4.2.3.ebuild: + adding test version for hardened-gcc + diff --git a/sys-devel/hardened-gcc/Manifest b/sys-devel/hardened-gcc/Manifest new file mode 100644 index 000000000000..e3be8d0267ef --- /dev/null +++ b/sys-devel/hardened-gcc/Manifest @@ -0,0 +1,4 @@ +DIST gcc-4.2.3.tar.bz2 44455012 RMD160 70b589b79b97967857f2ec70ff8b2017c84c464d SHA1 80b0df13fc9e311868022a3e86e673177397a917 SHA256 5df9a267091eea09179651ad2a2302fe99f780ac7e598278e7f47b2339fa2e80 +EBUILD hardened-gcc-4.2.3.ebuild 1353 RMD160 f6562c6c00df5a14686dd42e267cc8bd8e0acedc SHA1 d9682e56205a3566cb5212f7b9d43d0cf91e6657 SHA256 6abafaf608b717ce61498fc34a76037de06403361e2067132a3ee23d395de804 +MISC ChangeLog 368 RMD160 5762a7882c3dac8fc673cd33f6e86c93dae7bb97 SHA1 fea1b717a4bb2f592a348037a0ea37509876c781 SHA256 ceefd680aab4c61fc396de3746c56eb1c7740aac2928e67478d4b77a4ff7665c +MISC metadata.xml 169 RMD160 823736fb636fd5ec00dafde495974dcede4b52e1 SHA1 2d5df6d9707b05261f4bd015b22858fdfb490c9f SHA256 2d4a1d18ff3a746ef2fb99436fba1ab4da97cc1d39a817929c38aecd0327b310 diff --git a/sys-devel/hardened-gcc/hardened-gcc-4.2.3.ebuild b/sys-devel/hardened-gcc/hardened-gcc-4.2.3.ebuild new file mode 100644 index 000000000000..01fde869e152 --- /dev/null +++ b/sys-devel/hardened-gcc/hardened-gcc-4.2.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/hardened-gcc/hardened-gcc-4.2.3.ebuild,v 1.1 2008/04/29 00:42:14 pappy Exp $ + +DESCRIPTION="The GNU C Compiler Suite with hardening" +HOMEPAGE="http://www.gentoo.org/proj/en/extreme-security" + +GCCVER="4.2.3" +GCCPATH="pub/gcc/releases/gcc-${GCCVER}" +GCCFILE="gcc-${GCCVER}.tar.bz2" +GCC_MIR="ftp://gcc.gnu.org" + +# the basic gcc source +SRC_URI="${SRC_URI} \ + ${GCC_MIR}/${GCCPATH}/${GCCFILE}" + +LICENSE="LGPL-2" +SLOT="1" + +KEYWORDS="-x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +pkg_setup() { + # hardcoding the CHOST in this ebuild (for x86 stages) + # this breaks crosscompiling and multiple arch support + # but it is a good first step to get the ebuild going. + export CHOST="i486-pc-linux-gnu" + + export CFLAGS="-O2 -pipe -march=i486 -mtune=i686 -fforce-addr" + export CXXFLAGS="${CFLAGS}" + + export CPPFLAGS="" + export ASFLAGS="" + export LDFLAGS="" + + if [[ "x${MAKEOPTS}y" == "xy" ]] + then + export MAKEOPTS="-j4" + fi + + einfo "using CHOST:${CHOST}" + einfo "using C(XX)FLAGS:${CFLAGS}:${CXXFLAGS}" + einfo "using MAKEOPTS:${MAKEOPTS}" +} + +src_unpack() { + einfo "unpacking" +} + +src_compile() { + einfo "compiling" +} + +src_install() { + einfo "installing" +} + +pkg_postinst() { + einfo "doing postinstallation tasks" +} + + diff --git a/sys-devel/hardened-gcc/metadata.xml b/sys-devel/hardened-gcc/metadata.xml new file mode 100644 index 000000000000..a9c084362a62 --- /dev/null +++ b/sys-devel/hardened-gcc/metadata.xml @@ -0,0 +1,5 @@ + + + +extreme-security + -- cgit v1.2.3-65-gdbad