Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/prelink/
Date: Tue, 09 Oct 2018 19:13:30
Message-Id: 1539112399.8891c135b8a855aafd8347f6f695ceb5bf5bf48e.slyfox@gentoo
1 commit: 8891c135b8a855aafd8347f6f695ceb5bf5bf48e
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 9 19:07:00 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 9 19:13:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8891c135
7
8 sys-devel/prelink: add live ebuild
9
10 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sys-devel/prelink/prelink-99999999.ebuild | 66 +++++++++++++++++++++++++++++++
14 1 file changed, 66 insertions(+)
15
16 diff --git a/sys-devel/prelink/prelink-99999999.ebuild b/sys-devel/prelink/prelink-99999999.ebuild
17 new file mode 100644
18 index 00000000000..390d0c35e0c
19 --- /dev/null
20 +++ b/sys-devel/prelink/prelink-99999999.ebuild
21 @@ -0,0 +1,66 @@
22 +# Copyright 1999-2018 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="7"
26 +
27 +MY_PN="${PN}-cross"
28 +MY_P="${MY_PN}-${PV}"
29 +
30 +inherit autotools flag-o-matic git-r3
31 +
32 +DESCRIPTION="Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times"
33 +HOMEPAGE="https://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/ https://people.redhat.com/jakub/prelink"
34 +EGIT_REPO_URI="https://git.yoctoproject.org/git/prelink-cross"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +IUSE="doc selinux"
39 +
40 +DEPEND="selinux? ( sys-libs/libselinux[static-libs(+)] )
41 + !dev-libs/libelf
42 + sys-libs/binutils-libs
43 + >=sys-libs/glibc-2.8"
44 +RDEPEND="${DEPEND}
45 + >=sys-devel/binutils-2.18
46 + >=dev-libs/elfutils-0.100[static-libs(+)]"
47 +
48 +PATCHES=(
49 + "${FILESDIR}"/${PN}-20130503-prelink-conf.patch
50 + "${FILESDIR}"/${PN}-20130503-libiberty-md5.patch
51 +)
52 +
53 +src_prepare() {
54 + default
55 +
56 + sed -i -e '/^CC=/s: : -Wl,--disable-new-dtags :' testsuite/functions.sh #100147
57 +
58 + has_version 'dev-libs/elfutils[threads]' && append-ldflags -pthread
59 +
60 + eautoreconf
61 +}
62 +
63 +src_configure() {
64 + econf $(use_enable selinux)
65 +}
66 +
67 +src_install() {
68 + default
69 +
70 + use doc && dodoc doc/prelink.pdf
71 +
72 + insinto /etc
73 + doins doc/prelink.conf
74 +
75 + exeinto /etc/cron.daily
76 + newexe "${FILESDIR}"/prelink.cron prelink
77 + newconfd "${FILESDIR}"/prelink.confd prelink
78 +}
79 +
80 +pkg_postinst() {
81 + if [ -z "${REPLACING_VERSIONS}" ] ; then
82 + elog "You may wish to read the Gentoo Linux Prelink Guide, which can be"
83 + elog "found online at:"
84 + elog " https://wiki.gentoo.org/wiki/Prelink"
85 + elog "Please edit /etc/conf.d/prelink to enable and configure prelink"
86 + fi
87 +}