summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-10-09 20:07:00 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-10-09 20:13:19 +0100
commit8891c135b8a855aafd8347f6f695ceb5bf5bf48e (patch)
treecea916fdd52c4db9f5cccb23b7dfd5afa66c7cdd /sys-devel
parentdev-python/bleach: bump to 3.0.1 (diff)
downloadgentoo-8891c135b8a855aafd8347f6f695ceb5bf5bf48e.tar.gz
gentoo-8891c135b8a855aafd8347f6f695ceb5bf5bf48e.tar.bz2
gentoo-8891c135b8a855aafd8347f6f695ceb5bf5bf48e.zip
sys-devel/prelink: add live ebuild
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/prelink/prelink-99999999.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/sys-devel/prelink/prelink-99999999.ebuild b/sys-devel/prelink/prelink-99999999.ebuild
new file mode 100644
index 000000000000..390d0c35e0cd
--- /dev/null
+++ b/sys-devel/prelink/prelink-99999999.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+MY_PN="${PN}-cross"
+MY_P="${MY_PN}-${PV}"
+
+inherit autotools flag-o-matic git-r3
+
+DESCRIPTION="Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times"
+HOMEPAGE="https://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/ https://people.redhat.com/jakub/prelink"
+EGIT_REPO_URI="https://git.yoctoproject.org/git/prelink-cross"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="doc selinux"
+
+DEPEND="selinux? ( sys-libs/libselinux[static-libs(+)] )
+ !dev-libs/libelf
+ sys-libs/binutils-libs
+ >=sys-libs/glibc-2.8"
+RDEPEND="${DEPEND}
+ >=sys-devel/binutils-2.18
+ >=dev-libs/elfutils-0.100[static-libs(+)]"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-20130503-prelink-conf.patch
+ "${FILESDIR}"/${PN}-20130503-libiberty-md5.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e '/^CC=/s: : -Wl,--disable-new-dtags :' testsuite/functions.sh #100147
+
+ has_version 'dev-libs/elfutils[threads]' && append-ldflags -pthread
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable selinux)
+}
+
+src_install() {
+ default
+
+ use doc && dodoc doc/prelink.pdf
+
+ insinto /etc
+ doins doc/prelink.conf
+
+ exeinto /etc/cron.daily
+ newexe "${FILESDIR}"/prelink.cron prelink
+ newconfd "${FILESDIR}"/prelink.confd prelink
+}
+
+pkg_postinst() {
+ if [ -z "${REPLACING_VERSIONS}" ] ; then
+ elog "You may wish to read the Gentoo Linux Prelink Guide, which can be"
+ elog "found online at:"
+ elog " https://wiki.gentoo.org/wiki/Prelink"
+ elog "Please edit /etc/conf.d/prelink to enable and configure prelink"
+ fi
+}