Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:uclibc commit in: sys-libs/uclibc/
Date: Sat, 31 Dec 2011 19:19:45
Message-Id: 7204cccb4e8cf91e46dc9b9f0c1c567b247f2e8e.blueness@gentoo
1 commit: 7204cccb4e8cf91e46dc9b9f0c1c567b247f2e8e
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 31 18:59:11 2011 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 31 19:18:42 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=7204cccb
7
8 sys-libs/uclibc-0.9.32-r1: stripped down ebuild
9
10 (Portage version: 2.1.10.41/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
11
12 ---
13 sys-libs/uclibc/uclibc-0.9.32-r1.ebuild | 57 +++++++++++++++++++++++++++++++
14 1 files changed, 57 insertions(+), 0 deletions(-)
15
16 diff --git a/sys-libs/uclibc/uclibc-0.9.32-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.32-r1.ebuild
17 new file mode 100644
18 index 0000000..42b99f4
19 --- /dev/null
20 +++ b/sys-libs/uclibc/uclibc-0.9.32-r1.ebuild
21 @@ -0,0 +1,57 @@
22 +# Copyright 1999-2011 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild,v 1.9 2011/04/20 18:10:38 ulm Exp $
25 +
26 +EAPI="4"
27 +
28 +inherit eutils savedconfig
29 +
30 +MY_P=uClibc-0.9.32
31 +DESCRIPTION="C library for developing embedded Linux systems"
32 +HOMEPAGE="http://www.uclibc.org/"
33 +SRC_URI="http://uclibc.org/downloads/${MY_P}.tar.bz2"
34 +
35 +LICENSE="LGPL-2"
36 +SLOT="0"
37 +KEYWORDS="-* ~amd64 ~x86"
38 +IUSE="savedconfig"
39 +RESTRICT="strip"
40 +
41 +RDEPEND=""
42 +DEPEND=""
43 +
44 +S=${WORKDIR}/${MY_P}
45 +
46 +src_prepare() {
47 + epatch "${FILESDIR}"/${P}-BJA-sandbox.patch
48 + epatch "${FILESDIR}"/${P}-fix_epoll.patch
49 +}
50 +
51 +src_configure() {
52 + use savedconfig && restore_config .config
53 +}
54 +
55 +src_compile() {
56 + emake headers || die "make headers failed"
57 + emake || die "make failed"
58 + emake utils || die "make utils failed"
59 +}
60 +
61 +src_install() {
62 + emake DESTDIR="${D}" install || die "install failed"
63 +
64 + use savedconfig && save_config .config
65 +
66 + # remove files coming from kernel-headers
67 + rm -rf "${D}"/usr/include/{linux,asm*}
68 +
69 + emake DESTDIR="${D}" install_utils || die "install-utils failed"
70 + dobin extra/scripts/getent
71 + dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
72 +}
73 +
74 +pkg_postinst() {
75 + echo "UTC" > "${ROOT}"/etc/TZ
76 + /sbin/ldconfig
77 + [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
78 +}