parent
7c22bc9cce
commit
579b64c403
@ -0,0 +1,143 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.13.ebuild,v 1.1 2014/10/16 09:12:47 eras Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
inherit autotools eutils flag-o-matic multilib-minimal python-any-r1 versionator
|
||||
|
||||
MY_P="${P/mit-}"
|
||||
P_DIR=$(get_version_component_range 1-2)
|
||||
DESCRIPTION="MIT Kerberos V"
|
||||
HOMEPAGE="http://web.mit.edu/kerberos/www/"
|
||||
SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar"
|
||||
|
||||
LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="doc +keyutils openldap +pkinit selinux +threads test xinetd"
|
||||
|
||||
RDEPEND="!!app-crypt/heimdal
|
||||
>=sys-libs/e2fsprogs-libs-1.42.9[${MULTILIB_USEDEP}]
|
||||
|| ( >=dev-libs/libverto-0.2.5[libev,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libverto-0.2.5[libevent,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libverto-0.2.5[tevent,${MULTILIB_USEDEP}] )
|
||||
keyutils? ( >=sys-apps/keyutils-1.5.8[${MULTILIB_USEDEP}] )
|
||||
openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
|
||||
pkinit? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-kerberos )
|
||||
xinetd? ( sys-apps/xinetd )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r1
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
virtual/yacc
|
||||
doc? ( virtual/latex-base )
|
||||
test? ( ${PYTHON_DEPS}
|
||||
dev-lang/tcl
|
||||
dev-util/dejagnu )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}/src
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/krb5-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
unpack ./"${MY_P}".tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch"
|
||||
epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags "-I${EPREFIX}/usr/include/et"
|
||||
# QA
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags -fno-strict-overflow
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
use keyutils || export ac_cv_header_keyutils_h=no
|
||||
ECONF_SOURCE=${S} \
|
||||
WARN_CFLAGS="set" \
|
||||
econf \
|
||||
$(use_with openldap ldap) \
|
||||
"$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \
|
||||
$(use_enable pkinit) \
|
||||
$(use_enable threads thread-support) \
|
||||
--without-hesiod \
|
||||
--enable-shared \
|
||||
--with-system-et \
|
||||
--with-system-ss \
|
||||
--enable-dns-for-realm \
|
||||
--enable-kdc-lookaside-cache \
|
||||
--with-system-verto \
|
||||
--disable-rpath
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
multilib_is_native_abi && emake -j1 check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
|
||||
install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
# default database dir
|
||||
keepdir /var/lib/krb5kdc
|
||||
|
||||
cd ..
|
||||
dodoc README
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/*
|
||||
docinto pdf
|
||||
dodoc doc/pdf/*.pdf
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r1 mit-krb5kadmind
|
||||
newinitd "${FILESDIR}"/mit-krb5kdc.initd-r1 mit-krb5kdc
|
||||
newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r1 mit-krb5kpropd
|
||||
|
||||
insinto /etc
|
||||
newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
|
||||
insinto /var/lib/krb5kdc
|
||||
newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
|
||||
|
||||
if use openldap ; then
|
||||
insinto /etc/openldap/schema
|
||||
doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
|
||||
fi
|
||||
|
||||
if use xinetd ; then
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}/kpropd.xinetd" kpropd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
|
||||
elog "MIT split the Kerberos applications from the base Kerberos"
|
||||
elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp,"
|
||||
elog "ftp clients and telnet, ftp deamons now live in"
|
||||
elog "\"app-crypt/mit-krb5-appl\" package."
|
||||
fi
|
||||
}
|
@ -0,0 +1,595 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-2.1.2.ebuild,v 1.1 2014/10/16 13:21:59 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
PYTHON_REQ_USE="ncurses,readline"
|
||||
|
||||
inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \
|
||||
user udev fcaps readme.gentoo pax-utils
|
||||
|
||||
BACKPORTS=
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.qemu.org/qemu.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
||||
HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE="accessibility +aio alsa bluetooth +caps +curl debug +fdt glusterfs \
|
||||
gtk infiniband iscsi +jpeg \
|
||||
kernel_linux kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs
|
||||
+png pulseaudio python \
|
||||
rbd sasl +seccomp sdl selinux smartcard snappy spice ssh static static-softmmu \
|
||||
static-user systemtap tci test +threads tls usb usbredir +uuid vde +vhost-net \
|
||||
virtfs +vnc xattr xen xfs"
|
||||
|
||||
COMMON_TARGETS="aarch64 alpha arm cris i386 m68k microblaze microblazeel mips
|
||||
mips64 mips64el mipsel or32 ppc ppc64 s390x sh4 sh4eb sparc sparc64 unicore32
|
||||
x86_64"
|
||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb xtensa xtensaeb"
|
||||
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 sparc32plus"
|
||||
|
||||
use_targets="
|
||||
$(printf ' qemu_softmmu_targets_%s' ${IUSE_SOFTMMU_TARGETS})
|
||||
$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
|
||||
"
|
||||
IUSE+=" ${use_targets}"
|
||||
|
||||
# Require at least one softmmu or user target.
|
||||
# Block USE flag configurations known to not work.
|
||||
REQUIRED_USE="|| ( ${use_targets} )
|
||||
${PYTHON_REQUIRED_USE}
|
||||
qemu_softmmu_targets_arm? ( fdt )
|
||||
qemu_softmmu_targets_microblaze? ( fdt )
|
||||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_ppc64? ( fdt )
|
||||
static? ( static-softmmu static-user )
|
||||
static-softmmu? ( !alsa !pulseaudio !bluetooth !opengl !gtk )
|
||||
virtfs? ( xattr )"
|
||||
|
||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
||||
#
|
||||
# The attr lib isn't always linked in (although the USE flag is always
|
||||
# respected). This is because qemu supports using the C library's API
|
||||
# when available rather than always using the extranl library.
|
||||
COMMON_LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
xattr? ( sys-apps/attr[static-libs(+)] )"
|
||||
SOFTMMU_LIB_DEPEND="${COMMON_LIB_DEPEND}
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
||||
caps? ( sys-libs/libcap-ng[static-libs(+)] )
|
||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
||||
fdt? ( >=sys-apps/dtc-1.4.0[static-libs(+)] )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
||||
infiniband? ( sys-infiniband/librdmacm[static-libs(+)] )
|
||||
jpeg? ( virtual/jpeg[static-libs(+)] )
|
||||
lzo? ( dev-libs/lzo:2[static-libs(+)] )
|
||||
ncurses? ( sys-libs/ncurses[static-libs(+)] )
|
||||
nfs? ( >=net-fs/libnfs-1.9.3[static-libs(+)] )
|
||||
numa? ( sys-process/numactl[static-libs(+)] )
|
||||
png? ( media-libs/libpng[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? ( >=media-libs/libsdl-1.2.11[static-libs(+)] )
|
||||
seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
|
||||
snappy? ( app-arch/snappy[static-libs(+)] )
|
||||
spice? ( >=app-emulation/spice-0.12.0[static-libs(+)] )
|
||||
ssh? ( >=net-libs/libssh2-1.2.8[static-libs(+)] )
|
||||
tls? ( net-libs/gnutls[static-libs(+)] )
|
||||
usb? ( >=dev-libs/libusb-1.0.18[static-libs(+)] )
|
||||
uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] )
|
||||
vde? ( net-misc/vde[static-libs(+)] )
|
||||
xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
|
||||
USER_LIB_DEPEND="${COMMON_LIB_DEPEND}"
|
||||
X86_FIRMWARE_DEPEND="
|
||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
||||
pin-upstream-blobs? (
|
||||
~sys-firmware/seabios-1.7.5
|
||||
~sys-firmware/sgabios-0.1_pre8
|
||||
~sys-firmware/vgabios-0.7a
|
||||
)
|
||||
!pin-upstream-blobs? (
|
||||
sys-firmware/seabios
|
||||
sys-firmware/sgabios
|
||||
sys-firmware/vgabios
|
||||
)"
|
||||
RDEPEND="!static-softmmu? ( ${SOFTMMU_LIB_DEPEND//\[static-libs(+)]} )
|
||||
!static-user? ( ${USER_LIB_DEPEND//\[static-libs(+)]} )
|
||||
qemu_softmmu_targets_i386? ( ${X86_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )
|
||||
accessibility? ( app-accessibility/brltty )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
gtk? (
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/vte:2.90
|
||||
)
|
||||
iscsi? ( net-libs/libiscsi )
|
||||
opengl? ( virtual/opengl )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
sdl? ( media-libs/libsdl[X] )
|
||||
selinux? ( sec-policy/selinux-qemu )
|
||||
smartcard? ( dev-libs/nss !app-emulation/libcacard )
|
||||
spice? ( >=app-emulation/spice-protocol-0.12.3 )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
usbredir? ( >=sys-apps/usbredir-0.6 )
|
||||
virtfs? ( sys-libs/libcap )
|
||||
xen? ( app-emulation/xen-tools )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
=dev-lang/python-2*
|
||||
sys-apps/texinfo
|
||||
virtual/pkgconfig
|
||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
||||
gtk? ( nls? ( sys-devel/gettext ) )
|
||||
static-softmmu? ( ${SOFTMMU_LIB_DEPEND} )
|
||||
static-user? ( ${USER_LIB_DEPEND} )
|
||||
test? (
|
||||
dev-libs/glib[utils]
|
||||
sys-devel/bc
|
||||
)"
|
||||
|
||||
STRIP_MASK="/usr/share/qemu/palcode-clipper"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/palcode-clipper
|
||||
usr/share/qemu/s390-ccw.img
|
||||
usr/share/qemu/u-boot.e500
|
||||
"
|
||||
|
||||
QA_WX_LOAD="usr/bin/qemu-i386
|
||||
usr/bin/qemu-x86_64
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-or32
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-ppc64abi32
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32"
|
||||
|
||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure
|
||||
you have the kernel module loaded before running kvm. The easiest way to
|
||||
ensure that the kernel module is loaded is to load it on boot.\n
|
||||
For AMD CPUs the module is called 'kvm-amd'\n
|
||||
For Intel CPUs the module is called 'kvm-intel'\n
|
||||
Please review /etc/conf.d/modules for how to load these\n\n
|
||||
Make sure your user is in the 'kvm' group\n
|
||||
Just run 'gpasswd -a <USER> kvm', then have <USER> re-login."
|
||||
|
||||
qemu_support_kvm() {
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 \
|
||||
use qemu_softmmu_targets_ppc || use qemu_softmmu_targets_ppc64 \
|
||||
use qemu_softmmu_targets_s390x; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
||||
eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
|
||||
elif use kernel_linux; then
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
||||
ERROR_KVM_AMD+=" your kernel configuration."
|
||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
||||
ERROR_TUN+=" virtual network device if using -net tap."
|
||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
||||
ERROR_VHOST_NET+=" support"
|
||||
|
||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
||||
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
|
||||
fi
|
||||
|
||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
|
||||
if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then
|
||||
eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt"
|
||||
eerror "instances are still pointing to it. Please update your"
|
||||
eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag"
|
||||
eerror "and the right system binary (e.g. qemu-system-x86_64)."
|
||||
die "update your virt configs to not use qemu-kvm"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup kvm 78
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Alter target makefiles to accept CFLAGS set via flag-o
|
||||
sed -i -r \
|
||||
-e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \
|
||||
Makefile Makefile.target || die
|
||||
|
||||
# Cheap hack to disable gettext .mo generation.
|
||||
use nls || rm -f po/*.po
|
||||
|
||||
epatch "${FILESDIR}"/qemu-1.7.0-cflags.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.1-readlink-self.patch
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
# Fix ld and objcopy being called directly
|
||||
tc-export AR LD OBJCOPY
|
||||
|
||||
# Verbose builds
|
||||
MAKEOPTS+=" V=1"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
##
|
||||
# configures qemu based on the build directory and the build type
|
||||
# we are using.
|
||||
#
|
||||
qemu_src_configure() {
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
local buildtype=$1
|
||||
local builddir=$2
|
||||
local static_flag="static-${buildtype}"
|
||||
|
||||
# audio options
|
||||
local audio_opts="oss"
|
||||
use alsa && audio_opts="alsa,${audio_opts}"
|
||||
use sdl && audio_opts="sdl,${audio_opts}"
|
||||
use pulseaudio && audio_opts="pa,${audio_opts}"
|
||||
|
||||
local conf_opts=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--libdir=/usr/$(get_libdir)
|
||||
--docdir=/usr/share/doc/${PF}/html
|
||||
--disable-bsd-user
|
||||
--disable-guest-agent
|
||||
--disable-strip
|
||||
--disable-werror
|
||||
--python="${PYTHON}"
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
$(use_enable debug debug-info)
|
||||
$(use_enable debug debug-tcg)
|
||||
--enable-docs
|
||||
$(use_enable tci tcg-interpreter)
|
||||
$(use_enable xattr attr)
|
||||
)
|
||||
|
||||
# Disable options not used by user targets as the default configure
|
||||
# options will autoprobe and try to link in a bunch of unused junk.
|
||||
conf_softmmu() {
|
||||
if [[ ${buildtype} == "user" ]] ; then
|
||||
echo "--disable-${2:-$1}"
|
||||
else
|
||||
use_enable "$@"
|
||||
fi
|
||||
}
|
||||
conf_opts+=(
|
||||
$(conf_softmmu accessibility brlapi)
|
||||
$(conf_softmmu aio linux-aio)
|
||||
$(conf_softmmu bluetooth bluez)
|
||||
$(conf_softmmu caps cap-ng)
|
||||
$(conf_softmmu curl)
|
||||
$(conf_softmmu fdt)
|
||||
$(conf_softmmu glusterfs)
|
||||
$(conf_softmmu gtk)
|
||||
$(conf_softmmu infiniband rdma)
|
||||
$(conf_softmmu iscsi libiscsi)
|
||||
$(conf_softmmu jpeg vnc-jpeg)
|
||||
$(conf_softmmu kernel_linux kvm)
|
||||
$(conf_softmmu lzo)
|
||||
$(conf_softmmu ncurses curses)
|
||||
$(conf_softmmu nfs libnfs)
|
||||
$(conf_softmmu numa)
|
||||
$(conf_softmmu opengl glx)
|
||||
$(conf_softmmu png vnc-png)
|
||||
$(conf_softmmu rbd)
|
||||
$(conf_softmmu sasl vnc-sasl)
|
||||
$(conf_softmmu sdl)
|
||||
$(conf_softmmu seccomp)
|
||||
$(conf_softmmu smartcard smartcard-nss)
|
||||
$(conf_softmmu snappy)
|
||||
$(conf_softmmu spice)
|
||||
$(conf_softmmu ssh libssh2)
|
||||
$(conf_softmmu tls quorum)
|
||||
$(conf_softmmu tls vnc-tls)
|
||||
$(conf_softmmu tls vnc-ws)
|
||||
$(conf_softmmu usb libusb)
|
||||
$(conf_softmmu usbredir usb-redir)
|
||||
$(conf_softmmu uuid)
|
||||
$(conf_softmmu vde)
|
||||
$(conf_softmmu vhost-net)
|
||||
$(conf_softmmu virtfs)
|
||||
$(conf_softmmu vnc)
|
||||
$(conf_softmmu xen)
|
||||
$(conf_softmmu xen xen-pci-passthrough)
|
||||
$(conf_softmmu xfs xfsctl)
|
||||
)
|
||||
|
||||
case ${buildtype} in
|
||||
user)
|
||||
conf_opts+=(
|
||||
--enable-linux-user
|
||||
--disable-system
|
||||
--target-list="${user_targets}"
|
||||
--disable-blobs
|
||||
--disable-tools
|
||||
)
|
||||
;;
|
||||
softmmu)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--enable-system
|
||||
--target-list="${softmmu_targets}"
|
||||
--with-system-pixman
|
||||
--audio-drv-list="${audio_opts}"
|
||||
)
|
||||
use gtk && conf_opts+=( --with-gtkabi=3.0 )
|
||||
;;
|
||||
esac
|
||||
|
||||
# Add support for SystemTAP
|
||||
use systemtap && conf_opts+=( --enable-trace-backend=dtrace )
|
||||
|
||||
# We always want to attempt to build with PIE support as it results
|
||||
# in a more secure binary. But it doesn't work with static or if
|
||||
# the current GCC doesn't have PIE support.
|
||||
if use ${static_flag}; then
|
||||
conf_opts+=( --static --disable-pie )
|
||||
else
|
||||
gcc-specs-pie && conf_opts+=( --enable-pie )
|
||||
fi
|
||||
|
||||
einfo "./configure ${conf_opts[*]}"
|
||||
cd "${builddir}"
|
||||
../configure "${conf_opts[@]}" || die "configure failed"
|
||||
|
||||
# FreeBSD's kernel does not support QEMU assigning/grabbing
|
||||
# host USB devices yet
|
||||
use kernel_FreeBSD && \
|
||||
sed -i -E -e "s|^(HOST_USB=)bsd|\1stub|" "${S}"/config-host.mak
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local target
|
||||
|
||||
python_export_best
|
||||
|
||||
softmmu_targets= softmmu_bins=()
|
||||
user_targets= user_bins=()
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
if use "qemu_softmmu_targets_${target}"; then
|
||||
softmmu_targets+=",${target}-softmmu"
|
||||
softmmu_bins+=( "qemu-system-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
if use "qemu_user_targets_${target}"; then
|
||||
user_targets+=",${target}-linux-user"
|
||||
user_bins+=( "qemu-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
[[ -n ${softmmu_targets} ]] && \
|
||||
einfo "Building the following softmmu targets: ${softmmu_targets}"
|
||||
|
||||
[[ -n ${user_targets} ]] && \
|
||||
einfo "Building the following user targets: ${user_targets}"
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
mkdir "${S}/softmmu-build"
|
||||
qemu_src_configure "softmmu" "${S}/softmmu-build"
|
||||
fi
|
||||
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
mkdir "${S}/user-build"
|
||||
qemu_src_configure "user" "${S}/user-build"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
default
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
pax-mark m */qemu-system-* #515550
|
||||
emake -j1 check
|
||||
emake -j1 check-report.html
|
||||
fi
|
||||
}
|
||||
|
||||
qemu_python_install() {
|
||||
python_domodule "${S}/scripts/qmp/qmp.py"
|
||||
|
||||
python_doscript "${S}/scripts/kvm/kvm_stat"
|
||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
||||
python_doscript "${S}/scripts/qmp/qmp-shell"
|
||||
python_doscript "${S}/scripts/qmp/qemu-ga-client"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Install binfmt handler init script for user targets
|
||||
newinitd "${FILESDIR}/qemu-binfmt.initd-r1" qemu-binfmt
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# This might not exist if the test failed. #512010
|
||||
[[ -e check-report.html ]] && dohtml check-report.html
|
||||
|
||||
if use kernel_linux; then
|
||||
udev_dorules "${FILESDIR}"/65-kvm.rules
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl qemu_python_install
|
||||
fi
|
||||
fi
|
||||
|
||||
# Disable mprotect on the qemu binaries as they use JITs to be fast #459348
|
||||
pushd "${ED}"/usr/bin >/dev/null
|
||||
pax-mark m "${softmmu_bins[@]}" "${user_bins[@]}"
|
||||
popd >/dev/null
|
||||
|
||||
# Install config file example for qemu-bridge-helper
|
||||
insinto "/etc/qemu"
|
||||
doins "${FILESDIR}/bridge.conf"
|
||||
|
||||
# Remove the docdir placed qmp-commands.txt
|
||||
mv "${ED}/usr/share/doc/${PF}/html/qmp-commands.txt" "${S}/docs/qmp/"
|
||||
|
||||
cd "${S}"
|
||||
dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt
|
||||
newdoc pc-bios/README README.pc-bios
|
||||
dodoc docs/qmp/*.txt
|
||||
|
||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
||||
rm "${ED}/usr/share/qemu/bios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
|
||||
fi
|
||||
|
||||
# Remove vgabios since we're using the vgabios packaged one
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
|
||||
dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
||||
dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
||||
dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
||||
dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
||||
fi
|
||||
|
||||
# Remove sgabios since we're using the sgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/sgabios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||
fi
|
||||
|
||||
# Remove iPXE since we're using the iPXE packaged one
|
||||
rm "${ED}"/usr/share/qemu/pxe-*.rom
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
||||
fi
|
||||
fi
|
||||
|
||||
qemu_support_kvm && readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if qemu_support_kvm; then
|
||||
readme.gentoo_print_elog
|
||||
ewarn "Migration from qemu-kvm instances and loading qemu-kvm created"
|
||||
ewarn "save states has been removed starting with the 1.6.2 release"
|
||||
ewarn
|
||||
ewarn "It is recommended that you migrate any VMs that may be running"
|
||||
ewarn "on qemu-kvm to a host with a newer qemu and regenerate"
|
||||
ewarn "any saved states with a newer qemu."
|
||||
ewarn
|
||||
ewarn "qemu-kvm was the primary qemu provider in Gentoo through 1.2.x"
|
||||
|
||||
if use x86 || use amd64; then
|
||||
ewarn
|
||||
ewarn "The /usr/bin/kvm and /usr/bin/qemu-kvm wrappers are no longer"
|
||||
ewarn "installed. In order to use kvm acceleration, pass the flag"
|
||||
ewarn "-enable-kvm when running your system target."
|
||||
fi
|
||||
fi
|
||||
|
||||
fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
|
||||
if use virtfs && [ -n "${softmmu_targets}" ]; then
|
||||
local virtfs_caps="cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_setgid,cap_mknod,cap_setuid"
|
||||
fcaps ${virtfs_caps} /usr/bin/virtfs-proxy-helper
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_info() {
|
||||
echo "Using:"
|
||||
echo " $(best_version app-emulation/spice-protocol)"
|
||||
echo " $(best_version sys-firmware/ipxe)"
|
||||
echo " $(best_version sys-firmware/seabios)"
|
||||
if has_version sys-firmware/seabios[binary]; then
|
||||
echo " USE=binary"
|
||||
else
|
||||
echo " USE=''"
|
||||
fi
|
||||
echo " $(best_version sys-firmware/vgabios)"
|
||||
}
|
@ -0,0 +1,186 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20140927.3.17.2.ebuild,v 1.1 2014/10/16 17:48:39 vapier Exp $
|
||||
|
||||
# The Debian ca-certificates package merely takes the CA database as it exists
|
||||
# in the nss package and repackages it for use by openssl.
|
||||
#
|
||||
# The issue with using the compiled debs directly is two fold:
|
||||
# - they do not update frequently enough for us to rely on them
|
||||
# - they pull the CA database from nss tip of tree rather than the release
|
||||
#
|
||||
# So we take the Debian source tools and combine them with the latest nss
|
||||
# release to produce (largely) the same end result. The difference is that
|
||||
# now we know our cert database is kept in sync with nss and, if need be,
|
||||
# can be sync with nss tip of tree more frequently to respond to bugs.
|
||||
|
||||
# When triaging bugs from users, here's some handy tips:
|
||||
# - To see what cert is hitting errors, use openssl:
|
||||
# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
|
||||
# Focus on the errors written to stderr.
|
||||
#
|
||||
# - Look at the upstream log as to why certs were added/removed:
|
||||
# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
|
||||
#
|
||||
# - If people want to add/remove certs, tell them to file w/mozilla:
|
||||
# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit eutils python-any-r1
|
||||
|
||||
if [[ ${PV} == *.* ]] ; then
|
||||
# Compile from source ourselves.
|
||||
PRECOMPILED=false
|
||||
inherit versionator
|
||||
|
||||
DEB_VER=$(get_version_component_range 1)
|
||||
NSS_VER=$(get_version_component_range 2-)
|
||||
RTM_NAME="NSS_${NSS_VER//./_}_RTM"
|
||||
else
|
||||
# Debian precompiled version.
|
||||
PRECOMPILED=true
|
||||
inherit unpacker
|
||||
fi
|
||||
|
||||
DESCRIPTION="Common CA Certificates PEM files"
|
||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
||||
NMU_PR=""
|
||||
if ${PRECOMPILED} ; then
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
||||
else
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
|
||||
ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
|
||||
fi
|
||||
|
||||
LICENSE="MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE=""
|
||||
${PRECOMPILED} || IUSE+=" +cacert"
|
||||
|
||||
DEPEND=""
|
||||
if ${PRECOMPILED} ; then
|
||||
# platforms like AIX don't have a good ar
|
||||
DEPEND+="
|
||||
kernel_AIX? ( app-arch/deb2targz )
|
||||
!<sys-apps/portage-2.1.10.41"
|
||||
fi
|
||||
# openssl: we run `c_rehash`
|
||||
# debianutils: we run `run-parts`
|
||||
RDEPEND="${DEPEND}
|
||||
dev-libs/openssl
|
||||
sys-apps/debianutils"
|
||||
|
||||
if ! ${PRECOMPILED}; then
|
||||
DEPEND+=" ${PYTHON_DEPS}"
|
||||
fi
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() {
|
||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
||||
# we need to tell users about it once manually first.
|
||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
${PRECOMPILED} || default
|
||||
|
||||
mv ${PN}-*/ ${PN} || die
|
||||
|
||||
# Do all the work in the image subdir to avoid conflicting with source
|
||||
# dirs in $WORKDIR. Need to perform everything in the offset #381937
|
||||
mkdir -p "image/${EPREFIX}"
|
||||
cd "image/${EPREFIX}" || die
|
||||
|
||||
${PRECOMPILED} && unpacker_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
mkdir -p usr/sbin
|
||||
cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
|
||||
|
||||
if use cacert ; then
|
||||
pushd "${S}"/nss-${NSS_VER} >/dev/null
|
||||
epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
|
||||
popd >/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
||||
sed -i \
|
||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
||||
usr/sbin/update-ca-certificates || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
python_setup
|
||||
local d="${S}/${PN}/mozilla"
|
||||
# Grab the database from the nss sources.
|
||||
cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
|
||||
emake -C "${d}"
|
||||
|
||||
# Now move the files to the same places that the precompiled would.
|
||||
mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
|
||||
if use cacert ; then
|
||||
mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
|
||||
mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
|
||||
mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
|
||||
fi
|
||||
mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
|
||||
else
|
||||
mv usr/share/doc/{ca-certificates,${PF}} || die
|
||||
fi
|
||||
|
||||
(
|
||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
||||
echo "# $(date -u)"
|
||||
echo "# Do not edit."
|
||||
cd usr/share/ca-certificates
|
||||
find * -name '*.crt' | LC_ALL=C sort
|
||||
) > etc/ca-certificates.conf
|
||||
|
||||
sh usr/sbin/update-ca-certificates --root "${S}/image" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -pPR image/* "${D}"/ || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
cd ca-certificates
|
||||
doman sbin/*.8
|
||||
dodoc debian/README.* examples/ca-certificates-local/README
|
||||
fi
|
||||
|
||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
||||
doenvd 98ca-certificates
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
||||
# if the user has local certs, we need to rebuild again
|
||||
# to include their stuff in the db.
|
||||
# However it's too overzealous when the user has custom certs in place.
|
||||
# --fresh is to clean up dangling symlinks
|
||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
||||
fi
|
||||
|
||||
local c badcerts=0
|
||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
||||
ewarn "Broken symlink for a certificate at $c"
|
||||
badcerts=1
|
||||
done
|
||||
if [ $badcerts -eq 1 ]; then
|
||||
ewarn "Removing the following broken symlinks:"
|
||||
ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
|
||||
fi
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
3 year old upstream proposal https://www.opensc-project.org/opensc/ticket/350
|
||||
|
||||
The fixed buffers allocated in pkcs11_init_cert are too small to hold the
|
||||
output data for some certificates. It causes a "Buffer too small" error
|
||||
to be returned from pkcs11_getattr_var.
|
||||
|
||||
Fix from Chromium OS:
|
||||
Use heap instead of stack for variable length data when reading
|
||||
certificate attributes.
|
||||
|
||||
Patch by Paul Stewart <pstew@chromium.org>
|
||||
|
||||
--- a/src/libp11-int.h
|
||||
+++ b/src/libp11-int.h
|
||||
@@ -136,6 +136,8 @@
|
||||
unsigned int, void *, size_t *);
|
||||
extern int pkcs11_getattr_bn(PKCS11_TOKEN *, CK_OBJECT_HANDLE,
|
||||
unsigned int, BIGNUM **);
|
||||
+extern void *pkcs11_getattr_alloc(PKCS11_TOKEN *, CK_OBJECT_HANDLE,
|
||||
+ unsigned int, size_t *);
|
||||
|
||||
#define key_getattr(key, t, p, s) \
|
||||
pkcs11_getattr(KEY2TOKEN((key)), PRIVKEY((key))->object, (t), (p), (s))
|
||||
--- a/src/p11_attr.c
|
||||
+++ b/src/p11_attr.c
|
||||
@@ -98,6 +98,32 @@
|
||||
return *bn ? 0 : -1;
|
||||
}
|
||||
|
||||
+void *
|
||||
+pkcs11_getattr_alloc(PKCS11_TOKEN * token, CK_OBJECT_HANDLE object,
|
||||
+ unsigned int type, size_t *size_out)
|
||||
+{
|
||||
+ size_t size = 0;
|
||||
+ void *data = NULL;
|
||||
+
|
||||
+ if (pkcs11_getattr_var(token, object, type, NULL, &size))
|
||||
+ return NULL;
|
||||
+
|
||||
+ data = malloc(size);
|
||||
+ if (data == NULL)
|
||||
+ return NULL;
|
||||
+
|
||||
+ memset(data, 0, size);
|
||||
+ if (pkcs11_getattr_var(token, object, type, data, &size)) {
|
||||
+ free(data);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ if (size_out != NULL)
|
||||
+ *size_out = size;
|
||||
+
|
||||
+ return data;
|
||||
+}
|
||||
+
|
||||
/*
|
||||
* Add attributes to template
|
||||
*/
|
||||
--- a/src/p11_cert.c
|
||||
+++ b/src/p11_cert.c
|
||||
@@ -136,10 +136,9 @@
|
||||
PKCS11_TOKEN_private *tpriv;
|
||||
PKCS11_CERT_private *kpriv;
|
||||
PKCS11_CERT *cert, *tmp;
|
||||
- char label[256], data[2048];
|
||||
- unsigned char id[256];
|
||||
CK_CERTIFICATE_TYPE cert_type;
|
||||
size_t size;
|
||||
+ void *data;
|
||||
|
||||
size = sizeof(cert_type);
|
||||
if (pkcs11_getattr_var(token, obj, CKA_CERTIFICATE_TYPE, &cert_type, &size))
|
||||
@@ -165,18 +164,32 @@
|
||||
kpriv->object = obj;
|
||||
kpriv->parent = token;
|
||||
|
||||
- if (!pkcs11_getattr_s(token, obj, CKA_LABEL, label, sizeof(label)))
|
||||
- cert->label = BUF_strdup(label);
|
||||
- size = sizeof(data);
|
||||
- if (!pkcs11_getattr_var(token, obj, CKA_VALUE, data, &size)) {
|
||||
- const unsigned char *p = (unsigned char *) data;
|
||||
+ data = pkcs11_getattr_alloc(token, obj, CKA_LABEL, &size);
|
||||
+ if (data != NULL) {
|
||||
+ char *label = data;
|
||||
+ /* Fix any null-termination issues with the label */
|
||||
+ if (label[size - 1] != '\0') {
|
||||
+ label = realloc(label, size + 1);
|
||||
+ if (label == NULL) {
|
||||
+ free(data);
|
||||
+ return -1;
|
||||
+ }
|
||||
+ label[size] = '\0';
|
||||
+ }
|
||||
+ cert->label = label;
|
||||
+ }
|
||||
|
||||
+ data = pkcs11_getattr_alloc(token, obj, CKA_VALUE, &size);
|
||||
+ if (data != NULL) {
|
||||
+ const unsigned char *p = data;
|
||||
cert->x509 = d2i_X509(NULL, &p, size);
|
||||
+ free(data);
|
||||
}
|
||||
- cert->id_len = sizeof(id);
|
||||
- if (!pkcs11_getattr_var(token, obj, CKA_ID, id, &cert->id_len)) {
|
||||
- cert->id = (unsigned char *) malloc(cert->id_len);
|
||||
- memcpy(cert->id, id, cert->id_len);
|
||||
+ data = pkcs11_getattr_alloc(token, obj, CKA_ID, &cert->id_len);
|
||||
+ if (data != NULL) {
|
||||
+ cert->id = data;
|
||||
+ } else {
|
||||
+ cert->id_len = 0;
|
||||
}
|
||||
|
||||
/* Initialize internal information */
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libp11/libp11-0.2.8-r2.ebuild,v 1.1 2014/10/16 17:54:16 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="A library implementing a layer on top of PKCS#11 API to make using PKCS#11 implementations easier"
|
||||
HOMEPAGE="https://github.com/opensc/libp11/wiki"
|
||||
SRC_URI="mirror://sourceforge/opensc/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="dev-libs/openssl"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
DEPEND+="
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/libxslt"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-no-ltdl.patch
|
||||
epatch "${FILESDIR}"/${P}-variable-buffer-size.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--docdir="/usr/share/doc/${PF}" \
|
||||
--htmldir="/usr/share/doc/${PF}/html" \
|
||||
--enable-shared --disable-static \
|
||||
--enable-doc \
|
||||
$(use_enable doc api-doc)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.10.7-r1.ebuild,v 1.1 2014/10/16 17:44:25 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
WANT_AUTOCONF="2.5"
|
||||
|
||||
inherit autotools eutils multilib toolchain-funcs versionator multilib-minimal
|
||||
|
||||
MIN_PV="$(get_version_component_range 2)"
|
||||
|
||||
DESCRIPTION="Netscape Portable Runtime"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~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"
|
||||
|
||||
RDEPEND="
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nspr-config
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cd "${S}"/nspr || die
|
||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.10.6-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
||||
# We do not need to pass -L$libdir via nspr-config --libs
|
||||
epatch "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch
|
||||
|
||||
# We must run eautoconf to regenerate configure
|
||||
eautoconf
|
||||
|
||||
# make sure it won't find Perl out of Prefix
|
||||
sed -i -e "s/perl5//g" "${S}"/nspr/configure || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
||||
"${S}"/nspr/config/rules.mk || die
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# We use the standard BUILD_xxx but nspr uses HOST_xxx
|
||||
tc-export_build_env BUILD_CC
|
||||
export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
|
||||
tc-export AR CC CXX RANLIB
|
||||
[[ ${CBUILD} != ${CHOST} ]] \
|
||||
&& export CROSS_COMPILE=1 \
|
||||
|| unset CROSS_COMPILE
|
||||
|
||||
local myconf=()
|
||||
|
||||
# The configure has some fancy --enable-{{n,x}32,64bit} switches
|
||||
# that trigger some code conditional to platform & arch. This really
|
||||
# matters for the few common arches (x86, ppc) but we pass a little
|
||||
# more of them to be future-proof.
|
||||
|
||||
# use ABI first, this will work for most cases
|
||||
case "${ABI}" in
|
||||
alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;;
|
||||
n32) myconf+=( --enable-n32 );;
|
||||
x32) myconf+=( --enable-x32 );;
|
||||
s390x|*64) myconf+=( --enable-64bit );;
|
||||
default) # no abi actually set, fall back to old check
|
||||
einfo "Running a short build test to determine 64bit'ness"
|
||||
echo > "${T}"/test.c || die
|
||||
${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
||||
case $(file "${T}"/test.o) in
|
||||
*32-bit*x86-64*) myconf+=( --enable-x32 );;
|
||||
*64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
# Ancient autoconf needs help finding the right tools.
|
||||
LC_ALL="C" ECONF_SOURCE="${S}/nspr" \
|
||||
ac_cv_path_AR="${AR}" \
|
||||
econf \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
$(use_enable debug) \
|
||||
$(use_enable !debug optimize) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# Their build system is royally confusing, as usual
|
||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
einfo "removing static libraries as upstream has requested!"
|
||||
rm -f "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries."
|
||||
|
||||
# install nspr-config
|
||||
dobin config/nspr-config
|
||||
|
||||
# Remove stupid files in /usr/bin
|
||||
rm "${ED}"/usr/bin/prerr.properties || die
|
||||
|
||||
# This is used only to generate prerr.c and prerr.h at build time.
|
||||
# No other projects use it, and we don't want to depend on perl.
|
||||
# Talked to upstream and they agreed w/punting.
|
||||
rm "${ED}"/usr/bin/compile-et.pl || die
|
||||
}
|
@ -1,4 +1,16 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST DateTime-Format-DateManip-0.04.tar.gz 14460 SHA256 2077c9a420e3c0659b61298bff4ede1269120cf690bfeb35f49f6e6c6be8ee43 SHA512 2389147282b69af2ee7d0ab9bbccadcf7dec51e8e95e833bfbb5a183969c189312c8eba57e4ad7d0c5cf74a027df350bc72c5381f13279a09bec08754d0b39c6 WHIRLPOOL c975099ceb75b0bba9f97a411f26aa302694a71e8cb71eec404861ff33031e02047d52f5d5cfdb201e03178f5e51e12c1116b0c6afe3926a6ea58a6ccd2c2b0a
|
||||
EBUILD DateTime-Format-DateManip-0.40.0.ebuild 591 SHA256 b4354bc949cfd42a7f35ad68abc4b59ee8acf233395baad4bcc302b0001eebd4 SHA512 fd461f025b48ed20a67f351958b8de2e9d59700bcdb0c2adf134665fd9e867120c81a57928430013d9d4684cabfe35eaed82b9910f242c185b129ad11cf49ff3 WHIRLPOOL 2c8504c6e24a94811b70f08ee3f23ef5db058c0256d2aa3ce9f85563cfe58a9a62f80a69e53c4e7c2f17302b91bf8857da9e6066a8528e197a4c33a9b343fc4a
|
||||
MISC ChangeLog 1004 SHA256 7bb0178b3689e36d972b377ad0181800266a0f16fc5b5e8eb70b9afca88d62c5 SHA512 9ec259f07c6ea5731bf0d161562fb7b0a1fedce1281f95e313446a266d6ef0755b209567c8cc89e4be6415f1773b2e1e9ddb37670461ab96cc1d17f609401c78 WHIRLPOOL 858e817402d7151667c6e9b4c090c827c8f2b0ff266a509f9ca528b23ec7d7130b0828def4c9444fe7364f8903b50636dc12f0509d972f08e695dd4898fd3bf6
|
||||
EBUILD DateTime-Format-DateManip-0.40.0.ebuild 594 SHA256 9994d6b644574a4a4ba0e0eac5abef9a4a535977864866a0bb6bceacf62a5699 SHA512 2541c8622d6683192dd3b7ded9913c4723b04ac9b99176f1b984127db88b173d2ba8e2fbe6f48340a322e98781eb7ef4bb7dfda6d9b0cc6d864c8c9e2c1b0141 WHIRLPOOL 7fd91c69cc0a969efdaf9bf8634447488efe6d3f8dbcbb631744b0607fe88248721fdaa9ba78f3dbb3816ba6fc49253e3e980114266d76e0e89433ed149d361c
|
||||
MISC ChangeLog 1118 SHA256 d8576cf461d451061fc0c96f274bbabae234e63c064c96ef2c28e9ec4f25a506 SHA512 d77023943bbefa4e4bf1f87693d1c59accccc99402bc9abac63ecae152e429a12112b7a06317e7957672daf0181f818233165a91dbff37ceb19f58df635a9980 WHIRLPOOL a158d0d3e7500805de526d2bdcba1ecfcb0834ad7a14ec2571f78615244613ac97e8c9d8d135b3677dbb4ab3164e409e304e7152556b0b1ee0a444d747f99ab8
|
||||
MISC metadata.xml 325 SHA256 1cae4b36ae830856fd1bd441cf401084972ba5ba4e0501c550fe7dec52d5890c SHA512 815b58a769ec58cfcaf702e01887add3f0597a99b09dd07846946f157ce04dcd9f9ccbb88ef1e57db8811ab85aff8e2037df8bd6463267366b627de31e578b06 WHIRLPOOL 6b960dac20e9e8b104f92db791ac3356719d7f2e48bfb0f02be4a7b8d88004713501cbbdca4c301ae95e8b7e9764226accf6d661efd3938c59ebe9f4fe4e5b08
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iJwEAQEIAAYFAlQ/ovsACgkQG9wOWsQutdZO0gQAvpLoNnOCAtiTU9fSvr/K9xU+
|
||||
uNudv28G1jVRbMtkN7Y90PKAE8ZUCkLGHzAVG3y1oA9LCeuzLa2qbBhPFzZc6VAS
|
||||
bMjsJSaekoq3TI7H0TjsNlyD3lnidfL2z8lfVxC3BZk87NPxoI26xUb8Q4figzJt
|
||||
lihMvdEFSyRn9JgvFwY=
|
||||
=Ib9G
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Devel-Declare/Devel-Declare-0.6.11.ebuild,v 1.1 2012/02/23 19:43:02 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=ZEFRAM
|
||||
MODULE_VERSION=0.006011
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Adding keywords to perl, in perl"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-perl/Sub-Name
|
||||
virtual/perl-Scalar-List-Utils
|
||||
>=dev-perl/B-Hooks-OP-Check-0.190.0
|
||||
dev-perl/B-Hooks-EndOfScope
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-perl/extutils-depends-0.302
|
||||
test? (
|
||||
>=virtual/perl-Test-Simple-0.88
|
||||
)
|
||||
"
|
||||
|
||||
SRC_TEST=do
|
@ -1,18 +1,16 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST Devel-Declare-0.006011.tar.gz 57074 SHA256 53d818f7c6ede978fd047d841454d6af64cc2c7a557858196954d356894d0a73 SHA512 7a258ab0dfebbb1fdf82cf57a7a70b4e30c1c112eca23a4f81a45f0937123375fa861801990922f546ff21af090dcc2a8f8c2ea0d074034b32a515cd0da10132 WHIRLPOOL d32d5e2ed3ce4e492b4d4d6433c66a0a372011111a1b82e322a9c2ace2f2d2c9fd1fc8a3aeb4ea257bb83f275741c1a3b25933c71d6ef65a472989524804b49d
|
||||
DIST Devel-Declare-0.006014.tar.gz 43725 SHA256 6b46efa05ceb5c61e85e6cd053b523678f0c5bbba3ddca02304963ed0eec0429 SHA512 2b63ebb48e6a3b1c8d722a0da64aa236512b8d68f1ad00c6580e97e3f2d7c3d4468621e37865fbc12e95b2a4302bc266bd5cd94b1207f761894803f336cbcd5b WHIRLPOOL d58d9a9e7a29e165838c0d5d337b5b7d752f588c0c3dea44541968d9994abb294af642eb19ba49cb4435dc073d3144113abff741bb9d4cccccb9ff2340183f78
|
||||
EBUILD Devel-Declare-0.6.11.ebuild 642 SHA256 2c0ffa92e4b4f10b928ed65c8a67fec689c5ebd7eed5b3226979d38aafa95d93 SHA512 c5f1d49790a4b71f325ca76ef4dfd813d4b5b2713db20eb776c4b199438fd7b6cd3c46a1a40a790eeb3e32301011d2a33d6898335fecb29abed823833a5eed2d WHIRLPOOL f09da132695bcc76465fa164e3f8690d466fe0f853e8a645005be3f0600850a49b46174cb761d0240a722ee6ee2ce3cd1302a29c86070b79ce55ce83690b77eb
|
||||
EBUILD Devel-Declare-0.6.14.ebuild 644 SHA256 b7588b022e1dfd3ae3bf9604e6d82cf7799c1bc499e99d7f122aca38b37e03e0 SHA512 e9148943eeb7c4cbb92a6b41e5f01995a6d3577f07141e4cd38dbfff9ecb5da90e570961c80aaa3019e5bf0b000678368f5686fa3bd4fe44ecced68e80bfde7c WHIRLPOOL c2e1a764637617afc7ef958fde9fdf8a8960839e30103d775c7e1ffdc5ccb47486023e992c8a740d11353dc863667663cea8b4b8cbccc3b0dd4c06a128fb3766
|
||||
MISC ChangeLog 3714 SHA256 4d0f4df72076de875ddcbda6676bdabacab02933f1bef647f2d8faf9d074ac9e SHA512 e62c22de1ffce1d1b3450e715c9b5920425bed837795a31fed10d66c6a66692cbe3fb5568a195cbce9ad2b3a7243b9630ab05535ddf0a18fd044b4c218cd140e WHIRLPOOL 943cd0fe2af201ea4eda86d298249a6a84f575a75a41d16cb82504773c306cf7cd46bdf05d394dfe6869e6a92a9bf686b8e90e7ecd62e877318877557dde7601
|
||||
MISC ChangeLog 3807 SHA256 8584873fb9d956d3bbf8e0e84e36a71f459ebc5f70d1b39cffda814a22ef9901 SHA512 9882a03da6064532b8c6c5201e5689d3c89d1d54e70ba0fafdad675ad5c9f408f7fb887bb90e18de38700bbb9cce066193ac62bb2149802440a7ff3001d2bab4 WHIRLPOOL 77fa2ca0a6e4a5869efafc75354892022c85df4c8e003e5a01ac0e8da6b40aa6d57d456e4455bf28d83b94199569716addc33de0a5a2223fd9c25b1229ce5b3f
|
||||
MISC metadata.xml 464 SHA256 4f05c45991ef0a448b2bcc5075f9de7eb6c76450260fd328836bbc50cd7854ce SHA512 58c53e23c66005701a213d964083587751ae7916d4563a656ce9ce1ef5ab781de7c069b3c2851471ddd079f0e23df35fae0176e0c9800e4dec52596d989809df WHIRLPOOL 1cc0c165c3ba1a01054f720ee03825d42848e41179e4348ec7a0ba4363c87b18db36fe057863a53e068ecbe5e7613458ab2a532562ab1b70e542dbde5e726e5f
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.20 (GNU/Linux)
|
||||
Version: GnuPG v2
|
||||
|
||||
iJwEAQEIAAYFAlIqMsoACgkQG9wOWsQutdYJNQP7BxO5xiklkYU/euvK6WLX9NyM
|
||||
KhUJPRSKs9wFW7DXQSMz/DNXMza4CWLWeRQVgxQFRAB8h3hN7QNBKcAr8OfLkmUq
|
||||
ZyGqkAbMLBQKxGqGLEy+qOGG8U/BPM7LeZ0GXCHWZQ6+upUZqJIcJPShvIyFIdiA
|
||||
kHkEwgZgwVI5/Ku01so=
|
||||
=XPBi
|
||||
iJwEAQEIAAYFAlQ/oogACgkQG9wOWsQutdb7egP/U49Pge/iO/QU+pEJ/TgTq/OG
|
||||
m3XDoK6u9FcEbSQjrlpmOhldI2E8OyYxmj48rVu69yeE5n9XoJVKtYMvjdTddrdy
|
||||
gbO3ZWeEoqv7i1p0vZOkVUhOteSKC9k/q8g1VAOuJi2KnPOErAh9O2GQBRL4QDnQ
|
||||
rszdeTsW9p/nrwZF2Eg=
|
||||
=GWf4
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,16 +1,16 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST Net-Twitter-3.18004.tar.gz 133273 SHA256 9afec3a81d7e90b4bbe44e2ed1112e48aeec2af3f260ba5a5a8288c64a0800be SHA512 cee74a630cea158bca79f28575be0187d3f4b3d2d91efbf4d2f78dedc6ae4b8e54cac400c638a235f6457baba442191ad8aabdc9fa024e1ac67350865bd64ebc WHIRLPOOL 4a202ac5784e6c75e1463d7646b47be0214140aa92ffbf47cf1a74641650aca75911227a0413bfd507aee746fce470f7c56dcdb7f058a77623191dcd3c845a24
|
||||
DIST Net-Twitter-4.00006.tar.gz 126439 SHA256 cf1caaad7b6b5d5fa9abe98bbc2fb88625cdd9a9081ad60cc1e7ffb741b205e9 SHA512 746a4673a10758e9c3c250814d70834f8bd3517185b4790ce047e74a7acd81754eba13dceeada1feb3ca8d2d77a7343cdd24566f18f96e65e77e3e731fb60395 WHIRLPOOL 2dfb567df9e7fcf852d0333cefa725f1678a46bef7f17853c6a534d7a41882e6ff871466dd876da86629e430a12e974917ff10f7ad211ff4f4054dc794cca911
|
||||
EBUILD Net-Twitter-3.180.40.ebuild 956 SHA256 604ef847666f73992672a225e397f62684814274dfc7ec266b392c1246b3dedb SHA512 9973683e9934e0384b9c8ddff0767900891086ffb19495da693901e25ec1242b6fb79370942b812cd8aa7854afefae0cb564474bac801fa81da6959e2343eec1 WHIRLPOOL 1701b33446db1dc90a80584dacea0ce867ee9b546f715575c58e3328372e71efbe1a2bdcc26b2dbdf6c1b9a9ada698e6cac5691034af9aec4e520fd43305c101
|
||||
EBUILD Net-Twitter-4.000.60-r1.ebuild 1003 SHA256 59651a7577b77a01e70e3caa12eebbb2824eb8c9d96140d88c6a44d87d4467e7 SHA512 bfd7da29a8857ab02c90dd74791b088b055bb7a5fe97306cdd9d29aca8a89b8f761d15b4d43df4aea0e9641080db28ef768fb57987c58d0dfa9f28a91616b474 WHIRLPOOL 97548300e89839b3004d465a6de634bd1387e83d80c0d2a3c082f866dfb24a8bd5eaf1986695467b54c57976f162faaa784fa988f1dd446816cd75589edfe63d
|
||||
MISC ChangeLog 6703 SHA256 92f2faa20940e18c5f4065041571ffc8c6ca15d27565055cb7d6124a8e946895 SHA512 a39e137b37d462fb611bfd0e4b37345c1c7bffb318e1018655bee10a472fcf967aa0e26ad4ee7d1e7424491b955f3a16afb082fe5381d185c9496a7567f6a187 WHIRLPOOL b45467df9421a2a71e852d22e8c1af4dc50fe7a1a8fd52ffe9f1855ae6d64e93e068f1f60a659752f409541121e47670526b93617d480c5d9528fca951aff127
|
||||
MISC ChangeLog 6800 SHA256 994fcba9fc37357c6c09ab394d3c58478da37a19ec341db28af8a38de6dbbbef SHA512 c2a5b7c7b71eb6b61fba0b506df39c3fb74f5df7ed9c765cec0738b902fbe48ff6b46d51d64c89f025a7794be0f064569159721178c2acc99b9c35111cf5dfbe WHIRLPOOL a8ee6c2306f817b2fe322a69944c863c236b9da8d33830651956ca8c19a2033763f5bc501701a64b685d4fcb6607c7f765f62c11abdd1b270b3fdc5f7f1cb68a
|
||||
MISC metadata.xml 1853 SHA256 2bb5557f545282b4c39857c2be1a1697b5cedb3251064517a77f9a4af5a08693 SHA512 cd310ed7ea1423df94b745aaeffc2ee5ff8cc534321c57e59dfcc7f625ce6a4727644bc647372bbbaea518967fde2d183cf49405a441bd31e2a3c55775f52a29 WHIRLPOOL b02aa06fd5619e8b75d10ee96b52f7fdfffe8203cd7b78844ba39aaf87f3a0429dd633bab152b20f2620d0a4cf58ead496835d6ccd6720c9f1f9407dee33b477
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iF4EAREIAAYFAlP823YACgkQ2ugaI38ACPC5CAD8Dv9HGEq9p20a6A2JXnn+ZC/n
|
||||
pB2L9ROy16aHkO+dNJEA/RNoxe6YUnYVNiAXqu1He6JjrI3SS/ZKoP9flKNGsKnW
|
||||
=6IMQ
|
||||
iJwEAQEIAAYFAlQ/o5QACgkQG9wOWsQutdY9bQQAik3Dy77E6HZM/mAspgdu6bLp
|
||||
ullUU3D1jQTmG1HnUBn4xVhpdLHKOBMGXqm6TeFxST3NlHWFCcfFJrc8mvjB3rYm
|
||||
E3rI75zCL3ACvCugXegpXLkAG0eV1mzMUYYDIy2ySmhVT7kuFZBV+y45EnO4ET9/
|
||||
fTom6h/2ECO675+JVF4=
|
||||
=sLXG
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-Twitter/Net-Twitter-3.180.40.ebuild,v 1.1 2012/11/04 13:01:46 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=MMIMS
|
||||
MODULE_VERSION=3.18004
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A perl interface to the Twitter API"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x64-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/Moose-0.94
|
||||
dev-perl/Crypt-SSLeay
|
||||
dev-perl/Data-Visitor
|
||||
>=dev-perl/DateTime-0.51
|
||||
dev-perl/DateTime-Format-Strptime
|
||||
>=dev-perl/Devel-StackTrace-1.21
|
||||
dev-perl/Digest-HMAC
|
||||
virtual/perl-Digest-SHA
|
||||
virtual/perl-File-Spec
|
||||
dev-perl/HTML-Parser
|
||||
dev-perl/libwww-perl
|
||||
dev-perl/JSON
|
||||
virtual/perl-Scalar-List-Utils
|
||||
>=dev-perl/Try-Tiny-0.03
|
||||
dev-perl/MooseX-Aliases
|
||||
dev-perl/MooseX-Role-Parameterized
|
||||
>=dev-perl/Net-OAuth-0.25
|
||||
dev-perl/namespace-autoclean
|
||||
>=dev-perl/URI-1.40
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# online test
|
||||
SRC_TEST=skip
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-sqlparse/python-sqlparse-0.1.12.ebuild,v 1.1 2014/10/16 12:23:33 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A non-validating SQL parser module for Python"
|
||||
HOMEPAGE="http://code.google.com/p/python-sqlparse/ https://github.com/andialbrecht/sqlparse"
|
||||
SRC_URI="https://github.com/andialbrecht/sqlparse/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
LICENSE="BSD-2"
|
||||
IUSE="doc examples test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-cov[${PYTHON_USEDEP}] )"
|
||||
# Required for running tests
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
S="${WORKDIR}"/${P#python-}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if python_is_python3; then
|
||||
2to3 -w --no-diffs -n tests/ sqlparse/
|
||||
py.test ./tests || die "testsuite failed ${EPYTHON}"
|
||||
else
|
||||
py.test tests || die "testsuite failed under ${EPYTHON}"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,14 +1,16 @@
|
||||
DIST requests-cache-0.3.0.tar.gz 22110 SHA256 cb723ae5db7423b01b77ad66d6984436e6f35a7a06a8e73f98cfaff49e5b5160 SHA512 3896eff26f29be6ea681eeac0d5b270263c49c31bedc0703361f5a5f6898df77d1a894a01a5a71c8dd00597878c613a873332f3f7ee7a268b7675345d587d190 WHIRLPOOL 72f0750b06809c80d28cc0ba5fc7f401e65d1f04aed9262267b5fb103688c180def7948829d25fd40e3c5488333c479e4ecef643c98d813154a9c24dde646f93
|
||||
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
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST requests-cache-0.4.5.tar.gz 25487 SHA256 ab5bd4b2508158bb57b25042ecbac840b7f6035ef940314897ce0efe13112c7b SHA512 ad71c3c1035b4d15f0c85d0cec2d18373bcf6dabf33cae4a674f4c3fa419f7c46205f93f1563ef9bd5662ee79fc76631918adc58cc2335462cacc2253effb009 WHIRLPOOL ed5a4c6aaffde3b1f1e89e143989d841ebb2a457280d3c734076578184bb0eef62fe466430a597dc3ef14a02346fcd30a3a08f56aee9361cbe89019597f4285b
|
||||
EBUILD requests-cache-0.3.0.ebuild 655 SHA256 c1ea8f7922d8e710da92b933f02f9c5697a399c4fc764243156a6f20226e0926 SHA512 81539fa9def64ead2182cad429c0b7c3b5a738685b5232c7797185a50d6a6652add6e8f63d643f95fc7abd8d39ec3f015e8aa73d6507a1151511cf4a289c1017 WHIRLPOOL dd83315f01c57994b4a094eaf039de883e534f59b56a9ae013b8e5631a0ff3f06179330559e24a9f6e1f158c1a1f3c906db8fe97a36660a522b82bb9907e5a73
|
||||
EBUILD requests-cache-0.4.0.ebuild 655 SHA256 a24022fefbf6c94b30adc205d4dd8ff0a4819e6dfa37b04d9264016a83599e61 SHA512 d1f1f8a69640e7538280f37a95a2cadb446c20da36aaf3bf57d4f3803a789751f540945dd1d8fb0acea07d0d00fdaca3a8210186376569ed0b72361d74e6d969 WHIRLPOOL 48cf876b1e3d37d23e064c72e0011905fe123d4e5ade117010bdd693af49d90afd33a11aa284b4797d206e72f7816ad3a94401abf9c715be196d86f0030234d4
|
||||
EBUILD requests-cache-0.4.2.ebuild 655 SHA256 b51949994ec1097fbb45c1b56b879cf5998a6a0fe106dd53258905f6c004ea49 SHA512 1f8d0fd1aed16164b8bf69366880e077584e54b96973fe27826a08356bb811307319e32a91af8300d89682daa1ac858205df9a91c8139414632c27ce1793af4c WHIRLPOOL 45dce7b6896f2d3cbcae1c52498d9feb8916209b3e51058aa0e35eca178a5e64b92c3a10cd7da1a92b14de2a7d7a8182a02c6c7f09be8a47a87e4dd39e99fa1a
|
||||
EBUILD requests-cache-0.4.3.ebuild 656 SHA256 194be228e1be1d620d979a80ca5098a25460135bbe79393546c630f668d9425f SHA512 baf7d45f488a5958768c45745f6ab8ddfef0e8d43c588fdf4df5fe85ba387f7b8950c1a7c4a136c01d0e6855de32d20e8d39e1ea4535c52157222d9cd841156e WHIRLPOOL 0d5ca76c034ee25ba89a2a711dcce9e8c84ba14e46fe52ea619b76c345733570c1f3820d1167796cf0a0707ccddaefbd730bcc87032740b76b4b6d98479f69d4
|
||||
EBUILD requests-cache-0.4.4.ebuild 656 SHA256 5c34093346d79c3931acb98ab041e94653b2ce0ee7430158f033d314e13ec172 SHA512 601c757bdb41fbb696c77969574b45f56686af1468ed0967926965e6af233c80c2b49a0aaaab5738c7a7cbbe8c717ef33db9349b3d8fa3cf9946dd534fe60dab WHIRLPOOL 7fb6f33b257f68e32b59d09febcbeb496649d4e5ae960db9a1a0ff899a1459fd2fd91dd5005097943061f263e083565893472ee8fde0c13f96d03ba3e7270ab5
|
||||
EBUILD requests-cache-0.4.5.ebuild 923 SHA256 5f5f8e36672bbbfbf408ea8ff2a072f3928a9b0656fbc4ceed5cbeff5123f71f SHA512 b1b87555b5611d25fa14065c651079ea84ab921722756a0682f7d9849f47abb238e8b86f65348963071fba7fad92afbbc7d057cd82e5cb24e3507ea6e678fbb3 WHIRLPOOL 7b677f1145971a721337f1894718824d9dce41ac5e88ae48287d0ee348bfd704a9eab9f5da27f0335d7f002c0616e7f85f84682e55ed15de5b0825ebde930559
|
||||
MISC ChangeLog 1456 SHA256 31fe34052125cb41de4957ea325e21e90b5f73d80525c57fa8d195422efdacf1 SHA512 5883d029925580ea3cdffcdf1cff70c53339c9faf55a6cc3dc21ee4e7061529fb37aef7443ca1b6985ff8bd4a14c45eeed9ce4767474585eaa90a6ab5d641db1 WHIRLPOOL a48ff230e2edacd2ca5d9c37a26c87f07715a94b0b239d54c89b3671e8553964778eef0f54a2734f0ee4051c682a6ad13c731199bfc70329a4b34afd333a3025
|
||||
DIST requests-cache-0.4.6.tar.gz 26163 SHA256 7500bb0102e48522e6d6cec72a75adb571a7dc5c889091fba875e2a5b9fd5e4d SHA512 7cf9268536efe78b1028b44d5aadd3ce9cfea5961f55e4d862605c62f793017693b8c12410e52d7b31484d7dd60e147b9cdc3aab1880186324ce117442a6bb0d WHIRLPOOL 140fcd57594bf9296a0af16ddfef0c1b026240404e02a3b95850ce8dc069df4c36946288c708ae2e13a6d0657cea9849491efc7d04fa9cf4cd6317994f9fdd9a
|
||||
EBUILD requests-cache-0.4.5.ebuild 977 SHA256 8fc51579d39f0b7230c6fba3252159a4d12a1b0151c7381100f990de1341e8ea SHA512 088b8bed759c51f8440f80b7701d9d0cbc96bc6ace7f6e6e95efd53fc92cb9137141de1c06d4a13b7e1323420a60a2f1f502b527fb830332c710b8f112ef2e7e WHIRLPOOL 9c243a71cdfdc1b7ee0ee6cd6d2e1d4dae0b18d9fcdf53c67bdb96fb1d54b65754b5adebb7d5b85990b8c84524ea2951c220dbb45991a704f5cdd0c2a9ab2bc3
|
||||
EBUILD requests-cache-0.4.6.ebuild 973 SHA256 59aa1dc4937edd58a3c401afe14e10f124ac66bf6bac34f2b2c2b51b88c638a3 SHA512 911a7fffcd741e35e1a921ee33f2b75f85b6e13d8ecc11634907390cec133d62c41468e6c9ca80b013c124615fe5e12ef687e51d13e51e29b28a9e0eade4dfa3 WHIRLPOOL 6dea4bf2163d60c031ae25396fbad521d9313ca0fb9f0871aff77c73565b11fbf0fd3a54a88dc67558d9e61ff77f790a61782bfc2ca7f30b6cb511cc1825949f
|
||||
MISC ChangeLog 1787 SHA256 b50114c42ac835ae6497d0a62d282de490aa5109379743969e601f5f7659d1ef SHA512 eafeeda8cf5e8e210eb55b7fec549fd2ccd1856b8d895019a0ee0cc9d4d45bb14d7716571267c266429f07d283bc56b149b5c01d3832fad3294cc774830dfffe WHIRLPOOL dbcf110c0eb83914ce0000c228f39e7adcfe10e00ac9e05958749dd5fd07718c44210749c16f3bdab2bfedb10dd59dd1ea1342325b55d4759e5ad047c9caf80a
|
||||
MISC metadata.xml 334 SHA256 518ac72607c3261f50c26d083946e00c875308e9f91192ca60e08f7a5c027e5c SHA512 e6d5b98f5933c1deb9f5e7a03bd3ad468338150d1ba9dd6a5e3dde3740ec5edd20cea1019f01f39a77904edb33812f0e080ef2fdb9cccc2938055b522a842df0 WHIRLPOOL 68d8a4c44fef3c6b3259282cc45ea234e3e35febfa33cedf124b42267971d618325982847e2d7cc9361097b94853437fc0538b9ce60a81d5bf21a3cdbb8c4bef
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlQ/qqcACgkQso7CE7gHKw18mwCfTX3SrfD68swPsHmIi9rFvyIX
|
||||
L0AAoJYv6L1tAlwXNFMuWceUhjxZ+SDH
|
||||
=enVt
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,23 +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/requests-cache/requests-cache-0.3.0.ebuild,v 1.3 2013/09/05 18:46:12 mgorny 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,23 +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/requests-cache/requests-cache-0.4.0.ebuild,v 1.2 2013/09/05 18:46:12 mgorny 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,23 +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/requests-cache/requests-cache-0.4.2.ebuild,v 1.2 2013/09/05 18:46:12 mgorny 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,23 +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/requests-cache/requests-cache-0.4.3.ebuild,v 1.1 2013/09/18 06:10:27 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,23 +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/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 )
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2014 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.6.ebuild,v 1.1 2014/10/16 11:22:55 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
|
||||
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="doc"
|
||||
|
||||
# Portage only has versions of request >= minimum border
|
||||
RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
# Testsuite excels in tests connecting to the network via local server daemons
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rpy/rpy-2.4.4.ebuild,v 1.1 2014/10/16 09:53:25 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MYSLOT=2
|
||||
MY_PN=${PN}${MYSLOT}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Python interface to the R Programming Language"
|
||||
HOMEPAGE="http://rpy.sourceforge.net/ https://pypi.python.org/pypi/rpy2"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3 GPL-2 LGPL-2.1 MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/R-3
|
||||
dev-python/numpy[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/pandas-0.13[${PYTHON_USEDEP}] )"
|
||||
# ggplot2 is an optional test dep but not in portage
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
# Tarball absent of doc files in doc folder
|
||||
# https://bitbucket.org/lgautier/rpy2/issue/229/doc-folder-basent-of-doc-files-in-rpy-244
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
${PYTHON} -m 'rpy2.tests' -v || die
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx-bootstrap-theme/sphinx-bootstrap-theme-0.4.2.ebuild,v 1.1 2014/10/16 07:43:13 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Sphinx theme integrates the Bootstrap CSS / JavaScript framework"
|
||||
HOMEPAGE="http://ryan-roemer.github.com/sphinx-bootstrap-theme/README.html"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -0,0 +1,124 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.2.3.ebuild,v 1.1 2014/10/16 05:08:47 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1 eutils versionator
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex test"
|
||||
|
||||
# Portage has only >= minimum required versions of all rdeps making
|
||||
# setting of version borders unnecessary
|
||||
RDEPEND="
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
app-text/dvipng
|
||||
)"
|
||||
DEPEND="${DEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
# Generate the grammar. It will be caught by install somehow.
|
||||
# Note that the tests usually do it for us. However, I don't want
|
||||
# to trust USE=test really running all the tests, especially
|
||||
# with FEATURES=test-fail-continue.
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
"${PYTHON}" -m sphinx.pycode.__init__ \
|
||||
|| die "Grammar generation failed."
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc SPHINXBUILD='"${PYTHON}" "${S}/sphinx-build.py"' html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r -l tests "${BUILD_DIR}"/ || die
|
||||
# Would you believe?
|
||||
if $(python_is_python3); then
|
||||
2to3 -w --no-diffs "${BUILD_DIR}"/tests || die
|
||||
fi
|
||||
|
||||
nosetests -w "${BUILD_DIR}"/tests -v \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
replacing_python_eclass() {
|
||||
local pv
|
||||
for pv in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 1.1.3-r4 ${pv}; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if replacing_python_eclass; then
|
||||
# the old python.eclass ebuild will want to remove our pickles...
|
||||
backup_pickle() {
|
||||
# array to enable filename expansion
|
||||
local pickle_name=(
|
||||
"${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle
|
||||
)
|
||||
|
||||
local dest=${ROOT}${pickle_name[0]#${D}}.backup
|
||||
|
||||
eumask_push 022
|
||||
mkdir -p "${dest%/*}" || die
|
||||
eumask_pop
|
||||
|
||||
cp -p -v "${pickle_name[0]}" "${dest}" \
|
||||
|| die "Unable to backup grammar pickle from overwriting"
|
||||
}
|
||||
|
||||
python_foreach_impl backup_pickle
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if replacing_python_eclass; then
|
||||
local warned
|
||||
|
||||
restore_pickle() {
|
||||
local backup_name=(
|
||||
"${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup
|
||||
)
|
||||
local dest=${backup_name[0]%.backup}
|
||||
|
||||
mv -v "${backup_name[0]}" "${dest}" \
|
||||
|| die "Unable to restore grammar pickle backup"
|
||||
}
|
||||
|
||||
python_foreach_impl restore_pickle
|
||||
|
||||
[[ ${warned} ]] && ewarn "Please try rebuilding the package."
|
||||
fi
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.12_pre20141013.ebuild,v 1.1 2014/10/14 10:36:44 eras Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.12_pre20141015.ebuild,v 1.1 2014/10/16 08:39:31 eras Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib pam ssl-cert systemd toolchain-funcs user versionator
|
@ -1 +1 @@
|
||||
Thu, 16 Oct 2014 04:37:00 +0000
|
||||
Thu, 16 Oct 2014 18:07:01 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue