From 3d6f5cdadd25ed8c667c72f88192c74260df49b8 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Sat, 18 Nov 2006 20:52:47 +0000 Subject: [PATCH] Rev bump to push out previous commit. Package-Manager: portage-2.1.2_rc2 --- sys-devel/prelink/ChangeLog | 12 ++- .../prelink/files/digest-prelink-20060712-r1 | 3 + sys-devel/prelink/prelink-20060712-r1.ebuild | 86 +++++++++++++++++++ 3 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 sys-devel/prelink/files/digest-prelink-20060712-r1 create mode 100644 sys-devel/prelink/prelink-20060712-r1.ebuild diff --git a/sys-devel/prelink/ChangeLog b/sys-devel/prelink/ChangeLog index b90bb88c3e5c..61655fbda74f 100644 --- a/sys-devel/prelink/ChangeLog +++ b/sys-devel/prelink/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for sys-devel/prelink # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/ChangeLog,v 1.46 2006/11/18 20:48:16 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/ChangeLog,v 1.47 2006/11/18 20:52:47 dirtyepic Exp $ + + 18 Nov 2006; -prelink-20060712.ebuild, + +prelink-20060712-r1.ebuild: + Rev bump to push out previous commit. + +*prelink-20060712-r1 (18 Nov 2006) + + 18 Nov 2006; -prelink-20060712.ebuild, + +prelink-20060712-r1.ebuild: + Rev bump to push out previous commit. 18 Nov 2006; +files/prelink-20060712-cache-segfault.patch, prelink-20060712.ebuild: diff --git a/sys-devel/prelink/files/digest-prelink-20060712-r1 b/sys-devel/prelink/files/digest-prelink-20060712-r1 new file mode 100644 index 000000000000..611b852cac19 --- /dev/null +++ b/sys-devel/prelink/files/digest-prelink-20060712-r1 @@ -0,0 +1,3 @@ +MD5 6f72c7b02da18b121e0018b827476763 prelink-20060712.tar.bz2 907705 +RMD160 bcac775a3e56f3c9253851d728c246c4921fcb08 prelink-20060712.tar.bz2 907705 +SHA256 64f360159f8204dff5534475b1e2b200c2a9971e674c9276d0b4c2650b369779 prelink-20060712.tar.bz2 907705 diff --git a/sys-devel/prelink/prelink-20060712-r1.ebuild b/sys-devel/prelink/prelink-20060712-r1.ebuild new file mode 100644 index 000000000000..414c33128324 --- /dev/null +++ b/sys-devel/prelink/prelink-20060712-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/prelink-20060712-r1.ebuild,v 1.1 2006/11/18 20:52:47 dirtyepic Exp $ + +inherit eutils + +DESCRIPTION="Modifies executables so runtime libraries load faster" +HOMEPAGE="ftp://people.redhat.com/jakub/prelink" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + http://dev.gentoo.org/~azarah/prelink/${P}.tar.bz2 + ftp://people.redhat.com/jakub/prelink/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~x86" +IUSE="" + +DEPEND=">=dev-libs/elfutils-0.100 + !dev-libs/libelf + >=sys-libs/glibc-2.3.4 + >=sys-devel/binutils-2.15.90.0.1" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PN}-20040707-init.patch + epatch ${FILESDIR}/${PN}-20060213-symloop.patch + epatch ${FILESDIR}/${PN}-20060712-cache-segfault.patch + + # Build our /etc/env.d/60prelink + cat > "${S}/60prelink" <<-EOF + $( + # Need to initialize PRELINK_PATH_MASK so that we can + # just add ':${x}' below. + PRELINK_PATH_MASK="/lib/modules" + # Ok, now add the rest + for x in /usr/$(get_libdir)/locale \ + /usr/$(get_libdir)/wine \ + /usr/$(get_libdir)/valgrind \ + "*.la" "*.png" "*.py" "*.pl" "*.pm" \ + "*.sh" "*.xml" "*.xslt" "*.a" "*.js" ; do + PRELINK_PATH_MASK="${PRELINK_PATH_MASK}:${x}" + done + # Now add it quoted + echo PRELINK_PATH_MASK="\"${PRELINK_PATH_MASK}\"" + ) + PRELINK_PATH="" + EOF +} + +src_compile() { + econf || die "Configure failed" + emake || die "Make Failed" +} + +src_install() { + einstall || die "Install Failed" + + doenvd ${S}/60prelink + + exeinto /etc/cron.daily + newexe "${FILESDIR}"/prelink.cron prelink + newconfd "${FILESDIR}"/prelink.confd prelink + + dodir /var/{lib/misc,log} + touch "${D}/var/lib/misc/prelink.full" + touch "${D}/var/lib/misc/prelink.quick" + touch "${D}/var/lib/misc/prelink.force" + touch "${D}/var/log/prelink.log" + + + dodoc INSTALL TODO ChangeLog THANKS COPYING README AUTHORS NEWS +} + +pkg_postinst() { + echo + einfo "You may wish to read the Gentoo Linux Prelink Guide, which can be" + einfo "found online at:" + einfo " http://www.gentoo.org/doc/en/prelink-howto.xml" + einfo "Added cron job at /etc/cron.daily/prelink" + einfo "Edit /etc/conf.d/prelink to enable / configure" + echo + touch "${ROOT}/var/lib/misc/prelink.force" +} -- 2.26.2