app-arch/rpm: Bump
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2010 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
faf80eb08b
commit
fe48e8c922
@ -1,7 +1,10 @@
|
||||
# ChangeLog for app-arch/rpm
|
||||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
17 Feb 2010; Mario Fetka <mario.fetka@gmail.com> +rpm-5.2.0.ebuild:
|
||||
Bump
|
||||
|
||||
01 May 2009; Mario Fetka <mario.fetka@gmail.com> -rpm-5.1.9.ebuild:
|
||||
delete buggy rpm
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
DIST rpm-5.1.6.tar.gz 8305612 RMD160 88645f4a7c2e25fffaa5628d267e86eaac137b35 SHA1 3ab7d1edf333102c748c22e9144ab90d9719ab0b SHA256 82ee1a737bd77ddd90b0fe1e9a2f478c46033e451fac3881d00ab9e166951799
|
||||
DIST rpm-5.2.0.tar.gz 12329066 RMD160 0d4c3cfe5781608325a3269fe00fd5fa071c284e SHA1 45031ea461738f081559082d35ce80fcfea822e6 SHA256 34a959c0ed670cadcdc52c6025e822fac6f5d1015e3b75123f53ebe53b923e98
|
||||
EBUILD rpm-5.1.6.ebuild 2951 RMD160 1052b2f14972a43386465b13d2014b56f7575c67 SHA1 d7d7c2774abb8fb20c82e1585c81bb95c755d478 SHA256 fe358050f2138c6899e2846674299435c44a40bab562e271fe0c25b273e2e08b
|
||||
MISC ChangeLog 386 RMD160 841cf27e67db3186eb966c60398d32035030a2c5 SHA1 b8776343697967bdb0b7f6d74405e09bba16147d SHA256 142d19a8547b35520a7ca7d1c70b4bbb1b75130e8f469b82518c0669af27e402
|
||||
EBUILD rpm-5.2.0.ebuild 2951 RMD160 b73617e44bcbea25f07a7b90846b4d6a59b8ff64 SHA1 7d7296597df081f2afff9cd22ebec1079b4a609e SHA256 eb468a4e183c84ddbcbab939e92767e6fc959ce1d264d3d0e7c44ef1dc44830d
|
||||
MISC ChangeLog 464 RMD160 48e8b349d3262a52151f592f4e19980065973bb1 SHA1 0303972f57cdedde9f26c0d0ace70e13826c76d2 SHA256 e6aa0ce155afa0ebe811b130eab88e39a9fb89d80fc42f63c8b51517417bffe9
|
||||
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
||||
|
111
app-arch/rpm/rpm-5.2.0.ebuild
Normal file
111
app-arch/rpm/rpm-5.2.0.ebuild
Normal file
@ -0,0 +1,111 @@
|
||||
# Copyright 1999-2010 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.2/${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
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user