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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Aug 18 06:47:48 2012 UTC (2 years, 6 months ago) by dirtyepic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Version bump.

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/prelink-20100106.ebuild,v 1.9 2012/03/18 15:27:15 armin76 Exp $
4
5 # if not on http://people.redhat.com/jakub/prelink/, releases can usually be ripped from
6 # http://mirrors.kernel.org/fedora/development/source/SRPMS/prelink-<blah>.src.rpm
7
8 inherit eutils flag-o-matic
9
10 DESCRIPTION="Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times"
11 HOMEPAGE="http://people.redhat.com/jakub/prelink"
12 SRC_URI="http://people.redhat.com/jakub/prelink/${P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 -arm ppc ppc64 x86"
17 IUSE=""
18
19 DEPEND=">=dev-libs/elfutils-0.100
20 !dev-libs/libelf
21 >=sys-libs/glibc-2.8"
22 RDEPEND="${DEPEND}
23 >=sys-devel/binutils-2.18"
24
25 S=${WORKDIR}/${PN}
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 epatch "${FILESDIR}"/${PN}-20061201-prelink-conf.patch
31 sed -i -e 's:undosyslibs.sh::' testsuite/Makefile.in #254201
32 sed -i -e '/^CC=/s: : -Wl,--disable-new-dtags :' testsuite/functions.sh #100147
33 sed -i -e 's:-Wno-pointer-sign::' src/Makefile.in #325269
34 append-cflags -Wno-pointer-sign
35 strip-unsupported-flags
36 }
37
38 src_test() {
39 unset LD_AS_NEEDED #303797
40 emake -j1 check
41 }
42
43 src_install() {
44 emake install DESTDIR="${D}" || die "Install Failed"
45
46 insinto /etc
47 doins doc/prelink.conf || die
48
49 exeinto /etc/cron.daily
50 newexe "${FILESDIR}"/prelink.cron prelink
51 newconfd "${FILESDIR}"/prelink.confd prelink
52
53 dodir /var/{lib/misc,log}
54 touch "${D}/var/lib/misc/prelink.full"
55 touch "${D}/var/lib/misc/prelink.quick"
56 touch "${D}/var/lib/misc/prelink.force"
57 touch "${D}/var/log/prelink.log"
58
59 dodoc TODO ChangeLog
60 }
61
62 pkg_postinst() {
63 echo
64 elog "You may wish to read the Gentoo Linux Prelink Guide, which can be"
65 elog "found online at:"
66 elog
67 elog " http://www.gentoo.org/doc/en/prelink-howto.xml"
68 elog
69 elog "Please edit /etc/conf.d/prelink to enable and configure prelink"
70 echo
71 touch "${ROOT}/var/lib/misc/prelink.force"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20