/[gentoo-x86]/sys-devel/prelink/prelink-20110511.ebuild
Gentoo

Contents of /sys-devel/prelink/prelink-20110511.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Fri Jul 20 17:31:19 2012 UTC (10 months, 4 weeks ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +5 -7 lines
Require elfutils[static-libs] #427222 by toogle.

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

1 ranger 1.4 # Copyright 1999-2012 Gentoo Foundation
2 dirtyepic 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.7 # $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/prelink-20110511.ebuild,v 1.6 2012/03/18 15:27:15 armin76 Exp $
4 dirtyepic 1.1
5 vapier 1.7 EAPI="4"
6 dirtyepic 1.1
7     inherit eutils flag-o-matic
8    
9     DESCRIPTION="Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times"
10     HOMEPAGE="http://people.redhat.com/jakub/prelink"
11    
12     SRC_URI="mirror://gentoo/${P}.tar.bz2"
13     #SRC_URI="http://people.redhat.com/jakub/prelink/${P}.tar.bz2"
14     #
15     # if not available rip the distfile with rpm2targz from
16     # http://mirrors.kernel.org/fedora/development/rawhide/source/SRPMS/prelink-[ver].src.rpm
17    
18     # track http://pkgs.fedoraproject.org/gitweb/?p=prelink.git;a=summary for
19     # version bumps
20    
21     LICENSE="GPL-2"
22     SLOT="0"
23 armin76 1.6 KEYWORDS="amd64 -arm ppc ppc64 x86"
24 dirtyepic 1.1 IUSE=""
25    
26 vapier 1.7 DEPEND=">=dev-libs/elfutils-0.100[static-libs(+)]
27 dirtyepic 1.1 !dev-libs/libelf
28     >=sys-libs/glibc-2.8"
29     RDEPEND="${DEPEND}
30     >=sys-devel/binutils-2.18"
31    
32     S=${WORKDIR}/${PN}
33    
34     src_prepare() {
35     epatch "${FILESDIR}"/${PN}-20061201-prelink-conf.patch
36    
37     sed -i -e 's:undosyslibs.sh::' testsuite/Makefile.in #254201
38     sed -i -e '/^CC=/s: : -Wl,--disable-new-dtags :' testsuite/functions.sh #100147
39    
40     # older GCCs don't support this flag
41     # sed it from the Makefile then add it back to CFLAGS so we can use
42     # strip-unsupported-flags
43     sed -i -e 's:-Wno-pointer-sign::' src/Makefile.in #325269
44     append-cflags -Wno-pointer-sign
45     strip-unsupported-flags
46     }
47    
48     src_install() {
49 vapier 1.7 default
50 dirtyepic 1.1
51     insinto /etc
52 vapier 1.7 doins doc/prelink.conf
53 dirtyepic 1.1
54     exeinto /etc/cron.daily
55     newexe "${FILESDIR}"/prelink.cron prelink
56     newconfd "${FILESDIR}"/prelink.confd prelink
57    
58     dodir /var/{lib/misc,log}
59     touch "${D}/var/lib/misc/prelink.full"
60     touch "${D}/var/lib/misc/prelink.quick"
61     touch "${D}/var/lib/misc/prelink.force"
62     touch "${D}/var/log/prelink.log"
63     }
64    
65     pkg_postinst() {
66     echo
67     elog "You may wish to read the Gentoo Linux Prelink Guide, which can be"
68     elog "found online at:"
69     elog
70     elog " http://www.gentoo.org/doc/en/prelink-howto.xml"
71     elog
72     elog "Please edit /etc/conf.d/prelink to enable and configure prelink"
73     echo
74     touch "${ROOT}/var/lib/misc/prelink.force"
75     }

  ViewVC Help
Powered by ViewVC 1.1.20