app-arch/rpm: Bump

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1159 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-04-25 17:01:36 +00:00
parent 8842612f28
commit 82c93593ed
3 changed files with 120 additions and 2 deletions

View File

@ -1,7 +1,12 @@
# ChangeLog for app-arch/rpm # ChangeLog for app-arch/rpm
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
* rpm-5.1.9 (25 Apr 2009)
25 Apr 2009; Mario Fetka <mario.fetka@gmail.com> rpm-5.1.9:
Bump
04 Nov 2008; Mario Fetka <mario.fetka@gmail.com> +metadata.xml: 04 Nov 2008; Mario Fetka <mario.fetka@gmail.com> +metadata.xml:
Initial ch eckin Initial ch eckin

View File

@ -1,4 +1,6 @@
DIST rpm-5.1.6.tar.gz 8305612 RMD160 88645f4a7c2e25fffaa5628d267e86eaac137b35 SHA1 3ab7d1edf333102c748c22e9144ab90d9719ab0b SHA256 82ee1a737bd77ddd90b0fe1e9a2f478c46033e451fac3881d00ab9e166951799 DIST rpm-5.1.6.tar.gz 8305612 RMD160 88645f4a7c2e25fffaa5628d267e86eaac137b35 SHA1 3ab7d1edf333102c748c22e9144ab90d9719ab0b SHA256 82ee1a737bd77ddd90b0fe1e9a2f478c46033e451fac3881d00ab9e166951799
DIST rpm-5.1.9.tar.gz 10905959 RMD160 2c26d72f0a7675388fdb7a4c36c404fc04dc020b SHA1 12f4be10da5e622f175fac79bbcea17928830357 SHA256 1aec55eecf2a7b7e928438b7926e0ed950c0c3dc44ca8c2b98cab718c3c4ad3d
EBUILD rpm-5.1.6.ebuild 2951 RMD160 1052b2f14972a43386465b13d2014b56f7575c67 SHA1 d7d7c2774abb8fb20c82e1585c81bb95c755d478 SHA256 fe358050f2138c6899e2846674299435c44a40bab562e271fe0c25b273e2e08b EBUILD rpm-5.1.6.ebuild 2951 RMD160 1052b2f14972a43386465b13d2014b56f7575c67 SHA1 d7d7c2774abb8fb20c82e1585c81bb95c755d478 SHA256 fe358050f2138c6899e2846674299435c44a40bab562e271fe0c25b273e2e08b
MISC ChangeLog 199 RMD160 2130e79d9cc9ba94b83596154beb5bbabc7e555a SHA1 1b170252a182a859e6f74162d7f6736b3eb72f30 SHA256 77b61b3743811c351aa71e4829cf0e289aeffbfc6b885259a3bf5f4243ae31a3 EBUILD rpm-5.1.9.ebuild 2958 RMD160 2d470b323af36817c1deec9a6c501386f5d756d0 SHA1 0e532606e9025badfb3fa76171a01d5d2d3f21f5 SHA256 54dfb5f74f4a0916158493771402f08fc9d6c4b8d9412ee8daaf295003d0a77f
MISC ChangeLog 296 RMD160 863d3bd949067be255aaf286ce90a8ea905d7c02 SHA1 ae45bbcfe0066febd31542d7949b2e550e214e37 SHA256 5dcf50f9a2d0723980e81f3cb0b38d3a33aa10cbbc67973a175cdf1cb6360d57
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -0,0 +1,111 @@
# 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.2 2008/09/25 09:54:44 aballier 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.1/${MY_P}.tar.gz"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
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-1.15
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}
pkg_setup () {
ewarn "If you are upgrading from an rpm version of 5.0.0 or lower, "
ewarn "your database will not be updated. Please back up your "
ewarn "database and run: "
ewarn " rpm --initdb"
}
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
}