diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-07-26 08:02:38 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-07-26 08:02:38 +0000 |
commit | 6f293d54aae8657bb3fb6210eddb1b80271f326c (patch) | |
tree | e9fc169c5c33ed40ad16c4f78289a06dee1fc5b4 /app-arch | |
parent | Remove rpm5 and overshadowed versions. (diff) | |
download | gentoo-2-6f293d54aae8657bb3fb6210eddb1b80271f326c.tar.gz gentoo-2-6f293d54aae8657bb3fb6210eddb1b80271f326c.tar.bz2 gentoo-2-6f293d54aae8657bb3fb6210eddb1b80271f326c.zip |
Move rpm-5* to this package to indicate completely different upstream.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/rpm5/ChangeLog | 11 | ||||
-rw-r--r-- | app-arch/rpm5/Manifest | 7 | ||||
-rw-r--r-- | app-arch/rpm5/files/remaining-5.3.5.txt | 44 | ||||
-rw-r--r-- | app-arch/rpm5/metadata.xml | 18 | ||||
-rw-r--r-- | app-arch/rpm5/rpm5-5.1.6.ebuild | 113 | ||||
-rw-r--r-- | app-arch/rpm5/rpm5-5.3.5.ebuild | 216 |
6 files changed, 409 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/Manifest b/app-arch/rpm5/Manifest new file mode 100644 index 000000000000..93a73477e440 --- /dev/null +++ b/app-arch/rpm5/Manifest @@ -0,0 +1,7 @@ +AUX remaining-5.3.5.txt 2521 SHA256 6c3a4ac2bf1d293821246d822b973f1a3b1dee7f66d2695243c639dc27d6bff4 SHA512 f109bd5e71afb9c7763e6b07d6594aea4dc9fc650f9380e1da8e7ea36abbd958ad77667c4c9aefd248a88a231752b84e5bb313908548e71854f6b2f143ade8f4 WHIRLPOOL 25337388a1ceab824d4d772b188cab0d8b5a7fbe5e2256e42ccba53b533022d4bd687d165e83d13efa42056ab1eeffe279ea08ebf8ef0796330691c772e5a966 +DIST rpm-5.1.6.tar.gz 8305612 SHA256 82ee1a737bd77ddd90b0fe1e9a2f478c46033e451fac3881d00ab9e166951799 SHA512 5f539fd5f5330b4e0ec21673320e53cdb6bb8231020ca0e8e7f52d15e36f3a70f398392721891461d13012f4028785eb7182f0460f32a53109d33b2006d0853d WHIRLPOOL fe500f9d34f2aabcb6515723a869f0241039f688b1018394cfc1830d412471b1732b0df45c30a13a2b8f24fb05d75f99e874c2b52ee7d2c073f39eac4acd3b0c +DIST rpm-5.3.5.tar.gz 9526224 SHA256 4ae409cc0c4940afb692de47be07e281df0acce7f145a088499d40f4fb390895 SHA512 c3524492f787b7af1d380088d49517ab3c615520af9b66d8996051e3aa64808f3c594582d6e09726be403aff1173dcf9f33ca38ffed544ffd28ed86c67cdd407 WHIRLPOOL 953ad3009264a526708a9bbd93c5cb9642730d6f62668cc1b8674789d2653c2c2419c2a21497dd0a11370c48b6d1afc308377f57f93447c0c26086cdcc201bd7 +EBUILD rpm5-5.1.6.ebuild 2977 SHA256 89c0f83a5059e4179768e796141f75de08d80fc6c5becb89796bde76d4526cd9 SHA512 f66c345b4d588e7d607d6beeba17c33b7b9e1ce06ec3f5b6ac11ccadf56f939234b7d099ac397ccbbd0754c6ad3f7815171b64f29339ae9d5ba3477214d03a67 WHIRLPOOL a12e5135410e628cc55d31f8ed17ac2484247e8c07d912216d325510ecf08267ed2f37c926ed6b19d8a0cf296b0e077ab186c0f619566cb23c0c40bba9321902 +EBUILD rpm5-5.3.5.ebuild 5061 SHA256 0ba9023b492f294f1530b7aae3bd85f7c3c61dcbc84893cae4cc6db64a25eb75 SHA512 f9def087f6db58436bffcc834d08d0371367eb2a8b9a7c2730c8f074b1565a30dd897197065ffdbe76e031f3ca11233716108a212c6ae1e119de9cdd34c9950b WHIRLPOOL 17320fe421d1efff822c784388d395d3d9062079e3b9aa95cab5c0cc4fc6f9c18f6dcdefb1bf36bb67c2ecd920a71a0fe30229cea4a1ce5659c6a30b47ae45e3 +MISC ChangeLog 381 SHA256 8940552fc780dcf6456743d305db7442c85d87b912d69a90e083d53e86083821 SHA512 10726073bfcfa0f255ae3c856ea9da3b14be10657cf343e02d7fcde5afe0bbc9f04ea717fbbeaa82bbacc790d14566b41fbabe33f1b0ed86198ae2866f364d07 WHIRLPOOL 28dd1048e82fd87424fd7ec62346bd524a57988fc720d47a9c9c12b51326671bf2864c9669318a04b6d44c64cda97e52d309533ea3ad9eb6a88887ee8ffeb8ed +MISC metadata.xml 1084 SHA256 afa8f35b23d391907de974180306d6b2fbba13c1c36bce69e82dc5203423cddd SHA512 52a1983e42998eb4a4f872d156cb89c2d600bcd6d7fde7e96ca8e34eb75c86b94b059f8f6488ce7d9348edcdd9e4e346e5c4944f82599e5268567c0db16c82cd WHIRLPOOL 22a91c146201773e8022cbde710b18b0f64f354de04e868493087edf9d59ebcd473b0ceb16f110d1ce72a721d3d1f547afe195e6db4c52576d8df79f1fb937b0 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 +} |