summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bainbridge <chrb@gentoo.org>2006-06-10 08:10:48 +0000
committerChris Bainbridge <chrb@gentoo.org>2006-06-10 08:10:48 +0000
commitfe5e60ccb6dc1dd6784133abdd9fc199573e6e0f (patch)
tree3e09b2987dedf6f57356647fdf8252e9379ac175 /app-arch
parentppc stable, remove vulnerable ebuild. bug #134483. (diff)
downloadgentoo-2-fe5e60ccb6dc1dd6784133abdd9fc199573e6e0f.tar.gz
gentoo-2-fe5e60ccb6dc1dd6784133abdd9fc199573e6e0f.tar.bz2
gentoo-2-fe5e60ccb6dc1dd6784133abdd9fc199573e6e0f.zip
Mark ~x86 #135854. Add DEPEND on neon #135760.
(Portage version: 2.1)
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/rpm/ChangeLog7
-rw-r--r--app-arch/rpm/files/digest-rpm-4.4.1-r13
-rw-r--r--app-arch/rpm/rpm-4.4.1-r1.ebuild102
3 files changed, 111 insertions, 1 deletions
diff --git a/app-arch/rpm/ChangeLog b/app-arch/rpm/ChangeLog
index f477b49ca6b9..076f481d568b 100644
--- a/app-arch/rpm/ChangeLog
+++ b/app-arch/rpm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-arch/rpm
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.54 2006/06/03 23:19:22 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.55 2006/06/10 08:10:48 chrb Exp $
+
+*rpm-4.4.1-r1 (10 Jun 2006)
+
+ 10 Jun 2006; Chris Bainbridge <chrb@gentoo.org> +rpm-4.4.1-r1.ebuild:
+ Mark ~x86 #135854. Add DEPEND on neon #135760.
*rpm-4.4.1 (03 Jun 2006)
diff --git a/app-arch/rpm/files/digest-rpm-4.4.1-r1 b/app-arch/rpm/files/digest-rpm-4.4.1-r1
new file mode 100644
index 000000000000..2013664b71ca
--- /dev/null
+++ b/app-arch/rpm/files/digest-rpm-4.4.1-r1
@@ -0,0 +1,3 @@
+MD5 90ded9047b1b69d918c6c7c7b56fd7a9 rpm-4.4.1.tar.gz 11497447
+RMD160 b2b34d678c4707c1c1bf8e05e7b92a8956bb4226 rpm-4.4.1.tar.gz 11497447
+SHA256 4a5e2a5a64a47344b6447b54e046b8550ea7ee99344eee3e8d4c087cb148552b rpm-4.4.1.tar.gz 11497447
diff --git a/app-arch/rpm/rpm-4.4.1-r1.ebuild b/app-arch/rpm/rpm-4.4.1-r1.ebuild
new file mode 100644
index 000000000000..fe7d71ac32bd
--- /dev/null
+++ b/app-arch/rpm/rpm-4.4.1-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-4.4.1-r1.ebuild,v 1.1 2006/06/10 08:10:48 chrb Exp $
+
+inherit python flag-o-matic libtool eutils
+
+DESCRIPTION="Red Hat Package Management Utils"
+HOMEPAGE="http://www.rpm.org/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha -amd64 ~arm ~hppa ~ia64 ~mips ~ppc -ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="nls python doc"
+
+RDEPEND="=sys-libs/db-3.2*
+ >=sys-libs/zlib-1.1.3
+ >=app-arch/bzip2-1.0.1
+ >=dev-libs/popt-1.7
+ >=app-crypt/gnupg-1.2
+ dev-libs/elfutils
+ >=dev-libs/beecrypt-3.1.0-r1
+ python? ( >=dev-lang/python-2.2 )
+ nls? ( virtual/libintl )
+ net-misc/neon"
+
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/rpm-4.4.1-ubuntu-fixup.patch
+ cd ${S}
+ elibtoolize
+ libtoolize --copy --force
+}
+
+src_compile() {
+ strip-flags
+
+ unset LD_ASSUME_KERNEL
+ local myconf
+ myconf="--enable-posixmutexes --without-javaglue --without-selinux"
+
+ python_version
+ use python \
+ && myconf="${myconf} --with-python=${PYVER}" \
+ || myconf="${myconf} --without-python"
+
+ econf ${myconf} `use_enable nls` || die
+ make || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ mv ${D}/bin/rpm ${D}/usr/bin
+ mv ${D}/bin/rpmbuild ${D}/usr/bin
+ rm -rf ${D}/bin
+ # Fix for bug #8578 (app-arch/rpm create dead symlink)
+ # Local RH 7.3 install has no such symlink anywhere
+ # ------
+ # UPDATE for 4.1!
+ # There is a /usr/lib/rpm/rpmpopt-4.1 now
+ # the symlink is still created incorrectly. ???
+ rm -f ${D}/usr/lib/rpmpopt
+ rm -f ${D}/usr/lib/libpopt*
+ rm -f ${D}/usr/include/popt.h
+ use nls && rm -f ${D}/usr/share/locale/*/LC_MESSAGES/popt.mo
+ rm -f ${D}/usr/share/man/man3/popt*
+
+ keepdir /var/lib/rpm
+ keepdir /usr/src/pc/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
+ keepdir /usr/src/pc/RPMS/{noarch,i{3,4,5,6}86,athlon}
+ keepdir /usr/src/pc
+ dodoc CHANGES CREDITS GROUPS README* RPM* TODO
+
+ use nls || rm -rf ${D}/usr/share/man/{ko,ja,fr,pl,ru,sk}
+
+ # create /usr/src/redhat/ and co for rpmbuild
+ for d in /usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}; do
+ dodir "${d}"
+ done
+}
+
+pkg_postinst() {
+ if [ -f ${ROOT}/var/lib/rpm/Packages ]; then
+ einfo "RPM database found... Rebuilding database (may take a while)..."
+ ${ROOT}/usr/bin/rpm --rebuilddb --root=${ROOT}
+ else
+ einfo "No RPM database found... Creating database..."
+ ${ROOT}/usr/bin/rpm --initdb --root=${ROOT}
+ fi
+
+ python_version
+ python_mod_optimize /usr/lib/python${PYVER}/site-packages/rpmdb
+}
+
+pkg_postrm() {
+ python_version
+ python_mod_cleanup
+}