summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2012-07-26 08:02:38 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2012-07-26 08:02:38 +0000
commit9020c7b13bf6b60392f2f11aba11749d6534ce62 (patch)
tree7ebb24cd21295f3f0cdd1ed5e6b0168f4266761b /app-arch/rpm5
parentRemove rpm5 and overshadowed versions. (diff)
downloadhistorical-9020c7b13bf6b60392f2f11aba11749d6534ce62.tar.gz
historical-9020c7b13bf6b60392f2f11aba11749d6534ce62.tar.bz2
historical-9020c7b13bf6b60392f2f11aba11749d6534ce62.zip
Move rpm-5* to this package to indicate completely different upstream.
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
Diffstat (limited to 'app-arch/rpm5')
-rw-r--r--app-arch/rpm5/ChangeLog11
-rw-r--r--app-arch/rpm5/files/remaining-5.3.5.txt44
-rw-r--r--app-arch/rpm5/metadata.xml18
-rw-r--r--app-arch/rpm5/rpm5-5.1.6.ebuild113
-rw-r--r--app-arch/rpm5/rpm5-5.3.5.ebuild216
5 files changed, 402 insertions, 0 deletions
diff --git a/app-arch/rpm5/ChangeLog b/app-arch/rpm5/ChangeLog
new file mode 100644
index 000000000000..b51a51595057
--- /dev/null
+++ b/app-arch/rpm5/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-arch/rpm5
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm5/ChangeLog,v 1.1 2012/07/26 08:02:37 scarabeus Exp $
+
+*rpm5-5.3.5 (26 Jul 2012)
+*rpm5-5.1.6 (26 Jul 2012)
+
+ 26 Jul 2012; Tomáš Chvátal <scarabeus@gentoo.org> +rpm5-5.1.6.ebuild,
+ +rpm5-5.3.5.ebuild, +files/remaining-5.3.5.txt, +metadata.xml:
+ Move rpm-5* to this package to indicate completely different upstream.
+
diff --git a/app-arch/rpm5/files/remaining-5.3.5.txt b/app-arch/rpm5/files/remaining-5.3.5.txt
new file mode 100644
index 000000000000..2631931b7af9
--- /dev/null
+++ b/app-arch/rpm5/files/remaining-5.3.5.txt
@@ -0,0 +1,44 @@
+ --with-squirrel=ARG build with Squirrel library (no)
+ (location path: "external:none")
+ --with-ficl=ARG build with FICL library (no)
+ (location path: "internal:external:none")
+ --with-aterm=ARG build with ATerm library (no)
+ (location path: "external:none")
+ --with-nix=ARG build with Nix expressions library
+ (no) (location path:
+ "external:none")
+ --with-js=ARG build with JavaScript library (no)
+ (location path: "internal:external:none")
+ --with-gpsee=ARG build with GPSEE library (no)
+ (location path: "external:none")
+ --with-rc=ARG build with Rc library (no)
+ (location path: "internal:none")
+ --with-bash=ARG build with Bash library (no)
+ (location path: "internal:none")
+ --with-syck=ARG build with Syck library (no)
+ (location path: "internal:external:none")
+ --with-efence=ARG build with Electric Fence library
+ (no) (location path:
+ "external:none")
+ --with-cpuinfo=ARG build with CPUInfo library (no)
+ (location path: "external:none")
+ --with-path-versioned install with versioned paths
+ --with-path-database=ARG
+ build with RPM database directory path
+ --with-path-sources=ARG build with RPM package sourcs directory path
+ --with-path-magic=ARG build with RPM magic file path (or macro)
+ --with-path-buildroot=ARG
+ build with RPM buildroot path (or macro)
+ --with-path-locale=ARG build with RPM locale directory path
+ --with-path-lib=ARG build with RPM system library directory path
+ --with-path-cfg=ARG build with RPM global configuration directory path
+ --with-extra-path-macros=ARG
+ build with additional colon-separated RPM macro
+ files path not overriding defaults
+ --with-path-macros=ARG build with colon-separated RPM macro files path
+ --with-path-rpmpopt=ARG build with colon-separated RPM POPT configuration
+ file path
+ --with-path-rpmlua=ARG build with colon-separated RPM Lua script file path
+ --with-vendor=VENDOR build with a supported vendor's specific set of
+ changes: mandriva, ark, fedora
+
diff --git a/app-arch/rpm5/metadata.xml b/app-arch/rpm5/metadata.xml
new file mode 100644
index 000000000000..6cca7e1fb79d
--- /dev/null
+++ b/app-arch/rpm5/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='augeas'>Add support for configuration files changing (<pkg>app-admin/augeas</pkg>)</flag>
+ <flag name='keyutils'>Enable for the keyring ccache using keyutils.</flag>
+ <flag name='magic'>Add magic file support (<pkg>sys-apps/file</pkg>)</flag>
+ <flag name='nss'>Build support for ssl/crypto handling using <pkg>dev-libs/nss</pkg></flag>
+ <flag name='openssl'>Build support for ssl/crypto handling using <pkg>dev-libs/openssl</pkg></flag>
+ <flag name='pkcs11'>Build token data management utilities based on OpenCryptoki's (<pkg>dev-libs/opencryptoki</pkg>) PKCS#11 implementation.</flag>
+ <flag name='uuid'>Enable server side UUID generation (via <pkg>dev-libs/ossp-uuid</pkg>)</flag>
+ <flag name='webdav-neon'>Include support for <pkg>net-libs/neon</pkg></flag>
+ <flag name='xar'>Build support for xar archives using <pkg>app-arch/xar</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/app-arch/rpm5/rpm5-5.1.6.ebuild b/app-arch/rpm5/rpm5-5.1.6.ebuild
new file mode 100644
index 000000000000..f6963885034a
--- /dev/null
+++ b/app-arch/rpm5/rpm5-5.1.6.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm5/rpm5-5.1.6.ebuild,v 1.1 2012/07/26 08:02:37 scarabeus Exp $
+
+EAPI="3"
+
+inherit eutils multilib python user
+
+MY_PN="rpm"
+MY_P="${MY_PN}-${PV}"
+
+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 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="berkdb bzip2 doc lua magic webdav-neon nls pcre perl python selinux sqlite"
+
+# dmalloc? ( dev-libs/dmalloc )
+# efence? ( dev-util/efence )
+# keyutils? ( sys-apps/keyutils )
+# xar? ( app-arch/xar )
+RDEPEND="!app-arch/rpm
+ dev-libs/beecrypt
+ dev-libs/popt
+ berkdb? ( sys-libs/db )
+ bzip2? ( app-arch/bzip2 )
+ lua? ( dev-lang/lua )
+ webdav-neon? ( net-libs/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 rpm "
+ ewarn "database, and run: "
+ ewarn " rpm --initdb"
+}
+
+src_prepare() {
+ rm -rf file xar #db
+ sed -i \
+ -e '/^pkgconfigdir/s:=.*:=$(libdir)/pkgconfig:' \
+ scripts/Makefile.in || die
+}
+
+src_configure() {
+# $(use_with dmalloc) \
+# $(use_with efence) \
+# $(use_with keyutils) \
+# $(use_with xar) \
+ # --with-libelf
+ econf \
+ $(use_with berkdb db) \
+ $(use_with bzip2) \
+ $(use_with doc apidocs) \
+ $(use_with magic file) \
+ $(use_with lua) \
+ $(use_with webdav-neon 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="$(python_get_libdir)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor 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/*
+
+ use python && python_mod_optimize rpm
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup rpm
+}
diff --git a/app-arch/rpm5/rpm5-5.3.5.ebuild b/app-arch/rpm5/rpm5-5.3.5.ebuild
new file mode 100644
index 000000000000..13fa73e8b2b8
--- /dev/null
+++ b/app-arch/rpm5/rpm5-5.3.5.ebuild
@@ -0,0 +1,216 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm5/rpm5-5.3.5.ebuild,v 1.1 2012/07/26 08:02:37 scarabeus Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="2"
+
+MY_PN="rpm"
+MY_P="${MY_PN}-${PV}"
+
+inherit eutils multilib python user versionator
+
+DESCRIPTION="RPM Package Manager"
+HOMEPAGE="http://rpm5.org/"
+SRC_URI="http://rpm5.org/files/${MY_PN}/${MY_PN}-$(get_version_component_range 1-2)/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="acl augeas berkdb +bzip2 crypt debug expat gnutls keyutils lua lzma nls nss openssl pcre perl pkcs11 readline ruby selinux sqlite ssl tcl uuid webdav-neon xar xattr +zlib"
+
+RDEPEND="!app-arch/rpm
+ dev-libs/beecrypt
+ dev-libs/popt
+ sys-apps/file
+ acl? ( sys-apps/acl )
+ augeas? ( app-admin/augeas )
+ berkdb? ( sys-libs/db )
+ bzip2? ( app-arch/bzip2 )
+ crypt? ( dev-libs/libgcrypt )
+ expat? ( dev-libs/expat )
+ keyutils? ( sys-apps/keyutils )
+ lua? ( dev-lang/lua )
+ lzma? ( app-arch/xz-utils )
+ pcre? ( dev-libs/libpcre )
+ perl? ( dev-lang/perl )
+ pkcs11? ( dev-libs/pakchois )
+ readline? ( sys-libs/readline:0 )
+ ruby? ( >=dev-lang/ruby-1.9 )
+ selinux? (
+ sys-libs/libselinux
+ sys-libs/libsemanage
+ sys-libs/libsepol
+ )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? (
+ nss? ( dev-libs/nss )
+ openssl? ( dev-libs/openssl )
+ gnutls? (
+ dev-libs/libtasn1
+ net-libs/gnutls
+ )
+ )
+ tcl? ( dev-lang/tcl )
+ uuid? ( dev-libs/ossp-uuid )
+ webdav-neon? ( net-libs/neon )
+ xar? ( app-arch/xar )
+ xattr? ( sys-apps/attr )
+ zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ virtual/yacc
+ nls? ( sys-devel/gettext )
+"
+
+REQUIRED_USE="
+ ssl? (
+ ^^ (
+ gnutls
+ nss
+ openssl
+ )
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup () {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_configure() {
+ local myconf=""
+
+ # default internal/external switches
+ # crypto default is beecrypt, user can change this on runtime
+ # and we build beecrypt every time
+ # tomcrypt is not in portage
+ # cudf is not in portage
+ # users usually do not want to use debug malloc
+ myconf+="
+ --with-usecrypto=beecrypt
+ --with-beecrypt=external
+ --with-file=external
+ --with-popt=external
+ --without-tomcrypt
+ --without-cudf
+ --without-dmalloc
+ "
+
+ # ssl handling
+ # tasn1 is handled in most portage packages with gnutls, do the same
+ if use ssl; then
+ myconf+="
+ $(use_with gnutls)
+ $(use_with gnutls libtasn1)
+ $(use_with nss)
+ $(use_with openssl)
+ "
+ else
+ myconf+="
+ --without-gnutls
+ --without-libtasn1
+ --without-nss
+ --without-openssl
+ "
+ fi
+
+ # enable db if we use berkdb or sqlite
+ if use berkdb || use sqlite; then
+ myconf+="
+ --with-dbsql=external
+ "
+ else
+ myconf+="
+ --without-dbsql
+ "
+ fi
+
+ # for berkdb enable the options if possible
+ if use berkdb; then
+ myconf+="
+ --with-db-largefile
+ --with-db-rpc
+ "
+ fi
+
+ # we need python by default anyway so always --with-python
+ econf \
+ --disable-rpath \
+ --disable-dependency-tracking \
+ --enable-build-pic \
+ --enable-build-pie \
+ --enable-largefile \
+ --with-python \
+ --without-pythonembed \
+ --with-python-lib-dir="${EPREFIX}$(python_get_libdir)" \
+ --with-python-inc-dir="${EPREFIX}$(python_get_includedir)" \
+ $(use_enable nls) \
+ $(use_enable debug build-debug) \
+ $(use_with acl) \
+ $(use_with augeas) \
+ $(use_with berkdb db) \
+ $(use_with bzip2) \
+ $(use_with crypt gcrypt) \
+ $(use_with expat) \
+ $(use_with keyutils) \
+ $(use_with lua lua external) \
+ $(use_with lzma xz external) \
+ $(use_with pcre pcre external) \
+ $(use_with perl) \
+ $(use_with pkcs11 pakchois) \
+ $(use_with readline) \
+ $(use_with selinux) \
+ $(use_with selinux semanage) \
+ $(use_with selinux sepol) \
+ $(use_with sqlite) \
+ $(use_with tcl) \
+ $(use_with uuid) \
+ $(use_with webdav-neon neon external) \
+ $(use_with xar xar external) \
+ $(use_with xattr attr) \
+ $(use_with zlib) \
+ ${myconf}
+
+ # TODO: see files/remaining-5.3.5.txt
+ ewarn "This package is far from complete"
+ ewarn "If you want to test it please see \"${FILESDIR}/remaining-5.3.5.txt\""
+ ewarn "and implement missing features."
+ ewarn "Do NOT report bugs without providing patches!"
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor 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 "${EROOT}"/usr/$(get_libdir)/rpm
+ chown -R rpm:rpm "${EROOT}"/var/lib/rpm
+ chown rpm:rpm "${EROOT}"/usr/bin/rpm{,2cpio,build,constant}
+ if [[ ${EROOT} == "/" ]] ; then
+ if [[ -f ${EROOT}/var/lib/rpm/Packages ]] ; then
+ einfo "RPM database found... Rebuilding database (may take a while)..."
+ "${EROOT}"/usr/bin/rpm --rebuilddb --root="${ROOT}"
+ else
+ einfo "No RPM database found... Creating database..."
+ "${EROOT}"/usr/bin/rpm --initdb --root="${ROOT}"
+ fi
+ fi
+ chown rpm:rpm "${EROOT}"/var/lib/rpm/*
+
+ python_mod_optimize rpm
+}
+
+pkg_postrm() {
+ python_mod_cleanup rpm
+}