Sync with portage [Wed Nov 27 11:06:20 MSK 2013].

mhiretskiy
root 11 years ago
parent 40e24a96cd
commit 205f90a33e

@ -1,8 +1,8 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/apache-tools-2.4.7.ebuild,v 1.1 2013/11/26 03:18:44 patrick Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/apache-tools-2.4.7.ebuild,v 1.2 2013/11/26 08:26:55 polynomial-c Exp $
EAPI="3"
EAPI=5
inherit flag-o-matic eutils multilib
DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm"
@ -15,8 +15,8 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86
IUSE="ssl"
RESTRICT="test"
RDEPEND="=dev-libs/apr-1*
=dev-libs/apr-util-1*
RDEPEND=">=dev-libs/apr-1.5.0:1
dev-libs/apr-util:1
dev-libs/libpcre
ssl? ( dev-libs/openssl )"
@ -52,7 +52,7 @@ src_compile() {
emake
}
src_install () {
src_install() {
cd support || die
make DESTDIR="${D}" install

@ -4,6 +4,10 @@
<maintainer>
<email>patrick@gentoo.org</email>
</maintainer>
<maintainer>
<email>polynomial-c@gentoo.org</email>
<name>Lars Wendler</name>
</maintainer>
<longdescription lang="en">
app-admin/apache-tools contains tools that might be useful without
having apache itself installed (like htdigest/htpasswd, but also ab -

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/gamin/gamin-0.1.10-r1.ebuild,v 1.2 2013/11/24 18:51:23 pacho Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/gamin/gamin-0.1.10-r1.ebuild,v 1.3 2013/11/26 20:08:36 jer Exp $
EAPI=5
@ -12,7 +12,7 @@ SRC_URI=""
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND="!app-admin/fam

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild,v 1.5 2013/10/20 21:06:26 maekke Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r7.ebuild,v 1.6 2013/11/26 22:11:11 pacho Exp $
inherit eutils autotools systemd
@ -13,7 +13,7 @@ SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirro
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~ppc ~sparc ~x86"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~ppc ~sparc x86"
IUSE="nls"
DEPEND=""

@ -7,3 +7,4 @@ DIST phoronix-test-suite-4.6.1.tar.gz 510999 SHA256 882193e590f54490a15e981bea23
DIST phoronix-test-suite-4.8.0.tar.gz 521276 SHA256 bb1d0f96b40bd4a0a4eb18312dbfc1d5386fbb6e8885cc49367ad8bd9a3172dc SHA512 a25f7e2d91f97b2bc092dc4bb85ee8f3672fc2aa76194547342bdfe2a7995054c5d653017629733a1e1b1b98b42917af9fd9892c2dd6ae0da18c527c8b3abf71 WHIRLPOOL 14f004738935fe16cdc35a16a70082609eee8ca3402c8dd3878afb531f2d35a54274d2f78061d999c8579d7e13e3b93605778bf4493799de87c56992b5ef361f
DIST phoronix-test-suite-4.8.1.tar.gz 522015 SHA256 95704493be071110d887d73dd1ded7487af5d3ea4fa4b852cd856f85d025bc8f SHA512 27a0c036d15ab1e307b2800ad53fac029658dab3a24fa1686ab8c3a5b9c9536b6910f718461654fda408fe3500f54f6f50003093337b3c62a121889f1eb8504c WHIRLPOOL 7446b7873133544adfa8e57041e8c07a052004a39eca2c7f1b2298a57ce579757735cd96c2c0058fc0bbb2c1516ea746c9ee35a85ec970185c8a09e52f87a2f3
DIST phoronix-test-suite-4.8.2.tar.gz 521572 SHA256 f6722c48dcfafc38803a38e660879cc38290e1c4b5740e75edabc769c3f490df SHA512 5e13a385bd75f79dea24747626eff4e6daf1fd3bcc143cee461ccd09c95ba0ce58bf4457d32021e953c0a7a1b53d8fb50c0ac9afe60369ccf172061e648d2a76 WHIRLPOOL 8ce1e5c329953b497d42d31c03fc30c47834070afd3ba8c4b6e7e7be3cd82bb9e9f4334fa4c148eee59f95cd001ea0ae9c6fcd343e8a83bea1e15968dd003391
DIST phoronix-test-suite-4.8.3.tar.gz 521992 SHA256 75d5c13f0c4bde749d6bcf47ab4e8a34ba6d754c2f6034327b6c46e49dc94e57 SHA512 902ff3f9ca6738524796f30d790e6f32a41b3508fea10235df66cd3431a01692ab25ee062ba981caa9aa5a5325874096757cc03484ea41046ac3270588f0c4dd WHIRLPOOL f050c6f51f5daa40b0e5a75db66f2ae0739cbc57b1fd625ec14bfff3d19b4c616c6c7404c1f4fc6c9c5dca2c47cf8927a0a9b230da037b3ab2f21ac361f7f2ec

@ -0,0 +1,110 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.8.3.ebuild,v 1.1 2013/11/27 04:08:40 patrick Exp $
EAPI=4
inherit eutils bash-completion-r1
DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite"
HOMEPAGE="http://www.phoronix-test-suite.com"
SRC_URI="http://www.phoronix-test-suite.com/download.php?file=${P} -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
# php 5.3 doesn't have pcre and reflection useflags anymore
RDEPEND="dev-lang/php[cli,curl,gd,json,posix,pcntl,truetype,zip]
dev-php/pecl-ps"
S="${WORKDIR}/${PN}"
src_prepare() {
sed -i -e "s,export PTS_DIR=\`pwd\`,export PTS_DIR=\"/usr/share/${PN}\"," \
phoronix-test-suite
}
src_configure() {
:
}
src_compile() {
:
}
src_install() {
dodir /usr/share/${PN}
insinto /usr/share/${PN}
doman documentation/man-pages/phoronix-test-suite.1
dodoc AUTHORS CHANGE-LOG
dohtml -r documentation/
doicon pts-core/static/images/phoronix-test-suite.png
doicon pts-core/static/images/openbenchmarking.png
domenu pts-core/static/phoronix-test-suite.desktop
rm -f pts-core/static/phoronix-test-suite.desktop
doins -r pts-core
exeinto /usr/bin
doexe phoronix-test-suite
fperms a+x /usr/share/${PN}/pts-core/static/scripts/root-access.sh
fperms a+x /usr/share/${PN}/pts-core/external-test-dependencies/scripts/install-gentoo-packages.sh
dobashcompletion pts-core/static/bash_completion ${PN}
# Need to fix the cli-php config for downloading to work. Very naughty!
local slots
local slot
if [[ "x${PHP_TARGETS}" == "x" ]] ; then
ewarn
ewarn "PHP_TARGETS seems empty, php.ini file can't be configure."
ewarn "Make sure that PHP_TARGETS in /etc/make.conf is set."
ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\""
ewarn "for downloading to work properly."
ewarn
else
for slot in ${PHP_TARGETS}; do
slots+=" ${slot/-/.}"
done
fi
for slot in ${slots}; do
local PHP_INI_FILE="/etc/php/cli-${slot}/php.ini"
if [[ -f ${PHP_INI_FILE} ]] ; then
dodir $(dirname ${PHP_INI_FILE})
cp ${PHP_INI_FILE} "${D}${PHP_INI_FILE}"
sed -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' -i "${D}${PHP_INI_FILE}"
else
if [[ "x$(eselect php show cli)" == "x${slot}" ]] ; then
ewarn
ewarn "${slot} hasn't a php.ini file."
ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\""
ewarn "for downloading to work properly."
ewarn "Check that your PHP_INI_VERSION is set during ${slot} merge"
ewarn
else
elog
elog "${slot} hasn't a php.ini file."
elog "phoronix-test-suite may need the 'allow_url_fopen' option set to \"On\""
elog "for downloading to work properly if you switch to ${slot}"
elog "Check that your PHP_INI_VERSION is set during ${slot} merge"
elog
fi
fi
done
ewarn
ewarn "If you upgrade from phoronix-test-suite-2*, you should reinstall all"
ewarn "your tests because"
ewarn " \$HOME/.phoronix-test-suite/installed-tests/\$TEST_NAME/"
ewarn "moves to"
ewarn " \$HOME/.phoronix-test-suite/installed-tests/pts/\$TEST_NAME-\$TEST_VERSION/"
ewarn "in phoronix-test-suite-3* version. The \$TEST_VERSION can be find in"
ewarn "pts-install.xml file."
ewarn
}

@ -6,3 +6,4 @@ DIST siege-3.0.0.tar.gz 495571 SHA256 01e68e839305ec2b604d915fc3185b18dfaac69b69
DIST siege-3.0.1.tar.gz 497205 SHA256 755634af407cdb4072ce6a1e9341083343c761879535e6ece7c45945a3dde350 SHA512 10c5bd8f70e0fc704c05b3f914fa2c24db5125d1e42e3e368f6c42f5d7d2e1f43fc77550de7d93a167ccfe00d90893d2399f5f7d5c5a4b9bb5fb603b5e11e8ba WHIRLPOOL 8aec1bffadfa2c2400d33774fc5df7b7c9985fefe1ba1497257925f27c3cca02570572ddccbbc0f1ecc95bde4ddfc4fd5ef735593e383b38229abc2faeaaca98
DIST siege-3.0.2.tar.gz 500879 SHA256 261c3b41e2a17065b56b60b8e4ea10c256fe4265172e317882c67799d9ce062d SHA512 c07f8537d9a93379e8bb4724f597461a5a098d51ceb4137d8aa4e5a69ae5d26357436899a439167b6b5793dc65e0c9242f046545c35d6bcdb4028297fba3b5ff WHIRLPOOL 057c953a60d9f846ddc243faa045cf7d4add4525d45eae4b9305a75c33146a3d0aa9444a9b07387ab509908f604a27483558c0683a6dcb56e29e2abe2767ba1c
DIST siege-3.0.3.tar.gz 494596 SHA256 5fdf956433aff1ad57d13196ad15faa4fb7ef770b6ee676c8247a16178d36926 SHA512 ca98d1ba4627a7bf0b48bd271852a11da3aa5d6cdec9453604d9af1333401223ae1a32242cb30698ec2b60575e5911ffc201081890a2b90e4cc085abd63260a5 WHIRLPOOL 8872a9c50bd8cc3c58a9abad20958c33326190508670bb5cd77f2ece3f50ff944ca106ce0150302409bdb90e7c706a61f83bdff869d275640c5f5e4c41c63f40
DIST siege-3.0.5.tar.gz 495568 SHA256 283e624fd802775bf6eb8832c4f76dad6692aa1f3efa98db1ae2ddaba651ca99 SHA512 1ef1492dd31308fe63a3f65f657175a27add0c4718c83acdbbe0f79766cb2a8a78d04b9bf5085ce8be97e9d997720d6695959cb263e1187f1c5a83921e15c148 WHIRLPOOL 6a651eca5c49b3abcdff1f0b767c2b17fe8e3b11dcefbf42ef785ac12dfd7c65febc44a82024d3c73c523c0125ad77bd5fabad8e4f700173a71a8432b5e0132a

@ -0,0 +1,50 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/siege/siege-3.0.5.ebuild,v 1.1 2013/11/27 04:00:30 patrick Exp $
EAPI=4
#WANT_AUTOMAKE=1.9
inherit eutils bash-completion-r1 libtool autotools
DESCRIPTION="A HTTP regression testing and benchmarking utility"
HOMEPAGE="http://www.joedog.org/JoeDog/Siege"
SRC_URI="http://www.joedog.org/pub/siege/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~hppa ~mips ~ppc ~x86"
SLOT="0"
IUSE="ssl"
RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6d )"
DEPEND="${RDEPEND}
sys-devel/libtool"
src_prepare() {
# bundled macros break recent libtool
sed -i -e 's/AC_PROG_SHELL//' configure.ac || die
rm *.m4 || die "failed to remove bundled macros"
eautoreconf
}
src_configure() {
local myconf
use ssl && myconf="--with-ssl=/usr" || myconf="--without-ssl"
econf ${myconf}
}
src_install() {
make DESTDIR="${D}" install
dodoc AUTHORS ChangeLog INSTALL MACHINES README* KNOWNBUGS \
doc/siegerc doc/urls.txt
newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
}
pkg_postinst() {
echo
elog "An example ~/.siegerc file has been installed in"
elog "/usr/share/doc/${PF}/"
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ebuild-mode/ebuild-mode-1.24.ebuild,v 1.2 2013/10/05 19:30:37 maekke Exp $
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ebuild-mode/ebuild-mode-1.24.ebuild,v 1.3 2013/11/26 20:12:49 jer Exp $
EAPI=5
@ -12,7 +12,7 @@ SRC_URI="mirror://gentoo/${P}.tar.xz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
DOCS="ChangeLog keyword-generation.sh"
ELISP_TEXINFO="${PN}.texi"

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/po-mode/po-mode-0.18.3.1.ebuild,v 1.1 2013/09/17 17:37:34 ulm Exp $
# $Header: /var/cvsroot/gentoo-x86/app-emacs/po-mode/po-mode-0.18.3.1.ebuild,v 1.2 2013/11/26 20:13:18 jer Exp $
EAPI=5
@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/gettext/gettext-${PV}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
S="${WORKDIR}/gettext-${PV}/gettext-tools/misc"
ELISP_REMOVE="start-po.el"

@ -0,0 +1,167 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.7.0.ebuild,v 1.1 2013/11/26 15:17:48 gregkh Exp $
EAPI=5
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
HOMEPAGE="http://www.docker.io/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
if [[ ${PV} == *9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="v${PV}"
KEYWORDS="~amd64"
fi
inherit bash-completion-r1 git-2 linux-info systemd user
LICENSE="Apache-2.0"
SLOT="0"
IUSE="aufs +device-mapper doc vim-syntax"
CDEPEND="
>=dev-db/sqlite-3.7.9:3
device-mapper? (
sys-fs/lvm2[thin]
)
"
DEPEND="
${CDEPEND}
>=dev-lang/go-1.1.2
dev-vcs/git
dev-vcs/mercurial
doc? (
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
)
"
RDEPEND="
${CDEPEND}
!app-emulation/docker-bin
>=app-arch/tar-1.26
>=sys-apps/iproute2-3.5
>=net-firewall/iptables-1.4
>=app-emulation/lxc-0.8
>=dev-vcs/git-1.7
>=app-arch/xz-utils-4.9
aufs? (
|| (
sys-fs/aufs3
sys-kernel/aufs-sources
)
)
"
RESTRICT="strip"
pkg_setup() {
CONFIG_CHECK+="
~BRIDGE
~MEMCG_SWAP
~NETFILTER_XT_MATCH_ADDRTYPE
~NF_NAT
~NF_NAT_NEEDED
"
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
if use aufs; then
CONFIG_CHECK+="
~AUFS_FS
"
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
fi
if use device-mapper; then
CONFIG_CHECK+="
~BLK_DEV_DM
~DM_THIN_PROVISIONING
~EXT4_FS
"
fi
check_extra_config
}
src_unpack() {
git-2_src_unpack
}
src_compile() {
export GOPATH="${WORKDIR}/gopath"
mkdir -p "$GOPATH" || die
# make sure docker itself is in our shiny new GOPATH
mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
# we need our vendored deps, too
export GOPATH="$GOPATH:$(pwd -P)/vendor"
# time to build!
./hack/make.sh dynbinary || die
if use doc; then
emake -C docs docs man || die
fi
}
src_install() {
VERSION=$(cat VERSION)
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker
exeinto /usr/libexec/docker
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit
newinitd contrib/init/openrc/docker.initd docker
newconfd contrib/init/openrc/docker.confd docker
systemd_dounit contrib/init/systemd/docker.service
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
if use doc; then
dohtml -r docs/_build/html/*
doman docs/_build/man/*
fi
dobashcomp contrib/completion/bash/*
insinto /usr/share/zsh/site-functions
doins contrib/completion/zsh/*
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r contrib/vim-syntax/ftdetect
doins -r contrib/vim-syntax/syntax
fi
insinto /usr/share/${P}/contrib
doins contrib/README
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
}
pkg_postinst() {
elog ""
elog "To use docker, the docker daemon must be running as root. To automatically"
elog "start the docker daemon at boot, add docker to the default runlevel:"
elog " rc-update add docker default"
elog "Similarly for systemd:"
elog " systemctl enable docker.service"
elog ""
# create docker group if the code checking for it in /etc/group exists
enewgroup docker
elog "To use docker as a non-root user, add yourself to the docker group."
elog ""
ewarn ""
ewarn "If you want your containers to have access to the public internet or even"
ewarn "the existing private network, IP Forwarding must be enabled:"
ewarn " sysctl -w net.ipv4.ip_forward=1"
ewarn "or more permanently:"
ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
ewarn "Please be mindful of the security implications of enabling IP Forwarding."
ewarn ""
}

@ -8,8 +8,18 @@
scale, in production, on VMs, bare metal, OpenStack clusters, public
clouds and more.
</longdescription>
<maintainer>
<maintainer status="active">
<email>admwiggin@gmail.com</email>
<name>Tianon</name>
</maintainer>
<use>
<flag name="aufs">
Enables dependencies for the "aufs" driver, including necessary
kernel flags.
</flag>
<flag name="device-mapper">
Enables dependencies for the "device-mapper" driver, including
necessary kernel flags.
</flag>
</use>
</pkgmetadata>

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.5.4-r1.ebuild,v 1.1 2013/11/17 06:40:29 naota Exp $
# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.5.4-r1.ebuild,v 1.2 2013/11/26 15:20:33 naota Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
@ -18,7 +18,7 @@ SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="dconf deprecated +gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
REQUIRED_USE="|| ( gtk gtk3 X )
deprecated? ( python )
python? (
@ -30,8 +30,8 @@ COMMON_DEPEND="
gnome-base/librsvg:2
sys-apps/dbus[X?]
app-text/iso-codes
>=gnome-base/dconf-0.13.4
dconf? ( >=gnome-base/dconf-0.13.4 )
gconf? ( >=gnome-base/gconf-2.12:2 )
gtk? ( x11-libs/gtk+:2 )
gtk3? ( x11-libs/gtk+:3 )
@ -93,7 +93,7 @@ src_configure() {
python_conf="--disable-python-library --disable-setup"
fi
econf \
$(use_enable dconf) \
--enable-dconf \
$(use_enable introspection) \
$(use_enable gconf) \
$(use_enable gtk gtk2) \
@ -132,20 +132,15 @@ src_install() {
pkg_preinst() {
use gconf && gnome2_gconf_savelist
use gconf && gnome2_schemas_savelist
gnome2_schemas_savelist
gnome2_icon_savelist
}
pkg_postinst() {
if use dconf; then
ebegin "Updating dconf system databases"
dconf update
eend $?
fi
use gconf && gnome2_gconf_install
use gconf && gnome2_schemas_update
use gtk && gnome2_query_immodules_gtk2
use gtk3 && gnome2_query_immodules_gtk3
gnome2_schemas_update
gnome2_icon_cache_update
elog "To use ibus, you should:"
@ -167,13 +162,9 @@ pkg_postinst() {
}
pkg_postrm() {
if use dconf; then
ebegin "Updating dconf system databases"
dconf update
eend $?
fi
use gtk && gnome2_query_immodules_gtk2
use gtk3 && gnome2_query_immodules_gtk3
use gconf && gnome2_schemas_update
gnome2_schemas_savelist
gnome2_icon_cache_update
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/pommed-1.39-r1.ebuild,v 1.2 2013/11/16 10:04:07 pacho Exp $
# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/pommed-1.39-r1.ebuild,v 1.3 2013/11/26 22:13:50 pacho Exp $
EAPI=5
inherit eutils toolchain-funcs linux-info systemd
@ -12,7 +12,7 @@ SRC_URI="http://alioth.debian.org/frs/download.php/${ALIOTH_NUMBER}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86"
KEYWORDS="amd64 ~ppc x86"
IUSE="gtk X"
COMMON_DEPEND="media-libs/alsa-lib

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-0.3.0.8-r2.ebuild,v 1.1 2013/10/02 11:01:40 jlec Exp $
# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-0.3.0.8-r2.ebuild,v 1.3 2013/11/26 22:25:30 pacho Exp $
EAPI="5"
@ -17,7 +17,7 @@ LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
DEPEND="sys-apps/portage"
RDEPEND="${DEPEND}

@ -1,3 +1,4 @@
DIST calibre-1.12.0.tar.xz 30941380 SHA256 7a1edbd6aa4e2b7c6fd92f59c47511442baf404bcf8b3840e566f80894f42f1c SHA512 2d229d3bcc0a014f9ff4473399dabc5452acd7992fef339ed9d78a15fa985a83b9d13b3e0aae6ec15b8c3592443d98542608133b2a847ed66fc21ab164c7a466 WHIRLPOOL 4019faf76e9f860eb95aa05fdb2aa84164d91c96bb54b5438539cbfa7730e8f2bfa19b95dc7169dbad3c8c08d145ac68e4ed340cce22726a7d8c4a155ec23db6
DIST calibre-1.2.0.tar.xz 29652528 SHA256 d27fdbe981620aa63f5c70909c63a3a7b747ced1da2ee7065879f07b8a75ca40 SHA512 11f6550ae9cce8bb4fbe47d2c715376d2ae3e3651e21016409f131db8abae0c7bf7c8c5d1d30ee25d1726ddf44089b13f9b404468700a6f74c40c0ba9fa513bd WHIRLPOOL 3b10a4f52ca8e976ddc3c240a3d5ece937603572a2d70d73afe6599bb99adad7f08d3402320e00e2532bed85b3c06acb734b12ff6c626278f4934f56aa7c5528
DIST calibre-1.5.0.tar.xz 29689060 SHA256 f6eaf0d44ceb82fd80f5cde19c3be409ce268d28b443824a850f887088fc579e SHA512 b3fd46150caa50f21b29fe9c34d07b2c426cb943829b77285ccc0946ff665d47f339c8c4bdf801777b239a38e7f7e6f790fad692fd005603a99d0fef140abc25 WHIRLPOOL 548e2ea9402a878c37e8060b8e6eed5ee95c67ebf77371507f61c1caf8a34dd808203c4e886318b9195632abc4e3c9da47df584980003d0895df9852c8df4c9e
DIST calibre-1.7.0.tar.xz 30417136 SHA256 9a6817f81577c6e8ffbaf6557dc48c89200cccf2a3d4e55d18523bf4f37df73c SHA512 67846639007bb5294991004252e2886fe56a7b836a93305c4753705688b3ce3730513fb3707fb0091741b7d372412733437e05c746c41a53ff6beca67f3c5fc7 WHIRLPOOL e2ab646256f11a771a27d5f95d9858f0e0242b07a1ac4762b7f6dc33d104aece2b91bbd571b5d1fcb3c813b5797de70cf772ecae48e245f304a0d590382222ff

@ -0,0 +1,213 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-1.12.ebuild,v 1.1 2013/11/26 18:56:03 mrueg Exp $
EAPI=5
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs
DESCRIPTION="Ebook management application."
HOMEPAGE="http://calibre-ebook.com/"
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV}
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz"
LICENSE="
GPL-3+
GPL-3
GPL-2+
GPL-2
GPL-1+
LGPL-3+
LGPL-2.1+
LGPL-2.1
BSD
MIT
Old-MIT
Apache-2.0
public-domain
|| ( Artistic GPL-1+ )
CC-BY-3.0
OFL-1.1
PSF-2
unRAR
"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="+udisks"
COMMON_DEPEND="
>=app-text/podofo-0.8.2:=
>=app-text/poppler-0.12.3-r3:=[qt4,xpdf-headers(+)]
>=dev-lang/python-2.7.1:2.7[sqlite,ssl]
>=dev-libs/chmlib-0.40:=
>=dev-libs/icu-4.4:=
dev-python/apsw
>=dev-python/beautifulsoup-3.0.5:python-2
dev-python/netifaces
dev-python/python-dateutil
>=dev-python/dnspython-1.6.0
>=dev-python/cssselect-0.7.1
>=dev-python/cssutils-0.9.9
>=dev-python/dbus-python-0.82.2
virtual/python-imaging
>=dev-python/lxml-2.2.1
>=dev-python/mechanize-0.1.11
>=dev-python/python-dateutil-1.4.1
>=dev-python/PyQt4-4.9.1[X,svg,webkit]
media-fonts/liberation-fonts
>=media-gfx/imagemagick-6.5.9[jpeg,png]
>=media-libs/freetype-2:=
>=media-libs/libwmf-0.2.8
>=media-libs/libmtp-1.1.4:=
virtual/libusb:1=
dev-qt/qtdbus:4=
dev-qt/qtsvg:4=
>=x11-misc/xdg-utils-1.0.2-r2"
RDEPEND="${COMMON_DEPEND}
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
DEPEND="${COMMON_DEPEND}
>=dev-python/setuptools-0.6_rc5"
S=${WORKDIR}/${PN}
src_prepare() {
# Fix outdated version constant.
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
# -i src/calibre/constants.py || \
# die "sed failed to patch constants.py"
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
# calls xdg-* (bug #258938).
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
-e "s|PreserveMIMEDefaults():||" \
-e "s|xdg-icon-resource install|\\0 --mode user|" \
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
-e "s|xdg-mime install|\\0 --mode user|" \
-i src/calibre/linux.py || die "sed failed to patch linux.py"
# Disable unnecessary privilege dropping for bug #287067.
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
-i setup/install.py || die "sed failed to patch install.py"
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
'-i', 'Makefile'])" \
-i setup/extensions.py || die "sed failed to patch extensions.py"
# no_updates: do not annoy user with "new version is availible all the time
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
epatch \
"${FILESDIR}/${PN}-no_updates_dialog.patch" \
"${FILESDIR}/${PN}-disable_plugins.patch"
}
src_install() {
# Bypass kbuildsycoca and update-mime-database in order to
# avoid sandbox violations if xdg-mime tries to call them.
cat - > "${T}/kbuildsycoca" <<-EOF
#!${BASH}
exit 0
EOF
cp "${T}"/{kbuildsycoca,update-mime-database}
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
# violation with kbuildsycoca as in bug #287067, comment #13.
export -n DISPLAY
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
# return _parse_localename(localename)
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
# raise ValueError, 'unknown locale: %s' % localename
#ValueError: unknown locale: 46
export -n LANGUAGE
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
# variables to point to our fake temporary $HOME.
export HOME="${T}/fake_homedir"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_DATA_HOME="${HOME}/.local/share"
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
tc-export CC CXX
# Bug #334243 - respect LDFLAGS when building extensions
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
local libdir=$(get_libdir)
[[ -n $libdir ]] || die "get_libdir returned an empty string"
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
local x
for x in /dev/dri/card[0-9] ; do
[[ -e ${x} ]] && addpredict ${x}
done
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
"${EPREFIX}"/usr/bin/python2.7 setup.py install \
--root="${D}" \
--prefix="${EPREFIX}/usr" \
--libdir="${EPREFIX}/usr/${libdir}" \
--staging-root="${ED}usr" \
--staging-libdir="${ED}usr/${libdir}" || die
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
die "failed to fix harcoded \$D in paths"
# The menu entries end up here due to '--mode user' being added to
# xdg-* options in src_prepare.
dodir /usr/share/mime/packages
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
die "failed to register mime types"
dodir /usr/share/icons
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
die "failed to install icon files"
domenu "${HOME}"/.local/share/applications/*.desktop ||
die "failed to install .desktop menu files"
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre
rm -r "${ED}"usr/etc/bash_completion.d
find "${ED}"usr/etc -type d -empty -delete
cd "${ED}"/usr/share/calibre/fonts/liberation || die
local x
for x in * ; do
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
done
einfo "Converting python shebangs"
while read -r -d $'\0' ; do
local shebang=$(head -n1 "$REPLY")
if [[ ${shebang} == "#!"*python* ]] ; then
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \
die "sed failed"
fi
done < <(find "${ED}" -type f -print0)
einfo "Compiling python modules"
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die
newinitd "${FILESDIR}"/calibre-server.init calibre-server
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r2.ebuild,v 1.3 2012/12/13 16:23:27 floppym Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r2.ebuild,v 1.4 2013/11/26 20:20:22 jer Exp $
inherit sgml-catalog
@ -10,7 +10,7 @@ SRC_URI="http://www.nwalsh.com/docbook/simple/${PV}/simple4125.zip"
LICENSE="docbook"
SLOT="4.1.2.5"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
IUSE=""
RDEPEND=">=app-text/build-docbook-catalog-1.6"

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/dvisvgm/dvisvgm-1.4.ebuild,v 1.2 2013/09/05 05:25:39 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/dvisvgm/dvisvgm-1.4.ebuild,v 1.3 2013/11/26 20:23:14 jer Exp $
EAPI=4
@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="test"
# Tests don't work from $WORKDIR: kpathsea tries to search in relative
# directories from where the binary is executed.

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.11b-r4.ebuild,v 1.1 2013/07/07 15:03:07 aballier Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.11b-r4.ebuild,v 1.2 2013/11/26 20:05:13 jer Exp $
EAPI=3
@ -12,7 +12,7 @@ SRC_URI="http://www.eecs.harvard.edu/~nr/noweb/dist/${P}.tgz"
LICENSE="noweb emacs? ( GPL-2 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
KEYWORDS="~alpha ~amd64 hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
IUSE="emacs examples"
DEPEND="virtual/tex-base

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/gtk-syntax/gtk-syntax-20130716.ebuild,v 1.1 2013/07/17 00:28:29 radhermit Exp $
# $Header: /var/cvsroot/gentoo-x86/app-vim/gtk-syntax/gtk-syntax-20130716.ebuild,v 1.2 2013/11/26 20:24:26 jer Exp $
EAPI=5
@ -9,4 +9,4 @@ inherit vim-plugin
DESCRIPTION="vim plugin: Syntax highlighting for GLib, Gtk+, Xlib, Gimp, Gnome, and more"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=1000"
LICENSE="vim"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/mysql-init-scripts-2.0_pre1-r6.ebuild,v 1.3 2013/11/16 09:53:34 pacho Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/mysql-init-scripts-2.0_pre1-r6.ebuild,v 1.4 2013/11/26 22:12:34 pacho Exp $
inherit systemd
@ -10,7 +10,7 @@ SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE=""
DEPEND=""

@ -4,3 +4,5 @@ DIST slony1-2.1.4-docs.tar.bz2 1360684 SHA256 e7d8c1939e0e2cf34614940f62c4fc0ce1
DIST slony1-2.1.4.tar.bz2 1515755 SHA256 90dc746bb9f12a051f9f563365e693ffd81f07a2353debfc4b8a4d0884ca72a4 SHA512 b882146a158adee27f360fc34d3c64144efe3c3a7d63574a4450cb1eb3dac7d75df19d17e75ffc72f656d27b5c5b7fc64bc536de9753a36fe96848b562e42883 WHIRLPOOL c0b95f72049b7f90caf1c2259c8f97411f0b1f1d5c9a6cc4fd6b1b2e677dec3fbbea84ffaffb0ba15caa40203923c8272ac6cccae8e08a51f83c62b765ce2580
DIST slony1-2.2.0-docs.tar.bz2 1429244 SHA256 4a97d3c3e9e8e12257a6fcabfeb65ced02b34f211f9154a0d3d8c85dda575070 SHA512 2d55e8d3066525e3bf3f70d5e9ea0f12279dbdc4708c5fff0076318c6cf70baa1d7b388e1846bacc65f1a42820113d38029afbfd8800cfd721c003f120f9b1cb WHIRLPOOL afe1d0e83a6e45c7f157c5eafe6bebd0bc372c7aec1ab126309fa026484a8175e37b99d6fc2ace31f0bbf84e651a62965eb7a532e5bc4a3c1ef3f5a2c71fb46d
DIST slony1-2.2.0.tar.bz2 1467410 SHA256 38e0c78d50ab882bc0cff1801d28b69ef1f7d99a6e55b06fa20e2f4a08fa6049 SHA512 4d05dee4028408c78da068742b4adbcb2c1d37bfb480047f6ee4c59d167e13d340c2b644c45911d29dda8d626aac6fe79cad7f51a81bc5edaff14fa10be7b369 WHIRLPOOL 31253f8d760b16c0e1c77ffc83d8f936d6225b83124727603525180b2d134c6d650cc8b5c59334a3cd29ee058e59b539c1f5d857585b8d9a22631aba4ace2798
DIST slony1-2.2.1-docs.tar.bz2 1445906 SHA256 7c8fdbe35a5738f38dd4a7774e3e5b3413916da6e3c7fba3bd5554b61e003d30 SHA512 6c213890d45612bd30f995286b6e7ce6c777274a9b96e040794707c1b28bf1337d27d8c1495e0824aafe950e615b2fea01f2c84cf491391132d29cf3fd28d322 WHIRLPOOL b94715e210c6db12e1d431bba2b602f6b8346226a71b058756acf73b449e42c5397979a19f7bd3074a7c8c9b707d001e09ec22be445e161600137e443632af1d
DIST slony1-2.2.1.tar.bz2 1466866 SHA256 8606c2be3ad219fb8d482e5a0f836e37d26df3b49d5bce099fc71fd95961e960 SHA512 0b47180bb16e6d25eb3e6a280fe91bd2448bbf4b9ee10a8811f16bf0c2dbc7eb52d3c029d1fac5e3ff8f0621da3bc174d7deb7b72000c631664131aeb4c25e74 WHIRLPOOL 9c61161fbc87d1ad30dba0ec0274801109c30f8f4f33840337737c7201bb622739b313728ae1ab2c26864dfe8c87e295642000dde034795ddd81babaaef5dcbc

@ -0,0 +1,68 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/slony1-2.2.1.ebuild,v 1.1 2013/11/27 04:17:32 patrick Exp $
EAPI="4"
inherit eutils versionator
IUSE="doc perl"
DESCRIPTION="A replication system for the PostgreSQL Database Management System"
HOMEPAGE="http://slony.info/"
# ${P}-docs.tar.bz2 contains man pages as well as additional documentation
MAJ_PV=$(get_version_component_range 1-2)
SRC_URI="http://main.slony.info/downloads/${MAJ_PV}/source/${P}.tar.bz2
http://main.slony.info/downloads/${MAJ_PV}/source/${P}-docs.tar.bz2"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
DEPEND="|| (
dev-db/postgresql-server:9.3
dev-db/postgresql-server:9.2
dev-db/postgresql-server:9.1
dev-db/postgresql-server:9.0
dev-db/postgresql-server:8.4
dev-db/postgresql-server:8.3
)
dev-db/postgresql-base[threads]
perl? ( dev-perl/DBD-Pg )
"
pkg_setup() {
local PGSLOT="$(postgresql-config show)"
if [[ ${PGSLOT//.} < 83 ]] ; then
eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.3 or higher."
eerror "Set an appropriate slot with postgresql-config."
die "postgresql-config not set to 8.3 or higher."
fi
# if [[ ${PGSLOT//.} > 90 ]] ; then
# ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
# ewarn "This is neither supported here nor upstream."
# ewarn "Any bugs you encounter should be reported upstream."
# fi
}
src_configure() {
local myconf
use perl && myconf='--with-perltools'
econf ${myconf}
}
src_install() {
emake DESTDIR="${D}" install
dodoc INSTALL README SAMPLE TODO UPGRADING share/slon.conf-sample
if use doc ; then
cd "${S}"/doc
dohtml -r *
fi
newinitd "${FILESDIR}"/slony1.init slony1
newconfd "${FILESDIR}"/slony1.conf slony1
}

@ -1,12 +1,12 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.5.1.ebuild,v 1.1 2013/10/11 08:01:53 polynomial-c Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.5.1.ebuild,v 1.2 2013/11/26 13:31:45 pinkbyte Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 )
RUBY_OPTIONAL="yes"
USE_RUBY="ruby18"
USE_RUBY="ruby19"
inherit toolchain-funcs versionator python-r1 mono-env ruby-ng db-use
@ -25,7 +25,7 @@ RDEPEND=">=dev-libs/expat-2.0.1
<sys-libs/db-6.0[cxx]
~dev-cpp/libmcpp-2.7.2
python? ( ${PYTHON_DEPS} )
ruby? ( $(ruby_implementation_depend ruby18) )
ruby? ( $(ruby_implementation_depend ruby19) )
mono? ( dev-lang/mono )
!dev-python/IcePy
!dev-ruby/IceRuby"
@ -115,13 +115,13 @@ src_configure() {
fi
if use ruby ; then
SITERUBY="$(ruby18 -r rbconfig -e 'print Config::CONFIG["sitedir"]')"
SITERUBY="$(ruby19 -r rbconfig -e 'print Config::CONFIG["sitedir"]')"
MAKE_RULES_RB="install_rubydir=\"${ED}/${SITERUBY}\"
install_libdir=\"${ED}/${SITERUBY}\""
# make it use ruby18 only
# make it use ruby19 only
sed -i \
-e 's|RUBY = ruby|\018|' \
-e 's|RUBY = ruby|\019|' \
rb/config/Make.rules || die "sed failed"
fi

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/eb/eb-4.4.1-r1.ebuild,v 1.1 2013/07/24 02:50:12 jer Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/eb/eb-4.4.1-r1.ebuild,v 1.2 2013/11/26 20:22:02 jer Exp $
EAPI=5
@ -10,7 +10,7 @@ SRC_URI="ftp://ftp.sra.co.jp/pub/misc/eb/${P}.tar.lzma"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
KEYWORDS="~alpha ~amd64 hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="ipv6 linguas_ja threads"
RDEPEND="

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/json-c/json-c-0.11.ebuild,v 1.3 2013/11/24 19:07:39 pacho Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/json-c/json-c-0.11.ebuild,v 1.4 2013/11/26 20:11:26 jer Exp $
EAPI=5
@ -14,7 +14,7 @@ SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz"
LICENSE="MIT"
SLOT="0/0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="doc static-libs"
# tests break otherwise

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/libedit-20130712.3.1.ebuild,v 1.2 2013/10/13 20:38:24 mgorny Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/libedit-20130712.3.1.ebuild,v 1.3 2013/11/26 20:03:39 jer Exp $
EAPI=5
@ -15,7 +15,7 @@ SRC_URI="http://www.thrysoee.dk/editline/${MY_P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="static-libs"
DEPEND=">=sys-libs/ncurses-5.7-r5[static-libs?,${MULTILIB_USEDEP}]

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r4.ebuild,v 1.2 2013/11/24 18:50:28 pacho Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r4.ebuild,v 1.3 2013/11/26 20:07:55 jer Exp $
EAPI="5"
PYTHON_DEPEND="python? 2"
@ -20,7 +20,7 @@ SRC_URI="${SRC_URI}
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
IUSE="debug kernel_linux python static-libs"
RESTRICT="test" # needs gam-server

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpipeline/libpipeline-1.2.4.ebuild,v 1.1 2013/06/14 04:26:31 radhermit Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpipeline/libpipeline-1.2.4.ebuild,v 1.2 2013/11/26 20:02:04 jer Exp $
EAPI="5"
@ -12,7 +12,7 @@ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
IUSE="static-libs test"
DEPEND="virtual/pkgconfig

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-3.1.2-r1.ebuild,v 1.7 2013/11/24 03:52:29 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-3.1.2-r1.ebuild,v 1.8 2013/11/26 07:27:05 vapier Exp $
EAPI="3"
@ -44,6 +44,8 @@ src_prepare() {
}
src_configure() {
# Make sure mpfr doesn't go probing toolchains it shouldn't #476336#19
user_redefine_cc=yes \
econf \
--docdir="\$(datarootdir)/doc/${PF}" \
$(use_enable static-libs static)

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.10.2.ebuild,v 1.1 2013/11/18 09:11:48 polynomial-c Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.10.2.ebuild,v 1.2 2013/11/26 19:06:45 jer Exp $
EAPI=3
WANT_AUTOCONF="2.1"
@ -15,7 +15,7 @@ SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="debug"
src_prepare() {

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.15.3.ebuild,v 1.1 2013/11/14 11:45:36 polynomial-c Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.15.3.ebuild,v 1.2 2013/11/26 19:02:23 jer Exp $
EAPI=5
inherit eutils flag-o-matic multilib toolchain-funcs
@ -16,7 +16,7 @@ SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="utils"
DEPEND="virtual/pkgconfig

@ -1,14 +1,4 @@
DIST openssl-0.9.8u.tar.gz 3781776 SHA256 0548e4b9171a62dcbbe85e63d9b897a35de718e0fe19b3fe56002c8f5a3ba587 SHA512 5c5998a74b70fb0624086d22f2bc16b6114819deae13c777f93e1c3cf0c1efc6e7adad4a8b00a45c1a112596ac9ea07330356af02d86a82667bb216327cdde34 WHIRLPOOL c6059d0fa69fea76f645afaa0b9d40ea9c5cab310d1e522aaba5b7176dbe89136af74e70577e16e0926c824f646ee3c6902cdc0c87305fd7693a9e4b7e1f4585
DIST openssl-0.9.8v.tar.gz 3782207 SHA256 701ac4dbd27b9237919b214b53bc0d08e5e1448f2d0fbe1c80479293d2379a65 SHA512 5e625c69b6176bbb4acd0c4b5751d694591156f672e79fecd72c2a7e782e27cb67f0bfe2aea662b2e81f2f4c71ce9805bb5b8da023b368f35952b052e04520f9 WHIRLPOOL 66ea39d7f67259bf17f614de17e76c4c01e910aece24a3f9b107c7f0119809c8b86e098e92639d7c94417e45bc80c670cc3838520743b5ccc632905d1140d66f
DIST openssl-0.9.8w.tar.gz 3782900 SHA256 537411fe2cfe249a8a5b98b3f809a07ed5f913b94a216b3c510fd353318e4593 SHA512 3d93c96ec5550ae6936b353aa48081b9d8a4adfbd5a51d58b44916961e56fb9aedd30621a99ca3618aa3c6b3e15f30a10457d98629ef6ee0c6cb5518606981ca WHIRLPOOL 0ebc673d02489be248b62f800a99d714b7751702fcb7050f40c2231b318aeb3c868cdd48abc9dcecd018139c30b6e23764d0525bafde17097699e9767a3534dd
DIST openssl-0.9.8x.tar.gz 3782486 SHA256 7ce0c7f2c451070b4497ea7ca6f23eba6cef1a56db2e86e433f65926a7bc7497 SHA512 195ba38e5a3ecb9ea65ed1c0dfd7a7c7c8d25683cb401a4c68880a58b0dc3f3002186381ab1ddac64cc441ecd86606aa14bb91ecfc0c56b31ba85015589afdb2 WHIRLPOOL c54f046600443e16dcb41ef1bbb8a803f701f3af4b2a2011419fb1528838f412dc003155a3fbf5e0d15c64c64c3368e628e145cfc90671a0c2b333ac3a4c2ff9
DIST openssl-0.9.8y.tar.gz 3785001 SHA256 bbecf13495e612936e3a9860c29c0701413564b7a964bf771a3575eaa867cee3 SHA512 cdc05067343d6b06a0d0278e90abcea9bf58439c98279ce0ce22673bf6f4a6597babcb276635c3b15cf04ec76cf53320236f5b6bbc46544a61280825f5b7b3cc WHIRLPOOL c8c9cb00f303c2d95a1d2000c74bb146fb069da9471093bf7a2c00db2a5955c2d63908b3314eb9cd12ea1e80c3bac143d3774bc27515f2ab03c5ef4d88b61612
DIST openssl-1.0.0h.tar.gz 4048067 SHA256 7e3dfc21aa57ed33ea673170053d1921322803b8a6a624a4f0d2e4c308bd418d SHA512 6a1129fa4c90ed67cdeec5578f72ee74ceb983877bbbac41b6ace4abcf4154d6b8217d11951296a1fdfade82c7b9e59e7994fca94e7eb78026b2980fec7be9c5 WHIRLPOOL edec087ef7bf3b6300c2b5870471eca793a0cba217f1ae728d808757749bdc1bdc193c21d86ecf9ba47ca4d0e6bebd1d6407654637226b6dece68b75b8295bc5
DIST openssl-1.0.0i.tar.gz 4047721 SHA256 548262d15777c504be1ab9bb8fabef1e14a3de54837a6593c8f403dd843d5e57 SHA512 b35d64c038f913fcec8cdec5f8a801425dd4bafb1472548a8c13cbce2245aabfc0ca416e166ac6063d59375817f6560390079156db41b98a83db44307ac0cecb WHIRLPOOL a0854284830ec7e7e2c4418423d089f91a0f81bc7313dd1d1791b20d4b78bfc7543834baad2e8817a3809eb8db10079ee1e84f40ef5003ff9330ad49adf142b8
DIST openssl-1.0.0j.tar.gz 4047852 SHA256 626fb8fcb3eb7e966edbe71553ff993d137f6e8a87b05051a3695e621098b8af SHA512 9796c75b4d5de57928708f5f0a8ca01aff5b4974b60006454657ed54c34998bc54d747af03860d319db7e7a57b0cd3c267758ffaac31be2be045c977d5fc33d4 WHIRLPOOL 239f051930d9562e7266edd69cf3a1060d381a95228fd17813dd2dbf469c2cf066786b277c2fd56973b830a6b43f28934f5f15d3b6dfac8f37a6e6a65fcae455
DIST openssl-1.0.1a.tar.gz 4456456 SHA256 d3487e09d891c772cf946273a3bb0ca47479e7941be6d822274320e7cfcc361b SHA512 ceebecbe60201ebb2c600f97e4e0ed38638789189dc2fae85997d5903eda7884ad6190e21b75c453c28ab36ab9262c30f2732945e78bcecc3090542dd4dafd02 WHIRLPOOL 8448ef79710410a2f2b8a7b7b80798c032273d39a3c3f5c1389a1c45a24dd63a3a5a6ce8902a6d0669f0f2643cd5321e969417d01e5194283a159d1773896a50
DIST openssl-1.0.1b.tar.gz 4456651 SHA256 1187bf2d5cdf0b286b951bf5c777aa97855cd7db24fdb9604cb557c8b1d7364b SHA512 d0cfec093b1a27a14ee6d6dc5da0c19c14b77edf8ba558e909be7cf8c5e29023061ed7ac3c54ffe08ea0c21bb859781c63257e26423a66a117c5887bc65051d2 WHIRLPOOL 552d99cdecba10f208933d5fd2055125769c67576af76c8a50f0d33a4d64cc3165913cddcf5e9a1bed0dec51efbd055beaa8bfdcb079fb8337b22534da741540
DIST openssl-1.0.1c.tar.gz 4457113 SHA256 2a9eb3cd4e8b114eb9179c0d3884d61658e7d8e8bf4984798a5f5bd48e325ebe SHA512 14f766daab0828a2f07c65d6da8469a4a5a2b839ff3da188538c4e2db3e3e2f37217fb37e269617fb438463b75fb77dab0b155f36831ff48edbc9e7f2903ebd3 WHIRLPOOL 15f90cd981ed82cb1891a2e4179a15882f34aa0ecfff7e6a4fa435b9ea021168228504e7cd9e201c8ada1207942784558f2696f5d45293fa876cf143d8826bf7
DIST openssl-1.0.1d.tar.gz 4459791 SHA256 88a423f9b08a994054583691b968815875580e12df754e881d7cfe9f1bd1f49d SHA512 333c915501cc4998ab1d16251790eeb471ee6cbf30afcba9b7eefd3cec6a50e061b4347e60b751fa4afea15700ef629503931f22cec3ed64723ac3372ca7735e WHIRLPOOL c7045355d2df7cffe69c24002aa4a17bca76454ab9829741b6d54e74367e9e32dbe7c68b0da8cab2e2a4107b4fe9f93fdcea3c4c0d770fd8c6edebc5a9cc64cc
DIST openssl-1.0.1e.tar.gz 4459777 SHA256 f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3 SHA512 c76857e439431b2ef6f2aa123997e53f82b9c3c964d4d765d7cc6c0c20b37a21adf578f9b759b2b65ae3925454c432a01b7de0cd320ece7181dc292e00d3244e WHIRLPOOL e85cca98d9525935977bab00a1309682c0571973a1472cdd75ea1c96a1b12d8b86d1b51a501bc24a6fdbf3257b047a569b5d24d6164a903af689b01d46a7e428
DIST openssl-c_rehash.sh.1.7 4167 SHA256 4999ee79892f52bd6a4a7baba9fac62262454d573bbffd72685d3aae9e48cee0 SHA512 55e8c2e827750a4f375cb83c86bfe2d166c01ffa5d7e9b16657b72b38b747c8985dd2c98f854c911dfbbee2ff3e92aff39fdf089d979b2e3534b7685ee8b80da WHIRLPOOL c88f06a3b8651f76b6289552cccceb64e13f6697c5f0ce3ff114c781ce1c218912b8ee308af9d087cd76a9600fdacda1953175bff07d7d3eb21b0c0b7f4f1ce1

@ -1,59 +0,0 @@
fix unaligned access in alpha specific 'OPENSSL_cleanse' function
Debugged with the following simple program:
// gcc cleanse_test.c -o ct -lcrypto
#include <openssl/crypto.h>
int main(void)
{
char buffer [128];
int off;
int sz;
for (off = 0; off < sizeof (buffer); ++off)
for (sz = 0; sz < sizeof (buffer) - off; ++sz)
OPENSSL_cleanse (buffer + off, sz);
return 0;
}
$ prctl --unaligned=signal ./cleanse_test
Bus error
https://bugs.gentoo.org/show_bug.cgi?id=371561
http://cvs.openssl.org/chngview?cn=21233
Reported by Tobias Klausmann <klausman@gentoo.org>
Fixed by Andy Polyakov <appro@openssl.org>
diff --git a/crypto/alphacpuid.pl b/crypto/alphacpuid.pl
index 11f2e30..5b0e21b 100644
--- a/crypto/alphacpuid.pl
+++ b/crypto/alphacpuid.pl
@@ -99,19 +99,19 @@ OPENSSL_cleanse:
beq $0,.Laligned
.Little:
+ subq $0,8,$0
ldq_u $1,0($16)
mov $16,$2
.Lalign:
mskbl $1,$16,$1
lda $16,1($16)
subq $17,1,$17
- subq $0,1,$0
+ addq $0,1,$0
beq $17,.Lout
bne $0,.Lalign
.Lout: stq_u $1,0($2)
beq $17,.Ldone
bic $17,7,$at
- mov $17,$0
beq $at,.Little
.Laligned:
@@ -120,9 +120,7 @@ OPENSSL_cleanse:
lda $16,8($16)
bic $17,7,$at
bne $at,.Laligned
- beq $17,.Ldone
- mov $17,$0
- br .Little
+ bne $17,.Little
.Ldone: ret ($26)
.end OPENSSL_cleanse
___

@ -1,13 +0,0 @@
http://bugs.gentoo.org/364699
--- crypto/bn/asm/alpha-mont.pl
+++ crypto/bn/asm/alpha-mont.pl
@@ -41,7 +41,7 @@ $j="s4";
$m1="s5";
$code=<<___;
-#indef __linux__
+#ifdef __linux__
#include <asm/regdef.h>
#else
#include <asm.h>

@ -1,42 +0,0 @@
move internal libraries to ".private" fields so that the default
--libs output matches only what we need
--- a/Makefile.org
+++ b/Makefile.org
@@ -325,7 +325,8 @@ libcrypto.pc: Makefile
echo 'Description: OpenSSL cryptography library'; \
echo 'Version: '$(VERSION); \
echo 'Requires: '; \
- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
+ echo 'Libs: -L$${libdir} -lcrypto'; \
+ echo 'Libs.private: $(EX_LIBS)'; \
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
libssl.pc: Makefile
@@ -334,11 +335,12 @@ libssl.pc: Makefile
echo 'libdir=$${exec_prefix}/$(LIBDIR)'; \
echo 'includedir=$${prefix}/include'; \
echo ''; \
- echo 'Name: OpenSSL'; \
+ echo 'Name: OpenSSL-libssl'; \
echo 'Description: Secure Sockets Layer and cryptography libraries'; \
echo 'Version: '$(VERSION); \
- echo 'Requires: '; \
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
+ echo 'Requires.private: libcrypto'; \
+ echo 'Libs: -L$${libdir} -lssl'; \
+ echo 'Libs.private: $(EX_LIBS)'; \
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
openssl.pc: Makefile
@@ -350,9 +352,7 @@ openssl.pc: Makefile
echo 'Name: OpenSSL'; \
echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
echo 'Version: '$(VERSION); \
- echo 'Requires: '; \
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
- echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
+ echo 'Requires: libssl libcrypto' ) > openssl.pc
Makefile: Makefile.org Configure config
@echo "Makefile is older than Makefile.org, Configure or config."

@ -1,678 +0,0 @@
http://rt.openssl.org/Ticket/Display.html?id=2051
user/pass: guest/guest
Index: apps/s_apps.h
===================================================================
RCS file: /v/openssl/cvs/openssl/apps/s_apps.h,v
retrieving revision 1.21.2.1
diff -u -r1.21.2.1 s_apps.h
--- apps/s_apps.h 4 Sep 2009 17:42:04 -0000 1.21.2.1
+++ apps/s_apps.h 28 Dec 2011 00:28:14 -0000
@@ -148,7 +148,7 @@
#define PORT_STR "4433"
#define PROTOCOL "tcp"
-int do_server(int port, int type, int *ret, int (*cb) (char *hostname, int s, unsigned char *context), unsigned char *context);
+int do_server(int port, int type, int *ret, int (*cb) (char *hostname, int s, unsigned char *context), unsigned char *context, int use_ipv4, int use_ipv6);
#ifdef HEADER_X509_H
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
#endif
@@ -156,7 +156,7 @@
int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key);
#endif
-int init_client(int *sock, char *server, int port, int type);
+int init_client(int *sock, char *server, int port, int type, int use_ipv4, int use_ipv6);
int should_retry(int i);
int extract_port(char *str, short *port_ptr);
int extract_host_port(char *str,char **host_ptr,unsigned char *ip,short *p);
Index: apps/s_cb.c
===================================================================
RCS file: /v/openssl/cvs/openssl/apps/s_cb.c,v
retrieving revision 1.27.2.8.2.2
diff -u -r1.27.2.8.2.2 s_cb.c
--- apps/s_cb.c 13 Nov 2011 13:13:13 -0000 1.27.2.8.2.2
+++ apps/s_cb.c 28 Dec 2011 00:28:14 -0000
Index: apps/s_client.c
===================================================================
RCS file: /v/openssl/cvs/openssl/apps/s_client.c,v
retrieving revision 1.123.2.6.2.10
diff -u -r1.123.2.6.2.10 s_client.c
--- apps/s_client.c 14 Dec 2011 22:18:02 -0000 1.123.2.6.2.10
+++ apps/s_client.c 28 Dec 2011 00:28:14 -0000
@@ -285,6 +285,9 @@
{
BIO_printf(bio_err,"usage: s_client args\n");
BIO_printf(bio_err,"\n");
+#if OPENSSL_USE_IPV6
+ BIO_printf(bio_err," -6 - use IPv6\n");
+#endif
BIO_printf(bio_err," -host host - use -connect instead\n");
BIO_printf(bio_err," -port port - use -connect instead\n");
BIO_printf(bio_err," -connect host:port - who to connect to (default is %s:%s)\n",SSL_HOST_NAME,PORT_STR);
@@ -564,6 +567,7 @@
int sbuf_len,sbuf_off;
fd_set readfds,writefds;
short port=PORT;
+ int use_ipv4, use_ipv6;
int full_log=1;
char *host=SSL_HOST_NAME;
char *cert_file=NULL,*key_file=NULL;
@@ -609,7 +613,11 @@
#endif
char *sess_in = NULL;
char *sess_out = NULL;
- struct sockaddr peer;
+#if OPENSSL_USE_IPV6
+ struct sockaddr_storage peer;
+#else
+ struct sockaddr_in peer;
+#endif
int peerlen = sizeof(peer);
int enable_timeouts = 0 ;
long socket_mtu = 0;
@@ -630,6 +638,8 @@
meth=SSLv2_client_method();
#endif
+ use_ipv4 = 1;
+ use_ipv6 = 0;
apps_startup();
c_Pause=0;
c_quiet=0;
@@ -951,6 +961,13 @@
jpake_secret = *++argv;
}
#endif
+#if OPENSSL_USE_IPV6
+ else if (strcmp(*argv,"-6") == 0)
+ {
+ use_ipv4 = 0;
+ use_ipv6 = 1;
+ }
+#endif
else if (strcmp(*argv,"-use_srtp") == 0)
{
if (--argc < 1) goto bad;
@@ -967,7 +984,7 @@
keymatexportlen=atoi(*(++argv));
if (keymatexportlen == 0) goto bad;
}
- else
+ else
{
BIO_printf(bio_err,"unknown option %s\n",*argv);
badop=1;
@@ -1259,7 +1276,7 @@
re_start:
- if (init_client(&s,host,port,socket_type) == 0)
+ if (init_client(&s,host,port,socket_type,use_ipv4,use_ipv6) == 0)
{
BIO_printf(bio_err,"connect:errno=%d\n",get_last_socket_error());
SHUTDOWN(s);
@@ -1285,7 +1302,7 @@
{
sbio=BIO_new_dgram(s,BIO_NOCLOSE);
- if (getsockname(s, &peer, (void *)&peerlen) < 0)
+ if (getsockname(s, (struct sockaddr *)&peer, (void *)&peerlen) < 0)
{
BIO_printf(bio_err, "getsockname:errno=%d\n",
get_last_socket_error());
@@ -2036,7 +2061,7 @@
BIO_printf(bio,"Expansion: %s\n",
expansion ? SSL_COMP_get_name(expansion) : "NONE");
#endif
-
+
#ifdef SSL_DEBUG
{
/* Print out local port of connection: useful for debugging */
===================================================================
RCS file: /v/openssl/cvs/openssl/apps/s_server.c,v
retrieving revision 1.136.2.15.2.13
diff -u -r1.136.2.15.2.13 s_server.c
--- apps/s_server.c 27 Dec 2011 14:23:22 -0000 1.136.2.15.2.13
+++ apps/s_server.c 28 Dec 2011 00:28:14 -0000
@@ -558,6 +558,10 @@
# endif
BIO_printf(bio_err," -use_srtp profiles - Offer SRTP key management with a colon-separated profile list");
#endif
+ BIO_printf(bio_err," -4 - use IPv4 only\n");
+#if OPENSSL_USE_IPV6
+ BIO_printf(bio_err," -6 - use IPv6 only\n");
+#endif
BIO_printf(bio_err," -keymatexport label - Export keying material using label\n");
BIO_printf(bio_err," -keymatexportlen len - Export len bytes of keying material (default 20)\n");
}
@@ -943,6 +947,7 @@
int state=0;
const SSL_METHOD *meth=NULL;
int socket_type=SOCK_STREAM;
+ int use_ipv4, use_ipv6;
ENGINE *e=NULL;
char *inrand=NULL;
int s_cert_format = FORMAT_PEM, s_key_format = FORMAT_PEM;
@@ -981,6 +986,12 @@
/* #error no SSL version enabled */
#endif
+ use_ipv4 = 1;
+#if OPENSSL_USE_IPV6
+ use_ipv6 = 1;
+#else
+ use_ipv6 = 0;
+#endif
local_argc=argc;
local_argv=argv;
@@ -1329,6 +1340,18 @@
jpake_secret = *(++argv);
}
#endif
+ else if (strcmp(*argv,"-4") == 0)
+ {
+ use_ipv4 = 1;
+ use_ipv6 = 0;
+ }
+#if OPENSSL_USE_IPV6
+ else if (strcmp(*argv,"-6") == 0)
+ {
+ use_ipv4 = 0;
+ use_ipv6 = 1;
+ }
+#endif
else if (strcmp(*argv,"-use_srtp") == 0)
{
if (--argc < 1) goto bad;
@@ -1884,9 +1907,9 @@
BIO_printf(bio_s_out,"ACCEPT\n");
(void)BIO_flush(bio_s_out);
if (www)
- do_server(port,socket_type,&accept_socket,www_body, context);
+ do_server(port,socket_type,&accept_socket,www_body, context, use_ipv4, use_ipv6);
else
- do_server(port,socket_type,&accept_socket,sv_body, context);
+ do_server(port,socket_type,&accept_socket,sv_body, context, use_ipv4, use_ipv6);
print_stats(bio_s_out,ctx);
ret=0;
end:
Index: apps/s_socket.c
===================================================================
RCS file: /v/openssl/cvs/openssl/apps/s_socket.c,v
retrieving revision 1.43.2.3.2.2
diff -u -r1.43.2.3.2.2 s_socket.c
--- apps/s_socket.c 2 Dec 2011 14:39:40 -0000 1.43.2.3.2.2
+++ apps/s_socket.c 28 Dec 2011 00:28:14 -0000
@@ -97,16 +97,16 @@
#include "netdb.h"
#endif
-static struct hostent *GetHostByName(char *name);
+static struct hostent *GetHostByName(char *name, int domain);
#if defined(OPENSSL_SYS_WINDOWS) || (defined(OPENSSL_SYS_NETWARE) && !defined(NETWARE_BSDSOCK))
static void ssl_sock_cleanup(void);
#endif
static int ssl_sock_init(void);
-static int init_client_ip(int *sock,unsigned char ip[4], int port, int type);
-static int init_server(int *sock, int port, int type);
-static int init_server_long(int *sock, int port,char *ip, int type);
+static int init_client_ip(int *sock,unsigned char *ip, int port, int type, int domain);
+static int init_server(int *sock, int port, int type, int use_ipv4, int use_ipv6);
+static int init_server_long(int *sock, int port,char *ip, int type, int use_ipv4, int use_ipv6);
static int do_accept(int acc_sock, int *sock, char **host);
-static int host_ip(char *str, unsigned char ip[4]);
+static int host_ip(char *str, unsigned char *ip, int domain);
#ifdef OPENSSL_SYS_WIN16
#define SOCKET_PROTOCOL 0 /* more microsoft stupidity */
@@ -234,38 +234,76 @@
return(1);
}
-int init_client(int *sock, char *host, int port, int type)
+int init_client(int *sock, char *host, int port, int type, int use_ipv4, int use_ipv6)
{
+#if OPENSSL_USE_IPV6
+ unsigned char ip[16];
+#else
unsigned char ip[4];
+#endif
- memset(ip, '\0', sizeof ip);
- if (!host_ip(host,&(ip[0])))
+ if (!use_ipv4 && !use_ipv6)
return 0;
- return init_client_ip(sock,ip,port,type);
- }
-
-static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)
- {
- unsigned long addr;
+#if OPENSSL_USE_IPV6
+ /* we are fine here */
+#else
+ if (use_ipv6)
+ return 0;
+#endif
+ if (use_ipv4)
+ if (host_ip(host,ip,AF_INET))
+ return(init_client_ip(sock,ip,port,type,AF_INET));
+#if OPENSSL_USE_IPV6
+ if (use_ipv6)
+ if (host_ip(host,ip,AF_INET6))
+ return(init_client_ip(sock,ip,port,type,AF_INET6));
+#endif
+ return 0;
+ }
+
+static int init_client_ip(int *sock, unsigned char ip[4], int port, int type, int domain)
+ {
+#if OPENSSL_USE_IPV6
+ struct sockaddr_storage them;
+ struct sockaddr_in *them_in = (struct sockaddr_in *)&them;
+ struct sockaddr_in6 *them_in6 = (struct sockaddr_in6 *)&them;
+#else
struct sockaddr_in them;
+ struct sockaddr_in *them_in = &them;
+#endif
+ socklen_t addr_len;
int s,i;
if (!ssl_sock_init()) return(0);
memset((char *)&them,0,sizeof(them));
- them.sin_family=AF_INET;
- them.sin_port=htons((unsigned short)port);
- addr=(unsigned long)
- ((unsigned long)ip[0]<<24L)|
- ((unsigned long)ip[1]<<16L)|
- ((unsigned long)ip[2]<< 8L)|
- ((unsigned long)ip[3]);
- them.sin_addr.s_addr=htonl(addr);
+ if (domain == AF_INET)
+ {
+ addr_len = (socklen_t)sizeof(struct sockaddr_in);
+ them_in->sin_family=AF_INET;
+ them_in->sin_port=htons((unsigned short)port);
+#ifndef BIT_FIELD_LIMITS
+ memcpy(&them_in->sin_addr.s_addr, ip, 4);
+#else
+ memcpy(&them_in->sin_addr, ip, 4);
+#endif
+ }
+ else
+#if OPENSSL_USE_IPV6
+ {
+ addr_len = (socklen_t)sizeof(struct sockaddr_in6);
+ them_in6->sin6_family=AF_INET6;
+ them_in6->sin6_port=htons((unsigned short)port);
+ memcpy(&(them_in6->sin6_addr), ip, sizeof(struct in6_addr));
+ }
+#else
+ return(0);
+#endif
if (type == SOCK_STREAM)
- s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL);
+ s=socket(domain,SOCK_STREAM,SOCKET_PROTOCOL);
else /* ( type == SOCK_DGRAM) */
- s=socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP);
+ s=socket(domain,SOCK_DGRAM,IPPROTO_UDP);
if (s == INVALID_SOCKET) { perror("socket"); return(0); }
@@ -277,29 +315,27 @@
if (i < 0) { perror("keepalive"); return(0); }
}
#endif
-
- if (connect(s,(struct sockaddr *)&them,sizeof(them)) == -1)
+ if (connect(s,(struct sockaddr *)&them,addr_len) == -1)
{ closesocket(s); perror("connect"); return(0); }
*sock=s;
return(1);
}
-int do_server(int port, int type, int *ret, int (*cb)(char *hostname, int s, unsigned char *context), unsigned char *context)
+int do_server(int port, int type, int *ret, int (*cb)(char *hostname, int s, unsigned char *context), unsigned char *context, int use_ipv4, int use_ipv6)
{
int sock;
char *name = NULL;
int accept_socket = 0;
int i;
- if (!init_server(&accept_socket,port,type)) return(0);
-
+ if (!init_server(&accept_socket,port,type, use_ipv4, use_ipv6)) return(0);
if (ret != NULL)
{
*ret=accept_socket;
/* return(1);*/
}
- for (;;)
- {
+ for (;;)
+ {
if (type==SOCK_STREAM)
{
if (do_accept(accept_socket,&sock,&name) == 0)
@@ -322,41 +358,88 @@
}
}
-static int init_server_long(int *sock, int port, char *ip, int type)
+static int init_server_long(int *sock, int port, char *ip, int type, int use_ipv4, int use_ipv6)
{
int ret=0;
+ int domain;
+#if OPENSSL_USE_IPV6
+ struct sockaddr_storage server;
+ struct sockaddr_in *server_in = (struct sockaddr_in *)&server;
+ struct sockaddr_in6 *server_in6 = (struct sockaddr_in6 *)&server;
+#else
struct sockaddr_in server;
+ struct sockaddr_in *server_in = &server;
+#endif
+ socklen_t addr_len;
int s= -1;
+ if (!use_ipv4 && !use_ipv6)
+ goto err;
+#if OPENSSL_USE_IPV6
+ /* we are fine here */
+#else
+ if (use_ipv6)
+ goto err;
+#endif
if (!ssl_sock_init()) return(0);
- memset((char *)&server,0,sizeof(server));
- server.sin_family=AF_INET;
- server.sin_port=htons((unsigned short)port);
- if (ip == NULL)
- server.sin_addr.s_addr=INADDR_ANY;
- else
-/* Added for T3E, address-of fails on bit field (beckman@acl.lanl.gov) */
-#ifndef BIT_FIELD_LIMITS
- memcpy(&server.sin_addr.s_addr,ip,4);
+#if OPENSSL_USE_IPV6
+ domain = use_ipv6 ? AF_INET6 : AF_INET;
#else
- memcpy(&server.sin_addr,ip,4);
+ domain = AF_INET;
#endif
-
- if (type == SOCK_STREAM)
- s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL);
- else /* type == SOCK_DGRAM */
- s=socket(AF_INET, SOCK_DGRAM,IPPROTO_UDP);
+ if (type == SOCK_STREAM)
+ s=socket(domain,SOCK_STREAM,SOCKET_PROTOCOL);
+ else /* type == SOCK_DGRAM */
+ s=socket(domain, SOCK_DGRAM,IPPROTO_UDP);
if (s == INVALID_SOCKET) goto err;
#if defined SOL_SOCKET && defined SO_REUSEADDR
+ {
+ int j = 1;
+ setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
+ (void *) &j, sizeof j);
+ }
+#endif
+#if OPENSSL_USE_IPV6
+ if ((use_ipv4 == 0) && (use_ipv6 == 1))
{
- int j = 1;
- setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
- (void *) &j, sizeof j);
+ const int on = 1;
+
+ setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
+ (const void *) &on, sizeof(int));
}
#endif
- if (bind(s,(struct sockaddr *)&server,sizeof(server)) == -1)
+ if (domain == AF_INET)
+ {
+ addr_len = (socklen_t)sizeof(struct sockaddr_in);
+ memset(server_in, 0, sizeof(struct sockaddr_in));
+ server_in->sin_family=AF_INET;
+ server_in->sin_port = htons((unsigned short)port);
+ if (ip == NULL)
+ server_in->sin_addr.s_addr = htonl(INADDR_ANY);
+ else
+/* Added for T3E, address-of fails on bit field (beckman@acl.lanl.gov) */
+#ifndef BIT_FIELD_LIMITS
+ memcpy(&server_in->sin_addr.s_addr, ip, 4);
+#else
+ memcpy(&server_in->sin_addr, ip, 4);
+#endif
+ }
+#if OPENSSL_USE_IPV6
+ else
+ {
+ addr_len = (socklen_t)sizeof(struct sockaddr_in6);
+ memset(server_in6, 0, sizeof(struct sockaddr_in6));
+ server_in6->sin6_family = AF_INET6;
+ server_in6->sin6_port = htons((unsigned short)port);
+ if (ip == NULL)
+ server_in6->sin6_addr = in6addr_any;
+ else
+ memcpy(&server_in6->sin6_addr, ip, sizeof(struct in6_addr));
+ }
+#endif
+ if (bind(s, (struct sockaddr *)&server, addr_len) == -1)
{
#ifndef OPENSSL_SYS_WINDOWS
perror("bind");
@@ -375,16 +458,23 @@
return(ret);
}
-static int init_server(int *sock, int port, int type)
+static int init_server(int *sock, int port, int type, int use_ipv4, int use_ipv6)
{
- return(init_server_long(sock, port, NULL, type));
+ return(init_server_long(sock, port, NULL, type, use_ipv4, use_ipv6));
}
static int do_accept(int acc_sock, int *sock, char **host)
{
int ret;
struct hostent *h1,*h2;
- static struct sockaddr_in from;
+#if OPENSSL_USE_IPV6
+ struct sockaddr_storage from;
+ struct sockaddr_in *from_in = (struct sockaddr_in *)&from;
+ struct sockaddr_in6 *from_in6 = (struct sockaddr_in6 *)&from;
+#else
+ struct sockaddr_in from;
+ struct sockaddr_in *from_in = &from;
+#endif
int len;
/* struct linger ling; */
@@ -431,13 +521,23 @@
*/
if (host == NULL) goto end;
+#if OPENSSL_USE_IPV6
+ if (from.ss_family == AF_INET)
+#else
+ if (from.sin_family == AF_INET)
+#endif
#ifndef BIT_FIELD_LIMITS
- /* I should use WSAAsyncGetHostByName() under windows */
- h1=gethostbyaddr((char *)&from.sin_addr.s_addr,
- sizeof(from.sin_addr.s_addr),AF_INET);
+ /* I should use WSAAsyncGetHostByName() under windows */
+ h1=gethostbyaddr((char *)&from_in->sin_addr.s_addr,
+ sizeof(from_in->sin_addr.s_addr), AF_INET);
#else
- h1=gethostbyaddr((char *)&from.sin_addr,
- sizeof(struct in_addr),AF_INET);
+ h1=gethostbyaddr((char *)&from_in->sin_addr,
+ sizeof(struct in_addr), AF_INET);
+#endif
+#if OPENSSL_USE_IPV6
+ else
+ h1=gethostbyaddr((char *)&from_in6->sin6_addr,
+ sizeof(struct in6_addr), AF_INET6);
#endif
if (h1 == NULL)
{
@@ -454,15 +554,23 @@
}
BUF_strlcpy(*host,h1->h_name,strlen(h1->h_name)+1);
- h2=GetHostByName(*host);
+#if OPENSSL_USE_IPV6
+ h2=GetHostByName(*host, from.ss_family);
+#else
+ h2=GetHostByName(*host, from.sin_family);
+#endif
if (h2 == NULL)
{
BIO_printf(bio_err,"gethostbyname failure\n");
return(0);
}
- if (h2->h_addrtype != AF_INET)
+#if OPENSSL_USE_IPV6
+ if (h2->h_addrtype != from.ss_family)
+#else
+ if (h2->h_addrtype != from.sin_family)
+#endif
{
- BIO_printf(bio_err,"gethostbyname addr is not AF_INET\n");
+ BIO_printf(bio_err,"gethostbyname addr address is not correct\n");
return(0);
}
}
@@ -477,7 +585,7 @@
char *h,*p;
h=str;
- p=strchr(str,':');
+ p=strrchr(str,':');
if (p == NULL)
{
BIO_printf(bio_err,"no port defined\n");
@@ -485,7 +593,7 @@
}
*(p++)='\0';
- if ((ip != NULL) && !host_ip(str,ip))
+ if ((ip != NULL) && !host_ip(str,ip,AF_INET))
goto err;
if (host_ptr != NULL) *host_ptr=h;
@@ -496,48 +604,58 @@
return(0);
}
-static int host_ip(char *str, unsigned char ip[4])
+static int host_ip(char *str, unsigned char *ip, int domain)
{
- unsigned int in[4];
+ unsigned int in[4];
+ unsigned long l;
int i;
- if (sscanf(str,"%u.%u.%u.%u",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4)
+ if ((domain == AF_INET) &&
+ (sscanf(str,"%u.%u.%u.%u",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4))
{
+
for (i=0; i<4; i++)
if (in[i] > 255)
{
BIO_printf(bio_err,"invalid IP address\n");
goto err;
}
- ip[0]=in[0];
- ip[1]=in[1];
- ip[2]=in[2];
- ip[3]=in[3];
- }
+ l=htonl((in[0]<<24L)|(in[1]<<16L)|(in[2]<<8L)|in[3]);
+ memcpy(ip, &l, 4);
+ return 1;
+ }
+#if OPENSSL_USE_IPV6
+ else if ((domain == AF_INET6) &&
+ (inet_pton(AF_INET6, str, ip) == 1))
+ return 1;
+#endif
else
{ /* do a gethostbyname */
struct hostent *he;
if (!ssl_sock_init()) return(0);
- he=GetHostByName(str);
+ he=GetHostByName(str,domain);
if (he == NULL)
{
BIO_printf(bio_err,"gethostbyname failure\n");
goto err;
}
/* cast to short because of win16 winsock definition */
- if ((short)he->h_addrtype != AF_INET)
+ if ((short)he->h_addrtype != domain)
{
- BIO_printf(bio_err,"gethostbyname addr is not AF_INET\n");
+ BIO_printf(bio_err,"gethostbyname addr family is not correct\n");
return(0);
}
- ip[0]=he->h_addr_list[0][0];
- ip[1]=he->h_addr_list[0][1];
- ip[2]=he->h_addr_list[0][2];
- ip[3]=he->h_addr_list[0][3];
+ if (domain == AF_INET)
+ memset(ip, 0, 4);
+#if OPENSSL_USE_IPV6
+ else
+ memset(ip, 0, 16);
+#endif
+ memcpy(ip, he->h_addr_list[0], he->h_length);
+ return 1;
}
- return(1);
err:
return(0);
}
@@ -574,7 +692,7 @@
static unsigned long ghbn_hits=0L;
static unsigned long ghbn_miss=0L;
-static struct hostent *GetHostByName(char *name)
+static struct hostent *GetHostByName(char *name, int domain)
{
struct hostent *ret;
int i,lowi=0;
@@ -589,14 +707,20 @@
}
if (ghbn_cache[i].order > 0)
{
- if (strncmp(name,ghbn_cache[i].name,128) == 0)
+ if ((strncmp(name,ghbn_cache[i].name,128) == 0) &&
+ (ghbn_cache[i].ent.h_addrtype == domain))
break;
}
}
if (i == GHBN_NUM) /* no hit*/
{
ghbn_miss++;
- ret=gethostbyname(name);
+ if (domain == AF_INET)
+ ret=gethostbyname(name);
+#if OPENSSL_USE_IPV6
+ else
+ ret=gethostbyname2(name, AF_INET6);
+#endif
if (ret == NULL) return(NULL);
/* else add to cache */
if(strlen(name) < sizeof ghbn_cache[0].name)

@ -1,52 +0,0 @@
http://cvs.openssl.org/chngview?cn=22455
fix from upstream for building on non-x86 arches
e_rc4_hmac_md5.c: last commit was inappropriate for non-x86[_64] platforms [from HEAD]. PR: 2792
Index: crypto/evp/e_rc4_hmac_md5.c
===================================================================
RCS file: /usr/local/src/openssl/CVSROOT/openssl/crypto/evp/e_rc4_hmac_md5.c,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.5 -r1.1.2.6
--- crypto/evp/e_rc4_hmac_md5.c 18 Apr 2012 17:51:33 -0000 1.1.2.5
+++ crypto/evp/e_rc4_hmac_md5.c 19 Apr 2012 20:43:02 -0000 1.1.2.6
@@ -121,6 +121,7 @@ static int rc4_hmac_md5_cipher(EVP_CIPHE
md5_off = MD5_CBLOCK-key->md.num,
blocks;
unsigned int l;
+ extern unsigned int OPENSSL_ia32cap_P[];
#endif
size_t plen = key->payload_length;
@@ -132,7 +133,8 @@ static int rc4_hmac_md5_cipher(EVP_CIPHE
/* cipher has to "fall behind" */
if (rc4_off>md5_off) md5_off+=MD5_CBLOCK;
- if (plen>md5_off && (blocks=(plen-md5_off)/MD5_CBLOCK)) {
+ if (plen>md5_off && (blocks=(plen-md5_off)/MD5_CBLOCK) &&
+ (OPENSSL_ia32cap_P[0]&(1<<20))==0) {
MD5_Update(&key->md,in,md5_off);
RC4(&key->ks,rc4_off,in,out);
@@ -172,7 +174,8 @@ static int rc4_hmac_md5_cipher(EVP_CIPHE
if (md5_off>rc4_off) rc4_off += 2*MD5_CBLOCK;
else rc4_off += MD5_CBLOCK;
- if (len>rc4_off && (blocks=(len-rc4_off)/MD5_CBLOCK)) {
+ if (len>rc4_off && (blocks=(len-rc4_off)/MD5_CBLOCK) &&
+ (OPENSSL_ia32cap_P[0]&(1<<20))==0) {
RC4(&key->ks,rc4_off,in,out);
MD5_Update(&key->md,out,md5_off);
@@ -289,8 +292,6 @@ static EVP_CIPHER r4_hmac_md5_cipher=
const EVP_CIPHER *EVP_rc4_hmac_md5(void)
{
- extern unsigned int OPENSSL_ia32cap_P[];
- /* RC4_CHAR flag ------------vvvvv */
- return(OPENSSL_ia32cap_P[0]&(1<<20) ? NULL : &r4_hmac_md5_cipher);
+ return(&r4_hmac_md5_cipher);
}
#endif

@ -1,76 +0,0 @@
https://bugs.gentoo.org/456108
taken from upstream
From 32cc2479b473c49ce869e57fded7e9a77b695c0d Mon Sep 17 00:00:00 2001
From: "Dr. Stephen Henson" <steve@openssl.org>
Date: Thu, 7 Feb 2013 21:06:37 +0000
Subject: [PATCH] Fix IV check and padding removal.
Fix the calculation that checks there is enough room in a record
after removing padding and optional explicit IV. (by Steve)
For AEAD remove the correct number of padding bytes (by Andy)
---
ssl/s3_cbc.c | 33 ++++++++++++---------------------
1 file changed, 12 insertions(+), 21 deletions(-)
diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c
index ce77acd..0f60507 100644
--- a/ssl/s3_cbc.c
+++ b/ssl/s3_cbc.c
@@ -139,31 +139,22 @@ int tls1_cbc_remove_padding(const SSL* s,
unsigned mac_size)
{
unsigned padding_length, good, to_check, i;
- const char has_explicit_iv =
- s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION;
- const unsigned overhead = 1 /* padding length byte */ +
- mac_size +
- (has_explicit_iv ? block_size : 0);
-
- /* These lengths are all public so we can test them in non-constant
- * time. */
- if (overhead > rec->length)
- return 0;
-
- /* We can always safely skip the explicit IV. We check at the beginning
- * of this function that the record has at least enough space for the
- * IV, MAC and padding length byte. (These can be checked in
- * non-constant time because it's all public information.) So, if the
- * padding was invalid, then we didn't change |rec->length| and this is
- * safe. If the padding was valid then we know that we have at least
- * overhead+padding_length bytes of space and so this is still safe
- * because overhead accounts for the explicit IV. */
- if (has_explicit_iv)
+ const unsigned overhead = 1 /* padding length byte */ + mac_size;
+ /* Check if version requires explicit IV */
+ if (s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION)
{
+ /* These lengths are all public so we can test them in
+ * non-constant time.
+ */
+ if (overhead + block_size > rec->length)
+ return 0;
+ /* We can now safely skip explicit IV */
rec->data += block_size;
rec->input += block_size;
rec->length -= block_size;
}
+ else if (overhead > rec->length)
+ return 0;
padding_length = rec->data[rec->length-1];
@@ -190,7 +181,7 @@ int tls1_cbc_remove_padding(const SSL* s,
if (EVP_CIPHER_flags(s->enc_read_ctx->cipher)&EVP_CIPH_FLAG_AEAD_CIPHER)
{
/* padding is already verified */
- rec->length -= padding_length;
+ rec->length -= padding_length + 1;
return 1;
}
--
1.8.0.2

@ -1,141 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8u.ebuild,v 1.5 2012/05/25 17:41:49 vapier Exp $
# this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
EAPI="2"
inherit eutils flag-o-matic toolchain-funcs multilib
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz"
LICENSE="openssl"
SLOT="0.9.8"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos sse2 test zlib"
RDEPEND="gmp? ( dev-libs/gmp )
zlib? ( sys-libs/zlib )
kerberos? ( app-crypt/mit-krb5 )
!=dev-libs/openssl-0.9.8*:0"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
pkg_setup() {
# avoid collisions with openssl-1 (preserve lib)
if ! has_version dev-libs/openssl:${SLOT} ; then
ewarn "Removing lib{crypto,ssl}.so.0.9.8 to avoid collision with openssl-1"
rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch
epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438
epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile{,.org} \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# update the enginedir path
sed -i \
-e "/foo.*engines/s|/lib/engines|/$(get_libdir)/engines|" \
Configure || die
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed"
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags -Wa,--noexecstack
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
tc-export CC AR RANLIB
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=/etc/ssl \
shared threads \
|| die "Configure failed"
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^LIBDIR=/s|=.*|=$(get_libdir)|" \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts
emake -j1 depend || die "depend failed"
emake -j1 build_libs || die "make build_libs failed"
}
src_test() {
emake -j1 test || die "make test failed"
}
src_install() {
dolib.so lib{crypto,ssl}.so.0.9.8 || die
}

@ -1,141 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8v.ebuild,v 1.5 2012/05/25 17:41:49 vapier Exp $
# this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
EAPI="2"
inherit eutils flag-o-matic toolchain-funcs multilib
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz"
LICENSE="openssl"
SLOT="0.9.8"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos sse2 test zlib"
RDEPEND="gmp? ( dev-libs/gmp )
zlib? ( sys-libs/zlib )
kerberos? ( app-crypt/mit-krb5 )
!=dev-libs/openssl-0.9.8*:0"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
pkg_setup() {
# avoid collisions with openssl-1 (preserve lib)
if ! has_version dev-libs/openssl:${SLOT} ; then
ewarn "Removing lib{crypto,ssl}.so.0.9.8 to avoid collision with openssl-1"
rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch
epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438
epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile{,.org} \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# update the enginedir path
sed -i \
-e "/foo.*engines/s|/lib/engines|/$(get_libdir)/engines|" \
Configure || die
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed"
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags -Wa,--noexecstack
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
tc-export CC AR RANLIB
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=/etc/ssl \
shared threads \
|| die "Configure failed"
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^LIBDIR=/s|=.*|=$(get_libdir)|" \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts
emake -j1 depend || die "depend failed"
emake -j1 build_libs || die "make build_libs failed"
}
src_test() {
emake -j1 test || die "make test failed"
}
src_install() {
dolib.so lib{crypto,ssl}.so.0.9.8 || die
}

@ -1,141 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8w.ebuild,v 1.4 2012/05/25 17:41:49 vapier Exp $
# this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
EAPI="2"
inherit eutils flag-o-matic toolchain-funcs multilib
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz"
LICENSE="openssl"
SLOT="0.9.8"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos sse2 test zlib"
RDEPEND="gmp? ( dev-libs/gmp )
zlib? ( sys-libs/zlib )
kerberos? ( app-crypt/mit-krb5 )
!=dev-libs/openssl-0.9.8*:0"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
pkg_setup() {
# avoid collisions with openssl-1 (preserve lib)
if ! has_version dev-libs/openssl:${SLOT} ; then
ewarn "Removing lib{crypto,ssl}.so.0.9.8 to avoid collision with openssl-1"
rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch
epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438
epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile{,.org} \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# update the enginedir path
sed -i \
-e "/foo.*engines/s|/lib/engines|/$(get_libdir)/engines|" \
Configure || die
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed"
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags -Wa,--noexecstack
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
tc-export CC AR RANLIB
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=/etc/ssl \
shared threads \
|| die "Configure failed"
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^LIBDIR=/s|=.*|=$(get_libdir)|" \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts
emake -j1 depend || die "depend failed"
emake -j1 build_libs || die "make build_libs failed"
}
src_test() {
emake -j1 test || die "make test failed"
}
src_install() {
dolib.so lib{crypto,ssl}.so.0.9.8 || die
}

@ -1,141 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8x.ebuild,v 1.4 2012/05/25 17:41:49 vapier Exp $
# this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
EAPI="2"
inherit eutils flag-o-matic toolchain-funcs multilib
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz"
LICENSE="openssl"
SLOT="0.9.8"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos sse2 test zlib"
RDEPEND="gmp? ( dev-libs/gmp )
zlib? ( sys-libs/zlib )
kerberos? ( app-crypt/mit-krb5 )
!=dev-libs/openssl-0.9.8*:0"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
pkg_setup() {
# avoid collisions with openssl-1 (preserve lib)
if ! has_version dev-libs/openssl:${SLOT} ; then
ewarn "Removing lib{crypto,ssl}.so.0.9.8 to avoid collision with openssl-1"
rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch
epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438
epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile{,.org} \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# update the enginedir path
sed -i \
-e "/foo.*engines/s|/lib/engines|/$(get_libdir)/engines|" \
Configure || die
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed"
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags -Wa,--noexecstack
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
tc-export CC AR RANLIB
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=/etc/ssl \
shared threads \
|| die "Configure failed"
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^LIBDIR=/s|=.*|=$(get_libdir)|" \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts
emake -j1 depend || die "depend failed"
emake -j1 build_libs || die "make build_libs failed"
}
src_test() {
emake -j1 test || die "make test failed"
}
src_install() {
dolib.so lib{crypto,ssl}.so.0.9.8 || die
}

@ -1,213 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.0h.ebuild,v 1.8 2013/02/08 06:17:18 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic toolchain-funcs multilib
REV="1.7"
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
LICENSE="openssl"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
# our libssl.a depends on libz.a/etc... at runtime.
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
zlib? ( sys-libs/zlib[static-libs(+)] )
kerberos? ( app-crypt/mit-krb5 )"
RDEPEND="static-libs? ( ${LIB_DEPEND} )
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
PDEPEND="app-misc/ca-certificates"
src_unpack() {
unpack ${P}.tar.gz
SSL_CNF_DIR="/etc/ssl"
sed \
-e "/^DIR=/s:=.*:=${SSL_CNF_DIR}:" \
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
> "${WORKDIR}"/c_rehash || die #416717
}
src_prepare() {
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
epatch "${FILESDIR}"/${PN}-1.0.0d-fbsd-amd64.patch #363089
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
epatch "${FILESDIR}"/${PN}-1.0.0e-parallel-build.patch
epatch "${FILESDIR}"/${PN}-1.0.0e-x32.patch
epatch_user #332661
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile.org \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-1.0.0 gentoo.config || die
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags $(test-flags-CC -Wa,--noexecstack)
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
unset CROSS_COMPILE #311473
tc-export CC AR RANLIB RC
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl rfc3779) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=${SSL_CNF_DIR} \
--libdir=$(get_libdir) \
shared threads \
|| die
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts; it also doesn't matter
# that it's -j1 as the code itself serializes subdirs
emake -j1 depend || die
emake all || die
# rehash is needed to prep the certs/ dir; do this
# separately to avoid parallel build issues.
emake rehash || die
}
src_test() {
emake -j1 test || die
}
src_install() {
emake INSTALL_PREFIX="${D}" install || die
dobin "${WORKDIR}"/c_rehash || die #333117
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
dohtml -r doc/*
use rfc3779 && dodoc engines/ccgost/README.gost
# This is crappy in that the static archives are still built even
# when USE=static-libs. But this is due to a failing in the openssl
# build system: the static archives are built as PIC all the time.
# Only way around this would be to manually configure+compile openssl
# twice; once with shared lib support enabled and once without.
use static-libs || rm -f "${D}"/usr/lib*/lib*.a
# create the certs directory
dodir ${SSL_CNF_DIR}/certs
cp -RP certs/* "${D}"${SSL_CNF_DIR}/certs/ || die
rm -r "${D}"${SSL_CNF_DIR}/certs/{demo,expired}
# Namespace openssl programs to prevent conflicts with other man pages
cd "${D}"/usr/share/man
local m d s
for m in $(find . -type f | xargs grep -L '#include') ; do
d=${m%/*} ; d=${d#./} ; m=${m##*/}
[[ ${m} == openssl.1* ]] && continue
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
mv ${d}/{,ssl-}${m}
# fix up references to renamed man pages
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
ln -s ssl-${m} ${d}/openssl-${m}
# locate any symlinks that point to this man page ... we assume
# that any broken links are due to the above renaming
for s in $(find -L ${d} -type l) ; do
s=${s##*/}
rm -f ${d}/${s}
ln -s ssl-${m} ${d}/ssl-${s}
ln -s ssl-${s} ${d}/openssl-${s}
done
done
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
dodir /etc/sandbox.d #254521
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl
diropts -m0700
keepdir ${SSL_CNF_DIR}/private
}
pkg_preinst() {
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}
pkg_postinst() {
ebegin "Running 'c_rehash ${ROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
c_rehash "${ROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
eend $?
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}

@ -1,213 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.0i.ebuild,v 1.10 2013/02/08 06:17:18 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic toolchain-funcs multilib
REV="1.7"
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
LICENSE="openssl"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
# our libssl.a depends on libz.a/etc... at runtime.
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
zlib? ( sys-libs/zlib[static-libs(+)] )
kerberos? ( app-crypt/mit-krb5 )"
RDEPEND="static-libs? ( ${LIB_DEPEND} )
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
PDEPEND="app-misc/ca-certificates"
src_unpack() {
unpack ${P}.tar.gz
SSL_CNF_DIR="/etc/ssl"
sed \
-e "/^DIR=/s:=.*:=${SSL_CNF_DIR}:" \
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
> "${WORKDIR}"/c_rehash || die #416717
}
src_prepare() {
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
epatch "${FILESDIR}"/${PN}-1.0.0d-fbsd-amd64.patch #363089
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
epatch "${FILESDIR}"/${PN}-1.0.0e-parallel-build.patch
epatch "${FILESDIR}"/${PN}-1.0.0e-x32.patch
epatch_user #332661
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile.org \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-1.0.0 gentoo.config || die
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags $(test-flags-CC -Wa,--noexecstack)
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
unset CROSS_COMPILE #311473
tc-export CC AR RANLIB RC
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl rfc3779) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=${SSL_CNF_DIR} \
--libdir=$(get_libdir) \
shared threads \
|| die
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts; it also doesn't matter
# that it's -j1 as the code itself serializes subdirs
emake -j1 depend || die
emake all || die
# rehash is needed to prep the certs/ dir; do this
# separately to avoid parallel build issues.
emake rehash || die
}
src_test() {
emake -j1 test || die
}
src_install() {
emake INSTALL_PREFIX="${D}" install || die
dobin "${WORKDIR}"/c_rehash || die #333117
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
dohtml -r doc/*
use rfc3779 && dodoc engines/ccgost/README.gost
# This is crappy in that the static archives are still built even
# when USE=static-libs. But this is due to a failing in the openssl
# build system: the static archives are built as PIC all the time.
# Only way around this would be to manually configure+compile openssl
# twice; once with shared lib support enabled and once without.
use static-libs || rm -f "${D}"/usr/lib*/lib*.a
# create the certs directory
dodir ${SSL_CNF_DIR}/certs
cp -RP certs/* "${D}"${SSL_CNF_DIR}/certs/ || die
rm -r "${D}"${SSL_CNF_DIR}/certs/{demo,expired}
# Namespace openssl programs to prevent conflicts with other man pages
cd "${D}"/usr/share/man
local m d s
for m in $(find . -type f | xargs grep -L '#include') ; do
d=${m%/*} ; d=${d#./} ; m=${m##*/}
[[ ${m} == openssl.1* ]] && continue
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
mv ${d}/{,ssl-}${m}
# fix up references to renamed man pages
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
ln -s ssl-${m} ${d}/openssl-${m}
# locate any symlinks that point to this man page ... we assume
# that any broken links are due to the above renaming
for s in $(find -L ${d} -type l) ; do
s=${s##*/}
rm -f ${d}/${s}
ln -s ssl-${m} ${d}/ssl-${s}
ln -s ssl-${s} ${d}/openssl-${s}
done
done
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
dodir /etc/sandbox.d #254521
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl
diropts -m0700
keepdir ${SSL_CNF_DIR}/private
}
pkg_preinst() {
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}
pkg_postinst() {
ebegin "Running 'c_rehash ${ROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
c_rehash "${ROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
eend $?
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}

@ -1,222 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1a.ebuild,v 1.8 2013/05/21 17:53:18 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic toolchain-funcs multilib
REV="1.7"
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
LICENSE="openssl"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test vanilla zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
# our libssl.a depends on libz.a/etc... at runtime.
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
zlib? ( sys-libs/zlib[static-libs(+)] )
kerberos? ( app-crypt/mit-krb5 )"
# The blocks are temporary just to make sure people upgrade to a
# version that lack runtime version checking. We'll drop them in
# the future.
RDEPEND="static-libs? ( ${LIB_DEPEND} )
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
!<net-misc/openssh-5.9_p1-r4
!<net-libs/neon-0.29.6-r1"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
PDEPEND="app-misc/ca-certificates"
src_unpack() {
unpack ${P}.tar.gz
SSL_CNF_DIR="/etc/ssl"
sed \
-e "/^DIR=/s:=.*:=${SSL_CNF_DIR}:" \
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
> "${WORKDIR}"/c_rehash || die #416717
}
src_prepare() {
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
if ! use vanilla ; then
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
epatch "${FILESDIR}"/${PN}-1.0.0d-fbsd-amd64.patch #363089
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
epatch "${FILESDIR}"/${PN}-1.0.1-ipv6.patch
epatch "${FILESDIR}"/${P}-hmac-ia32cap.patch
epatch_user #332661
fi
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile.org \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags $(test-flags-CC -Wa,--noexecstack)
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
unset CROSS_COMPILE #311473
tc-export CC AR RANLIB RC
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl rfc3779) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=${SSL_CNF_DIR} \
--libdir=$(get_libdir) \
shared threads \
|| die
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts; it also doesn't matter
# that it's -j1 as the code itself serializes subdirs
emake -j1 depend
emake all
# rehash is needed to prep the certs/ dir; do this
# separately to avoid parallel build issues.
emake rehash
}
src_test() {
emake -j1 test
}
src_install() {
emake INSTALL_PREFIX="${D}" install
dobin "${WORKDIR}"/c_rehash #333117
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
dohtml -r doc/*
use rfc3779 && dodoc engines/ccgost/README.gost
# This is crappy in that the static archives are still built even
# when USE=static-libs. But this is due to a failing in the openssl
# build system: the static archives are built as PIC all the time.
# Only way around this would be to manually configure+compile openssl
# twice; once with shared lib support enabled and once without.
use static-libs || rm -f "${D}"/usr/lib*/lib*.a
# create the certs directory
dodir ${SSL_CNF_DIR}/certs
cp -RP certs/* "${D}"${SSL_CNF_DIR}/certs/ || die
rm -r "${D}"${SSL_CNF_DIR}/certs/{demo,expired}
# Namespace openssl programs to prevent conflicts with other man pages
cd "${D}"/usr/share/man
local m d s
for m in $(find . -type f | xargs grep -L '#include') ; do
d=${m%/*} ; d=${d#./} ; m=${m##*/}
[[ ${m} == openssl.1* ]] && continue
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
mv ${d}/{,ssl-}${m}
# fix up references to renamed man pages
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
ln -s ssl-${m} ${d}/openssl-${m}
# locate any symlinks that point to this man page ... we assume
# that any broken links are due to the above renaming
for s in $(find -L ${d} -type l) ; do
s=${s##*/}
rm -f ${d}/${s}
ln -s ssl-${m} ${d}/ssl-${s}
ln -s ssl-${s} ${d}/openssl-${s}
done
done
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
dodir /etc/sandbox.d #254521
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl
diropts -m0700
keepdir ${SSL_CNF_DIR}/private
}
pkg_preinst() {
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}
pkg_postinst() {
ebegin "Running 'c_rehash ${ROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
c_rehash "${ROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
eend $?
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}

@ -1,221 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1b.ebuild,v 1.5 2013/05/21 17:53:18 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic toolchain-funcs multilib
REV="1.7"
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
LICENSE="openssl"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test vanilla zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
# our libssl.a depends on libz.a/etc... at runtime.
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
zlib? ( sys-libs/zlib[static-libs(+)] )
kerberos? ( app-crypt/mit-krb5 )"
# The blocks are temporary just to make sure people upgrade to a
# version that lack runtime version checking. We'll drop them in
# the future.
RDEPEND="static-libs? ( ${LIB_DEPEND} )
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
!<net-misc/openssh-5.9_p1-r4
!<net-libs/neon-0.29.6-r1"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
PDEPEND="app-misc/ca-certificates"
src_unpack() {
unpack ${P}.tar.gz
SSL_CNF_DIR="/etc/ssl"
sed \
-e "/^DIR=/s:=.*:=${SSL_CNF_DIR}:" \
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
> "${WORKDIR}"/c_rehash || die #416717
}
src_prepare() {
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
if ! use vanilla ; then
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
epatch "${FILESDIR}"/${PN}-1.0.0d-fbsd-amd64.patch #363089
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
epatch "${FILESDIR}"/${PN}-1.0.1-ipv6.patch
epatch_user #332661
fi
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile.org \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags $(test-flags-CC -Wa,--noexecstack)
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
unset CROSS_COMPILE #311473
tc-export CC AR RANLIB RC
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl rfc3779) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=${SSL_CNF_DIR} \
--libdir=$(get_libdir) \
shared threads \
|| die
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts; it also doesn't matter
# that it's -j1 as the code itself serializes subdirs
emake -j1 depend
emake all
# rehash is needed to prep the certs/ dir; do this
# separately to avoid parallel build issues.
emake rehash
}
src_test() {
emake -j1 test
}
src_install() {
emake INSTALL_PREFIX="${D}" install
dobin "${WORKDIR}"/c_rehash #333117
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
dohtml -r doc/*
use rfc3779 && dodoc engines/ccgost/README.gost
# This is crappy in that the static archives are still built even
# when USE=static-libs. But this is due to a failing in the openssl
# build system: the static archives are built as PIC all the time.
# Only way around this would be to manually configure+compile openssl
# twice; once with shared lib support enabled and once without.
use static-libs || rm -f "${D}"/usr/lib*/lib*.a
# create the certs directory
dodir ${SSL_CNF_DIR}/certs
cp -RP certs/* "${D}"${SSL_CNF_DIR}/certs/ || die
rm -r "${D}"${SSL_CNF_DIR}/certs/{demo,expired}
# Namespace openssl programs to prevent conflicts with other man pages
cd "${D}"/usr/share/man
local m d s
for m in $(find . -type f | xargs grep -L '#include') ; do
d=${m%/*} ; d=${d#./} ; m=${m##*/}
[[ ${m} == openssl.1* ]] && continue
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
mv ${d}/{,ssl-}${m}
# fix up references to renamed man pages
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
ln -s ssl-${m} ${d}/openssl-${m}
# locate any symlinks that point to this man page ... we assume
# that any broken links are due to the above renaming
for s in $(find -L ${d} -type l) ; do
s=${s##*/}
rm -f ${d}/${s}
ln -s ssl-${m} ${d}/ssl-${s}
ln -s ssl-${s} ${d}/openssl-${s}
done
done
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
dodir /etc/sandbox.d #254521
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl
diropts -m0700
keepdir ${SSL_CNF_DIR}/private
}
pkg_preinst() {
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}
pkg_postinst() {
ebegin "Running 'c_rehash ${ROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
c_rehash "${ROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
eend $?
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}

@ -1,221 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1c.ebuild,v 1.14 2013/05/21 17:53:18 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic toolchain-funcs multilib
REV="1.7"
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
LICENSE="openssl"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test vanilla zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
# our libssl.a depends on libz.a/etc... at runtime.
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
zlib? ( sys-libs/zlib[static-libs(+)] )
kerberos? ( app-crypt/mit-krb5 )"
# The blocks are temporary just to make sure people upgrade to a
# version that lack runtime version checking. We'll drop them in
# the future.
RDEPEND="static-libs? ( ${LIB_DEPEND} )
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
!<net-misc/openssh-5.9_p1-r4
!<net-libs/neon-0.29.6-r1"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
PDEPEND="app-misc/ca-certificates"
src_unpack() {
unpack ${P}.tar.gz
SSL_CNF_DIR="/etc/ssl"
sed \
-e "/^DIR=/s:=.*:=${SSL_CNF_DIR}:" \
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
> "${WORKDIR}"/c_rehash || die #416717
}
src_prepare() {
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
if ! use vanilla ; then
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
epatch "${FILESDIR}"/${PN}-1.0.0d-fbsd-amd64.patch #363089
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
epatch "${FILESDIR}"/${PN}-1.0.1-ipv6.patch
epatch_user #332661
fi
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile.org \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags $(test-flags-CC -Wa,--noexecstack)
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
unset CROSS_COMPILE #311473
tc-export CC AR RANLIB RC
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl rfc3779) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=${SSL_CNF_DIR} \
--libdir=$(get_libdir) \
shared threads \
|| die
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts; it also doesn't matter
# that it's -j1 as the code itself serializes subdirs
emake -j1 depend
emake all
# rehash is needed to prep the certs/ dir; do this
# separately to avoid parallel build issues.
emake rehash
}
src_test() {
emake -j1 test
}
src_install() {
emake INSTALL_PREFIX="${D}" install
dobin "${WORKDIR}"/c_rehash #333117
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
dohtml -r doc/*
use rfc3779 && dodoc engines/ccgost/README.gost
# This is crappy in that the static archives are still built even
# when USE=static-libs. But this is due to a failing in the openssl
# build system: the static archives are built as PIC all the time.
# Only way around this would be to manually configure+compile openssl
# twice; once with shared lib support enabled and once without.
use static-libs || rm -f "${D}"/usr/lib*/lib*.a
# create the certs directory
dodir ${SSL_CNF_DIR}/certs
cp -RP certs/* "${D}"${SSL_CNF_DIR}/certs/ || die
rm -r "${D}"${SSL_CNF_DIR}/certs/{demo,expired}
# Namespace openssl programs to prevent conflicts with other man pages
cd "${D}"/usr/share/man
local m d s
for m in $(find . -type f | xargs grep -L '#include') ; do
d=${m%/*} ; d=${d#./} ; m=${m##*/}
[[ ${m} == openssl.1* ]] && continue
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
mv ${d}/{,ssl-}${m}
# fix up references to renamed man pages
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
ln -s ssl-${m} ${d}/openssl-${m}
# locate any symlinks that point to this man page ... we assume
# that any broken links are due to the above renaming
for s in $(find -L ${d} -type l) ; do
s=${s##*/}
rm -f ${d}/${s}
ln -s ssl-${m} ${d}/ssl-${s}
ln -s ssl-${s} ${d}/openssl-${s}
done
done
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
dodir /etc/sandbox.d #254521
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl
diropts -m0700
keepdir ${SSL_CNF_DIR}/private
}
pkg_preinst() {
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}
pkg_postinst() {
ebegin "Running 'c_rehash ${ROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
c_rehash "${ROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
eend $?
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}

@ -1,222 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1d-r1.ebuild,v 1.3 2013/05/21 17:53:18 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic toolchain-funcs multilib
REV="1.7"
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
LICENSE="openssl"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test vanilla zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
# our libssl.a depends on libz.a/etc... at runtime.
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
zlib? ( sys-libs/zlib[static-libs(+)] )
kerberos? ( app-crypt/mit-krb5 )"
# The blocks are temporary just to make sure people upgrade to a
# version that lack runtime version checking. We'll drop them in
# the future.
RDEPEND="static-libs? ( ${LIB_DEPEND} )
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
!<net-misc/openssh-5.9_p1-r4
!<net-libs/neon-0.29.6-r1"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
PDEPEND="app-misc/ca-certificates"
src_unpack() {
unpack ${P}.tar.gz
SSL_CNF_DIR="/etc/ssl"
sed \
-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
> "${WORKDIR}"/c_rehash || die #416717
}
src_prepare() {
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
epatch "${FILESDIR}"/${PN}-1.0.1d-s3-packet.patch
if ! use vanilla ; then
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
epatch "${FILESDIR}"/${PN}-1.0.1-ipv6.patch
epatch_user #332661
fi
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
Makefile.org \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags $(test-flags-CC -Wa,--noexecstack)
sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
unset CROSS_COMPILE #311473
tc-export CC AR RANLIB RC
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl rfc3779) \
$(use_ssl zlib) \
--prefix="${EPREFIX}"/usr \
--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
--libdir=$(get_libdir) \
shared threads \
|| die
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts; it also doesn't matter
# that it's -j1 as the code itself serializes subdirs
emake -j1 depend
emake all
# rehash is needed to prep the certs/ dir; do this
# separately to avoid parallel build issues.
emake rehash
}
src_test() {
emake -j1 test
}
src_install() {
emake INSTALL_PREFIX="${D}" install
dobin "${WORKDIR}"/c_rehash #333117
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
dohtml -r doc/*
use rfc3779 && dodoc engines/ccgost/README.gost
# This is crappy in that the static archives are still built even
# when USE=static-libs. But this is due to a failing in the openssl
# build system: the static archives are built as PIC all the time.
# Only way around this would be to manually configure+compile openssl
# twice; once with shared lib support enabled and once without.
use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
# create the certs directory
dodir ${SSL_CNF_DIR}/certs
cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
# Namespace openssl programs to prevent conflicts with other man pages
cd "${ED}"/usr/share/man
local m d s
for m in $(find . -type f | xargs grep -L '#include') ; do
d=${m%/*} ; d=${d#./} ; m=${m##*/}
[[ ${m} == openssl.1* ]] && continue
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
mv ${d}/{,ssl-}${m}
# fix up references to renamed man pages
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
ln -s ssl-${m} ${d}/openssl-${m}
# locate any symlinks that point to this man page ... we assume
# that any broken links are due to the above renaming
for s in $(find -L ${d} -type l) ; do
s=${s##*/}
rm -f ${d}/${s}
ln -s ssl-${m} ${d}/ssl-${s}
ln -s ssl-${s} ${d}/openssl-${s}
done
done
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
dodir /etc/sandbox.d #254521
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
diropts -m0700
keepdir ${SSL_CNF_DIR}/private
}
pkg_preinst() {
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}
pkg_postinst() {
ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
eend $?
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}

@ -1,220 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1d.ebuild,v 1.3 2013/05/21 17:53:18 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic toolchain-funcs multilib
REV="1.7"
DESCRIPTION="full-strength general purpose cryptography library (including SSL v2/v3 and TLS v1)"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="mirror://openssl/source/${P}.tar.gz
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
LICENSE="openssl"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test vanilla zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,
# our libssl.a depends on libz.a/etc... at runtime.
LIB_DEPEND="gmp? ( dev-libs/gmp[static-libs(+)] )
zlib? ( sys-libs/zlib[static-libs(+)] )
kerberos? ( app-crypt/mit-krb5 )"
# The blocks are temporary just to make sure people upgrade to a
# version that lack runtime version checking. We'll drop them in
# the future.
RDEPEND="static-libs? ( ${LIB_DEPEND} )
!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
!<net-misc/openssh-5.9_p1-r4
!<net-libs/neon-0.29.6-r1"
DEPEND="${RDEPEND}
sys-apps/diffutils
>=dev-lang/perl-5
test? ( sys-devel/bc )"
PDEPEND="app-misc/ca-certificates"
src_unpack() {
unpack ${P}.tar.gz
SSL_CNF_DIR="/etc/ssl"
sed \
-e "/^DIR=/s:=.*:=${SSL_CNF_DIR}:" \
"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
> "${WORKDIR}"/c_rehash || die #416717
}
src_prepare() {
# Make sure we only ever touch Makefile.org and avoid patching a file
# that gets blown away anyways by the Configure script in src_configure
rm -f Makefile
if ! use vanilla ; then
epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
epatch "${FILESDIR}"/${PN}-1.0.1-ipv6.patch
epatch_user #332661
fi
# disable fips in the build
# make sure the man pages are suffixed #302165
# don't bother building man pages if they're disabled
sed -i \
-e '/DIRS/s: fips : :g' \
-e '/^MANSUFFIX/s:=.*:=ssl:' \
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
-e $(has noman FEATURES \
&& echo '/^install:/s:install_docs::' \
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
Makefile.org \
|| die
# show the actual commands in the log
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
# allow openssl to be cross-compiled
cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
chmod a+rx gentoo.config
append-flags -fno-strict-aliasing
append-flags $(test-flags-CC -Wa,--noexecstack)
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
./config --test-sanity || die "I AM NOT SANE"
}
src_configure() {
unset APPS #197996
unset SCRIPTS #312551
unset CROSS_COMPILE #311473
tc-export CC AR RANLIB RC
# Clean out patent-or-otherwise-encumbered code
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
# IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
echoit() { echo "$@" ; "$@" ; }
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
local sslout=$(./gentoo.config)
einfo "Use configuration ${sslout:-(openssl knows best)}"
local config="Configure"
[[ -z ${sslout} ]] && config="config"
echoit \
./${config} \
${sslout} \
$(use sse2 || echo "no-sse2") \
enable-camellia \
$(use_ssl !bindist ec) \
enable-idea \
enable-mdc2 \
$(use_ssl !bindist rc5) \
enable-tlsext \
$(use_ssl gmp gmp -lgmp) \
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
$(use_ssl rfc3779) \
$(use_ssl zlib) \
--prefix=/usr \
--openssldir=${SSL_CNF_DIR} \
--libdir=$(get_libdir) \
shared threads \
|| die
# Clean out hardcoded flags that openssl uses
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
-e 's:^CFLAG=::' \
-e 's:-fomit-frame-pointer ::g' \
-e 's:-O[0-9] ::g' \
-e 's:-march=[-a-z0-9]* ::g' \
-e 's:-mcpu=[-a-z0-9]* ::g' \
-e 's:-m[a-z0-9]* ::g' \
)
sed -i \
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
Makefile || die
}
src_compile() {
# depend is needed to use $confopts; it also doesn't matter
# that it's -j1 as the code itself serializes subdirs
emake -j1 depend
emake all
# rehash is needed to prep the certs/ dir; do this
# separately to avoid parallel build issues.
emake rehash
}
src_test() {
emake -j1 test
}
src_install() {
emake INSTALL_PREFIX="${D}" install
dobin "${WORKDIR}"/c_rehash #333117
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
dohtml -r doc/*
use rfc3779 && dodoc engines/ccgost/README.gost
# This is crappy in that the static archives are still built even
# when USE=static-libs. But this is due to a failing in the openssl
# build system: the static archives are built as PIC all the time.
# Only way around this would be to manually configure+compile openssl
# twice; once with shared lib support enabled and once without.
use static-libs || rm -f "${D}"/usr/lib*/lib*.a
# create the certs directory
dodir ${SSL_CNF_DIR}/certs
cp -RP certs/* "${D}"${SSL_CNF_DIR}/certs/ || die
rm -r "${D}"${SSL_CNF_DIR}/certs/{demo,expired}
# Namespace openssl programs to prevent conflicts with other man pages
cd "${D}"/usr/share/man
local m d s
for m in $(find . -type f | xargs grep -L '#include') ; do
d=${m%/*} ; d=${d#./} ; m=${m##*/}
[[ ${m} == openssl.1* ]] && continue
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
mv ${d}/{,ssl-}${m}
# fix up references to renamed man pages
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
ln -s ssl-${m} ${d}/openssl-${m}
# locate any symlinks that point to this man page ... we assume
# that any broken links are due to the above renaming
for s in $(find -L ${d} -type l) ; do
s=${s##*/}
rm -f ${d}/${s}
ln -s ssl-${m} ${d}/ssl-${s}
ln -s ssl-${s} ${d}/openssl-${s}
done
done
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
dodir /etc/sandbox.d #254521
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl
diropts -m0700
keepdir ${SSL_CNF_DIR}/private
}
pkg_preinst() {
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}
pkg_postinst() {
ebegin "Running 'c_rehash ${ROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
c_rehash "${ROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
eend $?
has_version ${CATEGORY}/${PN}:0.9.8 && return 0
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1e.ebuild,v 1.3 2013/09/23 04:34:34 jmorgan Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1e.ebuild,v 1.4 2013/11/26 07:27:00 polynomial-c Exp $
EAPI="4"
@ -14,7 +14,7 @@ SRC_URI="mirror://openssl/source/${P}.tar.gz
LICENSE="openssl"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
KEYWORDS="ppc64"
IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test vanilla zlib"
# Have the sub-libs in RDEPEND with [static-libs] since, logically,

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lua/luasocket/luasocket-3.0_rc1-r2.ebuild,v 1.1 2013/09/16 22:05:35 mrueg Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lua/luasocket/luasocket-3.0_rc1-r2.ebuild,v 1.2 2013/11/26 12:55:24 nimiux Exp $
EAPI=5
@ -12,7 +12,7 @@ SRC_URI="https://github.com/diegonehab/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.t
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
KEYWORDS="amd64 ~arm ~x86"
IUSE="debug"
RDEPEND=">=dev-lang/lua-5.1[deprecated]"

@ -0,0 +1,26 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Mail-IMAPClient/Mail-IMAPClient-3.350.0.ebuild,v 1.1 2013/11/26 07:48:23 patrick Exp $
EAPI=4
MODULE_AUTHOR=PLOBBES
MODULE_VERSION=3.35
inherit perl-module
DESCRIPTION="IMAP client module for Perl"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="test"
RDEPEND="
>=dev-perl/Parse-RecDescent-1.940.0
"
DEPEND="${RDEPEND}
test? (
dev-perl/Test-Pod
)
"
SRC_TEST="do"

@ -1,2 +1,3 @@
DIST Mail-IMAPClient-3.32.tar.gz 184463 SHA256 f2f44dad4c9ea2c24054907643a4519fc4c1b2dc81c3b514731f8d1de489a10e SHA512 3c8548cac03e58dfe7b1c2299726d6e5fce1adf07ccc22d8cc7cf7a4f749bbf8e133cb8f941528a68303e4efe975024d60517894947642846c63a48f69c84738 WHIRLPOOL 9c6d4d7225429b660fe3bb366dd9c1fb424b9516294ef912cf550e1014769690849250faf743be6ac638f7b3ecd5ff2eb899b521be94aa24792983d60e2cd116
DIST Mail-IMAPClient-3.33.tar.gz 185422 SHA256 42312faa99fde00e6963a0e5048cb739d42c2e4edd52a5234a14ea91bb7dc257 SHA512 f163ecc4dc30c62a9df0c9361eab4cabddab0f3320c2f32325d28b3e7101439fd45e1cfb958479a43f6c7104e71f7f15ad455e7cf495fd389bf8decb4bd67df9 WHIRLPOOL d6664424a02e9fc93ff531dfec1c3b06482ceee81f45b69e20fa82eb2e6dc11ce7135677d1b5e333f0746b73ca80c81986b003e768a71578ce04d3f88c964b5f
DIST Mail-IMAPClient-3.35.tar.gz 186010 SHA256 8a4503833ce87d980be2d54603d94de4b365c2369eab19b095216506ce40f663 SHA512 c8fc11d098a0c0370347155e860e4eb1b0842c5de825f206d166bd6d99d510a492aa0ebe5a15f561aae1f379641f502fc4984660be2a0b42be52a01a58661595 WHIRLPOOL 264bb7cf85466a65a13184a1c008d8913f8b77af9954983e83b7eb5542747d5cf146fd6dc4d089020ab25183781e1394366d109b489973cf9ac7b4739fd0b017

@ -1,4 +1,2 @@
DIST astropy-0.2.1.tar.gz 4736810 SHA256 ffd8e8b6cf71f34d55e926b845ea348eb0066a61d07f9f205ca32efff79b8424 SHA512 78b88ab4dfcafe5a9cd401a4e99a344f968c031b941728197fb11c51b8738cc37f3e6e45821217705e5ab3c080411a6ad2798f1f833fb50083f787e4129398aa WHIRLPOOL 9f6b70700a327255cff9f0322ca9551625ec937a025439fdbb376666fc63f7ca2e16f44d0be18170a9d5806200b9ab544b77471b476e8b8abbfdfbf09f016412
DIST astropy-0.2.3.tar.gz 4697986 SHA256 b3a5a6b8d93a7ee519f5c8bf056d7ec7d27af4456c0aa1a371b556835320c84f SHA512 651392ca885ac29e7289d4823107b69da621491eab7f913f8b6f5249ad97af521bab6cbde73d6c0c3a16d4bdc8b1bc6a427679326d9cf9805676a6759597809d WHIRLPOOL c1347f5cc4b0fa34e50e2a09cca0aa7efa2f8e036c9854d3a4e2ee945ea2694f8ef628b3ae94a6c2f0f58d2599959cdaaac3ac7a8a63f5d59c34cf65069fc180
DIST astropy-0.2.4.tar.gz 4703474 SHA256 92c99db81ca40c137d50ef5b5f23b0edf7d6e310d67bf8a176c6d8fd072fbd56 SHA512 aa01a02863774750845e69323f2519fce37b25ad283e35bc120d97d687830c6a45a7bac3532c12a73339f61d3ef5bcc7e5c5520ab5a755417629b314db29a280 WHIRLPOOL fbfd4a374455ecf1892c77a34b1efd14716457b1b498a75916619d12875dc113dce36a3319f7f8e2c2927e60810eb97c07f2f279959952890e0f94786052cc8b
DIST astropy-0.2.5.tar.gz 4713028 SHA256 43d4aec5c046d31094c6c65b8c81e01e55c961ddf5aeb846f71044009b06033d SHA512 3cf41dc4a0eaea3b694af9aab1d3fd72de7a8dbe72201087082635cc9b679887fc78e0d68b3fbdbd52573aad23723a21f135311d6917c72685b71bf0d7be35b7 WHIRLPOOL 0c3c72271a5c036fe45d0a33e0fef92863775df6557a9c430d59011fa04616433e85a87f3861cd4bf188fe7d65cc922c0eed92e8aab86ba00f0123f3cf279529
DIST astropy-0.3.tar.gz 6122102 SHA256 6c827ed074c1bc83fb0c8909f3c1293531e84a7920c9418747b75c676f60f2d6 SHA512 7db538c15c31c69686108f7619d1a65843e96dd4772bac01f0243fe5338cf6729dd84459dcb878f8d17b6dfdcf7b28675804f0f053df9e60729b84e74d218fbd WHIRLPOOL 250598ee0a32d35151076ab92f3cb5e39498983de309e5e4bc4ac46f43b0acc67de6ad201a4dfe36bc64742dd5a4dad6c0cb35107965fdf669d3b745f2586cc1

@ -1,67 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy/astropy-0.2.3.ebuild,v 1.2 2013/07/12 22:17:51 bicatali Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
inherit distutils-r1 eutils
DESCRIPTION="Core functionality for performing astrophysics with Python"
HOMEPAGE="http://astropy.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
RDEPEND="
dev-libs/expat
dev-python/numpy[${PYTHON_USEDEP}]
sci-astronomy/sofa_c
sci-astronomy/wcslib
sci-libs/cfitsio
sys-libs/zlib
!dev-python/pyfits
!dev-python/pywcs
!dev-python/vo"
DEPEND="${RDEPEND}
dev-python/cython[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
virtual/pkgconfig
doc? ( dev-python/matplotlib
dev-python/sphinx
media-gfx/graphviz )
test? ( dev-libs/libxml2
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}] )"
python_prepare_all() {
has_version '>=sci-libs/cfitsio-3.350' && sed -i \
-e 's/->quantize_dither/->quantize_method/g' \
astropy/io/fits/src/compressionmodule.c
}
python_configure_all() {
mydistutilsargs=( build --enable-legacy --use-system-libraries )
}
python_compile_all() {
if use doc; then
VARTEXFONTS="${T}"/fonts \
MPLCONFIGDIR="${BUILD_DIR}" \
PYTHONPATH="${BUILD_DIR}"/lib \
emake -C docs html
fi
}
python_test() {
esetup.py test
}
python_install_all() {
use doc && dohtml -r doc/_build/html
}

@ -1,69 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy/astropy-0.2.4.ebuild,v 1.1 2013/08/06 21:19:33 bicatali Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
inherit distutils-r1 eutils
DESCRIPTION="Core functionality for performing astrophysics with Python"
HOMEPAGE="http://astropy.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
RDEPEND="
dev-libs/expat
dev-python/numpy[${PYTHON_USEDEP}]
sci-astronomy/sofa_c
sci-astronomy/wcslib
sci-libs/cfitsio
sys-libs/zlib
!dev-python/pyfits
!dev-python/pywcs
!dev-python/vo"
DEPEND="${RDEPEND}
dev-python/cython[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
virtual/pkgconfig
doc? ( dev-python/matplotlib
dev-python/sphinx
media-gfx/graphviz )
test? ( dev-libs/libxml2
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}] )"
python_prepare_all() {
has_version '>=sci-libs/cfitsio-3.350' && sed -i \
-e 's/->quantize_dither/->quantize_method/g' \
astropy/io/fits/src/compressionmodule.c
distutils-r1_python_prepare_all
}
python_configure_all() {
mydistutilsargs=( build --enable-legacy --use-system-libraries )
}
python_compile_all() {
if use doc; then
VARTEXFONTS="${T}"/fonts \
MPLCONFIGDIR="${BUILD_DIR}" \
PYTHONPATH="${BUILD_DIR}"/lib \
emake -C docs html
fi
}
python_test() {
esetup.py test
}
python_install_all() {
distutils-r1_python_install_all
use doc && dohtml -r doc/_build/html
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy/astropy-0.2.1.ebuild,v 1.3 2013/05/22 06:23:13 patrick Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy/astropy-0.3.ebuild,v 1.1 2013/11/26 18:03:32 bicatali Exp $
EAPI=5
@ -20,7 +20,7 @@ IUSE="doc test"
RDEPEND="
dev-libs/expat
dev-python/numpy[${PYTHON_USEDEP}]
sci-astronomy/sofa_c
sci-astronomy/erfa
sci-astronomy/wcslib
sci-libs/cfitsio
sys-libs/zlib
@ -41,24 +41,24 @@ DEPEND="${RDEPEND}
sci-libs/scipy[${PYTHON_USEDEP}] )"
python_compile() {
distutils-r1_python_compile build \
--enable-legacy --use-system-libraries
distutils-r1_python_compile --use-system-libraries
}
python_compile_all() {
if use doc; then
python_export_best
VARTEXFONTS="${T}"/fonts \
MPLCONFIGDIR="${BUILD_DIR}" \
PYTHONPATH="${BUILD_DIR}"/lib \
emake -C docs html
esetup.py build_sphinx
fi
}
python_test() {
distutils-r1_python_compile build \
--enable-legacy --use-system-libraries test
esetup.py test
}
python_install_all() {
use doc && dohtml -r doc/_build/html
distutils-r1_python_install_all
use doc && dohtml -r docs/_build/html
}

@ -1,62 +0,0 @@
Debundle zlib
https://bugs.gentoo.org/show_bug.cgi?id=422657
Patch written by Kacper Kowalik <xarthisius@gentoo.org>
--- a/astropy/io/fits/setup_package.py
+++ b/astropy/io/fits/setup_package.py
@@ -20,6 +20,7 @@
[os.path.relpath(x) for x in
glob(os.path.join(os.path.dirname(__file__), 'src/*.c'))],
include_dirs=[setup_helpers.get_numpy_include_path()],
+ libraries=['z'],
extra_compile_args=extra_compile_args)
]
--- a/astropy/io/fits/src/compress.c
+++ b/astropy/io/fits/src/compress.c
@@ -106,7 +106,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "zlib.h"
+#include <zlib.h>
int _astropy_uncompress2mem_from_mem(
char *inmemptr,
@@ -182,7 +182,7 @@
d_stream.next_out = uncompr;
d_stream.avail_out = uncomprLen;
- err = _astropy_inflate(&d_stream, Z_NO_FLUSH);
+ err = inflate(&d_stream, Z_NO_FLUSH);
if (err != Z_OK && err != Z_STREAM_END)
{
@@ -217,7 +217,7 @@
*filesize = d_stream.total_out;
/* End the decompression */
- err = _astropy_inflateEnd(&d_stream);
+ err = inflateEnd(&d_stream);
/* free temporary output data buffer */
free(uncompr);
@@ -285,7 +285,7 @@
c_stream.next_out = compr;
c_stream.avail_out = comprLen;
- err = _astropy_deflate(&c_stream, Z_FINISH);
+ err = deflate(&c_stream, Z_FINISH);
if (err != Z_OK && err != Z_STREAM_END)
{
@@ -320,7 +320,7 @@
*filesize = c_stream.total_out;
/* End the compression */
- err = _astropy_deflateEnd(&c_stream);
+ err = deflateEnd(&c_stream);
/* free temporary output data buffer */
free(compr);

@ -1,33 +0,0 @@
--- astropy/utils/xml/setup_package.py.orig 2012-06-18 07:48:04.000000000 +0200
+++ astropy/utils/xml/setup_package.py 2012-06-19 12:43:29.685002916 +0200
@@ -4,7 +4,6 @@
def get_extensions(build_type='release'):
- EXPAT_DIR = 'cextern/expat/lib'
XML_DIR = 'astropy/utils/xml/src'
defines = [("HAVE_EXPAT_CONFIG_H", 1)]
@@ -21,18 +20,14 @@
# place of ours.
extra_link_args = [
'-Wl,--version-script={0}'.format(
- join(XML_DIR, 'iterparse.map'))
- ]
+ join(XML_DIR, 'iterparse.map')),
+ '-lexpat']
else:
extra_link_args = []
return [Extension(
"astropy.utils.xml._iterparser",
- [join(XML_DIR, "iterparse.c"),
- join(EXPAT_DIR, "xmlparse.c"),
- join(EXPAT_DIR, "xmlrole.c"),
- join(EXPAT_DIR, "xmltok.c"),
- join(EXPAT_DIR, "xmltok_impl.c")],
+ [join(XML_DIR, "iterparse.c")],
define_macros=defines,
- include_dirs=[XML_DIR, EXPAT_DIR],
+ include_dirs=[XML_DIR],
extra_link_args=extra_link_args)]

@ -3,3 +3,4 @@ DIST Flask-Script-0.3.3.tar.gz 34368 SHA256 0bef01f1a9419d3c2c69856729a2effebb90
DIST Flask-Script-0.5.1.tar.gz 156966 SHA256 497d9c9057f69cf8808348a7a40f1b4b126f1d82a5b308fc2c5c9dd667e006b4 SHA512 1863e140e8d773276de812609389f71fe542ea2b342cb37e3758d9154a1284260ff15aeb2ae7865d734e55382b7225ee667f4613a78038d66b386b9ce83fbb51 WHIRLPOOL 4cda3eacd613077d3ac8c9550103107b96ac87d5f91600aef60f74b38df2cead74b5463260fba99a8e0e74cb7856ddce4a725746ef5325e45016d56d9d5e1af6
DIST Flask-Script-0.5.3.tar.gz 36784 SHA256 c0920b4aa351951a10c780439d51deea5ac80ed43d42d8e45aceba2094eaa682 SHA512 a6dee74b3faa66e53f9f1bb84a6efcce21703ec460edbc47951aa27a25d40d07a260bd410a7e003dddd725ec9276949c7bd611f8b5789175cd6f87b50d14ecd1 WHIRLPOOL 045f1f71709620a229a234657c37162f67482bc546ea5487850122767a4596486a949120a28421198c5c4bb89c24ba8ca920c0e4359d4af88d6158e1753db904
DIST Flask-Script-0.6.2.tar.gz 39661 SHA256 17fc2ab89dd8ecce4c7683c16538771ffb685f74a6bca9c52354c7efb9d61dbc SHA512 d4a59b477281bbd2aa993b2b249285c132a43148011d69447986fa6aa5b724ce1ddd8e89ad6472b1dc1bbfbfa863dfd5f01c7a23681280ab5664499c83e26667 WHIRLPOOL 57056ab199bc20e9e810d057e99af3c5d0235f0d24a798a8f236ed212e997b527addd77cb43139f46211bd5092b4258e7d228b65298e3d9acf69dbefdd129a23
DIST Flask-Script-0.6.3.tar.gz 40210 SHA256 3dfe41026053772bf4158f89d68c74feb6a86f8e2b0d4c61d4dfdc8efe408ada SHA512 fb01b0628fa88867df911a565e4ba93214023bd7ae67b800690873126b7856ac1f077cce449ec40f7d17e016a7c8f0e3ba7eb0dd08a2e47a4a752186bc6895b5 WHIRLPOOL 01c3ba7945f0a9223a6a25c15c38b915cb55747b72f5ab62b52e3a573b679c4ec96dbf14613ec7a06eaa0f0d38788f2becdf2c2711fc47056665ac84e130454b

@ -0,0 +1,45 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-script/flask-script-0.6.3.ebuild,v 1.1 2013/11/26 05:40:32 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_3} )
inherit distutils-r1
MY_PN="Flask-Script"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Flask support for writing external scripts."
HOMEPAGE="http://packages.python.org/Flask-Script/ http://pypi.python.org/pypi/Flask-Script"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RDEPEND=">=dev-python/flask-0.10.1-r1[${PYTHON_USEDEP}]
virtual/python-argparse[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
S="${WORKDIR}/${MY_P}"
python_compile_all() {
if use doc; then
einfo "Generation of documentation by" ${PYTHON}
PYTHONPATH=".." emake -C docs html || die "Generation of documentation failed"
fi
}
python_test() {
py.test tests.py || die "Tests failed under ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}

@ -1,3 +1,4 @@
DIST fells_loop.gpx 29789 SHA256 29dc50a741ce01d15370fea60e128d557bdc688b3ed9652df6484a2194a649ac SHA512 329f6d764a52fc759df64b8f2f71db7c085b905d12019cd67bec2de7f87c4418a9deeb046324b11d713197fa35f0d2d00a7adbba3b13a55df8fb90c636392fda WHIRLPOOL 04969a29592322917760ace209ebc1ed0ecd0a24d07eb8b86e1d8289afd5dc3537a2a7b030fcbd25c953f660ed40b396b060bd0ff9cd545284f529fdd051ef57
DIST geopy-0.94.2.tar.gz 33213 SHA256 d661fd6b8404888b0ab1c181531d804b4f20925470db0c9cf762564533c04ca3 SHA512 a1825dff32b9fb2a4f4c3fe5cf735ab32b0fdefc7f65ea32fd4964bdfbfda160603fd97b13e0fc3c3fcea37809df62b31eb228bf89eb4fa33735719fa7865a76 WHIRLPOOL 2b3fc57100ba786499393beca6b703b889a93c22644f436ff92ce50ef784a470934b083d7742f398456fe367bfcd6a4f9206b70209f740dd15bc4d76c9207c79
DIST geopy-0.95.1.tar.gz 32504 SHA256 2db216b60289d9b34d802859b4d51ad41bbc0230e934ef14b625d2f5474c9d33 SHA512 a90bf40a0f543a6699f110c8498ac10803f0f85a0fae3074eccf203279f0a84021a5c40c4ff0b3ed514471f4939b151aa2ccf73eb6fe45f7814e27227e21ed88 WHIRLPOOL cff5ff7ff62a079eb7609c714a4903c76482109e5bc288dc77f6012fa4e6058aa6d4798b1369ce61e9fc4a01a429beb967d6a93bbf12200c46c2d06cbe94a6c7
DIST geopy-0.96.2.tar.gz 27749 SHA256 2f0d250f41cdf32b5204c4e84957fa49c54e6919790688dd2b575bbf535d7506 SHA512 9eb02ac0c1b1d66dff203c736fb5d5e8f41d92d0c06b08cce6e877c22fc55bccd5b2f760f188122adac0838b8cc24bb296f24c038148b16141cb32db38a17e60 WHIRLPOOL 55ae1b51ca0a7fb49bf5c296d958e5de46236e0d53e927abcf6f06b5cd8c16c014596ef4dd4a6e75af282c332cbfc1eaaae97b0ec6dd1934645a06bf0a84017e

@ -0,0 +1,26 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/geopy/geopy-0.96.2.ebuild,v 1.1 2013/11/26 06:08:05 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 )
inherit distutils-r1
DESCRIPTION="A Geocoding Toolbox for Python"
HOMEPAGE="http://www.geopy.org/ http://pypi.python.org/pypi/geopy http://code.google.com/p/geopy/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
IUSE="test"
RDEPEND="<=dev-python/beautifulsoup-4.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
python_test() {
nosetests || die "Tests failed under ${EPYTHON}"
}

@ -1,5 +1,6 @@
DIST gevent-0.13.7.tar.gz 288284 SHA256 0754f141d2889fa861918eb75482b9572763bd661479bbfc73a8c250f4eab6c5 SHA512 e53d1cea049519f4696a988625ddcd42bf935af7ca2644baeaca37f315665b5950ddb119ff9143f02db6907b6b562c42dbce73e247816ca57405334da369a36a WHIRLPOOL f79db3d07e054be2b93b27736bfbdc0867af1173608192a2db59ec1478de8d2a9099394f47926b14aee4aef29f0ae31edcddfab3d52ae7db7157a07bf5eca6f5
DIST gevent-0.13.8.tar.gz 300098 SHA256 54b8d26300ce408c0916a3e63ef6cd3e6aca76230833558deb7de15196ed955e SHA512 f3d93e2503aa54137f942150fe9ab667b5ebcdff25f0aef979923265a0767cf1552480e9b855014613e706ca76ef72432622a8569e1aa5f1c357ebe9fc4dea96 WHIRLPOOL 2d07c1ae9f7ca03f1d4ab65f736811123c2497d686aa3ecc0a8a75386248ff5a6415f344e58c47db803d7bf058e04cec9917c329ae42a5dcc25ce97e1d9ad67f
DIST gevent-1.0.tar.gz 1437122 SHA256 bfa9d846db91a7d8b6a36e87353eed641c7e3e7d0bfa0b9975796d227f2db4eb SHA512 5f452c799323e8c16172e04a538dfd8ef4066781207ec06ad0bc2d4892a7309b46146e4ab819bf8b99ad4f6ce226d013ded98800efc16458e2626dcc7a77d853 WHIRLPOOL 799fc6402ec3d0e7cc2580d0af8fab06eb01c3cd3dc61e85672e0abb211ba768dea4585ee8a3d204455f19a537974509d992275aaf243ff4948231603b828c6a
DIST gevent-1.0b2.tar.gz 1033734 SHA256 b77ab611d09e36fcd992809d115f82e0b41151d18ff925235569d4fb57724b59 SHA512 921be2724acd64f1516e93d42775aea039591d750682f3d59bf9a78095b042b5f9ecaff94742062f121cbacba0827820726895c8353f0d1b68d5456aeed7df80 WHIRLPOOL cb97b1d11e52151ade71dab682656feda0c4726e30fdef7ff655dac16fb72245ebed333482c094c8ff4c7a8e8eb27b2ee28ff25b1395a8d2721dc2cc47d7efae
DIST gevent-1.0rc2.tar.gz 1390008 SHA256 620b071f5aaf8203fc86d2b49b1f9227cabc30e2cef6dfe064233e2d4ced3fda SHA512 f0a3890e19ef1e13029a6427b99b4614db9fa1c3ae05dd522c47c47e8fb6045367ec8d70e859a9721ed8f6f858b7df835fb9c298e53ca6f1eb80a0e2f771ef43 WHIRLPOOL 383f708e0082ebcc562d4c16b8b712827a0879985cb90ccc2030d586195151f7abbab8c04e0af72a8296fe8084da97442de735eea63019e89d9833158c093941
DIST gevent-1.0rc3.tar.gz 1410044 SHA256 3b8c2eece640ac3ed80a32c4b9ca583770de7884109d5a566d7534942cc5a287 SHA512 ab93a485e7e58ac8e30abc9f0c1141c838db68ece55952b9b392f1880a25d67470a9ea3b2b266164b2a3f0d3cd2380da71e8e1da81bb938d2cb85a8925847aa9 WHIRLPOOL 8a162b4dee72f71d675ac1e4b12f5cf0abd37d59fc69ff5fdd7df1253fdef8d08079677536e700ca2d2c79f3680eb622bc7ed71c00d652607431b6d6a3456546

@ -0,0 +1,66 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/gevent/gevent-1.0.ebuild,v 1.1 2013/11/26 17:18:46 radhermit Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
PYTHON_REQ_USE="ssl"
inherit distutils-r1 flag-o-matic
MY_PV=${PV/_/}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Python networking library that uses greenlet to provide synchronous API"
HOMEPAGE="http://gevent.org/ http://pypi.python.org/pypi/gevent/"
SRC_URI="https://github.com/surfly/${PN}/releases/download/${MY_PV}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
IUSE="doc examples"
RDEPEND="dev-libs/libev
net-dns/c-ares
>=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
# Tests take long and fail terribly a few times.
# It also seems that they require network access.
RESTRICT="test"
S=${WORKDIR}/${MY_P}
python_prepare_all() {
rm -r {libev,c-ares} || die
distutils-r1_python_prepare_all
}
python_configure_all() {
append-flags -fno-strict-aliasing
}
python_compile_all() {
use doc && emake -C doc html
}
python_test() {
cd greentest || die
"${PYTHON}" testrunner.py || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( doc/_build/html/. )
distutils-r1_python_install_all
dodoc changelog.rst
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}

@ -1,4 +1,5 @@
DIST hcs_utils-1.1.1.tar.gz 7044 SHA256 9e9b44c8902d9064c19ddc119eb27c60317ec76863b2189ad5faf0867a5870b1 SHA512 570ab73c41117685b6afe79d798e0f8b2e885ffa8f9027e9189b8a99f55b5f0bfd68f7a951fa97c4beaf3013c65544e4ba3a8351dd312a867a45c5446a4dbdf0 WHIRLPOOL b7971e8f86738a551de75c787e1e00125f6e225c88129a5227937a7410c3cbc37e5758bd9a6ecf50c7afd47c5c04e0cb053aa0d37c6ed1e4ea87632d789fa44a
DIST hcs_utils-1.2.tar.gz 10025 SHA256 f342d9712709cdcf1bb58750bf9573cc89cff20c47f4aaee8d9e2f53af3897d0 SHA512 382c2b27aa8dd4b5bb6f344c04a19e339dea8efc974e019202f1a37173da4399326db2ce1a1b0b45dbc56995101f78fa5123d01cfea5a50168b66ac043ee4ba4 WHIRLPOOL 7ec033a08fb2122fc38427eb09be598654a7b74a1e15fd3ecfe55c953c2c13b288c7cbd662a166bd74e8e11c33fa28f28821be47dff33dbb590c0ab0afad579d
DIST hcs_utils-1.3.tar.gz 21999 SHA256 b03fe7fc1fc3877ec810297bfc550f7cce58cf1f62bc464e348846ad01739255 SHA512 49f7096c339463dde586592ac06dea6f7e3a955c42ab5bd49341ac276d727c7033fa3c17f36d1268ade3d6661fd123ce9a49ba47fbf855ea13d2ab2b46888a27 WHIRLPOOL f00125e833f1575a6e3c9a873eead83275e27c07d469131cefcb79e834f7e59b66426c87e3588e5a192360737ede02be6d26879cedf8d784fba11cf7438f2bfd
DIST hcs_utils-1.4.tar.gz 22995 SHA256 aaecde5f01e975b670e3cb53442caee94dcfbfef4a720b5e5cd9aec8e3393c15 SHA512 f9848b805e7891683c7b6b7ee8de53313d038af13b5e2d745441445681761aa615d76d9f769aca4560828878332bb1c54d85fda82b080d18042d26a5edea84cf WHIRLPOOL babf8cb66e151974e3913078c1b0225334d01133828a31916a613b6968170297862eb1a0da60e06d0447c6394a62e8f7a57101495292738f460f86fb7eea7f2b
DIST hcs_utils-1.4rc5.tar.gz 22970 SHA256 c38a023e6342e44f25eb185b4fe5922c3dc1ccf1ce134b721e113a450af78657 SHA512 c662de7727b34ea68c1b3167c1027e3d7ea17b0a8e4c86ff66a5aa82a2d9475f32b9f434f2ecc4bd5d46c053fdbe7b3940d773ac61721acc338f35369a9e3053 WHIRLPOOL 1e0ca76291137da0433ffb4090a1808ff9a7898b40f68ad5b0da812675ee9ac3dd2808d7cfe14124415fcd6c2390dcc7724c5d9d59c4c63b9e8c5a84a9a5d0e2

@ -0,0 +1,30 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/hcs-utils/hcs-utils-1.4.ebuild,v 1.1 2013/11/26 06:38:58 patrick Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils-r1
MY_P=${P/_rc/rc}
DESCRIPTION="A library containing some useful snippets"
HOMEPAGE="http://pypi.python.org/pypi/hcs_utils"
SRC_URI="mirror://pypi/h/${PN/-/_}/${MY_P/-/_}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
RDEPEND=""
S="${WORKDIR}/${MY_P/-/_}"
python_test() {
cd "${BUILD_DIR}/lib" || die
py.test --doctest-modules hcs_utils || die
}

@ -1 +1,2 @@
DIST ijson-1.0.tar.gz 8726 SHA256 e7f268dfb1de2282afabd24696b25c4453dda689efa3eb450c7e269085c40ec2 SHA512 a4c9a97c6b4d383d4996b2eef771957b592232e69b2a168499c65d5e85ffdfa5e811fcb883466b46968e02f1b0bcce0f0d81371a3e8b26a3dc73e96d85a0ba16 WHIRLPOOL feeaaa8d7566514c6928d44bf74f7aa90089b2b2b7d751bdd93e6ec9876bbfe730cf007f716bd1961eda89e1602353b192845b739cd51537cb1e238a9af0edf8
DIST ijson-1.1.tar.gz 8415 SHA256 33d10eac83d6dd757e2861b4ce06b3467a828481d608017af3d0caeb023ba32a SHA512 aebb3e46688b785a18366230b9f94c1b36d44f0764d8603b7ae50a2426b53eddad883c5d1fbda8f52d655d789880f1a7329bc6d1383ed963e9835d7ec40bdfdf WHIRLPOOL 3921e6fa8f0f8a1b17aa234cdcdcf3fc0d3bb97fce78803b84502ac762f5526cc526ee5fc48d65ecf4e88cde90be71414ef4912bf95781070e5266b7b3809f7b

@ -0,0 +1,20 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/ijson/ijson-1.1.ebuild,v 1.1 2013/11/26 06:10:00 patrick Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
inherit distutils-r1
DESCRIPTION="Iterative JSON parser with a Pythonic interface"
HOMEPAGE="https://github.com/isagalaev/ijson http://pypi.python.org/pypi/ijson/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-libs/yajl"
DEPEND="${RDEPEND}"

@ -1,2 +1,3 @@
DIST ManifestDestiny-0.5.6.tar.gz 15561 SHA256 f7d6804950e7573f768a3b4ced93964d4d53b96b54e80cee2f034fe9eba2f694 SHA512 41c2c9120450fc1010c0e3299723d784c79fe4a8ebd9ba693841dbaedc802bdcb07fad245e1049bf4eb22eeb61b3bb72414bca033e335731199924f872c789db WHIRLPOOL 0cb4e27321272a00196e208f27464d1a85f1c0f4561694642ee25ae2e587de23c6e32845dcbd825fbac8e8f7055a0c9982e8691b831f440d8d30c83fcbc3af1d
DIST ManifestDestiny-0.5.7.tar.gz 9371 SHA256 944409f746363f91ff6ba7ad82297a5058d8aca96940f70627251568629ad7ae SHA512 44760f92328e1a578d3ca93f05c00fc835f393632b9d6e32333831fab8479faf9a8cddb5fc0b5e2686b6e5b7622ce2e684cbdaba6e17f86f972c9c524f4cebe1 WHIRLPOOL d10595192cced018c115c60f7eb2be70bc6c438e56b81fba0ac1b92c9b3eb9093072029dac10b6e67eb0cc747e294c89eb409726aaff912f038b08e90ffc064c
DIST ManifestDestiny-0.6.tar.gz 12843 SHA256 dfb4f541c388447f71bb15c2f46fd36e83d1cdd813993e1e0aee75251839ba0d SHA512 d4bf18e4cec0fd0d62c06360334d96c52cf5c79dd6354e25f4209802612fc4bbb3e8f738343af6d86db30ef3b826ce205a1dadc25ede6f3de1116c6c4d42862d WHIRLPOOL bb0b84337568425bac4539d543afbc677555cade64e21dd5d1e0c714b51e1c58e331a1e04767a3e83a0e48fe8da9c57d14b2bfd9bb9f8e00f8ae2d8ef78377c7

@ -0,0 +1,25 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/manifestdestiny/manifestdestiny-0.6.ebuild,v 1.1 2013/11/26 05:34:35 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 )
inherit distutils-r1
MY_PN="ManifestDestiny"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Universal manifests for Mozilla test harnesses"
HOMEPAGE="https://wiki.mozilla.org/Auto-tools/Projects/ManifestDestiny http://pypi.python.org/pypi/ManifestDestiny"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MPL-2.0"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"

