diff options
author | Alexander Gabert <pappy@gentoo.org> | 2008-04-29 01:05:44 +0000 |
---|---|---|
committer | Alexander Gabert <pappy@gentoo.org> | 2008-04-29 01:05:44 +0000 |
commit | 468cd588d182ed475dba14b14aac8e47beb9e19e (patch) | |
tree | 2f858b82f70ced0f8765a7dc957af82bc2385abf /sys-libs | |
parent | adding skeleton ebuild for hardened-gcc, tomorrow comes logic and testing in ... (diff) | |
download | gentoo-2-468cd588d182ed475dba14b14aac8e47beb9e19e.tar.gz gentoo-2-468cd588d182ed475dba14b14aac8e47beb9e19e.tar.bz2 gentoo-2-468cd588d182ed475dba14b14aac8e47beb9e19e.zip |
removing hardened-glibc
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/hardened-glibc/ChangeLog | 18 | ||||
-rw-r--r-- | sys-libs/hardened-glibc/Manifest | 6 | ||||
-rw-r--r-- | sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild | 171 | ||||
-rw-r--r-- | sys-libs/hardened-glibc/metadata.xml | 5 |
4 files changed, 0 insertions, 200 deletions
diff --git a/sys-libs/hardened-glibc/ChangeLog b/sys-libs/hardened-glibc/ChangeLog deleted file mode 100644 index 0e79381de4ff..000000000000 --- a/sys-libs/hardened-glibc/ChangeLog +++ /dev/null @@ -1,18 +0,0 @@ -# ChangeLog for sys-libs/hardened-glibc -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/hardened-glibc/ChangeLog,v 1.3 2008/04/28 12:15:29 pappy Exp $ - - 28 Apr 2008; <pappy@gentoo.org> hardened-glibc-2.6.1-r1.ebuild: - fixed built time failures and added locale-gen and nscd config files - - 27 Apr 2008; <pappy@gentoo.org> ChangeLog: - added hardened-glibc-2.6.1-r1.ebuild - - 27 Apr 2008; <pappy@gentoo.org> ChangeLog: - these are test versions for hardened developers - use at your own risk, there is no profile (yet) - where these ebuilds are currently actively used - - 27 Apr 2008; <pappy@gentoo.org> ChangeLog: - initial version - diff --git a/sys-libs/hardened-glibc/Manifest b/sys-libs/hardened-glibc/Manifest deleted file mode 100644 index 24f5e6c3dbd3..000000000000 --- a/sys-libs/hardened-glibc/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -DIST glibc-2.6.1-GENTOOPATCHES.patch.gz 829226 RMD160 c1a2586d3698d70d497213762e1b4612a4d2256c SHA1 4b76792d7c02809105252cba0602c8410cabef02 SHA256 3e8f2de55fd181a550da4306f21aa9387d02ee58f6fefe1dd051b5c5b4919b34 -DIST glibc-2.6.1-LOCALEGEN_NSCD.patch.gz 8354 RMD160 583781b729108718a234f1ea7b38ca84f41728b0 SHA1 c735e59c610e5e994c8543d8e5dfbfd65d2ae987 SHA256 9cfbdc04efe0437c96dd6e1066c27366cb7f17715d2a5cb945fc46ab4a881cb7 -DIST glibc-2.6.1.tar.bz2 15767401 RMD160 a58226e394780a6996d608febf5881134990919e SHA1 85573fee8d79180165e9466a1fc25133b5792190 SHA256 3ded3a3c3ba2cf02d72479a5cc0829c7c261a9d0934e49a79233de9fa276ec22 -EBUILD hardened-glibc-2.6.1-r1.ebuild 4645 RMD160 1d28991aef97a8ec8f0292d36f4ab1e096af632c SHA1 8e95bb00607ac0a183edf46cda7d1ea710ae9b06 SHA256 20aff9001df6593fbfd3843cf7793a448a6188bb16791c1d8dbcced9a690540e -MISC ChangeLog 701 RMD160 c46bb3b0d639f2eafaabfdef651aaafba4910433 SHA1 ab21dbb0c4c92f3e9868c3008212ec0362225873 SHA256 9c90c0baa905ac02b281af7953ca4caf0c19c07f6ad501a1aa0a925bfc519c42 -MISC metadata.xml 169 RMD160 823736fb636fd5ec00dafde495974dcede4b52e1 SHA1 2d5df6d9707b05261f4bd015b22858fdfb490c9f SHA256 2d4a1d18ff3a746ef2fb99436fba1ab4da97cc1d39a817929c38aecd0327b310 diff --git a/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild b/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild deleted file mode 100644 index d233b8024ed1..000000000000 --- a/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/hardened-glibc/hardened-glibc-2.6.1-r1.ebuild,v 1.6 2008/04/29 00:22:01 pappy Exp $ - -# the main installation routine and patches -# from http://www.linuxfromscratch.org/hlfs -# and one file of patches of sys-libs/glibc - -DESCRIPTION="Gentoo Hardened GNU libc6" -HOMEPAGE="http://www.gentoo.org/proj/en/extreme-security/" - -KERNELVER="2.6.18" - -GNU_MIRROR="ftp://ftp.gnu.org/gnu" - -PATCHDIST="http://dev.gentoo.org/~pappy/dist/hardened" -PATCHPATH="sys-libs/hardened-glibc/files/2.6.1" -MYPATCHES="glibc-2.6.1-GENTOOPATCHES.patch.gz" -LOCALEGEN="glibc-2.6.1-LOCALEGEN_NSCD.patch.gz" - -## the default upstream glibc -SRC_URI="${SRC_URI} \ - ${GNU_MIRROR}/glibc/glibc-2.6.1.tar.bz2" - -## contains a jumbo file with all patches from -## sys-libs/glibc for this particular glibc setup -SRC_URI="${SRC_URI} \ - ${PATCHDIST}/${PATCHPATH}/${MYPATCHES}" - -## contains the locale-gen utility from Debian -## taken from sys-libs/glibc -SRC_URI="${SRC_URI} \ - ${PATCHDIST}/${PATCHPATH}/${LOCALEGEN}" - -LICENSE="LGPL-2" -SLOT="1" - -KEYWORDS="~x86" -IUSE="" - -PROVIDE="virtual/libc" -RESTRICT="strip" #46186 - -DEPEND=">=sys-devel/binutils-2.15.94 - >=sys-devel/gcc-config-1.3.12 - >=app-misc/pax-utils-0.1.10 - virtual/os-headers - sys-devel/gettext - >=sys-apps/portage-2.1.2" - -RDEPEND="sys-devel/gettext" - -pkg_setup() { - # hardcoding the CHOST in this ebuild (for x86 stages) - export CHOST="i486-pc-linux-gnu" - - # need CFLAGS+="-march=i486" for - # undefined reference - # to `__sync_bool_compare_and_swap_4' - # error message, - # lets hope mtuning for i686 cpu gives some speed - 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_compile() { - cd "${WORKDIR}/glibc-${PV}" - - einfo "adding gentoo glibc patches" - patch --quiet -p1 < "${WORKDIR}/glibc-2.6.1-GENTOOPATCHES.patch" || \ - die "gentoo patches" - - # somehow epatch would not apply this :( - einfo "adding localegen utility and nscd files" - patch --quiet -p1 < "${WORKDIR}/glibc-2.6.1-LOCALEGEN_NSCD.patch" || \ - die "localegen patch" - - mkdir -p "${WORKDIR}/glibc-build" - cd "${WORKDIR}/glibc-build" - - "${WORKDIR}/glibc-${PV}/configure" \ - --target="${CHOST}" \ - --prefix=/usr \ - --enable-bind-now \ - --without-gd \ - --disable-profile \ - --enable-add-ons=nptl \ - --without-selinux \ - --with-tls \ - --with-__thread \ - --enable-kernel="${KERNELVER}" \ - --without-cvs || die "configuration failed" - - make || die "compile failed" -} - -src_install() { - cd "${WORKDIR}/glibc-build" - - make install_root="${D}" install || die "make install failed" - - # NOTE: for installing all glibc locales in the binpackage, - # NOTE: make install_root="${D}" localedata/install-locales - - insinto /etc - - local configfiles="${WORKDIR}/glibc-${PV}/gentoo" - - # TODO: add locale-gen to the patch - - # install the locale-gen helper utility and config file - dosbin "${configfiles}/locale/locale-gen" || \ - die "locale-gen helper script could not be installed" - - doins "${configfiles}/locale/locale.gen" || \ - die "locale.gen config file could not be installed" - - # install the nscd startup script - doinitd "${configfiles}/etc/nscd" || \ - die "nscd run level startup script could not be installed" - - # install the config files for glibc - doins "${configfiles}"/etc/*.conf || \ - die "glibc config files could not be installed" - - # make sure the localtime is not overwritten by glibc emerges - rm "${D}/etc/localtime" -} - -# NOTE: the locales are not in the .tbz2 file of the binpackage -# NOTE: but will be generated in the postinst routine from here -pkg_postinst() { - # make sure the file exists on the installed system - touch "${ROOT}/ld.so.conf" - - # install locales (logic taken from sys-libs/glibc) - local locale_list="${ROOT}/etc/locale.gen" - if [[ -z $(locale-gen --list --config "${locale_list}") ]] - then - locale_list="${ROOT}/usr/share/i18n/SUPPORTED" - fi - - # find the number of jobs available - local x jobs - for x in ${MAKEOPTS} ; do [[ "${x}" == -j* ]] && jobs=${x#-j} ; done - - # generate the locales - locale-gen -j ${jobs:-2} --config "${locale_list}" - - # set the timezone automatically if not found - if [[ ! -f "${ROOT}/etc/localtime" ]] - then - einfo "timezone not found: setting timezone to UTC" - cp --remove-destination \ - "${ROOT}/usr/share/zoneinfo/UTC" \ - "${ROOT}/etc/localtime" - fi -} diff --git a/sys-libs/hardened-glibc/metadata.xml b/sys-libs/hardened-glibc/metadata.xml deleted file mode 100644 index a9c084362a62..000000000000 --- a/sys-libs/hardened-glibc/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>extreme-security</herd> -</pkgmetadata> |