diff options
author | Stefan Jones <cretin@gentoo.org> | 2003-10-21 17:33:18 +0000 |
---|---|---|
committer | Stefan Jones <cretin@gentoo.org> | 2003-10-21 17:33:18 +0000 |
commit | 749541a0643dffe9348a1d0d7e357654f1015478 (patch) | |
tree | da7cd566837989ba4306c6e07e713dda3b868b4b /app-arch | |
parent | ppc related fix (diff) | |
download | historical-749541a0643dffe9348a1d0d7e357654f1015478.tar.gz historical-749541a0643dffe9348a1d0d7e357654f1015478.tar.bz2 historical-749541a0643dffe9348a1d0d7e357654f1015478.zip |
/tmp/cvsbXjlqh
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/rpm/ChangeLog | 7 | ||||
-rw-r--r-- | app-arch/rpm/files/digest-rpm-4.2.1 | 1 | ||||
-rw-r--r-- | app-arch/rpm/rpm-4.2.1.ebuild | 84 |
3 files changed, 91 insertions, 1 deletions
diff --git a/app-arch/rpm/ChangeLog b/app-arch/rpm/ChangeLog index bda6870f00a0..87d052999089 100644 --- a/app-arch/rpm/ChangeLog +++ b/app-arch/rpm/ChangeLog @@ -1,10 +1,15 @@ # ChangeLog for app-arch/rpm # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.25 2003/09/20 05:05:53 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.26 2003/10/21 17:33:18 cretin Exp $ 20 Sep 2003; Marius Mauch <genone@gentoo.org> rpm-4.2_pre069.ebuild: added /usr/src/redhat directories for rpmbuild +*rpm-4.2.1 (20 Oct 2003) + + 20 Oct 2003; Stefan Jones <cretin@gentoo.org> : + New version from rawhide, rpm-4.2.1-0.30 + *rpm-4.2_pre069 (14 Apr 2003) 14 Apr 2003; Stefan Jones <cretin@gentoo.org> : diff --git a/app-arch/rpm/files/digest-rpm-4.2.1 b/app-arch/rpm/files/digest-rpm-4.2.1 new file mode 100644 index 000000000000..ecef163f4695 --- /dev/null +++ b/app-arch/rpm/files/digest-rpm-4.2.1 @@ -0,0 +1 @@ +MD5 136bf6e4b905f830fc6a7bdd76871c0a rpm-4.2.1.tar.gz 8449073 diff --git a/app-arch/rpm/rpm-4.2.1.ebuild b/app-arch/rpm/rpm-4.2.1.ebuild new file mode 100644 index 000000000000..70e85ee24ad2 --- /dev/null +++ b/app-arch/rpm/rpm-4.2.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-4.2.1.ebuild,v 1.1 2003/10/21 17:33:18 cretin Exp $ + +inherit flag-o-matic libtool eutils + +DESCRIPTION="Red Hat Package Management Utils" +SRC_URI="mirror://gentoo/rpm-4.2.1.tar.gz" +HOMEPAGE="http://www.rpm.org/" +SLOT="0" +LICENSE="GPL-2 LGPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" +IUSE="nls python doc" +RDEPEND="=sys-libs/db-3.2* + >=sys-libs/zlib-1.1.3 + >=sys-apps/bzip2-1.0.1 + >=dev-libs/popt-1.7 + >=app-crypt/gnupg-1.2 + dev-libs/elfutils + dev-libs/beecrypt + nls? ( sys-devel/gettext ) + python? ( =dev-lang/python-2.2* ) + doc? ( app-doc/doxygen )" +S=${WORKDIR}/rpm-4.2.1 + +strip-flags + +src_unpack() { + unpack ${A} +} + +src_compile() { + elibtoolize + + unset LD_ASSUME_KERNEL + local myconf + myconf="--enable-posixmutexes --without-javaglue" + use python \ + && myconf="${myconf} --with-python=2.2" \ + || 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 + 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 /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 COPYING 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 +} |