From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DA023138334 for ; Tue, 9 Oct 2018 19:13:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4FD3E086E; Tue, 9 Oct 2018 19:13:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9FD1BE086E for ; Tue, 9 Oct 2018 19:13:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C741D335CA6 for ; Tue, 9 Oct 2018 19:13:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 641583CF for ; Tue, 9 Oct 2018 19:13:25 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1539112399.8891c135b8a855aafd8347f6f695ceb5bf5bf48e.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/prelink/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/prelink/prelink-99999999.ebuild X-VCS-Directories: sys-devel/prelink/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 8891c135b8a855aafd8347f6f695ceb5bf5bf48e X-VCS-Branch: master Date: Tue, 9 Oct 2018 19:13:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6d8d0e4c-e08d-4ef8-b9ce-76e7380fc5e8 X-Archives-Hash: 8c22646ece098f733466a4dda968ebd7 commit: 8891c135b8a855aafd8347f6f695ceb5bf5bf48e Author: Sergei Trofimovich gentoo org> AuthorDate: Tue Oct 9 19:07:00 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Tue Oct 9 19:13:19 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8891c135 sys-devel/prelink: add live ebuild Signed-off-by: Sergei Trofimovich gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 sys-devel/prelink/prelink-99999999.ebuild | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/sys-devel/prelink/prelink-99999999.ebuild b/sys-devel/prelink/prelink-99999999.ebuild new file mode 100644 index 00000000000..390d0c35e0c --- /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 +}