diff options
-rw-r--r-- | app-arch/rpm/Manifest | 2 | ||||
-rw-r--r-- | app-arch/rpm/rpm-4.4.7-r3.ebuild | 257 |
2 files changed, 0 insertions, 259 deletions
diff --git a/app-arch/rpm/Manifest b/app-arch/rpm/Manifest index c115477a496f..6a5376530fe0 100644 --- a/app-arch/rpm/Manifest +++ b/app-arch/rpm/Manifest @@ -11,7 +11,6 @@ AUX rpm-4.4.7-qa-fix-undefined.patch 776 RMD160 895ab185d15c94890ed8f2a34bf4f6b5 AUX rpm-4.4.7-qa-implicit-function-to-pointer.patch 604 RMD160 f87086379c28fa878c94dbcd6855af82ee852caf SHA1 61079e3109a41c639015f312603ea43ae49a5bb7 SHA256 a8f12898b8ddba5d7dcc70c1128a2b27dd729c7fe2247450cca068bfa68f1d65 AUX rpm-4.4.7-stupidness.patch 5268 RMD160 631f1bf3dc4553e27dec4a901fa84e17ffc7c7c9 SHA1 e957a9a549fa1ec52b449b1e8fc3ea14af7b7a09 SHA256 e563657e648e9b5ecfc0a653d7515f93db7785ec6867c81591663213965c0850 DIST rpm-4.4.6.tar.gz 17157249 RMD160 6b433d20a63fb2542244ae62eff0a8b5fe290439 SHA1 33221f95189671d1a083b4f140bcf9a88ecd4374 SHA256 1e1da50af2b9dfe34c79315eae7520e7e57087671e17ce26107d779ae2b0b595 -DIST rpm-4.4.7-patches-1.tar.gz 48537 RMD160 9baaf952fa105bc2a51241eac89ff28ffd2378a0 SHA1 4ee1557645e33cfaa222ce4246c06c279300b93e SHA256 1444dc2eb7c07953bd5e0857d6d9db3817a692308729288d3acd84910abdb4a4 DIST rpm-4.4.7.tar.gz 14125623 RMD160 9002eb0fe1d680d8bff447d6918f9726c9a4e34c SHA1 b119fb0f10fd5e2eb330ba547b6a89e40f3c0e68 SHA256 18fde4195e4ac21a4290327336948f8c4fc58a680395edbb5f2f31bae67b18b5 DIST rpm-5.0.0.tar.gz 8990824 RMD160 a10793c9a776dd1478b0675914a71f46eb5e2999 SHA1 df5fbaf2e729a0d3ea101a17c86b6a7fc3d00a05 SHA256 d3424770f3db6c79dda76e01155134065f28c046ea8a18a173e74070ec6e3b17 DIST rpm-5.0.3.tar.gz 9337992 RMD160 d26cdfef5a3bf18442e1825d810afb32bcfa2161 SHA1 d3461710de17a8f7dc3e49371d7edf620b10c27e SHA256 224d15c52511b453b2a63e6447b279a622c03af5fe373a67757979f4d00cd042 @@ -22,7 +21,6 @@ EBUILD rpm-4.4.6-r5.ebuild 3099 RMD160 8d0ca6d53973cd1aa1624bd2bc2e5691a96b3190 EBUILD rpm-4.4.6-r6.ebuild 3091 RMD160 51a569010ed808bb5d19ad0f180c329079d10f17 SHA1 7aa4247307e8627c66b4e88f1ee209a4e0355082 SHA256 5169311fd0e3a4d3d1c0ea7b2ceaa2d6df6441d78598d4bdc2eb92f2256cdf7b EBUILD rpm-4.4.7-r1.ebuild 2794 RMD160 c5afdbf9fe52b9bf4c48eaedd2d9886af90e900d SHA1 e415019dc31032c80e5ab9e127f66dc4f9e413b2 SHA256 7a1bdd8bf0541ad1c58e0c3b19f3c4fed15df017496d977c92c361fb4d8971e3 EBUILD rpm-4.4.7-r2.ebuild 2989 RMD160 937b40114e5acfd171618b6649619175438e8ac6 SHA1 9da20fb85c32d3a28a9061bf99f86e0e6d02f505 SHA256 c02f8f206b8dfbccca95e31b45cac223cb57bff79ba7160d2a3c757bd728fe57 -EBUILD rpm-4.4.7-r3.ebuild 8214 RMD160 0e71469a760703011281b1ee5e0ad42749eef15a SHA1 9ad8466b1df65eeecd6579d41475065598e45bef SHA256 6caa28c3d917e084074637cfc567ffdbb2386667a9c7880da6c80e2f4e3aaac0 EBUILD rpm-4.4.7-r4.ebuild 3048 RMD160 e57970a521474ef5009025bc36f60faec001b4fc SHA1 fd1dd85e46df1150b4b9b2e0f09a290793cd20d9 SHA256 28b82da49b98ddb8cc669459bc1ea53194c0943b4054f9cfa44c0b9ad402cc9a EBUILD rpm-5.0.0.ebuild 2732 RMD160 bb1da5416a4869216a186e6868f253b8a0d6f7d6 SHA1 736d093a2030df32ad8c1e7ff5fc93f0e6d5f55f SHA256 ed8e918b9d471f0e03f16546f310f9d5742ed84e2d2f6730214531c8f8bacca2 EBUILD rpm-5.0.3.ebuild 2744 RMD160 9e14596237701e20ec280e28e80ec792209111b2 SHA1 22b99f7d7f177f6143daae9e637200696ea1a619 SHA256 52123909c2bfb4e80706c6c7533a64f608fcfcb51678790d82ede4eef61cc531 diff --git a/app-arch/rpm/rpm-4.4.7-r3.ebuild b/app-arch/rpm/rpm-4.4.7-r3.ebuild deleted file mode 100644 index 19f306be766e..000000000000 --- a/app-arch/rpm/rpm-4.4.7-r3.ebuild +++ /dev/null @@ -1,257 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-4.4.7-r3.ebuild,v 1.4 2007/12/09 04:50:43 vapier Exp $ - -inherit eutils autotools distutils gnuconfig toolchain-funcs flag-o-matic - -DESCRIPTION="Red Hat Package Management Utils" -HOMEPAGE="http://www.rpm.org/" -SRC_URI="http://wraptastic.org/pub/rpm-4.4.x/${P}.tar.gz - http://dev.gentoo.org/~sanchan/patches/rpm-4.4.7-patches-1.tar.gz" - -LICENSE="GPL-2 LGPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="berkdb doc elibc_uclibc java lua minimal nls perl python sqlite threads debug" -GUID="37" - -RDEPEND="berkdb? ( >sys-libs/db-4 ) - >=sys-libs/zlib-1.2.3-r1 - >=app-arch/bzip2-1.0.1 - >=dev-libs/popt-1.7 - >=app-crypt/gnupg-1.2 - elibc_glibc? ( dev-libs/elfutils ) - virtual/libintl - >=dev-libs/beecrypt-4.1.2 - python? ( >=dev-lang/python-2.2 ) - perl? ( >=dev-lang/perl-5.8.8 ) - nls? ( sys-devel/gettext ) - sqlite? ( >=dev-db/sqlite-3.3.5 ) - net-misc/neon" -# lua? ( dev-lang/lua ) -DEPEND="${RDEPEND} - nls? ( sys-devel/gettext ) - doc? ( app-doc/doxygen )" - -pkg_setup() { - if use perl; then - ewarn "Perl bindings are provided by perl module RPM2. Just run:" - ewarn "emerge app-portage/g-cpan" - ewarn "g-cpan -i RPM2" - ewarn "or if you prefer:" - ewarn "g-cpan -i RPM4" - fi - if ! (use berkdb || use sqlite) ; then - ewarn "Haven't chosen any database format, either berkdb or sqlite" - ewarn "have to be used!" - die - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/rpm-4.4.6-with-sqlite.patch - epatch "${FILESDIR}"/rpm-4.4.7-stupidness.patch - epatch "${FILESDIR}"/rpm-4.4.6-autotools.patch - epatch "${FILESDIR}"/rpm-4.4.6-buffer-overflow.patch - epatch "${WORKDIR}"/${P}-openpkg.bugfix.patch - epatch "${WORKDIR}"/${P}-openpkg.porting.patch - epatch "${WORKDIR}"/${P}-openpkg.feature.patch - epatch "${WORKDIR}"/${P}-libintl.patch - epatch "${FILESDIR}"/rpm-4.0.4-sandbox.patch - epatch "${WORKDIR}"/${P}-zdefs.patch - epatch "${WORKDIR}"/${P}-zdefs-x_functions.patch - epatch "${WORKDIR}"/${P}-uclibc-nolibio.patch - epatch "${WORKDIR}"/${P}-uclibc-no__fxstat64.patch - epatch "${WORKDIR}"/${P}-fix-exec_prefix.patch - - epatch "${WORKDIR}"/${P}-no_threads.patch - epatch "${WORKDIR}"/${P}-no_threads2.patch - epatch "${WORKDIR}"/${P}-with-threads.patch - - epatch "${WORKDIR}"/${P}-gentoo.patch - epatch "${WORKDIR}"/${P}-fix-redhat.patch - epatch "${FILESDIR}"/rpm-4.0.4-gentoo-uclibc.patch - - #epatch "${WORKDIR}"/${P}-external_db.patch - #epatch "${WORKDIR}"/${P}-external_db2.patch - #epatch "${WORKDIR}"/${P}-external_db3.patch - - epatch "${WORKDIR}"/${P}-no_lua.patch - epatch "${FILESDIR}"/${P}-qa-implicit-function-to-pointer.patch - epatch "${FILESDIR}"/${P}-qa-fix-undefined.patch - - cp autodeps/linux.req autodeps/linux-uclibc.req - cp autodeps/linux.prov autodeps/linux-uclibc.prov - - # rpm uses AM_GNU_GETTEXT() but fails to actually - # include any of the required gettext files - # the gettext files exist only if gettext is installed (not on uClibc) - if use nls ; then - cp /usr/share/gettext/config.rpath . || die - else - epatch "${FILESDIR}"/${P}-config.rpath.patch - sed -i -e '/AM_GNU_GETTEXT/d' configure.ac - sed -i -e '/^SUBDIRS/s:po::' Makefile.am - fi - if use elibc_uclibc ; then - sed -i 's:--enable-rpc:--disable-rpc:' db3/configure - sed -i 's:rpmdb_svc rpmdb_stat:rpmdb_stat:' rpmdb/Makefile.am - fi - - # the following are additional libraries that might be packaged with - # the rpm sources. grep for "test -d" in configure.ac - cp file/src/{file,patchlevel}.h tools/ - rm -rf beecrypt elfutils neon popt sqlite zlib intl file syck tools perl - use lua || rm -rf lua - - sed -i -e "s:intl ::" Makefile.am - sed -i -e "s:intl/Makefile ::" configure.ac - use nls || sed -i -e "s:@INTLLIBS@::" lib/Makefile.am - sed -i -e '/lua\/Makefile/d' configure.ac - sed -i -e '/syck\/Makefile/d' -e '/syck\/lib\/Makefile/d' configure.ac - sed -i -e '/tools\/Makefile/d' configure.ac - sed -i -e '/^SUBDIRS/s:tools scripts:scripts:' Makefile.am - - gnuconfig_update - AT_NO_RECURSIVE="yes" eautoreconf - # TODO: make it work with external lua too -} - -src_compile() { - # Until strict aliasing is porperly fixed... - filter-flags -fstrict-aliasing - append-flags -fno-strict-aliasing - use debug && append-flags -g2 -ggdb && filter-flags -fomit-frame-pointer - - # we use arch-gentoo-linux-{gnu,uclibc} tuple - export CHOST="${CHOST//-pc-/-gentoo-}" - export CHOST="${CHOST//-unknown-/-gentoo-}" - - local myconf - if use threads ; then - myconf="--with-threads --enable-posixmutexes" - else - #myconf="--without-threads --disable-posixmutexes --with-mutex=\"UNIX/fcntl\"" - myconf="--without-threads --disable-posixmutexes" - fi - if use berkdb ; then - myconf="${myconf} --with-db" - else - myconf="${myconf} --without-db" - fi - if use minimal ; then - # it does not work with berkdb, hash method is missing - if use berkdb ; then - myconf="${myconf} --disable-cryptography --disable-queue --disable-replication --disable-verify" - else - myconf="${myconf} --enable-smallbuild" - fi - fi - - python_version - econf ${myconf} \ - --without-javaglue \ - --without-selinux \ - --without-syck \ - --without-perl \ - $(use_with lua) \ - $(use_with python python ${PYVER}) \ - $(use_with doc apidocs) \ - $(use_with sqlite) \ - $(use_enable nls) \ - || die "econf failed" - emake -j1 || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - mv "${D}"/bin/rpm "${D}"/usr/bin - rmdir "${D}"/bin - - use nls || rm -rf "${D}"/usr/share/man/?? - - keepdir /etc/rpm - keepdir /var/spool/repackage - keepdir /var/lib/rpm - local dbi - for dbi in \ - Basenames Conflictname Dirnames Group Installtid Name Packages \ - Providename Provideversion Requirename Requireversion Triggername \ - Filemd5s Pubkeys Sha1header Sigmd5 Depends \ - __db.001 __db.002 __db.003 __db.004 __db.006 __db.007 \ - __db.008 __db.009 - do - touch "${D}"/var/lib/rpm/${dbi} - done - keepdir /usr/src/gentoo/{SRPMS,SPECS,SOURCES,RPMS,BUILD} - keepdir /usr/src/gentoo/RPMS/noarch - keepdir /usr/src/gentoo/RPMS/$(tc-arch) - local x - if [[ $(tc-arch) == "x86" ]] ; then - for x in athlon i386 i486 i586 i686 pentium3 pentium4 ; do - keepdir /usr/src/gentoo/RPMS/${x} - done - #else - #[[ $(tc-arch) == "ppc64" ]] && keepdir /usr/src/gentoo/RPMS/ppc - fi - - dodoc CHANGES CREDITS GROUPS README* RPM* - use doc && dohtml -r apidocs/html/* - - # remove development stuff - rm -rf "${D}"/usr/include - rm -f "${D}"/usr/lib/lib*.*a - rm -f "${D}"/usr/lib/rpm/rpmcache - rm -f "${D}"/usr/bin/rpmgraph - rm -f "${D}"/usr/share/man/man*/rpmcache* - rm -f "${D}"/usr/share/man/man*/rpmgraph* - # remove unneeded links - rm -f "${D}"/usr/bin/rpm? - # remove unused utilities/files - #rm -f "${D}"/usr/lib/rpm/rpm.{daily,log,xinetd} - rm -f "${D}"/usr/lib/rpm/rpm.xinetd - [[ $(tc-arch) != "sparc64" ]] && rm -f "${D}"/usr/lib/rpm/*sparc64* - use java || rm -f "${D}"/usr/lib/rpm/*java* - dodir /etc/logrotate.d - mv "${D}"/usr/lib/rpm/rpm.log "${D}"/etc/logrotate.d/rpm - dodir /etc/cron.daily - mv "${D}"/usr/lib/rpm/rpm.daily "${D}"/etc/cron.daily/rpm - # remove unused requirement checks - rm -f "${D}"/usr/lib/rpm/{tcl,sql}.* - # misc - rm -f "${D}"/usr/lib/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi} - # disable automatic perl requirements - # puts too much info into db - chmod 644 "${D}"/usr/lib/rpm/perl.req - - for magic_file in "magic.mime.mgc" "magic.mgc" "magic.mime" "magic"; do - dosym /usr/share/misc/file/${magic_file} /usr/lib/rpm/${magic_file} - done - - dodir /etc/env.d - echo 'CONFIG_PROTECT_MASK="/var/lib/rpm"' > "${D}"/etc/env.d/50rpm -} - -pkg_preinst() { - enewgroup ${PN} ${GUID} - enewuser ${PN} ${GUID} /bin/bash /var/lib/rpm rpm -} - -pkg_postinst() { - chown -R rpm:rpm ${ROOT}/usr/lib/rpm - chown -R rpm:rpm ${ROOT}/var/lib/rpm - chown rpm:rpm ${ROOT}/usr/bin/rpm{,2cpio,build,db,query,sign,verify} - 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 - chown rpm:rpm ${ROOT}/var/lib/rpm/* - - distutils_pkg_postinst -} |