Portage is a package management system used by Gentoo Linux
# ChangeLog for app-arch/rpm
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.91 2008/05/31 16:18:57 loki_val Exp $
*rpm-4.4.6-r6 (31 May 2008)
31 May 2008; Peter Alfredsen
Version bump for >=sys-libs/db-4 wrt bug 218489
*rpm-4.4.7-r4 (20 May 2008)
*rpm-4.4.6-r5 (20 May 2008)
20 May 2008; Vlastimil Babka
+files/rpm-4.4.6-neon-0.28.patch, +rpm-4.4.6-r5.ebuild,
+rpm-4.4.7-r4.ebuild:
Revbumps to update to neon 0.28 API, patch by Honza Machacek
don't have neon 0.28 keyworded. 4.4.6-r5 is based on -r4. 4.4.7-r4 on -r2
- the p.masked -r3 was skipped.
*rpm-5.0.3 (30 Mar 2008)
30 Mar 2008; Mike Frysinger
Version bump #213306 by Sandro Bonazzola.
11 Mar 2008;
Drop to ~mips due to unstable deps
*rpm-5.0.0 (05 Jan 2008)
05 Jan 2008; Mike Frysinger
Version bump #204443 by Andrey Falko.
*rpm-5.0_beta4 (31 Dec 2007)
31 Dec 2007; Mike Frysinger
Version bump #203913 by Andrey Falko.
*rpm-5.0_beta3 (23 Dec 2007)
23 Dec 2007; Mike Frysinger
Version bump #203054 by Andrey Falko and fix install paths #202772 by Sandro
Bonazzola.
*rpm-5.0_beta2 (16 Dec 2007)
16 Dec 2007; Mike Frysinger
Version bump #202393 by Andrey Falko.
*rpm-5.0_beta1 (10 Dec 2007)
10 Dec 2007; Mike Frysinger
Version bump.
09 Dec 2007; Mike Frysinger
Version bump #190132 by Andrey Falko.
*rpm-5.0_alpha4 (09 Dec 2007)
09 Dec 2007; Mike Frysinger
Version bump #190132 by Andrey Falko.
05 Oct 2007; Ferris McCormick
Adding ~sparc for testing (because masked as well for testing ---
FEATURES=test fails some tests).
05 Mar 2007; Sandro Bonazzola
Removing myself from metadata.xml as I'm stepping back.
*rpm-4.4.7-r3 (12 Feb 2007)
*rpm-4.4.6-r4 (12 Feb 2007)
12 Feb 2007; Sandro Bonazzola
+files/rpm-4.4.6-qa-fix-undefined.patch,
+files/rpm-4.4.7-qa-fix-undefined.patch,
+files/rpm-4.4.7-qa-implicit-function-to-pointer.patch,
+rpm-4.4.6-r4.ebuild, rpm-4.4.7-r2.ebuild, +rpm-4.4.7-r3.ebuild:
ebuild bump trying to increase QA level of this package as per bug #162447.
Added a workaround trying to fix bug #153292. Thanks to Marti Raudsepp
for reporting. Thanks to Jeff Johnson
for their help.
*rpm-4.4.7-r2 (16 Jan 2007)
16 Jan 2007; Sandro Bonazzola
+files/rpm-4.0.4-gentoo-uclibc.patch, +files/rpm-4.0.4-sandbox.patch,
+files/rpm-4.4.7-config.rpath.patch, +rpm-4.4.7-r2.ebuild:
New ebuild with a lot of fixes and enhancements from Peter S. Mazinger
*rpm-4.4.7-r1 (06 Nov 2006)
*rpm-4.4.6-r3 (06 Nov 2006)
06 Nov 2006; Sandro Bonazzola
+rpm-4.4.6-r3.ebuild, -rpm-4.4.7.ebuild, +rpm-4.4.7-r1.ebuild,
+files/rpm-4.4.6-buffer-overflow.patch, metadata.xml:
Security fix from upstream, patch from
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=139715. Should fix
bug #154218.
Re-taking over maintainership.
26 Oct 2006; Peter Volkov
herd tag in metadata.xml is required. Returning it back.
25 Oct 2006; Sandro Bonazzola
Taking over maintainership.
17 Oct 2006; Mike Frysinger
files/rpm-4.4.6-stupidness.patch, files/rpm-4.4.6-with-sqlite.patch,
files/rpm-4.4.7-stupidness.patch, rpm-4.4.6-r2.ebuild, rpm-4.4.7.ebuild:
Clean up patches and ebuilds.
*rpm-4.4.7 (17 Oct 2006)
17 Oct 2006; Peter Volkov
+files/rpm-4.4.7-stupidness.patch, +rpm-4.4.7.ebuild:
Version bump. zlib version in dependencies raised because of bug #149929.
*rpm-4.4.6-r2 (17 Oct 2006)
17 Oct 2006; Peter Volkov
files/rpm-4.4.6-stupidness.patch, metadata.xml, -rpm-4.4.6-r1.ebuild,
+rpm-4.4.6-r2.ebuild:
Hopefully bug #151025 is fixed. Also removed herd tag from metadata.xml
because we do not need to add herd tag if package does not belong to any
herd.
*rpm-4.4.6-r1 (16 Oct 2006)
16 Oct 2006; Mike Frysinger
files/rpm-4.4.6-stupidness.patch, +rpm-4.4.6-r1.ebuild:
Fix typo in libdir change #151025 by Giovanni.
15 Oct 2006; Bryan Ăstergaard
Stable on ia64.
14 Oct 2006; Aron Griffis
Mark 4.4.6 stable on ia64
08 Oct 2006; Mike Frysinger
+files/rpm-4.4.6-stupidness.patch, rpm-4.4.6.ebuild:
Cleanup build system.
01 Oct 2006; Tobias Scherbaum
hppa stable, bug #140721
30 Aug 2006; Michael Hanselmann
Stable on ppc.
20 Aug 2006; Jason Wever
Stable on SPARC.
15 Aug 2006; Christian Hartmann
Fix perllocal.pod file collision - thanks kallamej
15 Aug 2006; Joshua Jackson
Stable x86; bug #143316
09 Aug 2006; Brent Baude
Marking rpm-4.2-r2 ppc64 stable for bug #140721
09 Aug 2006; Danny van Dyk
Marked stable wrt bug #140721.
19 Jul 2006; Joshua Jackson
Stable x86; bug #140721
*rpm-4.4.6 (09 Jul 2006)
09 Jul 2006; Stefan Schweizer
+files/rpm-4.4.6-with-sqlite.patch, +rpm-4.4.6.ebuild:
Version bump thanks to Sandro
139388
*rpm-4.4.1-r1 (10 Jun 2006)
10 Jun 2006; Chris Bainbridge
Mark ~x86 #135854. Add DEPEND on neon #135760.
*rpm-4.4.1 (03 Jun 2006)
03 Jun 2006; Luca Barbato
+files/rpm-4.4.1-ubuntu-fixup.patch, +rpm-4.4.1.ebuild:
New version, hopefully builds
27 Apr 2006; Alec Warner
files/digest-rpm-4.2, files/digest-rpm-4.2.1, Manifest:
Fixing duff SHA256 digests: Bug # 131293
*rpm-4.2-r2 (03 Mar 2006)
03 Mar 2006; Stefan Jones
rpm does not need db-3.2 Thanks to Marco at bug #99354
17 Feb 2006; Diego Pettenò
rpm-4.2.ebuild, rpm-4.2-r1.ebuild, rpm-4.2.1.ebuild:
Make doxygen and gettext build-time dependencies only. Add metadata for
maintainer-needed.
29 Jan 2006; Mark Loeser
rpm-4.2-r1.ebuild:
Add patch to fix compilation with gcc-4; bug #118858
25 Aug 2005; Brent Baude
rpm-4.2.1.ebuild:
Marking rpm-4.2.ebuild, which was ppc64, -ppc64 because it does not compile.
Confirmed with dostrow as well. This is in bug #102305. Then marking
rpm-4.2-r1.ebuild as stable ppc64.
03 Jul 2005; Hardave Riar
Stable on mips, dep for bug #91792.
*rpm-4.2-r1 (12 May 2005)
12 May 2005; Herbie Hopkins
rpm-4.2.1.ebuild:
4.2-r1 fixes bug #81982, marked 4.2.1 -amd64 per cretins request.
10 May 2005; Aron Griffis
Revert blubb's patch which breaks rpm run-time on all arches
09 Apr 2005; Simon Stelling
+files/rpm-4.2.1-lib64.patch, rpm-4.2.1.ebuild:
applied Chris Parrott's patch to fix bug #81982
06 Apr 2005; Markus Rothe
Stable on ppc64
17 Feb 2005; Markus Rothe
Added ~ppc64 to KEYWORDS
29 Dec 2004; Ilya A. Volynets-Evenbach
rpm-4.2.1.ebuild:
mark ~mips
05 Nov 2004; Stefan Jones
Patch so -fpie compiles (ie. gentoo hardened gcc)
*rpm-4.2 (23 Oct 2004)
23 Oct 2004; Stefan Jones
Use the rpm source code from rpm.org not some random RedHat snapshot.
Mark stable on x86 and mask 4.2.1 on x86 for proper testing!
11 Apr 2004; Stefan Jones
Mark as stable for all archs
07 Apr 2004; Aron Griffis
rpm-4.2_pre069.ebuild:
Versions of rpm prior to 4.2.1 need to conflict with beecrypt, fixes bug 45577
12 Mar 2004; Michael Sterrett
rpm-4.2_pre069.ebuild:
mips needs deps first; header fix
25 Feb 2004; Daniel Ahlberg
Stable on amd64. Closing #40435.
25 Jan 2004; Alastair Tse
files/rpm-4.2-python2.3.diff:
Using python eclass to choose python version, optimize/remove pyc/pyo, added
py2.3 patch thanks to Vaclav Slavik
15 Jan 2004;
stable on alpha and ia64
29 Nov 2003; Brad House
rpm-4.2.1.ebuild:
amd64 flags
14 Nov 2003;
changed mips in ~mips
13 Nov 2003;
added mips to KEYWORDS
12 Nov 2003; Aron Griffis
Add ~alpha now that beecrypt is building correctly for alpha.
Change dep to >=dev-libs/beecrypt-3.1.0-r1 since that is required for a good
alpha build.
27 Oct 2003; Aron Griffis
Remove ~alpha KEYWORD until bug 31200 is resolved
20 Sep 2003; Marius Mauch
added /usr/src/redhat directories for rpmbuild
*rpm-4.2.1 (20 Oct 2003)
20 Oct 2003; Stefan Jones
New version from rawhide, rpm-4.2.1-0.30
*rpm-4.2_pre069 (14 Apr 2003)
14 Apr 2003; Stefan Jones
New version shipped with RH 9.0, named rpm-4.2-0.69
*rpm-4.2 (6 Mar 2003)
14 Apr 2003; Stefan Jones
Removed from portage for naming violation.
28 Mar 2003; Alastair Tse
elibtoolize for librpmdb librpmio and friends
28 Mar 2003; Pieter Van den Abeele
Mark stable on ppc
09 Mar 2003; Aron Griffis
Mark stable on alpha
7 Mar 2003; Stefan Jones
Added dev-libs/elfutils to DEPEND
6 Mar 2003; Stefan Jones
Newest rpm available from redhat rawhide. Seems to work fine.
*rpm-4.0.4-r5 (28 Feb 2003)
15 Jul 2003; Jan Seidel
Mark stable on mips
6 Mar 2003; Stefan Jones
Marked as stable as it fixes the bug.
28 Feb 2003; Stefan Jones
Fixed bug #15621 with homemade patch.
*rpm-4.1 (19 Feb 2003)
19 Feb 2003; Nick Hadaway
files/digest-rpm-4.1, files/rpm-4.1-system-popt.diff :
Package builds. rpm doesn't run. All are -arch. This has
been added to portage so people can test and maybe find a
fix. Pwease?
*rpm-4.0.4-r4 (12 Oct 2002)
12 Jan 2003; Seemant Kulleen
Filtered out -fPIC from user's CFLAGS. Thanks to
jwarren@cheesefoam.dyndns.org (Jeremy Warren) in bug #13784.
06 Dec 2002; Rodney Rees
12 Oct 2002; Bruce A. Locke
Remove dead symlink (bug #8578) and ebuild no longer blindly creates
a database if one already exists.
*rpm-4.0.4-r3 (23 Jul 2002)
14 Sep 2002; Maarten Thibaut
This package can not compile on sparc64 without a --host option to configure,
so I added that flag. Revamped ChangeLog layout according to new guidelines.
07 Sep 2002; Seemant Kulleen
This package can not compile with autoconf-2.53a, so autoconf-2.1 is forced.
Thanks to: garion@garion.mnbsyr.com (John Sutherland) in bug #7595
23 Jul 2002; Seemant Kulleen
with RH tradition, this package requires bloat. As such, gettext is not optional,
it is _required_. Go figure. Takes care of part of bug #5425, as reported by:
Balaji Rangaswamy
*rpm-4.0.4-r2 (29 Jun 2002)
15 Jul 2002; Owen Stampflee
KEYWORDS.
29 May 2002; Jon Nelson
db dependency too strict
*rpm-4.0.4-r1 (13 May 2002)
13 May 2002; Dan Armak
use the system libpopt (dev-libs/popt) instead of installing its own.
*rpm-4.0.4 (23 April 2002)
23 April 2002; Bart Verwilst
version, keeping the previous one for now..
*rpm-3.0.6-r1 (1 Feb 2002)
1 Feb 2002; G.Bevin
which should be updated whenever the package is updated in any way. This
changelog is targetted to users. This means that the comments should well
explained and written in clean English. The details about writing correct
changelogs are explained in the skel.ChangeLog file which you can find in
the root directory of the portage repository.
AUX rpm-4.0.4-gentoo-uclibc.patch 1418 RMD160 b2b89f401c6f6f3d275e4666312555a3ad6ffbeb SHA1 673ea952b741a140f9f20a24282589ef4f2a1198 SHA256 8671a390a1e1673e0415f8a4da96d0b8234d870d02d4e28b28d735dc35e49cf7
AUX rpm-4.0.4-sandbox.patch 938 RMD160 95dad47ac3b18213a271657db643ca3188c2d208 SHA1 96ae471af884a0b4abbe6cbdcc55b62e58683bd6 SHA256 d10e4674993bbfd3294837639a3cfbd2cda443fad3486ef15ee695c2f0f80651
AUX rpm-4.4.6-autotools.patch 660 RMD160 63155d3737ffdf9927b1763ddf068c5964e168c9 SHA1 70dd2346df0e5d95ec4a06587485381b48d52b81 SHA256 dd4828899e760358b702d0c2ca75e781619f7b65140cf2cc5600ea687a085569
AUX rpm-4.4.6-buffer-overflow.patch 1952 RMD160 468c71731ec6893de165b4e1047f85f5b240f2f7 SHA1 dc41417f4064eb9476de9ef51e616042e55e5f73 SHA256 6ae715632dabd6cc6c24a92312ac22c1bd57235ff2f027f68943df68dcfc957b
AUX rpm-4.4.6-neon-0.28.patch 2393 RMD160 7cc24ef31e46682bffa57721e18299c4a9b74637 SHA1 14dd947d44150caa89b58991ed7dbdd358152c3e SHA256 e7b9c177a4ff8027f731ae54b2d6a836ea7be3e6eca92b704dbe30b33b8166c4
AUX rpm-4.4.6-qa-fix-undefined.patch 553 RMD160 647b19a10c86850873d65b5a65c2530d5a44ed54 SHA1 75e1bb924ed57f3b0ef7776551c3d782a9121904 SHA256 1c72bb60b4c9af6b0c366debe7276f948308e777ff6fef090bb778d9bc724a06
AUX rpm-4.4.6-stupidness.patch 4992 RMD160 d8f0e831599a72e6224e19a568fffadd999ebc4a SHA1 317f19c9f181ca2cd40d832536c458884bb5b279 SHA256 84af6ddab50982e15df90d2c7895ecd0f0b568caa6cd0af57ce33e1af784b4a7
AUX rpm-4.4.6-with-sqlite.patch 517 RMD160 0af724f63b528aabd05f4bcf2d4c4830ebdf98d2 SHA1 0a22207c6bd4114aef4cc9cdca840e996fcf0297 SHA256 c84020fd6402c4d9bfddb554f251b4ac13c6ca151689070a7471e66c8f7bb6ac
AUX rpm-4.4.7-config.rpath.patch 16976 RMD160 cf2d7d781707cd8258eceec61b0fcecb93dcb9d2 SHA1 dbcfefe3c60ac53266e4b31806d9c41a26f4609d SHA256 13d1352f17676d0199c868192adae8d74ff2c59c9978ec5d6acf9a7d4bb5f73b
AUX rpm-4.4.7-qa-fix-undefined.patch 776 RMD160 895ab185d15c94890ed8f2a34bf4f6b54c8bfb61 SHA1 d16d4a491625d304e96ba85fda982011c9d6d946 SHA256 87a444e00328cd6d78391acdf58ac3ab57fa161241c944df173ac14b2cb025a4
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
EBUILD rpm-4.4.6-r3.ebuild 2774 RMD160 78caecc05338a6ac5cd1280d4fcc7a8346da62bf SHA1 85307e4d23ea07fafb8929e31b873086c1b5ace9 SHA256 021f9f32b65781e02991c0d4c4e55024234bd1d2b8193c56b658c8b62cc947c8
EBUILD rpm-4.4.6-r4.ebuild 3047 RMD160 39328127dcf0bde2792922fcf93e79219a000216 SHA1 2eceb86c44953c02b742bd22f61de0708ca8759f SHA256 87066e1d9594d9a2d3ece3a6f9f23090e89b4b7739acab525f25a4966ac3d558
EBUILD rpm-4.4.6-r5.ebuild 3099 RMD160 8d0ca6d53973cd1aa1624bd2bc2e5691a96b3190 SHA1 470c8fca1dc3103a255f0b49c78cd3c3b2ea94a1 SHA256 69cae71c0e2441bb54f45fefff84a034f6a8312bb9db0d6f100e609a06092298
EBUILD rpm-4.4.6-r6.ebuild 3099 RMD160 56523955c2dc7f0d1577876a40f2f977950d4a57 SHA1 ca682ff5b1ccf5a315e9d33734303f4694ac7937 SHA256 e1d6a9389df51137a333760541fd4ec9322a73bb25a8ab0b36de0c3df9d633aa
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 2732 RMD160 b6f3c4235495c738c186b5ca48a0b7b56c74d94f SHA1 87accb4d8065a7d1b8ddd945ef74feadbb06e2f9 SHA256 384c2c0c84ccae427bcb08f2188230ce342d11dabe538252ddc45fa1b29962bf
MISC ChangeLog 14282 RMD160 582a3ff89841b6664022fefcb5f1a54d67f3ca7e SHA1 4cf88f666574e4871f9878496eaa167f794119da SHA256 38b1981193495489a95253765980bb8132eee98e5cb5426e52bd5055779e4409
MISC metadata.xml 231 RMD160 c13056229989c3d4f448a7c7abcff3f4ee7ce13c SHA1 2d63dfb700b223f8f37c078692a81b2237896bce SHA256 4595c2615fd7c9095517949b1a920d4457f92801eb9d46307b18aafe58ec2a8a
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-4.4.6-r3.ebuild,v 1.3 2008/03/11 17:01:48 ricmm Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils autotools distutils perl-module
DESCRIPTION="Red Hat Package Management Utils"
HOMEPAGE="http://www.rpm.org/"
SRC_URI="http://wraptastic.org/pub/rpm-4.4.x/${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 perl doc sqlite"
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
virtual/libintl
>=dev-libs/beecrypt-3.1.0-r1
python? ( >=dev-lang/python-2.2 )
perl? ( >=dev-lang/perl-5.8.8 )
nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3.3.5 )
net-misc/neon"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/rpm-4.4.6-with-sqlite.patch
epatch "${FILESDIR}"/rpm-4.4.6-stupidness.patch
epatch "${FILESDIR}"/rpm-4.4.6-autotools.patch
epatch "${FILESDIR}"/rpm-4.4.6-buffer-overflow.patch
# rpm uses AM_GNU_GETTEXT() but fails to actually
# include any of the required gettext files
cp /usr/share/gettext/config.rpath . || die
# 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
sed -i -e "s:intl ::" Makefile.am
sed -i -e "s:intl/Makefile ::" configure.ac
AT_NO_RECURSIVE="yes" eautoreconf
# TODO Get rid of internal copies of lua, db and db3
}
src_compile() {
python_version
econf \
--enable-posixmutexes \
--without-javaglue \
--without-selinux \
$(use_with python python ${PYVER}) \
$(use_with doc apidocs) \
$(use_with perl) \
$(use_with sqlite) \
$(use_enable nls) \
|| die "econf failed"
emake || 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 /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
dodoc CHANGES CREDITS GROUPS README* RPM*
use doc && dohtml -r apidocs/html/*
# Fix perllocal.pod file collision
use perl && fixlocalpod
}
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
distutils_pkg_postinst
}
# 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.6-r4.ebuild,v 1.1 2007/02/12 19:44:53 sanchan Exp $
inherit eutils autotools distutils perl-module 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"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="nls python perl doc sqlite"
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
virtual/libintl
>=dev-libs/beecrypt-3.1.0-r1
python? ( >=dev-lang/python-2.2 )
perl? ( >=dev-lang/perl-5.8.8 )
nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3.3.5 )
net-misc/neon"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-with-sqlite.patch
epatch "${FILESDIR}"/${P}-stupidness.patch
epatch "${FILESDIR}"/${P}-autotools.patch
epatch "${FILESDIR}"/${P}-buffer-overflow.patch
epatch "${FILESDIR}"/${P}-qa-fix-undefined.patch
# rpm uses AM_GNU_GETTEXT() but fails to actually
# include any of the required gettext files
cp /usr/share/gettext/config.rpath . || die
# 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
sed -i -e "s:intl ::" Makefile.am
sed -i -e "s:intl/Makefile ::" configure.ac
AT_NO_RECURSIVE="yes" eautoreconf
# TODO Get rid of internal copies of lua, db and db3
}
src_compile() {
# Until strict aliasing is porperly fixed...
filter-flags -fstrict-aliasing
append-flags -fno-strict-aliasing
python_version
econf \
--enable-posixmutexes \
--without-javaglue \
--without-selinux \
$(use_with python python ${PYVER}) \
$(use_with doc apidocs) \
$(use_with perl) \
$(use_with sqlite) \
$(use_enable nls) \
|| die "econf failed"
emake || 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 /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
dodoc CHANGES CREDITS GROUPS README* RPM*
use doc && dohtml -r apidocs/html/*
# Fix perllocal.pod file collision
use perl && fixlocalpod
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
}
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
distutils_pkg_postinst
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-4.4.6-r5.ebuild,v 1.1 2008/05/20 07:44:25 caster Exp $
inherit eutils autotools distutils perl-module 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"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="nls python perl doc sqlite"
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
virtual/libintl
>=dev-libs/beecrypt-3.1.0-r1
python? ( >=dev-lang/python-2.2 )
perl? ( >=dev-lang/perl-5.8.8 )
nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3.3.5 )
>=net-misc/neon-0.28"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-with-sqlite.patch
epatch "${FILESDIR}"/${P}-stupidness.patch
epatch "${FILESDIR}"/${P}-autotools.patch
epatch "${FILESDIR}"/${P}-buffer-overflow.patch
epatch "${FILESDIR}"/${P}-qa-fix-undefined.patch
# bug 214799
epatch "${FILESDIR}"/${P}-neon-0.28.patch
# rpm uses AM_GNU_GETTEXT() but fails to actually
# include any of the required gettext files
cp /usr/share/gettext/config.rpath . || die
# 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
sed -i -e "s:intl ::" Makefile.am
sed -i -e "s:intl/Makefile ::" configure.ac
AT_NO_RECURSIVE="yes" eautoreconf
# TODO Get rid of internal copies of lua, db and db3
}
src_compile() {
# Until strict aliasing is porperly fixed...
filter-flags -fstrict-aliasing
append-flags -fno-strict-aliasing
python_version
econf \
--enable-posixmutexes \
--without-javaglue \
--without-selinux \
$(use_with python python ${PYVER}) \
$(use_with doc apidocs) \
$(use_with perl) \
$(use_with sqlite) \
$(use_enable nls) \
|| die "econf failed"
emake || 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 /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
dodoc CHANGES CREDITS GROUPS README* RPM*
use doc && dohtml -r apidocs/html/*
# Fix perllocal.pod file collision
use perl && fixlocalpod
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
}
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
distutils_pkg_postinst
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-4.4.6-r6.ebuild,v 1.1 2008/05/31 16:18:57 loki_val Exp $
inherit eutils autotools distutils perl-module 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"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="nls python perl doc sqlite"
RDEPEND=">=sys-libs/db-4
>=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
virtual/libintl
>=dev-libs/beecrypt-3.1.0-r1
python? ( >=dev-lang/python-2.2 )
perl? ( >=dev-lang/perl-5.8.8 )
nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3.3.5 )
>=net-misc/neon-0.28"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-with-sqlite.patch
epatch "${FILESDIR}"/${P}-stupidness.patch
epatch "${FILESDIR}"/${P}-autotools.patch
epatch "${FILESDIR}"/${P}-buffer-overflow.patch
epatch "${FILESDIR}"/${P}-qa-fix-undefined.patch
# bug 214799
epatch "${FILESDIR}"/${P}-neon-0.28.patch
# rpm uses AM_GNU_GETTEXT() but fails to actually
# include any of the required gettext files
cp /usr/share/gettext/config.rpath . || die
# 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
sed -i -e "s:intl ::" Makefile.am
sed -i -e "s:intl/Makefile ::" configure.ac
AT_NO_RECURSIVE="yes" eautoreconf
# TODO Get rid of internal copies of lua, db and db3
}
src_compile() {
# Until strict aliasing is porperly fixed...
filter-flags -fstrict-aliasing
append-flags -fno-strict-aliasing
python_version
econf \
--enable-posixmutexes \
--without-javaglue \
--without-selinux \
$(use_with python python ${PYVER}) \
$(use_with doc apidocs) \
$(use_with perl) \
$(use_with sqlite) \
$(use_enable nls) \
|| die "econf failed"
emake || 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 /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
dodoc CHANGES CREDITS GROUPS README* RPM*
use doc && dohtml -r apidocs/html/*
# Fix perllocal.pod file collision
use perl && fixlocalpod
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
}
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
distutils_pkg_postinst
}
# 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-r1.ebuild,v 1.2 2007/02/12 19:44:53 sanchan Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils autotools distutils perl-module
DESCRIPTION="Red Hat Package Management Utils"
HOMEPAGE="http://www.rpm.org/"
SRC_URI="http://wraptastic.org/pub/rpm-4.4.x/${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 perl doc sqlite"
RDEPEND="=sys-libs/db-3.2*
>=sys-libs/zlib-1.2.3-r1
>=app-arch/bzip2-1.0.1
>=dev-libs/popt-1.7
>=app-crypt/gnupg-1.2
dev-libs/elfutils
virtual/libintl
>=dev-libs/beecrypt-3.1.0-r1
python? ( >=dev-lang/python-2.2 )
perl? ( >=dev-lang/perl-5.8.8 )
nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3.3.5 )
net-misc/neon"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )"
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
# rpm uses AM_GNU_GETTEXT() but fails to actually
# include any of the required gettext files
cp /usr/share/gettext/config.rpath . || die
# 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
sed -i -e "s:intl ::" Makefile.am
sed -i -e "s:intl/Makefile ::" configure.ac
AT_NO_RECURSIVE="yes" eautoreconf
# TODO Get rid of internal copies of lua, db and db3
}
src_compile() {
python_version
econf \
--enable-posixmutexes \
--without-javaglue \
--without-selinux \
$(use_with python python ${PYVER}) \
$(use_with doc apidocs) \
$(use_with perl) \
$(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 /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
dodoc CHANGES CREDITS GROUPS README* RPM*
use doc && dohtml -r apidocs/html/*
# Fix perllocal.pod file collision
use perl && fixlocalpod
}
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
distutils_pkg_postinst
}
# 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-r2.ebuild,v 1.2 2007/02/12 19:44:53 sanchan Exp $
inherit eutils autotools distutils perl-module 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"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="nls python perl doc sqlite"
RDEPEND="=sys-libs/db-3.2*
>=sys-libs/zlib-1.2.3-r1
>=app-arch/bzip2-1.0.1
>=dev-libs/popt-1.7
>=app-crypt/gnupg-1.2
dev-libs/elfutils
virtual/libintl
>=dev-libs/beecrypt-3.1.0-r1
python? ( >=dev-lang/python-2.2 )
perl? ( >=dev-lang/perl-5.8.8 )
nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3.3.5 )
net-misc/neon"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )"
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 "${FILESDIR}"/${P}-qa-implicit-function-to-pointer.patch
epatch "${FILESDIR}"/${P}-qa-fix-undefined.patch
# rpm uses AM_GNU_GETTEXT() but fails to actually
# include any of the required gettext files
cp /usr/share/gettext/config.rpath . || die
# 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
sed -i -e "s:intl ::" Makefile.am
sed -i -e "s:intl/Makefile ::" configure.ac
AT_NO_RECURSIVE="yes" eautoreconf
# TODO Get rid of internal copies of lua, db and db3
}
src_compile() {
# Until strict aliasing is porperly fixed...
filter-flags -fstrict-aliasing
append-flags -fno-strict-aliasing
python_version
econf \
--enable-posixmutexes \
--without-javaglue \
--without-selinux \
$(use_with python python ${PYVER}) \
$(use_with doc apidocs) \
$(use_with perl) \
$(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 /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
dodoc CHANGES CREDITS GROUPS README* RPM*
use doc && dohtml -r apidocs/html/*
# Fix perllocal.pod file collision
use perl && fixlocalpod
}
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
distutils_pkg_postinst
}
# 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
}
# Copyright 1999-2008 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-r4.ebuild,v 1.1 2008/05/20 07:44:25 caster Exp $
inherit eutils autotools distutils perl-module 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"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="nls python perl doc sqlite"
RDEPEND="=sys-libs/db-3.2*
>=sys-libs/zlib-1.2.3-r1
>=app-arch/bzip2-1.0.1
>=dev-libs/popt-1.7
>=app-crypt/gnupg-1.2
dev-libs/elfutils
virtual/libintl
>=dev-libs/beecrypt-3.1.0-r1
python? ( >=dev-lang/python-2.2 )
perl? ( >=dev-lang/perl-5.8.8 )
nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3.3.5 )
>=net-misc/neon-0.28"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
doc? ( app-doc/doxygen )"
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 "${FILESDIR}"/${P}-qa-implicit-function-to-pointer.patch
epatch "${FILESDIR}"/${P}-qa-fix-undefined.patch
# bug 214799
epatch "${FILESDIR}"/${PN}-4.4.6-neon-0.28.patch
# rpm uses AM_GNU_GETTEXT() but fails to actually
# include any of the required gettext files
cp /usr/share/gettext/config.rpath . || die
# 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
sed -i -e "s:intl ::" Makefile.am
sed -i -e "s:intl/Makefile ::" configure.ac
AT_NO_RECURSIVE="yes" eautoreconf
# TODO Get rid of internal copies of lua, db and db3
}
src_compile() {
# Until strict aliasing is porperly fixed...
filter-flags -fstrict-aliasing
append-flags -fno-strict-aliasing
python_version
econf \
--enable-posixmutexes \
--without-javaglue \
--without-selinux \
$(use_with python python ${PYVER}) \
$(use_with doc apidocs) \
$(use_with perl) \
$(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 /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
dodoc CHANGES CREDITS GROUPS README* RPM*
use doc && dohtml -r apidocs/html/*
# Fix perllocal.pod file collision
use perl && fixlocalpod
}
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
distutils_pkg_postinst
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-5.0.0.ebuild,v 1.1 2008/01/05 16:27:53 vapier Exp $
inherit multilib distutils python
MY_P=${P/_alpha/a}
MY_P=${P/_beta/b}
DESCRIPTION="RPM Package Manager"
HOMEPAGE="http://rpm5.org/"
SRC_URI="http://rpm5.org/files/rpm/rpm-5.0/${MY_P}.tar.gz"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="berkdb bzip2 doc file lua neon nls pcre perl python selinux sqlite"
# dmalloc? ( dev-libs/dmalloc )
# efence? ( dev-util/efence )
# keyutils? ( sys-apps/keyutils )
# xar? ( app-arch/xar )
RDEPEND="dev-libs/beecrypt
dev-libs/popt
berkdb? ( sys-libs/db )
bzip2? ( app-arch/bzip2 )
lua? ( dev-lang/lua )
neon? ( net-misc/neon )
pcre? ( dev-libs/libpcre )
perl? ( dev-lang/perl )
python? ( dev-lang/python )
selinux? ( sys-libs/libselinux )
sqlite? ( dev-db/sqlite )"
# comes bundled with modified zlib
# >=sys-libs/zlib-1.2.3-r1
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
rm -rf file xar #db
sed -i \
-e '/^pkgconfigdir/s:=.*:=$(libdir)/pkgconfig:' \
scripts/Makefile.in || die
}
src_compile() {
# $(use_with dmalloc) \
# $(use_with efence) \
# $(use_with keyutils) \
# $(use_with xar) \
# --with-libelf
use python && python_version
econf \
$(use_with berkdb db) \
$(use_with bzip2) \
$(use_with doc apidocs) \
$(use_with file) \
$(use_with lua) \
$(use_with neon) \
$(use_with nls) \
$(use_with pcre) \
$(use_with perl) \
$(use_with python) \
$(use_with selinux) \
$(use_with sqlite) \
$(use berkdb || use sqlite || echo --with-db) \
--with-path-lib="/usr/$(get_libdir)/rpm" \
--with-python-lib-dir="/usr/$(get_libdir)/python${PYVER}" \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES CREDITS NEWS README TODO
}
pkg_preinst() {
enewgroup rpm 37
enewuser rpm 37 /bin/sh /var/lib/rpm rpm
}
pkg_postinst() {
chown -R rpm:rpm "${ROOT}"/usr/$(get_libdir)/rpm
chown -R rpm:rpm "${ROOT}"/var/lib/rpm
chown rpm:rpm "${ROOT}"/usr/bin/rpm{,2cpio,build,constant}
if [[ ${ROOT} == "/" ]] ; then
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
fi
chown rpm:rpm "${ROOT}"/var/lib/rpm/*
distutils_pkg_postinst
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-5.0.3.ebuild,v 1.1 2008/03/30 03:49:16 vapier Exp $
inherit multilib distutils python
MY_P=${P/_alpha/a}
MY_P=${P/_beta/b}
DESCRIPTION="RPM Package Manager"
HOMEPAGE="http://rpm5.org/"
SRC_URI="http://rpm5.org/files/rpm/rpm-5.0/${MY_P}.tar.gz"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="berkdb bzip2 doc file lua neon nls pcre perl python selinux sqlite"
# dmalloc? ( dev-libs/dmalloc )
# efence? ( dev-util/efence )
# keyutils? ( sys-apps/keyutils )
# xar? ( app-arch/xar )
RDEPEND="dev-libs/beecrypt
dev-libs/popt
berkdb? ( sys-libs/db )
bzip2? ( app-arch/bzip2 )
lua? ( dev-lang/lua )
neon? ( net-misc/neon )
pcre? ( dev-libs/libpcre )
perl? ( dev-lang/perl )
python? ( dev-lang/python )
selinux? ( sys-libs/libselinux )
sqlite? ( dev-db/sqlite )"
# comes bundled with modified zlib
# >=sys-libs/zlib-1.2.3-r1
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
rm -rf file xar #db
sed -i \
-e '/^pkgconfigdir/s:=.*:=$(libdir)/pkgconfig:' \
scripts/Makefile.in || die
}
src_compile() {
# $(use_with dmalloc) \
# $(use_with efence) \
# $(use_with keyutils) \
# $(use_with xar) \
# --with-libelf
use python && python_version
econf \
$(use_with berkdb db) \
$(use_with bzip2) \
$(use_with doc apidocs) \
$(use_with file) \
$(use_with lua) \
$(use_with neon) \
$(use_with nls) \
$(use_with pcre) \
$(use_with perl) \
$(use_with python) \
$(use_with selinux) \
$(use_with sqlite) \
$(use berkdb || use sqlite || echo --with-db) \
--with-path-lib="/usr/$(get_libdir)/rpm" \
--with-python-lib-dir="/usr/$(get_libdir)/python${PYVER}" \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES CREDITS NEWS README TODO
}
pkg_preinst() {
enewgroup rpm 37
enewuser rpm 37 /bin/sh /var/lib/rpm rpm
}
pkg_postinst() {
chown -R rpm:rpm "${ROOT}"/usr/$(get_libdir)/rpm
chown -R rpm:rpm "${ROOT}"/var/lib/rpm
chown rpm:rpm "${ROOT}"/usr/bin/rpm{,2cpio,build,constant}
if [[ ${ROOT} == "/" ]] ; then
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
fi
chown rpm:rpm "${ROOT}"/var/lib/rpm/*
distutils_pkg_postinst
}