@ -3,6 +3,7 @@ DIST numpy-1.6.0-ref.pdf 6106335 SHA256 cbeea9b1395e0576bbd256c5de11886c63321d43
DIST numpy-1.6.0-user.pdf 474664 SHA256 d8d51913cb494228f69c5f16d659b8539cbd04c6e584fde72c00c382e86eea8f SHA512 6af1275e46cb0df11d2654f191871504683bb3b5752e45ec6cca92d302babc4e66bd35dc037fdb48c8aad2a8a6414ba239b8874cc590720150c94a832a8cce74 WHIRLPOOL da8fc8a074d8b5a01f566f3c844d668c7652dba03cc618d9d2c162b72fec864a580e05cd940417dd8fcef4bb2c8340bf8e17d166fb582909ff69098332844e91
DIST numpy-1.6.2.tar.gz 2585329 SHA256 0b83d96ab79711b548470b7aeee1272c4ba8fcbba6586a67116b566a21ed16c6 SHA512 a92667b92ecf2942bef4715189facccb8726866dfd90522b8e4b1e65991d1e6448ab06962e40a7cb83adaebf37eb48cf61417e7ba367da425a2ad7b3302a60a5 WHIRLPOOL 7aa9d7a1ca69bb9a6ce1cc5930997a5b9b8c9573ba261812706c9f12ea9ed42c1fd948552e25049d7b606fd3fda27c6a3ea72e2ffe43fb16e999b0b62515b32d
DIST numpy-1.7.1.tar.gz 2838240 SHA256 5525019a3085c3d860e6cfe4c0a30fb65d567626aafc50cf1252a641a418084a SHA512 d58177f3971b6d07baf6f81a2088ba371c7e43ea64ee7ada261da97c6d725b4bd4927122ac373c55383254e4e31691939276dab08a79a238bfa55172a3eff684 WHIRLPOOL 5374e619edbd3a3e7e478e1baf585d1868f832aa8864935e1498652e2128bf79284a25d5d0ac153c703e1a5d97f361081181eb3402f6e07141324d31eccf390a
DIST numpy-1.8.0.tar.gz 3779617 SHA256 2764d0819acc77e9ff81b060fe7f69530b0d85c26ac9d162639b787cb227d253 SHA512 ec3d002ed786335e8748983261c96f88a9f1520fc345ad5b810dc02a5e126e15fe5afb02bed1f4b43d580a1da39583d86b84f57dc456b0702653e34e5357c857 WHIRLPOOL 8796d90795ddec62e6d72be433ea00917a63ef39cf3fe81e094f653e1863b69ecdce812995877f78e4324434141b03e2ceb3f872ed4e023b19c6bd9bcc294ac2
DIST numpy-html-1.7.0.zip 10831068 SHA256 469a8e6f21544204b6e338eb88519c04ed22a6b5e3f3b098f0cccf0ffe08c8b1 SHA512 b68b44102aa4d2996334adce3ddda090f373a4c5bd006daa9cf59f092445d5b768121afe4d10855058d6489ff52bf70a7645b7ff79555de709417f13568bfaac WHIRLPOOL f696258ebb7c78bdfee948bd9119d868b77048c73c805230f0f40d71be891cbfa5bccf21e714cc4389daf1792abb6aeaf3ae18e91889332b9aafa79c865f34a7
DIST numpy-ref-1.7.0.pdf 5161456 SHA256 0581709ef96441953404bc1369d70117b83359aff94f44779b960bed30a156d7 SHA512 9a80ab2b412aa34ce019454c438b129d1e94b2264306f3644e97c87f4f7b54317ee626274d865c04891005ca8e8f5e3773681a7af590dd89d64df9462d0f0004 WHIRLPOOL 0f10177fd24cfe93555f28440ddc3567a787f2cef336b2f2774b038caafb6807f738d1f3ee3d5a5f26883c567e4017f8365069f25ec7cba5234c537602351729
DIST numpy-user-1.7.0.pdf 404104 SHA256 0c8dc1d53cc057a66139039dbaaf65499687cf64e72af5852eb96d9c3cd3ab18 SHA512 20cec2f9742c0604d9db9f2e74e7c8fda1782c081c27437a07c2d8cb7f36be6df3e50e5ddf8cc10a076905b2be2b6927af15d0574e3bee2961cf14aaca55ad78 WHIRLPOOL 792c4ccd155ddbb82d8a93959c218bcc001532a6b3c42626bef64c96eb865601f5ee328d1a1627f1656e0b22085c89ede39d7f94183841e1069d183589542ffe

@ -0,0 +1,25 @@
patch to allow any blas (c or f77) to simulate the
special treatment atlas libs have in numpy.
2013: numpy.distutils still horrendous code
--- numpy/distutils/system_info.py.orig 2013-11-25 19:54:45.760217851 -0800
+++ numpy/distutils/system_info.py 2013-11-25 20:00:26.575310888 -0800
@@ -293,17 +293,7 @@
1 - display warning message
2 - raise error
"""
- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead
- 'atlas_threads': atlas_threads_info, # ditto
- 'atlas_blas': atlas_blas_info,
- 'atlas_blas_threads': atlas_blas_threads_info,
- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead
- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto
- 'mkl': mkl_info,
- 'openblas': openblas_info, # use blas_opt instead
- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead
- 'blas_mkl': blas_mkl_info, # use blas_opt instead
- 'x11': x11_info,
+ cl = {'x11': x11_info,
'fft_opt': fft_opt_info,
'fftw': fftw_info,
'fftw2': fftw2_info,

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<herd>python</herd>
<longdescription lang="en">
<herd>sci</herd>
<herd>python</herd>
<longdescription lang="en">
NumPy is a general-purpose array-processing Python package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
@ -11,7 +11,7 @@
basic linear algebra and random number generation.
It is the successor of Numeric and numarray.
</longdescription>
<upstream>
<remote-id type="pypi">numpy</remote-id>
</upstream>
<upstream>
<remote-id type="pypi">numpy</remote-id>
</upstream>
</pkgmetadata>

@ -0,0 +1,145 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.8.0.ebuild,v 1.1 2013/11/26 04:32:29 bicatali Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
FORTRAN_NEEDED=lapack
inherit distutils-r1 eutils flag-o-matic fortran-2 multilib toolchain-funcs versionator
DOC_PV="${PV}"
# upstream is lagging on docs
DOC_PV=1.7.0
DESCRIPTION="Fast array and numerical python library"
HOMEPAGE="http://numpy.scipy.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
doc? (
http://docs.scipy.org/doc/${P}/${PN}-html-${DOC_PV}.zip
http://docs.scipy.org/doc/${P}/${PN}-ref-${DOC_PV}.pdf
http://docs.scipy.org/doc/${P}/${PN}-user-${DOC_PV}.pdf
)"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="doc lapack test"
RDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
lapack? ( virtual/cblas virtual/lapack )"
DEPEND="${RDEPEND}
doc? ( app-arch/unzip )
lapack? ( virtual/pkgconfig )
test? ( >=dev-python/nose-0.10[${PYTHON_USEDEP}] )"
# Uses distutils.command.config.
DISTUTILS_IN_SOURCE_BUILD=1
src_unpack() {
unpack ${P}.tar.gz
if use doc; then
unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
fi
}
pc_incdir() {
$(tc-getPKG_CONFIG) --cflags-only-I $@ | \
sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//'
}
pc_libdir() {
$(tc-getPKG_CONFIG) --libs-only-L $@ | \
sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//'
}
pc_libs() {
$(tc-getPKG_CONFIG) --libs-only-l $@ | \
sed -e 's/[ ]-l*\(pthread\|m\)[ ]*//g' \
-e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//'
}
python_prepare_all() {
epatch "${FILESDIR}"/${PN}-1.8.0-no-hardcode-blas.patch
if use lapack; then
append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)"
local libdir="${EPREFIX}"/usr/$(get_libdir)
# make sure _dotblas.so gets built
sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die
cat >> site.cfg <<-EOF
[blas]
include_dirs = $(pc_incdir cblas)
library_dirs = $(pc_libdir cblas blas):${libdir}
blas_libs = $(pc_libs cblas blas)
[lapack]
library_dirs = $(pc_libdir lapack):${libdir}
lapack_libs = $(pc_libs lapack)
EOF
else
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
fi
export CC="$(tc-getCC) ${CFLAGS}"
append-flags -fno-strict-aliasing
# See progress in http://projects.scipy.org/scipy/numpy/ticket/573
# with the subtle difference that we don't want to break Darwin where
# -shared is not a valid linker argument
if [[ ${CHOST} != *-darwin* ]]; then
append-ldflags -shared
fi
# only one fortran to link with:
# linking with cblas and lapack library will force
# autodetecting and linking to all available fortran compilers
if use lapack; then
append-fflags -fPIC
NUMPY_FCONFIG="config_fc --noopt --noarch"
# workaround bug 335908
[[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
fi
# don't version f2py, we will handle it.
sed -i -e '/f2py_exe/s:+os\.path.*$::' numpy/f2py/setup.py || die
distutils-r1_python_prepare_all
}
python_compile() {
distutils-r1_python_compile ${NUMPY_FCONFIG}
}
python_test() {
distutils_install_for_testing ${NUMPY_FCONFIG}
cd "${TMPDIR}" || die
${EPYTHON} -c "
import numpy, sys
r = numpy.test(verbose=3)
sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}"
}
python_install() {
distutils-r1_python_install ${NUMPY_FCONFIG}
}
python_install_all() {
distutils-r1_python_install_all
dodoc COMPATIBILITY DEV_README.txt THANKS.txt
docinto f2py
dodoc numpy/f2py/docs/*.txt
doman numpy/f2py/f2py.1
if use doc; then
dohtml -r "${WORKDIR}"/html/*
insinto /usr/share/doc/${PF}
doins "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf
fi
}

@ -5,3 +5,4 @@ DIST amqp-1.0.9.tar.gz 70180 SHA256 c31217630cbe2057b9f9c689820f950104ad1aea9cbb
DIST amqp-1.2.1.tar.gz 74050 SHA256 9d688b8da8051b0cbb97131c42a27923e3afd943c557cd30718b3d8f346dbeac SHA512 4ec9eae5c586808dae83c0409d1083da7df60898d6c5d5c999848c94b351a6fc0c0e89eacfc2c002dd153d6e6e0b9291357a608a3fdf508b06e20f85d793c962 WHIRLPOOL 65d7737540720708feacb2ef65450f978ad8c9b4c6667544e1a452d7421e81c9edac3714a819e8f49cd0a549ad9f0ebea1093239da4bc1db7d549d63b9e360d2
DIST amqp-1.3.0.tar.gz 75201 SHA256 59912d9ea5dd41d5927b826b07aca5e447828db267783b91e5b4939077145d86 SHA512 4d273c8e9df06149b7855eef1a71529bd7f5777357f8c5b2176e8e9a4abea80468fbf1b79a04e98907bb358a144a0ac160d00db50de3575be65c9700e2b39d7c WHIRLPOOL 3dd94c66fd1c609dbd9d2e53a28f61f5fed74b39182376d55a6f60df0201a1eb7c1d2aebd4f03c8e693c1a2ccecd8031eed04dba364668bca690ad0035a3b6bd
DIST amqp-1.3.2.tar.gz 75555 SHA256 9d321609f98f6742eeb2f7d22334749936a26047af5563818e175444ad1e2ba4 SHA512 20796621fd5687562ac4cbaca180e53a197fdd54a73cb13a746f0b701d0ceffc7dce6a18444ec1051c87be6858a3263502b7c56305cb11b613378ee00baf0aef WHIRLPOOL e7b70a85b7c240267f18ab33aa0a194198e2f2628caec1a14a41d184f97fa26af0153f9ea6f7e3fd9c480d3df1a831fc2becadb62954c4cbf0f580f06514b0f6
DIST amqp-1.3.3.tar.gz 75574 SHA256 e65da719efcd1d0a9cff44431e2476f88de8ffeeb7abc0c77e82361c9281170f SHA512 16b0d5b51b8fb01bb3c14109b2ebdb59aeca227b313d16075151ccb631df2aabdc69c0eb70972f40975934fab55d8809ae9da0e9afa5bce5b7ab9a50a72d43c9 WHIRLPOOL 5228114037f9a217b251fe40a99015e38f49de5930b1723b47b9ccb7fb599308ff94efa4cc199fa1d9076ce62d0788b798202bce4ca5b0321bf6ea6f6957d8e7

@ -0,0 +1,55 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/py-amqp/py-amqp-1.3.3.ebuild,v 1.1 2013/11/26 06:36:55 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
inherit distutils-r1
MY_PN="amqp"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Low-level AMQP client for Python (fork of amqplib)"
HOMEPAGE="https://github.com/celery/py-amqp http://pypi.python.org/pypi/amqp/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples extras test"
RDEPEND=""
DEPEND="${RDEPEND}"
RESTRICT="test" # don't work, and fail quietly
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
cp -r -l funtests "${BUILD_DIR}"/lib/ || die
cd "${BUILD_DIR}"/lib || die
if [[ ${EPYTHON:6:1} == 3 ]]; then
# Notes:
# -W is not supported by python3.1
# -n causes Python to write into hardlinked files
2to3 --no-diffs -w funtests || die
fi
"${PYTHON}" funtests/run_all.py || ewarn "Tests fail with ${EPYTHON}"
rm -rf funtests/ || die
}
python_install_all() {
use examples && local EXAMPLES=( demo/. )
use doc && local HTML_DOCS=( docs/.build/html/. )
if use extras; then
insinto /usr/share/${PF}/extras
doins -r extra
fi
distutils-r1_python_install_all
}

@ -1,2 +1,3 @@
DIST py2neo-1.5.1.tar.gz 45061 SHA256 3f15ede926af84555472eea72fb9bc6d96f20ea868a69b975fdb7da1b4a85d42 SHA512 7480b6ea813ccad9e1f83f5d756dee0cdc0f21c117a1d8d2ecf5732670c0ca9e1e69f703335e23c81af3aeba6d882e62d74a544d4d01bde73f9773057bf02c51 WHIRLPOOL c2b0ebe22221046505448aff931d25c1cbbae86ec93df30bef2380f780afc40a4259641ced2dae167467efbeba8c32197043f0c6144de851c0dbe0a79a3db545
DIST py2neo-1.6.0.tar.gz 57828 SHA256 f596988d3437cfb1bc20317d60cd72ead200845f305f8f8a91eff7a993bb47f5 SHA512 843ae9ac4e413c51a1596bd9b1442d01824beb23c0d9e395dfae1f2e43e0065d42ad3158405889ecdcc5dd3848750d3dc461cf791b3fe2f9f63f3de11fd82a91 WHIRLPOOL 6399514da0a2bbbb4df4e46aebdb3d0a1d2989a65256c0018c61e7274fdbb83b21f89b54365ba9e2500c403d964bcf4a05693422b2c52e9e66ce70b8693392cb
DIST py2neo-1.6.1.tar.gz 61537 SHA256 a66a1c17ac638818faf5bd0caacb45c81061917fc68801ef912284ec08e96573 SHA512 02c5a16738915ccb4ec341ec036283e3726f9bbe19b92d7904480ba1067cddee515c4c126fcc71632251fcd13aa11fdfcd87773a463827801d790c62a1c390ed WHIRLPOOL c3b1c38d8dd55a02f57242d67b5cd14b72ae0d6122eff74c80e58cde164cf6243101a27a251aff4b997a3a066a68ef25c185c18970d8c6f339d1b2796d51c633

@ -0,0 +1,18 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/py2neo/py2neo-1.6.1.ebuild,v 1.1 2013/11/26 06:57:33 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
inherit distutils-r1
DESCRIPTION="A simple and pragmatic library that to the Neo4j database"
HOMEPAGE="http://py2neo.org"
SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

@ -7,3 +7,4 @@ DIST pycountry-0.18.zip 7850782 SHA256 fb8ee7552a52f9930c7df4032b8dff60e5175c63f
DIST pycountry-0.19.zip 7852327 SHA256 31e119296f15d9aebeca68c60765cc9e99abb900afb42072810f918f05e34443 SHA512 017aee83730f3cdced717b9e657a4c431a5e8208c7434208667213ec3fc8a3f500527e36d009ffbc45767a233100174f634dcbfd3425cec59470dc11dd740b03 WHIRLPOOL 24b2d6238959ab64290b64d54c6ea4b87e57972b1e28926f66b5f53b2efbd7b09223e2fb125de44cacb4b74817bf945473022681523a0e9b5fdd6cd2456129bb
DIST pycountry-1.0.zip 7866775 SHA256 a09616ec9c9f73be27de8087bc57c255dd80b4fbbac9b8dbdbbe50abbae33d27 SHA512 f2ca782c1ac6050d992dc83428e5bc3f95a797c4d86c1745e050ce386785cfb7d9b5df0a359bf80089f9e0addada510d5f54c71a2dccb278617d7544ba2b329c WHIRLPOOL 92bd27ee289daad546c590686b793738df613863dc57c7003a709c460329c1267d8f22d725f5d6b6c18a18956e632af0733832790f51b36b87e885f998c1848e
DIST pycountry-1.1.zip 7862246 SHA256 d2e89057e6418d03128fb44faa11dd979c310baaaf0d4adea0e1af17a3ebef74 SHA512 4f10e7bdf097d1798b53d0cf71dfd5da9d069cbee8b6b65b714856fd3d639df9e1982b5b090dc073fb26cdf3d71b2e3d509678e4fe3901ea03bdfd1193e76fb2 WHIRLPOOL ab16519335caa39df6f39fca80307ffe3d33588238b7d839e12ba2438a97c0a9fc6d1a4d7eadd3fa6df7dd9011025b3ce1c803bf1967d90ad587e9d78481259a
DIST pycountry-1.2.zip 7856836 SHA256 76ba499a441bc05b20c200b7b7347eb099b41f4e89cadacac4dbbad7059c871a SHA512 08013e552181983712466dc973c62cecaf41d5abab1102ce774e946c40088e02020a34b970e9598460f6bb426fec029d4f668e2e26d6df4911255ed255d0c3b8 WHIRLPOOL e5343f9942ec2073a4edadc3eb2351627de50ec929ac2d35e30f3ddc11177ebe5cf3892d5129f7421edd833b45a0d1776b9b925a08c9352af389a8076a5b9634

@ -0,0 +1,30 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycountry/pycountry-1.2.ebuild,v 1.1 2013/11/26 06:22:00 patrick Exp $
EAPI=5
# pypy pennding actioning of bug filed upstream
PYTHON_COMPAT=( python{2_6,2_7,3_3} )
inherit distutils-r1
DESCRIPTION="ISO country, subdivision, language, currency and script definitions and their translations"
HOMEPAGE="http://pypi.python.org/pypi/pycountry"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND="app-arch/unzip
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
DOCS=( HISTORY.txt README TODO.txt )
python_test() {
# https://bitbucket.org/techtonik/pycountry/issue/8/test_locales-pycountry-015-pypy
pushd "${BUILD_DIR}"/lib > /dev/null
py.test ${PN}/tests/test_general.py || die
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-2.6.8.ebuild,v 1.4 2013/05/09 21:36:59 floppym Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-2.6.8.ebuild,v 1.5 2013/11/26 20:24:58 hwoarang Exp $
EAPI="3"
@ -10,7 +10,7 @@ SRC_URI="http://www.python.org/ftp/python/doc/${PV}/python-${PV}-docs-html.tar.b
LICENSE="PSF-2"
SLOT="2.6"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
DEPEND=""

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-2.7.3.ebuild,v 1.4 2013/05/09 21:36:59 floppym Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-2.7.3.ebuild,v 1.5 2013/11/26 20:24:58 hwoarang Exp $
EAPI="3"
@ -10,7 +10,7 @@ SRC_URI="http://www.python.org/ftp/python/doc/${PV}/python-${PV}-docs-html.tar.b
LICENSE="PSF-2"
SLOT="2.7"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
DEPEND=""

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-3.1.5.ebuild,v 1.4 2013/05/09 21:36:59 floppym Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-3.1.5.ebuild,v 1.5 2013/11/26 20:24:58 hwoarang Exp $
EAPI="3"
@ -10,7 +10,7 @@ SRC_URI="http://www.python.org/ftp/python/doc/${PV}/python-${PV}-docs-html.tar.b
LICENSE="PSF-2"
SLOT="3.1"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
DEPEND=""

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-3.2.3.ebuild,v 1.4 2013/05/09 21:36:59 floppym Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-3.2.3.ebuild,v 1.5 2013/11/26 20:24:58 hwoarang Exp $
EAPI="3"
@ -10,7 +10,7 @@ SRC_URI="http://www.python.org/ftp/python/doc/${PV}/python-${PV}-docs-html.tar.b
LICENSE="PSF-2"
SLOT="3.2"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
DEPEND=""

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>
<herd>openstack</herd>
<maintainer>
<email>prometheanfire@gentoo.org</email>
<name>Matthew Thode</name>

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-novaclient/python-novaclient-2.15.0.ebuild,v 1.1 2013/10/24 14:24:40 prometheanfire Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-novaclient/python-novaclient-2.15.0.ebuild,v 1.2 2013/11/26 11:00:52 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
@ -16,9 +16,6 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
#need to package a bunch of stuff, they changed their test suite, again...
#RESTRICT="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
@ -41,5 +38,6 @@ RDEPEND="virtual/python-argparse[${PYTHON_USEDEP}]
>=dev-python/Babel-0.9.6-r1[${PYTHON_USEDEP}]"
python_test() {
"${PYTHON}" -m subunit.run discover -t ./ ./ || die
testr init
testr run --parallel || die "testsuite failed under python2.7"
}

@ -2,3 +2,4 @@ DIST requests-cache-0.3.0.tar.gz 22110 SHA256 cb723ae5db7423b01b77ad66d6984436e6
DIST requests-cache-0.4.0.tar.gz 23607 SHA256 3906fafc7fd3098f9ae64f0003cc2e2af85990b840b4786e492a042091af42a4 SHA512 32b4d71d64f826825b6d3832bfaa129c2e9d25526f57b0e2ed7a02e61b9803b7e4b6bf92f574b6a43e147a372e6ee76bc1885073bddfa6193435d5690a37c1c4 WHIRLPOOL 90b73a717554416143f331b1eadd9e825cf35040f8f4e49719620e35a09c311bbc02523826eabbd5d7800132210cecf8e24b236bf7b06e0cf03f0f9925731919
DIST requests-cache-0.4.2.tar.gz 24444 SHA256 50dbda42263a64de6929e262023916d6a94ff692bcc4af1e45914be59ebca73c SHA512 37ed1727182ec8a1f81ae40462c784f600fed0485127a239ec5470ad7934a23450321903334acdc1220c00e64022f033e340d5443fae2554e966ba077198d23d WHIRLPOOL a05edff92c42fe3ca949d3fcee4b60dbce0436037f2cf4d32972b9234380b23faccce87470f437cbfff29601de63a1c7ff4adbec4b020a99da91e86b8ff3effd
DIST requests-cache-0.4.3.tar.gz 24776 SHA256 557fdabe808db20367ecb41028ca8b2800f883bb3b114d820953bd753d32ca2a SHA512 434e2f3b4e4560456f122079c3f2eea1a1ba34de20dbea40215e9f617593c2275bfd0e64f3441c0f2d25f689f1f6697beeb140fb1214b06316ed259907f2cb1f WHIRLPOOL e1fe6df3a8d73cd5ccbc514933210c1e3cdaae9d5a3ca25970e80cdbee1584bbff2e59d702b601c2e5349879272c0d235091598c323d3ed65158b8d89af1c523
DIST requests-cache-0.4.4.tar.gz 25366 SHA256 5780b2cef30560a1e765a03c84825cbc08cf69b9889a34bb664c3857cc39670d SHA512 d51c79f2001d08de194518f0ad0806248ab634dfb670d53a2ac2fd8d30155dd6e331aec27555358b364fca1ee669cc4fcf729b6632dbd1b372e5f8ad0194ed43 WHIRLPOOL 3099bb83545c88326f94973e92fe59074945bbb9d97f41edc9aeb5b3d6e5356a6a9b913842eb474a19bef0114020161dc79ab37e83671efe7840a228878cd4e8

@ -0,0 +1,23 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/requests-cache/requests-cache-0.4.4.ebuild,v 1.1 2013/11/26 05:27:41 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
inherit distutils-r1
HOMEPAGE="https://pypi.python.org/pypi/requests-cache"
DESCRIPTION="Persistent cache for requests library"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-python/requests-1.1.0"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
DOCS=( README.rst HISTORY.rst )

@ -1,3 +1,4 @@
DIST setproctitle-1.1.3.tar.gz 19286 SHA256 4af97eb01a2febb810a08b46f7f53b460c1eda6beba07895c13ebe756f422306 SHA512 d306e0a1e84ace4d04787a090a2f93df64d3d673e9c96306ee9c4adb985b7616a64e30a73d4fbc577cd810a331734b25a857cb581708c21cb71342cb1861a32d WHIRLPOOL 650c88705d14c6a0208a8c42fdfd4ce1caa9c882552dcae74d289b5eb77d07099fb109179c44e2500b5e6aee3492695eaa07db6e0c14b6bb3701e359263f7ac7
DIST setproctitle-1.1.6.tar.gz 22589 SHA256 f2926abd47803e288f665401268a9950961be734e981035bde9acb4af80a032d SHA512 a8423cf628453458f82994020a385d50bdb931870a89c5a40b6ad202b747b8b97ac9c11f3c9772768a39c8319d13f774c77040131306e3cdb060f7ebeac26467 WHIRLPOOL 55545e8e46268ef7a5d38c2abbf002c5dc0b5d3ce5c7fe79414010de1827e502eb4dc4e6763cca701327ad78f03660ff9cd467a1f18b90f62cfae7aa0cddec77
DIST setproctitle-1.1.7.tar.gz 23209 SHA256 c7fca7ca317e309f4d77649ed94ef296e30f8444a9fa75bfb6483b5e70efa882 SHA512 2dc6cfd599329ca881cdbe298496cdd30d27118070fec37db997785eb38bd53e30fe08214fe1e05b29d3a839b80d6baf9fe6cb5d2d3a751063113e16ecdf68ee WHIRLPOOL bea904bf2e38445859e40d16ad24d7e1e09615a29a0508138ff47c203ed6121c914cd5ff9cd8684bcddf0a049ce4ac3b50e6736c212c062c87e2d672851363f7
DIST setproctitle-1.1.8.tar.gz 23208 SHA256 b564cf6488217c7a4632a9fe646fc3a3bea2f9712b4e667e9632b870d1a58211 SHA512 9d0ab8e65afd7e1ac019ea47995498dae1f82d8aebb333dfc4c953e745441cb9a8db942ad8417522d1f9a805bc50ad680f3a37cb4cbbd4214d261d4fed600b20 WHIRLPOOL 4014739eab6ba3d91a15e2c11d9e91ee6a0254a23be1c2f8a7963bc327559a5a7c6197398d6053743a9479562e76873fe47f11a6c810f2c21d3e462440183166

@ -0,0 +1,51 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/setproctitle/setproctitle-1.1.8.ebuild,v 1.1 2013/11/26 06:11:55 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
inherit distutils-r1 toolchain-funcs
DESCRIPTION="Allow customization of the process title."
HOMEPAGE="http://code.google.com/p/py-setproctitle/ http://pypi.python.org/pypi/setproctitle"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND=""
# on <py2.7 the test suite uses SkipTest from nose,
# so we need to run it using nose.
DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"
DOCS=( HISTORY.rst README.rst )
python_prepare_all() {
sed -i -e "/pyrun/s:%s'.*):'):" tests/*.py || die
distutils-r1_python_prepare_all
}
python_test() {
cp -r -l tests "${BUILD_DIR}"/ || die
if [[ ${EPYTHON} == python3.* ]]; then
# Notes:
# -W is not supported by python3.1
# -n causes Python to write into hardlinked files
2to3 --no-diffs -w "${BUILD_DIR}"/tests/*.py || die
fi
cd "${BUILD_DIR}" || die
# prepare embedded executable
emake tests/pyrun CC="$(tc-getCC)" \
CPPFLAGS="${CPPFLAGS} $(python-config --cflags)" \
LDLIBS="${LDLIBS} $(python-config --libs)"
nosetests || die "Tests fail with ${EPYTHON}"
}

@ -8,3 +8,4 @@ DIST SQLAlchemy-0.7.9.tar.gz 2649932 SHA256 4a89556cb55275d1af694dc4d5700d8bf0f8
DIST SQLAlchemy-0.8.0.tar.gz 3751669 SHA256 8929dc6f3d4aedf4d8c59600cdefc99e7731791f346cbed605bb9779b0038129 SHA512 5d8089179f670e55cba993d690f0c4b7a63789a0da218fa6afeda6b3064a99aeaa0495cbf8c264f0c88ecd41938cf534eb115365a5f214458f5b5f34d0c49a1f WHIRLPOOL ee7c89a761fe86ff029f44f61f63b0acb046fe9392984aa08a526ec2fc57c09e6215e7dc7ec44fd802b50f0c6265056511af6e397674e1b1aa97eb2c1e6caf3b
DIST SQLAlchemy-0.8.1.tar.gz 3776304 SHA256 5646f87ab781755b116d718433637a341b74c8214999e606c2e4134279ba5bbb SHA512 61540df1f4248c5d5c52e413d917284cac4503f93bf275599ef0d6de95f6740979c1d420cc4bb6d05a657080060fdc051681509f4d6f694a7de7370fc0c51400 WHIRLPOOL fb666da56f17e9fb32729a210f186d542588ad8ca485bff4a93bbb7b879bb47a701151287b58c4c90ac90dc137c546251a69d9c8c10fc994fcc5d80db831078b
DIST SQLAlchemy-0.8.2.tar.gz 3816467 SHA256 71ce685f0e643bae95c7d4ace7ff8d6dcb37e99605cab3cf31c2be006c17905f SHA512 e08287319f42b4dbdf9f3182668c72fb39e30f248978758257c526c41ef2bccf0fb1f9c3afe767931f2b6de2ea5a3cac08eded450dda64872f87da9176d48ebb WHIRLPOOL cc8e0f35c7b695825112e188faade15e1d110f3723996ba8089758f9b3d8ce7fc47d64839ab4ebd59db9f9cd4178f5e370076b2c0d5439120f31e660711811d8
DIST SQLAlchemy-0.8.3.tar.gz 3895285 SHA256 80702cd95ade2d31d018e27accd4a75afb5b82e1b77b206c4ea463378c08197b SHA512 eabf019511b8488177361ffba2e7af1612c2df0b981a249c8534fbfa0b28447670a075441e7f3e688a0fb87361ba60ad24f2cd117b6cf80a4b7bef3d3cb9cf18 WHIRLPOOL 36094172a8ad514e852844e79d4ced1c81cf774d9b475d0f0b55fed5e9828e485a0843dd0337ede41478cb71abefc45b79614b63415a725fcbdd44d666f3542d

@ -0,0 +1,82 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.8.3.ebuild,v 1.1 2013/11/26 06:04:46 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
inherit distutils-r1 eutils flag-o-matic
MY_PN="SQLAlchemy"
MY_P="${MY_PN}-${PV/_}"
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
HOMEPAGE="http://www.sqlalchemy.org/ http://pypi.python.org/pypi/SQLAlchemy"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="doc examples +sqlite test"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
sqlite? ( >=dev-db/sqlite-3.3.13 )"
DEPEND="${RDEPEND}
test? (
>=dev-db/sqlite-3.3.13
>=dev-python/nose-0.10.4[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
)"
S="${WORKDIR}/${MY_P}"
python_prepare_all() {
# Disable tests hardcoding function call counts specific to Python versions.
rm -r test/aaa_profiling || die
distutils-r1_python_prepare_all
}
python_compile() {
if ! python_is_python3; then
local CFLAGS=${CFLAGS}
append-cflags -fno-strict-aliasing
fi
distutils-r1_python_compile
}
python_test() {
# Create copies of necessary files in BUILD_DIR.
cp -pR examples sa2to3.py sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
pushd "${BUILD_DIR}" || die
if python_is_python3; then
"${PYTHON}" sa2to3.py --no-diffs -w examples test || die
fi
# No longer has postgresql support
"${PYTHON}" sqla_nose.py -I test_postgresql || die "Testsuite failed under ${EPYTHON}"
popd || die
}
python_install_all() {
use doc && HTML_DOCS=( doc/. )
use examples && local EXAMPLES=( examples )
distutils-r1_python_install_all
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
if ! has_version dev-python/mysql-python; then
elog "For MySQL support, install dev-python/mysql-python"
fi
if ! has_version dev-python/pymssql; then
elog "For mssql support, install dev-python/pymssql"
fi
if ! has_version dev-python/psycopg:2; then
elog "For postgresql support, install dev-python/psycopg:2"
fi
fi
}

@ -2,3 +2,4 @@ DIST SQLObject-1.3.1.tar.gz 261767 SHA256 a3a33eb6fb2c683c8a379f5a51a45505b8c4b2
DIST SQLObject-1.3.2.tar.gz 261984 SHA256 f45ab1ef285b32e83732d5a2539245353fcf89e107e087713cb1e2f0aaeb0b89 SHA512 10f706b2baa611e0ff4262f3ff4b63300cbd6e1c6cbb7b5eb43d2cc9c15a25a8d65bf07273278c78ea5b0fd086d9e78de72223e86ba46cf4a07837ce44a61d73 WHIRLPOOL ab0021890ef18893eccbdfab8b26bf0698a1816a16495fb2e9044bb1e87f920707f5efe2b6216d95c0a0d2f28b02c4afd5b7b7e5380db81edad624236cf9787d
DIST SQLObject-1.4.0.tar.gz 263094 SHA256 d7c27f488c9d28ededad0420416d67b5abce07e92d339cb90dc2be9febaa4a18 SHA512 d9cdc7402f5437e1eb57889c6f200886ab72099f840b8ebce6bcce434adf8ff8f2c1eeb23a2849a95ce75b0bc5592c9a4ef4e4e4e6349a23133127b1e62308ac WHIRLPOOL de1f7609c8cf1a0aeb39eb69a1b730e4db9f4490beeb9a2283ba1431ddb65d3be199f0e631340287b04298ab4fedbd46f9ea13b36c9d99e13648656113713409
DIST SQLObject-1.4.1.tar.gz 263370 SHA256 033bc56606a9d10d34a0f12141f56fe622bf0b62f3b11f3dd91fa0b5827a31ce SHA512 23ac9896d31ed1aab0f1fdf2b8dfb253f07af3f5f993ae3ff88551d813f91ab25ac3e491041c34c9950c8162baf540a8f5c1679cca0d589ede99fecb77d17df6 WHIRLPOOL 68fbd0449a0907fafc471f113289d47e61e6b00907d2f95f0224c6be6f411766d9191a6bc50f4bdb0205bdcadeb9258a825baec65b2b9c9448fac9686ecd32fa
DIST SQLObject-1.5.0.tar.gz 276189 SHA256 ff39291437670b8533921493c7f89ea6a826fbe365be87adc237433c8a80e4e1 SHA512 e595881ec899f0e09cda2da979294dc9fcc97f3eadeeb4b1939b0b6824b3dc594579fb8f05de6bda0fae93145945ba3d7afaf94cc3c7aa43463a3d06e8a01163 WHIRLPOOL 330a42fee753a217f2099b4c8c46759e581bca786324f354e4c859457003129378c5d4433b2c9a52f699691ecde1cec27dd7b31cccf55e1155a34c15814a6645

@ -0,0 +1,41 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlobject/sqlobject-1.5.0.ebuild,v 1.1 2013/11/26 06:43:42 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
PYTHON_REQ_USE="sqlite?"
inherit distutils-r1
MY_PN="SQLObject"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Object-Relational Manager, aka database wrapper"
HOMEPAGE="http://sqlobject.org/ http://pypi.python.org/pypi/SQLObject"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="doc firebird mysql postgres sqlite"
RDEPEND=">=dev-python/formencode-0.2.2[${PYTHON_USEDEP}]
firebird? ( >=dev-python/kinterbasdb-3.0.2 )
mysql? ( >=dev-python/mysql-python-0.9.2-r1[${PYTHON_USEDEP}] )
postgres? ( dev-python/psycopg[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
S="${WORKDIR}/${MY_P}"
python_install_all() {
if use doc; then
pushd docs
dodoc *.txt || die "dodoc failed"
dohtml -r presentation-2004-11 || die "dohtml failed"
insinto /usr/share/doc/${PF}
doins -r europython || die "doins failed"
popd
fi
distutils-r1_python_install_all
}

@ -1 +1,2 @@
DIST tox-1.4.3.tar.gz 71661 SHA256 b998d809d954fd9c30476a56bbbbf20a1a5adaa3e4cc5eb052c7051a682b2021 SHA512 4d7359c8f3d9d6f7c71dbd7d486221eed24b60ccf5de561c558e877ebef69186ed1d4829ef50e5d1d50ae20907aae350ef85748b2ecf4187247fe9623baa54f6 WHIRLPOOL 0a0e715a3dd6f846d0737d29e8a17f1cadc83c6eff72efaa31fd61fe96800b910a8d833b2fc8526643137ef60ffc5bd8833f0fdee59fc2785ac2de38fff118b9
DIST tox-1.6.1.tar.gz 131654 SHA256 05c72b3b7481b47f48f63436c7355783dc8be77ffd7c2bc948b0b7aa2dd4d0de SHA512 af5e26e1b1a1f62b528063e540424087f99ef467e3b9aae27e6658170218f010cba9af544b42776025d5058ebbaec81cab81eed0a0d67129237635a3905abd10 WHIRLPOOL 219174233cd9a22ba971d85d76b8395b090055fe9f105c92a946add03b0e2dbc43a5c249d669911ac7ec018cea58c3f8d76501ecee6962dd5a9a6cda57033447

@ -0,0 +1,48 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/tox/tox-1.6.1.ebuild,v 1.1 2013/11/26 06:55:05 patrick Exp $
EAPI=4
PYTHON_DEPEND="*:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.7-pypy-*"
inherit distutils eutils
DESCRIPTION="virtualenv-based automation of test activities"
HOMEPAGE="http://tox.testrun.org http://pypi.python.org/pypi/tox"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="dev-python/setuptools
>=dev-python/virtualenv-1.8.4
dev-python/pip
dev-python/pytest
>=dev-python/py-1.4.9
virtual/python-argparse
doc? ( dev-python/sphinx )"
RDEPEND="${DEPEND}"
src_compile() {
distutils_src_compile
use doc && emake -C doc html
}
src_test() {
testing() {
"$(PYTHON)" setup.py build -b build-${PYTHON_ABI} \
install --root "${T}/test-${PYTHON_ABI}"
PATH="${T}/test-${PYTHON_ABI}/usr/bin:${PATH}" \
PYTHONPATH="${T}/test-${PYTHON_ABI}/$(python_get_sitedir -b)" py.test -x
}
python_execute_function testing
}
src_install() {
distutils_src_install
use doc && dohtml -r doc/_build/html/
}

@ -1,3 +1,4 @@
DIST twitter-1.10.0.tar.gz 35134 SHA256 d6c43b275ea69d332624b373b988fe6a5987a49d59bcd030132af9d3414935ea SHA512 b6641ce47276308bd8ded95acd7d370787f88ad7f443ed1af1926839ef1e929c5340c9b9062b4c64538941681e3f477dcca1c942405dfb851a91faf5d636c669 WHIRLPOOL b989a9236f411b970523d072cac85cd174e1615806ca64accc2ec42acc8cd8cf650da82f1cf60b7eb7039f1ec14fcd1f8ac59a0ae1b5e7cc6772e7e4a96bbf75
DIST twitter-1.10.2.tar.gz 36795 SHA256 4fac0a3e72fc42cbbfbd608e7fbbe7707cb7a18c5664e5cbd8ad5dfbf627fd5c SHA512 1f8d7b766b5617d8ddaee44e75f4f8493cdad9a3388b05d690e7ec195054a851eb1856560035353b1ed7e4f16708c96dc1051d209243d9f638d9ce478a414081 WHIRLPOOL e95e44986e987bbdbe7bfe9ea822de3b13872381c8a1b9d7a1d65cbc12b5f2c49b4e25e23cc6872cb3a00f432302d6f2eecf5ac8305d0df32f6886295157dd36
DIST twitter-1.9.2.tar.gz 32929 SHA256 b754d4d6cc823c80968575eee7002ccc22982aa0b6bfae140b77b606a38cb6f2 SHA512 480f1aa997977d934effc369a7e00e375229ad9187a20a77e467564981841a3222a5f7caa04a85f9f5964739de7d03d3924db6c73c198b6678bd27e040bcb093 WHIRLPOOL 0f0356789ddeb11970ab7f896962e2eb1b03dfeaa95c848bffd2df6fcaf6318f6d4876d0283643a2173a510e76458e3aa67a073292c7aaf3b73770086fa4f57a
DIST twitter-1.9.4.tar.gz 32945 SHA256 10e5e9ca9ff9b30869f2493ab432312e9b3e82ba6224c08a3b29b3eebe180f7d SHA512 faf9785fecdb933f067c2ac200c17d9b583a41e5779b92bd0c50321ab8530b554ed8c04e8e882352a65d67b6727dc580441dce4c7873ac0cbf640dd7058dc082 WHIRLPOOL 5e82175c39c07b18a7bd29dd71b7572e0cae5015055a882bfc524dc1c5b97f9101480383468f9846e78a2b22640cbb4288b300deb5e44551331886c061ddbe89

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save