parent
48150e1fa5
commit
659a40715e
@ -1,9 +1,2 @@
|
|||||||
DIST libvirt-1.2.10-20150127.tar.xz 5584 SHA256 f2b259ca1161322b09851c481ea69c352f4efb065ec593aaf2589cada4282604 SHA512 6247f133dae53d0387e11846c8afced5baeb7cc3794adc015039a9fb34a850afbf2e898add7af4806a1f6f1c1400a0f5978a69b830c74776258de0dfa85d0ed4 WHIRLPOOL 1a6154558bf36416df3db4fe54de3b8fa4e730b689a4e166b75bef9e053d14ae02bd99ddc343bdc4734eef298b8d98e32021186e931d7fd330da290fa81f9469
|
|
||||||
DIST libvirt-1.2.10-20150524.tar.xz 7836 SHA256 621b3fea9f43eb99944734224d7e51200badc16fafa15ebc03585d8027cd8588 SHA512 214a180621fe0ee71ba074c891f28e45498928f03b8fe6f968341e3006714a95ece025036552b74e67504b2eb4437f736eb6de867c794c2378bbc8f7a6542ee5 WHIRLPOOL 4e4bf4e5fede7d256d9d81c4f4bca97d968c8c7ced6b03bcb65795231cf2e7d4aa6911be71fb017cdd5045ff9efbee6675aaa10243dcfd113c4f07aac1bae0c4
|
|
||||||
DIST libvirt-1.2.10.tar.gz 30029503 SHA256 5050f4cea3dd59d3eca25c3d3f16085e10d624ecc18bd35820cd3dac6f46c08e SHA512 9cd5d2a604769cf70e388c367abcde27ee8d6d7043227f17dd2cac92a467ea06547374e1d83c7b1ee4c5322d8b3d9e4cbb6db373efae5eaaceed1b1376cbd09d WHIRLPOOL 986c1fd0128101f936897c97a36d646b8893d9ee0a223d05b004d73408a2720aeb9bb5fe3e4a7c476947021b89d955fb4a1b3a64dfe8dfe0d30dbfe75487b8fe
|
|
||||||
DIST libvirt-1.2.12-20150524.tar.xz 6188 SHA256 68e1cbadf424eb12cbfa3308a19c6a5e298693fd030b5ea947983169435072bd SHA512 6041cdbb7af80fee3bb87cde23d5a45b55d8458a52c617aea6519e373051eea0b63007444cf8b8f2d213dbd8ccd3f4babd68da3e471d9f1fd2cde9cf8cbe3c4e WHIRLPOOL c1fe5cb92ad63b2535b1bee5fb898b40d0a692f57119481234bc4eed3a007db891c5cdfa0d96d3346b2da3744c70dec036ffac0e164b1894d6b9bd51e9ec3792
|
|
||||||
DIST libvirt-1.2.12.tar.gz 30710487 SHA256 eff5227f774560d97f0b44402a444e821c51e8cd44add89f74bc3c1f4dede66a SHA512 643986d72886fe3de0191b282f561241721a8967911418ff317cecd68e1afb13f32e0aeb5000ae11cc452bfaac6220c472091276c81a69eb569166b87d05e736 WHIRLPOOL 1b02150643145efb851335139661b69999641904c1350c3a1b391efcc7761de7c28ba19307867e21a5c1516da8ab365e01fcdfb542efb56a3cce8ed61be65f0f
|
|
||||||
DIST libvirt-1.2.14-20150524.tar.xz 2404 SHA256 5f2bafd9643c1aca78390400ecd88222ae88882ac11f43bbf0e5e8a25f380738 SHA512 4656d8e215514d3afd35ab06f5a2d653591d38cfd09f164cabfa078b86b13a48d5333654fc53ad62b32d04e0339b742a9aeeecbf007c3df8f5fbb35d739ecde3 WHIRLPOOL 2df415ab668e37a6cfe797780bba896f398fa1cdd79257b26e6670e080c36d99b248a1033a33677eeab164d0ca16bca3b2f62085fd4edb171ba410599819dbee
|
|
||||||
DIST libvirt-1.2.14.tar.gz 28947850 SHA256 b8e8e6f1fc91eb8694fa21f9c57a736fa4a5af10562e14e4aa2c7e23510c4c07 SHA512 ea5a68211ce3940f73444777ae5e2c8de7405df3e1a78d2871a9e18591bc8bf036288a6733da5ab23180b6ed88e03347e898554a46c0ad440da48590b32340ad WHIRLPOOL 8a9791a780c3daa416abeff711a9204093b4f979a2bb1ee8d2adb93f033b48ff3c576811b1f8d943a3f93a95cab9592293d9b4309f11eb2b16515b32cf5cc033
|
|
||||||
DIST libvirt-1.2.15.tar.gz 29094868 SHA256 5f88041b8c212f8f687c672fe583108833240d6175b512ce4de92ab6660194c6 SHA512 c5dd3af86e89e3804d6c3b527c6dbd98c79d87d2591725a13af33530e0e9a9a2e9aeb9491844469d44ec4f4d17adb036c76391f964158ada23ec042a75556fbc WHIRLPOOL a43aad4caeff707c8d7a6872ff3c46911c96fd90ece02a7f6ceabb4ccd00e467b5341ab9d922912cc2968a2bb8826e970b253b257c5a8981b37364550f9b3616
|
DIST libvirt-1.2.15.tar.gz 29094868 SHA256 5f88041b8c212f8f687c672fe583108833240d6175b512ce4de92ab6660194c6 SHA512 c5dd3af86e89e3804d6c3b527c6dbd98c79d87d2591725a13af33530e0e9a9a2e9aeb9491844469d44ec4f4d17adb036c76391f964158ada23ec042a75556fbc WHIRLPOOL a43aad4caeff707c8d7a6872ff3c46911c96fd90ece02a7f6ceabb4ccd00e467b5341ab9d922912cc2968a2bb8826e970b253b257c5a8981b37364550f9b3616
|
||||||
DIST libvirt-1.2.16.tar.gz 29157627 SHA256 419bee553442024b9ee8a1fa94023b1189bb52b7c3021fa37d8e4c108490060d SHA512 ad2892d143b28784146191ec0c4e3fc1f3d246b51c39c8bcdfc6ecff59a4021b94277fc14cef04436046d3614baeb4edff753d0158c5da35cbb718ab8692950b WHIRLPOOL c48cb4f4e4be0994600f924d616112e112bd3a9a695cede70512995b4d563c92f82918298313472c440751213c893cbdc54d54b2e175b969df157bd486ef7207
|
DIST libvirt-1.2.16.tar.gz 29157627 SHA256 419bee553442024b9ee8a1fa94023b1189bb52b7c3021fa37d8e4c108490060d SHA512 ad2892d143b28784146191ec0c4e3fc1f3d246b51c39c8bcdfc6ecff59a4021b94277fc14cef04436046d3614baeb4edff753d0158c5da35cbb718ab8692950b WHIRLPOOL c48cb4f4e4be0994600f924d616112e112bd3a9a695cede70512995b4d563c92f82918298313472c440751213c893cbdc54d54b2e175b969df157bd486ef7207
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
From aca0ae1faa163bbd60ee8df4b93ae870aa820746 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Eric Blake <eblake@redhat.com>
|
|
||||||
Date: Wed, 19 Nov 2014 12:13:14 -0700
|
|
||||||
Subject: [PATCH 1/1] maint: use portable shell
|
|
||||||
|
|
||||||
Reported in https://bugzilla.redhat.com/show_bug.cgi?id=1165827;
|
|
||||||
dash complains:
|
|
||||||
|
|
||||||
checking for pkcheck... /usr/bin/pkcheck
|
|
||||||
checking whether pkcheck supports uid value... yes
|
|
||||||
./configure: 63906: test: xno: unexpected operator
|
|
||||||
checking for dtrace... no
|
|
||||||
|
|
||||||
* configure.ac: Use '=' not '==' in test.
|
|
||||||
|
|
||||||
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
||||||
---
|
|
||||||
configure.ac | 2 +-
|
|
||||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 5a670eb..9fd44b2 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -1389,7 +1389,7 @@ AC_ARG_WITH([firewalld],
|
|
||||||
if test "x$with_firewalld" = "xcheck" ; then
|
|
||||||
with_firewalld=$with_dbus
|
|
||||||
fi
|
|
||||||
-if test "x$with_firewalld" == "xyes" ; then
|
|
||||||
+if test "x$with_firewalld" = "xyes" ; then
|
|
||||||
if test "x$with_dbus" != "xyes" ; then
|
|
||||||
AC_MSG_ERROR([You must have dbus enabled for firewalld support])
|
|
||||||
fi
|
|
||||||
--
|
|
||||||
1.7.1
|
|
||||||
|
|
@ -1,129 +0,0 @@
|
|||||||
#!/sbin/runscript
|
|
||||||
|
|
||||||
description="Virtual Machine Management daemon (libvirt)"
|
|
||||||
extra_started_commands="reload halt"
|
|
||||||
description_halt="Stops the libvirt daemon without stopping your VMs"
|
|
||||||
description_reload="Restarts the libvirt daemon without stopping your VMs"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
USE_FLAG_FIREWALLD
|
|
||||||
use USE_FLAG_AVAHI USE_FLAG_ISCSI USE_FLAG_RBD dbus virtlockd
|
|
||||||
after ntp-client ntpd nfs nfsmount portmap rpc.statd iptables ip6tables ebtables corosync sanlock cgconfig xenconsoled
|
|
||||||
}
|
|
||||||
|
|
||||||
libvirtd_virsh() {
|
|
||||||
local mode=$1
|
|
||||||
shift
|
|
||||||
|
|
||||||
# Silence errors because virsh always throws an error about
|
|
||||||
# not finding the hypervisor version when connecting to libvirtd
|
|
||||||
LC_ALL=C virsh -c ${mode}:///system "$@" 2>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
libvirtd_dom_list() {
|
|
||||||
# Make sure that it wouldn't be confused if the domain name
|
|
||||||
# contains the word running.
|
|
||||||
libvirtd_virsh $1 list | awk '$3 == "running" { print $1 }'
|
|
||||||
}
|
|
||||||
|
|
||||||
libvirtd_dom_count() {
|
|
||||||
# Make sure that it wouldn't be confused if the domain name
|
|
||||||
# contains the word running.
|
|
||||||
libvirtd_virsh $1 list | awk 'BEGIN { count = 0 } \
|
|
||||||
$3 == "running" { count++ } \
|
|
||||||
END { print count }'
|
|
||||||
}
|
|
||||||
|
|
||||||
libvirtd_net_list() {
|
|
||||||
# The purpose of the awk is to avoid networks with 'active' in the name
|
|
||||||
libvirtd_virsh $1 net-list | awk '$2 == "active" { print $1 }'
|
|
||||||
}
|
|
||||||
|
|
||||||
libvirtd_net_count() {
|
|
||||||
# The purpose of the awk is to avoid networks with 'active' in the name
|
|
||||||
libvirtd_virsh $1 net-list | awk 'BEGIN { count = 0 } \
|
|
||||||
$2 == "active" { count++ } \
|
|
||||||
END { print count }'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting libvirtd"
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--env KRB5_KTNAME=/etc/libvirt/krb5.tab \
|
|
||||||
--exec /usr/sbin/libvirtd -- -d ${LIBVIRTD_OPTS}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
local counter=
|
|
||||||
local vm_name=
|
|
||||||
local net_name=
|
|
||||||
local dom_id=
|
|
||||||
|
|
||||||
ebegin "Stopping libvirtd"
|
|
||||||
# try to shutdown all (KVM/Qemu) domains
|
|
||||||
if [ "${LIBVIRTD_KVM_SHUTDOWN}" != "none" ] \
|
|
||||||
&& [ "$(libvirtd_dom_count qemu)" != "0" ] ; then
|
|
||||||
|
|
||||||
einfo " Shutting down domain(s):"
|
|
||||||
for dom_id in $(libvirtd_dom_list qemu) ; do
|
|
||||||
vm_name="$(libvirtd_virsh qemu domname ${dom_id} | head -n 1)"
|
|
||||||
einfo " ${vm_name}"
|
|
||||||
libvirtd_virsh qemu ${LIBVIRTD_KVM_SHUTDOWN} ${dom_id} > /dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -n "${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}" ] ; then
|
|
||||||
counter="${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}"
|
|
||||||
else
|
|
||||||
counter=500
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${LIBVIRTD_KVM_SHUTDOWN}" = "shutdown" ]; then
|
|
||||||
einfo " Waiting ${counter} seconds while domains shutdown ..."
|
|
||||||
DOM_COUNT="$(libvirtd_dom_count qemu)"
|
|
||||||
while [ ${DOM_COUNT} -gt 0 ] && [ ${counter} -gt 0 ] ; do
|
|
||||||
DOM_COUNT="$(libvirtd_dom_count qemu)"
|
|
||||||
sleep 1
|
|
||||||
counter=$((${counter} - 1))
|
|
||||||
echo -n "."
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$(libvirtd_dom_count qemu)" != "0" ] ; then
|
|
||||||
eerror " !!! Some guests are still running, stopping anyway"
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${LIBVIRTD_KVM_NET_SHUTDOWN}" != "no" ] \
|
|
||||||
&& [ "$(libvirtd_net_count qemu)" != "0" ]; then
|
|
||||||
|
|
||||||
einfo " Shutting down network(s):"
|
|
||||||
for net_name in $(libvirtd_net_list qemu); do
|
|
||||||
einfo " ${net_name}"
|
|
||||||
libvirtd_virsh qemu net-destroy ${net_name} > /dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "$(libvirtd_net_count qemu)" != "0" ]; then
|
|
||||||
eerror " !!! Some networks are still active, stopping anyway"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Now actually stop the daemon
|
|
||||||
start-stop-daemon --stop --quiet --exec \
|
|
||||||
/usr/sbin/libvirtd --pidfile=/var/run/libvirtd.pid
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
halt() {
|
|
||||||
ebegin "Stopping libvirtd without shutting down your VMs"
|
|
||||||
start-stop-daemon --stop --quiet --exec \
|
|
||||||
/usr/sbin/libvirtd --pidfile=/var/run/libvirtd.pid
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
halt
|
|
||||||
start
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
#!/sbin/runscript
|
|
||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/files/virtlockd.init,v 1.1 2013/10/25 20:06:42 cardoe Exp $
|
|
||||||
|
|
||||||
description="libvirt virtual machine lock manager"
|
|
||||||
command="/usr/sbin/virtlockd"
|
|
||||||
command_args="-d"
|
|
||||||
pidfile="/var/run/virtlockd.pid"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after ntp-client ntpd nfs nfsmount corosync
|
|
||||||
}
|
|
@ -1,458 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.10-r4.ebuild,v 1.4 2015/05/24 19:32:06 tamiko Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
|
||||||
|
|
||||||
BACKPORTS="20150127"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
SLOT="0"
|
|
||||||
else
|
|
||||||
# Versions with 4 numbers are stable updates:
|
|
||||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
|
||||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" ${BACKPORTS:+
|
|
||||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
|
||||||
http://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
|
||||||
HOMEPAGE="http://www.libvirt.org/"
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
|
|
||||||
nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
|
||||||
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \
|
|
||||||
elibc_glibc systemd"
|
|
||||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
|
||||||
lxc? ( caps libvirtd )
|
|
||||||
openvz? ( libvirtd )
|
|
||||||
qemu? ( libvirtd )
|
|
||||||
uml? ( libvirtd )
|
|
||||||
vepa? ( macvtap )
|
|
||||||
virtualbox? ( libvirtd )
|
|
||||||
xen? ( libvirtd )
|
|
||||||
virt-network? ( libvirtd )
|
|
||||||
firewalld? ( virt-network )"
|
|
||||||
|
|
||||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
|
||||||
# non-optional, so put it into RDEPEND.
|
|
||||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
|
||||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
|
||||||
# we must go with the most recent
|
|
||||||
RDEPEND="sys-libs/readline:=
|
|
||||||
sys-libs/ncurses
|
|
||||||
>=net-misc/curl-7.18.0
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
>=dev-libs/libxml2-2.7.6
|
|
||||||
dev-libs/libnl:3
|
|
||||||
>=net-libs/gnutls-1.0.25
|
|
||||||
net-libs/libssh2
|
|
||||||
sys-apps/dmidecode
|
|
||||||
>=sys-apps/util-linux-2.17
|
|
||||||
sys-devel/gettext
|
|
||||||
>=net-analyzer/netcat6-1.0-r2
|
|
||||||
app-misc/scrub
|
|
||||||
audit? ( sys-process/audit )
|
|
||||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
|
||||||
caps? ( sys-libs/libcap-ng )
|
|
||||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
|
||||||
iscsi? ( sys-block/open-iscsi )
|
|
||||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
|
||||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
|
||||||
nfs? ( net-fs/nfs-utils )
|
|
||||||
numa? (
|
|
||||||
>sys-process/numactl-2.0.2
|
|
||||||
sys-process/numad
|
|
||||||
)
|
|
||||||
openvz? ( sys-kernel/openvz-sources:* )
|
|
||||||
parted? (
|
|
||||||
>=sys-block/parted-1.8[device-mapper]
|
|
||||||
sys-fs/lvm2
|
|
||||||
)
|
|
||||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
|
||||||
policykit? ( >=sys-auth/polkit-0.9 )
|
|
||||||
qemu? (
|
|
||||||
>=app-emulation/qemu-0.13.0
|
|
||||||
dev-libs/yajl
|
|
||||||
!systemd? ( sys-power/pm-utils )
|
|
||||||
)
|
|
||||||
rbd? ( sys-cluster/ceph )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl )
|
|
||||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
|
||||||
systemd? ( sys-apps/systemd )
|
|
||||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
|
||||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
|
||||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
|
||||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
|
||||||
virt-network? ( net-dns/dnsmasq[script]
|
|
||||||
>=net-firewall/iptables-1.4.10[ipv6]
|
|
||||||
net-misc/radvd
|
|
||||||
net-firewall/ebtables
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
firewalld? ( net-firewall/firewalld )
|
|
||||||
)
|
|
||||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
app-text/xhtml1
|
|
||||||
dev-lang/perl
|
|
||||||
dev-libs/libxslt"
|
|
||||||
|
|
||||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
|
||||||
you don't need any extra software. For more complex network modes
|
|
||||||
including but not limited to NATed network, you can enable the
|
|
||||||
'virt-network' USE flag.\n\n
|
|
||||||
If you are using dnsmasq on your system, you will have
|
|
||||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
|
||||||
bind-interfaces\n
|
|
||||||
interface or except-interface\n\n
|
|
||||||
Otherwise you might have issues with your existing DNS server."
|
|
||||||
|
|
||||||
LXC_CONFIG_CHECK="
|
|
||||||
~CGROUPS
|
|
||||||
~CGROUP_FREEZER
|
|
||||||
~CGROUP_DEVICE
|
|
||||||
~CGROUP_CPUACCT
|
|
||||||
~CGROUP_SCHED
|
|
||||||
~CGROUP_PERF
|
|
||||||
~BLK_CGROUP
|
|
||||||
~NET_CLS_CGROUP
|
|
||||||
~CGROUP_NET_PRIO
|
|
||||||
~CPUSETS
|
|
||||||
~RESOURCE_COUNTERS
|
|
||||||
~NAMESPACES
|
|
||||||
~UTS_NS
|
|
||||||
~IPC_NS
|
|
||||||
~PID_NS
|
|
||||||
~NET_NS
|
|
||||||
~USER_NS
|
|
||||||
~DEVPTS_MULTIPLE_INSTANCES
|
|
||||||
~VETH
|
|
||||||
~MACVLAN
|
|
||||||
~POSIX_MQUEUE
|
|
||||||
~SECURITYFS
|
|
||||||
~!GRKERNSEC_CHROOT_MOUNT
|
|
||||||
~!GRKERNSEC_CHROOT_DOUBLE
|
|
||||||
~!GRKERNSEC_CHROOT_PIVOT
|
|
||||||
~!GRKERNSEC_CHROOT_CHMOD
|
|
||||||
~!GRKERNSEC_CHROOT_CAPS
|
|
||||||
"
|
|
||||||
|
|
||||||
VIRTNET_CONFIG_CHECK="
|
|
||||||
~BRIDGE_NF_EBTABLES
|
|
||||||
~BRIDGE_EBT_MARK_T
|
|
||||||
~NETFILTER_ADVANCED
|
|
||||||
~NETFILTER_XT_TARGET_CHECKSUM
|
|
||||||
~NETFILTER_XT_CONNMARK
|
|
||||||
~NETFILTER_XT_MARK
|
|
||||||
"
|
|
||||||
|
|
||||||
BWLMT_CONFIG_CHECK="
|
|
||||||
~BRIDGE_EBT_T_NAT
|
|
||||||
~NET_SCH_HTB
|
|
||||||
~NET_SCH_SFQ
|
|
||||||
~NET_SCH_INGRESS
|
|
||||||
~NET_CLS_FW
|
|
||||||
~NET_CLS_U32
|
|
||||||
~NET_ACT_POLICE
|
|
||||||
"
|
|
||||||
|
|
||||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
|
||||||
|
|
||||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
|
||||||
|
|
||||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup qemu 77
|
|
||||||
enewuser qemu 77 -1 -1 qemu kvm
|
|
||||||
|
|
||||||
# Some people used the masked ebuild which was not adding the qemu
|
|
||||||
# user to the kvm group originally. This results in VMs failing to
|
|
||||||
# start for some users. bug #430808
|
|
||||||
egetent group kvm | grep -q qemu
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
gpasswd -a qemu kvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle specific kernel versions for different features
|
|
||||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
|
||||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
|
||||||
|
|
||||||
CONFIG_CHECK=""
|
|
||||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
|
||||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
|
||||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
|
||||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
|
||||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
|
||||||
# Bandwidth Limiting Support
|
|
||||||
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}"
|
|
||||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
|
||||||
linux-info_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
touch "${S}/.mailmap"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# git checkouts require bootstrapping to create the configure script.
|
|
||||||
# Additionally the submodules must be cloned to the right locations
|
|
||||||
# bug #377279
|
|
||||||
./bootstrap || die "bootstrap failed"
|
|
||||||
(
|
|
||||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
|
||||||
git hash-object bootstrap.conf
|
|
||||||
) >.git-module-status
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-fix-firewalld-configuration.patch
|
|
||||||
[[ -n ${BACKPORTS} ]] && \
|
|
||||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
|
||||||
|
|
||||||
# Tweak the init script
|
|
||||||
local avahi_init=
|
|
||||||
local iscsi_init=
|
|
||||||
local rbd_init=
|
|
||||||
local firewalld_init=
|
|
||||||
cp "${FILESDIR}/libvirtd.init-r13" "${S}/libvirtd.init"
|
|
||||||
use avahi && avahi_init='avahi-daemon'
|
|
||||||
use iscsi && iscsi_init='iscsid'
|
|
||||||
use rbd && rbd_init='ceph'
|
|
||||||
use firewalld && firewalld_init='need firewalld'
|
|
||||||
|
|
||||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
## enable/disable daemon, otherwise client only utils
|
|
||||||
myconf+=" $(use_with libvirtd)"
|
|
||||||
|
|
||||||
## enable/disable the daemon using avahi to find VMs
|
|
||||||
myconf+=" $(use_with avahi)"
|
|
||||||
|
|
||||||
## hypervisors on the local host
|
|
||||||
myconf+=" $(use_with xen) $(use_with xen xen-inotify)"
|
|
||||||
myconf+=" --without-xenapi"
|
|
||||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
|
||||||
myconf+=" --with-libxl"
|
|
||||||
else
|
|
||||||
myconf+=" --without-libxl"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with openvz)"
|
|
||||||
myconf+=" $(use_with lxc)"
|
|
||||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
|
||||||
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/"
|
|
||||||
else
|
|
||||||
myconf+=" $(use_with virtualbox vbox)"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with uml)"
|
|
||||||
myconf+=" $(use_with qemu)"
|
|
||||||
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP
|
|
||||||
myconf+=" $(use_with phyp)"
|
|
||||||
myconf+=" --with-esx"
|
|
||||||
myconf+=" --with-vmware"
|
|
||||||
|
|
||||||
## additional host drivers
|
|
||||||
myconf+=" $(use_with virt-network network)"
|
|
||||||
myconf+=" --with-storage-fs"
|
|
||||||
myconf+=" $(use_with lvm storage-lvm)"
|
|
||||||
myconf+=" $(use_with iscsi storage-iscsi)"
|
|
||||||
myconf+=" $(use_with parted storage-disk)"
|
|
||||||
myconf+=" $(use_with lvm storage-mpath)"
|
|
||||||
myconf+=" $(use_with rbd storage-rbd)"
|
|
||||||
myconf+=" $(use_with numa numactl)"
|
|
||||||
myconf+=" $(use_with numa numad)"
|
|
||||||
myconf+=" $(use_with selinux)"
|
|
||||||
myconf+=" $(use_with fuse)"
|
|
||||||
|
|
||||||
# udev for device support details
|
|
||||||
myconf+=" $(use_with udev)"
|
|
||||||
myconf+=" --without-hal"
|
|
||||||
|
|
||||||
# linux capability support so we don't need privileged accounts
|
|
||||||
myconf+=" $(use_with caps capng)"
|
|
||||||
|
|
||||||
## auth stuff
|
|
||||||
myconf+=" $(use_with policykit polkit)"
|
|
||||||
myconf+=" $(use_with sasl)"
|
|
||||||
|
|
||||||
# network bits
|
|
||||||
myconf+=" $(use_with macvtap)"
|
|
||||||
myconf+=" $(use_with pcap libpcap)"
|
|
||||||
myconf+=" $(use_with vepa virtualport)"
|
|
||||||
myconf+=" $(use_with firewalld)"
|
|
||||||
|
|
||||||
## other
|
|
||||||
myconf+=" $(use_enable nls)"
|
|
||||||
|
|
||||||
# user privilege bits fir qemu/kvm
|
|
||||||
if use caps; then
|
|
||||||
myconf+=" --with-qemu-user=qemu"
|
|
||||||
myconf+=" --with-qemu-group=qemu"
|
|
||||||
else
|
|
||||||
myconf+=" --with-qemu-user=root"
|
|
||||||
myconf+=" --with-qemu-group=root"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# audit support
|
|
||||||
myconf+=" $(use_with audit)"
|
|
||||||
|
|
||||||
# wireshark dissector
|
|
||||||
myconf+=" $(use_with wireshark-plugins wireshark-dissector)"
|
|
||||||
|
|
||||||
## stuff we don't yet support
|
|
||||||
myconf+=" --without-netcf"
|
|
||||||
|
|
||||||
# locking support
|
|
||||||
myconf+=" --without-sanlock"
|
|
||||||
|
|
||||||
# systemd unit files
|
|
||||||
myconf+=" $(use_with systemd systemd-daemon)"
|
|
||||||
use systemd && myconf+=" --with-init-script=systemd"
|
|
||||||
|
|
||||||
# this is a nasty trick to work around the problem in bug
|
|
||||||
# #275073. The reason why we don't solve this properly is that
|
|
||||||
# it'll require us to rebuild autotools (and we don't really want
|
|
||||||
# to do that right now). The proper solution has been sent
|
|
||||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
|
||||||
# mime the same functionality with this.
|
|
||||||
case ${CHOST} in
|
|
||||||
*cygwin* | *mingw* )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
ac_cv_prog_WINDRES=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
econf \
|
|
||||||
${myconf} \
|
|
||||||
--disable-static \
|
|
||||||
--disable-werror \
|
|
||||||
--with-remote \
|
|
||||||
--docdir=/usr/share/doc/${PF} \
|
|
||||||
--localstatedir=/var
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# Restore gnulib's config.sub and config.guess
|
|
||||||
# bug #377279
|
|
||||||
(cd .gnulib && git reset --hard > /dev/null)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Explicitly allow parallel build of tests
|
|
||||||
export VIR_TEST_DEBUG=1
|
|
||||||
HOME="${T}" emake check || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake install \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
|
||||||
DOCS_DIR=/usr/share/doc/${PF} \
|
|
||||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
|
||||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
|
||||||
|| die "emake install failed"
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# Remove bogus, empty directories. They are either not used, or
|
|
||||||
# libvirtd is able to create them on demand
|
|
||||||
rm -rf "${D}"/etc/sysconf
|
|
||||||
rm -rf "${D}"/var/cache
|
|
||||||
rm -rf "${D}"/var/run
|
|
||||||
rm -rf "${D}"/var/log
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
use systemd && \
|
|
||||||
systemd_install_serviced "${FILESDIR}"/libvirtd.service.conf libvirtd
|
|
||||||
|
|
||||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
|
||||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
|
||||||
newinitd "${FILESDIR}/virtlockd.init" virtlockd || die
|
|
||||||
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# we only ever want to generate this once
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We really don't want to use or support old PolicyKit cause it
|
|
||||||
# screws with the new polkit integration
|
|
||||||
if has_version sys-auth/policykit; then
|
|
||||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only sysctl files ending in .conf work
|
|
||||||
dodir /etc/sysctl.d
|
|
||||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use policykit; then
|
|
||||||
elog "To allow normal users to connect to libvirtd you must change the"
|
|
||||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
|
|
||||||
if use caps && use qemu; then
|
|
||||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
|
||||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
|
||||||
elog ""
|
|
||||||
elog "The systemd service-file configuration under /etc/sysconfig has"
|
|
||||||
elog "been removed. Please use"
|
|
||||||
elog " /etc/systemd/system/libvirt.d/00gentoo.conf"
|
|
||||||
elog "to control the '--listen' parameter for libvirtd. The configuration"
|
|
||||||
elog "for the libvirt-guests.service is now found under"
|
|
||||||
elog " /etc/libvirt/libvirt-guests.conf"
|
|
||||||
elog "The openrc configuration has not been changed. Thus no action is"
|
|
||||||
elog "required for the openrc service manager."
|
|
||||||
elog ""
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,458 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.10-r6.ebuild,v 1.2 2015/06/20 18:26:49 zlogene Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
|
||||||
|
|
||||||
BACKPORTS="20150524"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
SLOT="0"
|
|
||||||
else
|
|
||||||
# Versions with 4 numbers are stable updates:
|
|
||||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
|
||||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" ${BACKPORTS:+
|
|
||||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
|
||||||
http://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
|
||||||
KEYWORDS="amd64 ~x86"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
|
||||||
HOMEPAGE="http://www.libvirt.org/"
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
|
|
||||||
nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
|
||||||
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \
|
|
||||||
elibc_glibc systemd"
|
|
||||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
|
||||||
lxc? ( caps libvirtd )
|
|
||||||
openvz? ( libvirtd )
|
|
||||||
qemu? ( libvirtd )
|
|
||||||
uml? ( libvirtd )
|
|
||||||
vepa? ( macvtap )
|
|
||||||
virtualbox? ( libvirtd )
|
|
||||||
xen? ( libvirtd )
|
|
||||||
virt-network? ( libvirtd )
|
|
||||||
firewalld? ( virt-network )"
|
|
||||||
|
|
||||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
|
||||||
# non-optional, so put it into RDEPEND.
|
|
||||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
|
||||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
|
||||||
# we must go with the most recent
|
|
||||||
RDEPEND="sys-libs/readline:0=
|
|
||||||
sys-libs/ncurses
|
|
||||||
>=net-misc/curl-7.18.0
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
>=dev-libs/libxml2-2.7.6
|
|
||||||
dev-libs/libnl:3
|
|
||||||
>=net-libs/gnutls-1.0.25
|
|
||||||
net-libs/libssh2
|
|
||||||
sys-apps/dmidecode
|
|
||||||
>=sys-apps/util-linux-2.17
|
|
||||||
sys-devel/gettext
|
|
||||||
>=net-analyzer/netcat6-1.0-r2
|
|
||||||
app-misc/scrub
|
|
||||||
audit? ( sys-process/audit )
|
|
||||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
|
||||||
caps? ( sys-libs/libcap-ng )
|
|
||||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
|
||||||
iscsi? ( sys-block/open-iscsi )
|
|
||||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
|
||||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
|
||||||
nfs? ( net-fs/nfs-utils )
|
|
||||||
numa? (
|
|
||||||
>sys-process/numactl-2.0.2
|
|
||||||
sys-process/numad
|
|
||||||
)
|
|
||||||
openvz? ( sys-kernel/openvz-sources:* )
|
|
||||||
parted? (
|
|
||||||
>=sys-block/parted-1.8[device-mapper]
|
|
||||||
sys-fs/lvm2
|
|
||||||
)
|
|
||||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
|
||||||
policykit? ( >=sys-auth/polkit-0.9 )
|
|
||||||
qemu? (
|
|
||||||
>=app-emulation/qemu-0.13.0
|
|
||||||
dev-libs/yajl
|
|
||||||
!systemd? ( sys-power/pm-utils )
|
|
||||||
)
|
|
||||||
rbd? ( sys-cluster/ceph )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl )
|
|
||||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
|
||||||
systemd? ( sys-apps/systemd )
|
|
||||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
|
||||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
|
||||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
|
||||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
|
||||||
virt-network? ( net-dns/dnsmasq[script]
|
|
||||||
>=net-firewall/iptables-1.4.10[ipv6]
|
|
||||||
net-misc/radvd
|
|
||||||
net-firewall/ebtables
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
firewalld? ( net-firewall/firewalld )
|
|
||||||
)
|
|
||||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
app-text/xhtml1
|
|
||||||
dev-lang/perl
|
|
||||||
dev-libs/libxslt"
|
|
||||||
|
|
||||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
|
||||||
you don't need any extra software. For more complex network modes
|
|
||||||
including but not limited to NATed network, you can enable the
|
|
||||||
'virt-network' USE flag.\n\n
|
|
||||||
If you are using dnsmasq on your system, you will have
|
|
||||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
|
||||||
bind-interfaces\n
|
|
||||||
interface or except-interface\n\n
|
|
||||||
Otherwise you might have issues with your existing DNS server."
|
|
||||||
|
|
||||||
LXC_CONFIG_CHECK="
|
|
||||||
~CGROUPS
|
|
||||||
~CGROUP_FREEZER
|
|
||||||
~CGROUP_DEVICE
|
|
||||||
~CGROUP_CPUACCT
|
|
||||||
~CGROUP_SCHED
|
|
||||||
~CGROUP_PERF
|
|
||||||
~BLK_CGROUP
|
|
||||||
~NET_CLS_CGROUP
|
|
||||||
~CGROUP_NET_PRIO
|
|
||||||
~CPUSETS
|
|
||||||
~RESOURCE_COUNTERS
|
|
||||||
~NAMESPACES
|
|
||||||
~UTS_NS
|
|
||||||
~IPC_NS
|
|
||||||
~PID_NS
|
|
||||||
~NET_NS
|
|
||||||
~USER_NS
|
|
||||||
~DEVPTS_MULTIPLE_INSTANCES
|
|
||||||
~VETH
|
|
||||||
~MACVLAN
|
|
||||||
~POSIX_MQUEUE
|
|
||||||
~SECURITYFS
|
|
||||||
~!GRKERNSEC_CHROOT_MOUNT
|
|
||||||
~!GRKERNSEC_CHROOT_DOUBLE
|
|
||||||
~!GRKERNSEC_CHROOT_PIVOT
|
|
||||||
~!GRKERNSEC_CHROOT_CHMOD
|
|
||||||
~!GRKERNSEC_CHROOT_CAPS
|
|
||||||
"
|
|
||||||
|
|
||||||
VIRTNET_CONFIG_CHECK="
|
|
||||||
~BRIDGE_NF_EBTABLES
|
|
||||||
~BRIDGE_EBT_MARK_T
|
|
||||||
~NETFILTER_ADVANCED
|
|
||||||
~NETFILTER_XT_TARGET_CHECKSUM
|
|
||||||
~NETFILTER_XT_CONNMARK
|
|
||||||
~NETFILTER_XT_MARK
|
|
||||||
"
|
|
||||||
|
|
||||||
BWLMT_CONFIG_CHECK="
|
|
||||||
~BRIDGE_EBT_T_NAT
|
|
||||||
~NET_SCH_HTB
|
|
||||||
~NET_SCH_SFQ
|
|
||||||
~NET_SCH_INGRESS
|
|
||||||
~NET_CLS_FW
|
|
||||||
~NET_CLS_U32
|
|
||||||
~NET_ACT_POLICE
|
|
||||||
"
|
|
||||||
|
|
||||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
|
||||||
|
|
||||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
|
||||||
|
|
||||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup qemu 77
|
|
||||||
enewuser qemu 77 -1 -1 qemu kvm
|
|
||||||
|
|
||||||
# Some people used the masked ebuild which was not adding the qemu
|
|
||||||
# user to the kvm group originally. This results in VMs failing to
|
|
||||||
# start for some users. bug #430808
|
|
||||||
egetent group kvm | grep -q qemu
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
gpasswd -a qemu kvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle specific kernel versions for different features
|
|
||||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
|
||||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
|
||||||
|
|
||||||
CONFIG_CHECK=""
|
|
||||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
|
||||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
|
||||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
|
||||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
|
||||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
|
||||||
# Bandwidth Limiting Support
|
|
||||||
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}"
|
|
||||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
|
||||||
linux-info_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
touch "${S}/.mailmap"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# git checkouts require bootstrapping to create the configure script.
|
|
||||||
# Additionally the submodules must be cloned to the right locations
|
|
||||||
# bug #377279
|
|
||||||
./bootstrap || die "bootstrap failed"
|
|
||||||
(
|
|
||||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
|
||||||
git hash-object bootstrap.conf
|
|
||||||
) >.git-module-status
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-fix-firewalld-configuration.patch
|
|
||||||
[[ -n ${BACKPORTS} ]] && \
|
|
||||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
|
||||||
|
|
||||||
# Tweak the init script
|
|
||||||
local avahi_init=
|
|
||||||
local iscsi_init=
|
|
||||||
local rbd_init=
|
|
||||||
local firewalld_init=
|
|
||||||
cp "${FILESDIR}/libvirtd.init-r14" "${S}/libvirtd.init"
|
|
||||||
use avahi && avahi_init='avahi-daemon'
|
|
||||||
use iscsi && iscsi_init='iscsid'
|
|
||||||
use rbd && rbd_init='ceph'
|
|
||||||
use firewalld && firewalld_init='need firewalld'
|
|
||||||
|
|
||||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
## enable/disable daemon, otherwise client only utils
|
|
||||||
myconf+=" $(use_with libvirtd)"
|
|
||||||
|
|
||||||
## enable/disable the daemon using avahi to find VMs
|
|
||||||
myconf+=" $(use_with avahi)"
|
|
||||||
|
|
||||||
## hypervisors on the local host
|
|
||||||
myconf+=" $(use_with xen) $(use_with xen xen-inotify)"
|
|
||||||
myconf+=" --without-xenapi"
|
|
||||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
|
||||||
myconf+=" --with-libxl"
|
|
||||||
else
|
|
||||||
myconf+=" --without-libxl"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with openvz)"
|
|
||||||
myconf+=" $(use_with lxc)"
|
|
||||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
|
||||||
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/"
|
|
||||||
else
|
|
||||||
myconf+=" $(use_with virtualbox vbox)"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with uml)"
|
|
||||||
myconf+=" $(use_with qemu)"
|
|
||||||
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP
|
|
||||||
myconf+=" $(use_with phyp)"
|
|
||||||
myconf+=" --with-esx"
|
|
||||||
myconf+=" --with-vmware"
|
|
||||||
|
|
||||||
## additional host drivers
|
|
||||||
myconf+=" $(use_with virt-network network)"
|
|
||||||
myconf+=" --with-storage-fs"
|
|
||||||
myconf+=" $(use_with lvm storage-lvm)"
|
|
||||||
myconf+=" $(use_with iscsi storage-iscsi)"
|
|
||||||
myconf+=" $(use_with parted storage-disk)"
|
|
||||||
myconf+=" $(use_with lvm storage-mpath)"
|
|
||||||
myconf+=" $(use_with rbd storage-rbd)"
|
|
||||||
myconf+=" $(use_with numa numactl)"
|
|
||||||
myconf+=" $(use_with numa numad)"
|
|
||||||
myconf+=" $(use_with selinux)"
|
|
||||||
myconf+=" $(use_with fuse)"
|
|
||||||
|
|
||||||
# udev for device support details
|
|
||||||
myconf+=" $(use_with udev)"
|
|
||||||
myconf+=" --without-hal"
|
|
||||||
|
|
||||||
# linux capability support so we don't need privileged accounts
|
|
||||||
myconf+=" $(use_with caps capng)"
|
|
||||||
|
|
||||||
## auth stuff
|
|
||||||
myconf+=" $(use_with policykit polkit)"
|
|
||||||
myconf+=" $(use_with sasl)"
|
|
||||||
|
|
||||||
# network bits
|
|
||||||
myconf+=" $(use_with macvtap)"
|
|
||||||
myconf+=" $(use_with pcap libpcap)"
|
|
||||||
myconf+=" $(use_with vepa virtualport)"
|
|
||||||
myconf+=" $(use_with firewalld)"
|
|
||||||
|
|
||||||
## other
|
|
||||||
myconf+=" $(use_enable nls)"
|
|
||||||
|
|
||||||
# user privilege bits fir qemu/kvm
|
|
||||||
if use caps; then
|
|
||||||
myconf+=" --with-qemu-user=qemu"
|
|
||||||
myconf+=" --with-qemu-group=qemu"
|
|
||||||
else
|
|
||||||
myconf+=" --with-qemu-user=root"
|
|
||||||
myconf+=" --with-qemu-group=root"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# audit support
|
|
||||||
myconf+=" $(use_with audit)"
|
|
||||||
|
|
||||||
# wireshark dissector
|
|
||||||
myconf+=" $(use_with wireshark-plugins wireshark-dissector)"
|
|
||||||
|
|
||||||
## stuff we don't yet support
|
|
||||||
myconf+=" --without-netcf"
|
|
||||||
|
|
||||||
# locking support
|
|
||||||
myconf+=" --without-sanlock"
|
|
||||||
|
|
||||||
# systemd unit files
|
|
||||||
myconf+=" $(use_with systemd systemd-daemon)"
|
|
||||||
use systemd && myconf+=" --with-init-script=systemd"
|
|
||||||
|
|
||||||
# this is a nasty trick to work around the problem in bug
|
|
||||||
# #275073. The reason why we don't solve this properly is that
|
|
||||||
# it'll require us to rebuild autotools (and we don't really want
|
|
||||||
# to do that right now). The proper solution has been sent
|
|
||||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
|
||||||
# mime the same functionality with this.
|
|
||||||
case ${CHOST} in
|
|
||||||
*cygwin* | *mingw* )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
ac_cv_prog_WINDRES=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
econf \
|
|
||||||
${myconf} \
|
|
||||||
--disable-static \
|
|
||||||
--disable-werror \
|
|
||||||
--with-remote \
|
|
||||||
--docdir=/usr/share/doc/${PF} \
|
|
||||||
--localstatedir=/var
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# Restore gnulib's config.sub and config.guess
|
|
||||||
# bug #377279
|
|
||||||
(cd .gnulib && git reset --hard > /dev/null)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Explicitly allow parallel build of tests
|
|
||||||
export VIR_TEST_DEBUG=1
|
|
||||||
HOME="${T}" emake check || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake install \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
|
||||||
DOCS_DIR=/usr/share/doc/${PF} \
|
|
||||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
|
||||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
|
||||||
|| die "emake install failed"
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# Remove bogus, empty directories. They are either not used, or
|
|
||||||
# libvirtd is able to create them on demand
|
|
||||||
rm -rf "${D}"/etc/sysconf
|
|
||||||
rm -rf "${D}"/var/cache
|
|
||||||
rm -rf "${D}"/var/run
|
|
||||||
rm -rf "${D}"/var/log
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
use systemd && systemd_install_serviced \
|
|
||||||
"${FILESDIR}"/libvirtd.service.conf libvirtd.service
|
|
||||||
|
|
||||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
|
||||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
|
||||||
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die
|
|
||||||
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# we only ever want to generate this once
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We really don't want to use or support old PolicyKit cause it
|
|
||||||
# screws with the new polkit integration
|
|
||||||
if has_version sys-auth/policykit; then
|
|
||||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only sysctl files ending in .conf work
|
|
||||||
dodir /etc/sysctl.d
|
|
||||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use policykit; then
|
|
||||||
elog "To allow normal users to connect to libvirtd you must change the"
|
|
||||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
|
|
||||||
if use caps && use qemu; then
|
|
||||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
|
||||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
|
||||||
elog ""
|
|
||||||
elog "The systemd service-file configuration under /etc/sysconfig has"
|
|
||||||
elog "been removed. Please use"
|
|
||||||
elog " /etc/systemd/system/libvirtd.service.d/00gentoo.conf"
|
|
||||||
elog "to control the '--listen' parameter for libvirtd. The configuration"
|
|
||||||
elog "for the libvirt-guests.service is now found under"
|
|
||||||
elog " /etc/libvirt/libvirt-guests.conf"
|
|
||||||
elog "The openrc configuration has not been changed. Thus no action is"
|
|
||||||
elog "required for the openrc service manager."
|
|
||||||
elog ""
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,462 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.12-r2.ebuild,v 1.2 2015/06/20 18:26:49 zlogene Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
|
||||||
|
|
||||||
BACKPORTS="20150524"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
SLOT="0"
|
|
||||||
else
|
|
||||||
# Versions with 4 numbers are stable updates:
|
|
||||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
|
||||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" ${BACKPORTS:+
|
|
||||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
|
||||||
http://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
|
||||||
KEYWORDS="amd64 ~x86"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
|
||||||
HOMEPAGE="http://www.libvirt.org/"
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
IUSE="audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc \
|
|
||||||
+macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
|
||||||
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \
|
|
||||||
elibc_glibc systemd"
|
|
||||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
|
||||||
lxc? ( caps libvirtd )
|
|
||||||
openvz? ( libvirtd )
|
|
||||||
qemu? ( libvirtd )
|
|
||||||
uml? ( libvirtd )
|
|
||||||
vepa? ( macvtap )
|
|
||||||
virtualbox? ( libvirtd )
|
|
||||||
xen? ( libvirtd )
|
|
||||||
virt-network? ( libvirtd )
|
|
||||||
firewalld? ( virt-network )"
|
|
||||||
|
|
||||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
|
||||||
# non-optional, so put it into RDEPEND.
|
|
||||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
|
||||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
|
||||||
# we must go with the most recent
|
|
||||||
RDEPEND="sys-libs/readline:0=
|
|
||||||
sys-libs/ncurses
|
|
||||||
>=net-misc/curl-7.18.0
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
>=dev-libs/libxml2-2.7.6
|
|
||||||
dev-libs/libnl:3
|
|
||||||
>=net-libs/gnutls-1.0.25
|
|
||||||
net-libs/libssh2
|
|
||||||
sys-apps/dmidecode
|
|
||||||
>=sys-apps/util-linux-2.17
|
|
||||||
sys-devel/gettext
|
|
||||||
>=net-analyzer/netcat6-1.0-r2
|
|
||||||
app-misc/scrub
|
|
||||||
audit? ( sys-process/audit )
|
|
||||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
|
||||||
caps? ( sys-libs/libcap-ng )
|
|
||||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
|
||||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
|
||||||
iscsi? ( sys-block/open-iscsi )
|
|
||||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
|
||||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
|
||||||
nfs? ( net-fs/nfs-utils )
|
|
||||||
numa? (
|
|
||||||
>sys-process/numactl-2.0.2
|
|
||||||
sys-process/numad
|
|
||||||
)
|
|
||||||
openvz? ( sys-kernel/openvz-sources:* )
|
|
||||||
parted? (
|
|
||||||
>=sys-block/parted-1.8[device-mapper]
|
|
||||||
sys-fs/lvm2
|
|
||||||
)
|
|
||||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
|
||||||
policykit? ( >=sys-auth/polkit-0.9 )
|
|
||||||
qemu? (
|
|
||||||
>=app-emulation/qemu-0.13.0
|
|
||||||
dev-libs/yajl
|
|
||||||
!systemd? ( sys-power/pm-utils )
|
|
||||||
)
|
|
||||||
rbd? ( sys-cluster/ceph )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl )
|
|
||||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
|
||||||
systemd? ( sys-apps/systemd )
|
|
||||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
|
||||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
|
||||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
|
||||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
|
||||||
virt-network? ( net-dns/dnsmasq[script]
|
|
||||||
>=net-firewall/iptables-1.4.10[ipv6]
|
|
||||||
net-misc/radvd
|
|
||||||
net-firewall/ebtables
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
firewalld? ( net-firewall/firewalld )
|
|
||||||
)
|
|
||||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
app-text/xhtml1
|
|
||||||
dev-lang/perl
|
|
||||||
dev-perl/XML-XPath
|
|
||||||
dev-libs/libxslt"
|
|
||||||
|
|
||||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
|
||||||
you don't need any extra software. For more complex network modes
|
|
||||||
including but not limited to NATed network, you can enable the
|
|
||||||
'virt-network' USE flag.\n\n
|
|
||||||
If you are using dnsmasq on your system, you will have
|
|
||||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
|
||||||
bind-interfaces\n
|
|
||||||
interface or except-interface\n\n
|
|
||||||
Otherwise you might have issues with your existing DNS server."
|
|
||||||
|
|
||||||
LXC_CONFIG_CHECK="
|
|
||||||
~CGROUPS
|
|
||||||
~CGROUP_FREEZER
|
|
||||||
~CGROUP_DEVICE
|
|
||||||
~CGROUP_CPUACCT
|
|
||||||
~CGROUP_SCHED
|
|
||||||
~CGROUP_PERF
|
|
||||||
~BLK_CGROUP
|
|
||||||
~NET_CLS_CGROUP
|
|
||||||
~CGROUP_NET_PRIO
|
|
||||||
~CPUSETS
|
|
||||||
~RESOURCE_COUNTERS
|
|
||||||
~NAMESPACES
|
|
||||||
~UTS_NS
|
|
||||||
~IPC_NS
|
|
||||||
~PID_NS
|
|
||||||
~NET_NS
|
|
||||||
~USER_NS
|
|
||||||
~DEVPTS_MULTIPLE_INSTANCES
|
|
||||||
~VETH
|
|
||||||
~MACVLAN
|
|
||||||
~POSIX_MQUEUE
|
|
||||||
~SECURITYFS
|
|
||||||
~!GRKERNSEC_CHROOT_MOUNT
|
|
||||||
~!GRKERNSEC_CHROOT_DOUBLE
|
|
||||||
~!GRKERNSEC_CHROOT_PIVOT
|
|
||||||
~!GRKERNSEC_CHROOT_CHMOD
|
|
||||||
~!GRKERNSEC_CHROOT_CAPS
|
|
||||||
"
|
|
||||||
|
|
||||||
VIRTNET_CONFIG_CHECK="
|
|
||||||
~BRIDGE_NF_EBTABLES
|
|
||||||
~BRIDGE_EBT_MARK_T
|
|
||||||
~NETFILTER_ADVANCED
|
|
||||||
~NETFILTER_XT_TARGET_CHECKSUM
|
|
||||||
~NETFILTER_XT_CONNMARK
|
|
||||||
~NETFILTER_XT_MARK
|
|
||||||
"
|
|
||||||
|
|
||||||
BWLMT_CONFIG_CHECK="
|
|
||||||
~BRIDGE_EBT_T_NAT
|
|
||||||
~NET_SCH_HTB
|
|
||||||
~NET_SCH_SFQ
|
|
||||||
~NET_SCH_INGRESS
|
|
||||||
~NET_CLS_FW
|
|
||||||
~NET_CLS_U32
|
|
||||||
~NET_ACT_POLICE
|
|
||||||
"
|
|
||||||
|
|
||||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
|
||||||
|
|
||||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
|
||||||
|
|
||||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup qemu 77
|
|
||||||
enewuser qemu 77 -1 -1 qemu kvm
|
|
||||||
|
|
||||||
# Some people used the masked ebuild which was not adding the qemu
|
|
||||||
# user to the kvm group originally. This results in VMs failing to
|
|
||||||
# start for some users. bug #430808
|
|
||||||
egetent group kvm | grep -q qemu
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
gpasswd -a qemu kvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle specific kernel versions for different features
|
|
||||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
|
||||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
|
||||||
|
|
||||||
CONFIG_CHECK=""
|
|
||||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
|
||||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
|
||||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
|
||||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
|
||||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
|
||||||
# Bandwidth Limiting Support
|
|
||||||
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}"
|
|
||||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
|
||||||
linux-info_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
touch "${S}/.mailmap"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# git checkouts require bootstrapping to create the configure script.
|
|
||||||
# Additionally the submodules must be cloned to the right locations
|
|
||||||
# bug #377279
|
|
||||||
./bootstrap || die "bootstrap failed"
|
|
||||||
(
|
|
||||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
|
||||||
git hash-object bootstrap.conf
|
|
||||||
) >.git-module-status
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch
|
|
||||||
|
|
||||||
[[ -n ${BACKPORTS} ]] && \
|
|
||||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
|
||||||
|
|
||||||
# Tweak the init script
|
|
||||||
local avahi_init=
|
|
||||||
local iscsi_init=
|
|
||||||
local rbd_init=
|
|
||||||
local firewalld_init=
|
|
||||||
cp "${FILESDIR}/libvirtd.init-r14" "${S}/libvirtd.init"
|
|
||||||
use avahi && avahi_init='avahi-daemon'
|
|
||||||
use iscsi && iscsi_init='iscsid'
|
|
||||||
use rbd && rbd_init='ceph'
|
|
||||||
use firewalld && firewalld_init='need firewalld'
|
|
||||||
|
|
||||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
## enable/disable daemon, otherwise client only utils
|
|
||||||
myconf+=" $(use_with libvirtd)"
|
|
||||||
|
|
||||||
## enable/disable the daemon using avahi to find VMs
|
|
||||||
myconf+=" $(use_with avahi)"
|
|
||||||
|
|
||||||
## hypervisors on the local host
|
|
||||||
myconf+=" $(use_with xen) $(use_with xen xen-inotify)"
|
|
||||||
myconf+=" --without-xenapi"
|
|
||||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
|
||||||
myconf+=" --with-libxl"
|
|
||||||
else
|
|
||||||
myconf+=" --without-libxl"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with openvz)"
|
|
||||||
myconf+=" $(use_with lxc)"
|
|
||||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
|
||||||
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/"
|
|
||||||
else
|
|
||||||
myconf+=" $(use_with virtualbox vbox)"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with uml)"
|
|
||||||
myconf+=" $(use_with qemu)"
|
|
||||||
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP
|
|
||||||
myconf+=" $(use_with phyp)"
|
|
||||||
myconf+=" --with-esx"
|
|
||||||
myconf+=" --with-vmware"
|
|
||||||
|
|
||||||
## additional host drivers
|
|
||||||
myconf+=" $(use_with virt-network network)"
|
|
||||||
myconf+=" --with-storage-fs"
|
|
||||||
myconf+=" $(use_with lvm storage-lvm)"
|
|
||||||
myconf+=" $(use_with iscsi storage-iscsi)"
|
|
||||||
myconf+=" $(use_with parted storage-disk)"
|
|
||||||
mycond+=" $(use_with glusterfs)"
|
|
||||||
mycond+=" $(use_with glusterfs storage-gluster)"
|
|
||||||
myconf+=" $(use_with lvm storage-mpath)"
|
|
||||||
myconf+=" $(use_with rbd storage-rbd)"
|
|
||||||
myconf+=" $(use_with numa numactl)"
|
|
||||||
myconf+=" $(use_with numa numad)"
|
|
||||||
myconf+=" $(use_with selinux)"
|
|
||||||
myconf+=" $(use_with fuse)"
|
|
||||||
|
|
||||||
# udev for device support details
|
|
||||||
myconf+=" $(use_with udev)"
|
|
||||||
myconf+=" --without-hal"
|
|
||||||
|
|
||||||
# linux capability support so we don't need privileged accounts
|
|
||||||
myconf+=" $(use_with caps capng)"
|
|
||||||
|
|
||||||
## auth stuff
|
|
||||||
myconf+=" $(use_with policykit polkit)"
|
|
||||||
myconf+=" $(use_with sasl)"
|
|
||||||
|
|
||||||
# network bits
|
|
||||||
myconf+=" $(use_with macvtap)"
|
|
||||||
myconf+=" $(use_with pcap libpcap)"
|
|
||||||
myconf+=" $(use_with vepa virtualport)"
|
|
||||||
myconf+=" $(use_with firewalld)"
|
|
||||||
|
|
||||||
## other
|
|
||||||
myconf+=" $(use_enable nls)"
|
|
||||||
|
|
||||||
# user privilege bits fir qemu/kvm
|
|
||||||
if use caps; then
|
|
||||||
myconf+=" --with-qemu-user=qemu"
|
|
||||||
myconf+=" --with-qemu-group=qemu"
|
|
||||||
else
|
|
||||||
myconf+=" --with-qemu-user=root"
|
|
||||||
myconf+=" --with-qemu-group=root"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# audit support
|
|
||||||
myconf+=" $(use_with audit)"
|
|
||||||
|
|
||||||
# wireshark dissector
|
|
||||||
myconf+=" $(use_with wireshark-plugins wireshark-dissector)"
|
|
||||||
|
|
||||||
## stuff we don't yet support
|
|
||||||
myconf+=" --without-netcf"
|
|
||||||
|
|
||||||
# locking support
|
|
||||||
myconf+=" --without-sanlock"
|
|
||||||
|
|
||||||
# systemd unit files
|
|
||||||
myconf+=" $(use_with systemd systemd-daemon)"
|
|
||||||
use systemd && myconf+=" --with-init-script=systemd"
|
|
||||||
|
|
||||||
# this is a nasty trick to work around the problem in bug
|
|
||||||
# #275073. The reason why we don't solve this properly is that
|
|
||||||
# it'll require us to rebuild autotools (and we don't really want
|
|
||||||
# to do that right now). The proper solution has been sent
|
|
||||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
|
||||||
# mime the same functionality with this.
|
|
||||||
case ${CHOST} in
|
|
||||||
*cygwin* | *mingw* )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
ac_cv_prog_WINDRES=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
econf \
|
|
||||||
${myconf} \
|
|
||||||
--disable-static \
|
|
||||||
--disable-werror \
|
|
||||||
--with-remote \
|
|
||||||
--docdir=/usr/share/doc/${PF} \
|
|
||||||
--localstatedir=/var
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# Restore gnulib's config.sub and config.guess
|
|
||||||
# bug #377279
|
|
||||||
(cd .gnulib && git reset --hard > /dev/null)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Explicitly allow parallel build of tests
|
|
||||||
export VIR_TEST_DEBUG=1
|
|
||||||
HOME="${T}" emake check || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake install \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
|
||||||
DOCS_DIR=/usr/share/doc/${PF} \
|
|
||||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
|
||||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
|
||||||
|| die "emake install failed"
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# Remove bogus, empty directories. They are either not used, or
|
|
||||||
# libvirtd is able to create them on demand
|
|
||||||
rm -rf "${D}"/etc/sysconf
|
|
||||||
rm -rf "${D}"/var/cache
|
|
||||||
rm -rf "${D}"/var/run
|
|
||||||
rm -rf "${D}"/var/log
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
use systemd && systemd_install_serviced \
|
|
||||||
"${FILESDIR}"/libvirtd.service.conf libvirtd.service
|
|
||||||
|
|
||||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
|
||||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
|
||||||
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die
|
|
||||||
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# we only ever want to generate this once
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We really don't want to use or support old PolicyKit cause it
|
|
||||||
# screws with the new polkit integration
|
|
||||||
if has_version sys-auth/policykit; then
|
|
||||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only sysctl files ending in .conf work
|
|
||||||
dodir /etc/sysctl.d
|
|
||||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use policykit; then
|
|
||||||
elog "To allow normal users to connect to libvirtd you must change the"
|
|
||||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
|
|
||||||
if use caps && use qemu; then
|
|
||||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
|
||||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
|
||||||
elog ""
|
|
||||||
elog "The systemd service-file configuration under /etc/sysconfig has"
|
|
||||||
elog "been removed. Please use"
|
|
||||||
elog " /etc/systemd/system/libvirtd.service.d/00gentoo.conf"
|
|
||||||
elog "to control the '--listen' parameter for libvirtd. The configuration"
|
|
||||||
elog "for the libvirt-guests.service is now found under"
|
|
||||||
elog " /etc/libvirt/libvirt-guests.conf"
|
|
||||||
elog "The openrc configuration has not been changed. Thus no action is"
|
|
||||||
elog "required for the openrc service manager."
|
|
||||||
elog ""
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,462 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.12.ebuild,v 1.4 2015/05/24 19:32:06 tamiko Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
|
||||||
|
|
||||||
BACKPORTS=""
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
SLOT="0"
|
|
||||||
else
|
|
||||||
# Versions with 4 numbers are stable updates:
|
|
||||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
|
||||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" ${BACKPORTS:+
|
|
||||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
|
||||||
http://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
|
||||||
HOMEPAGE="http://www.libvirt.org/"
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
IUSE="audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc \
|
|
||||||
+macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
|
||||||
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \
|
|
||||||
elibc_glibc systemd"
|
|
||||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
|
||||||
lxc? ( caps libvirtd )
|
|
||||||
openvz? ( libvirtd )
|
|
||||||
qemu? ( libvirtd )
|
|
||||||
uml? ( libvirtd )
|
|
||||||
vepa? ( macvtap )
|
|
||||||
virtualbox? ( libvirtd )
|
|
||||||
xen? ( libvirtd )
|
|
||||||
virt-network? ( libvirtd )
|
|
||||||
firewalld? ( virt-network )"
|
|
||||||
|
|
||||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
|
||||||
# non-optional, so put it into RDEPEND.
|
|
||||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
|
||||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
|
||||||
# we must go with the most recent
|
|
||||||
RDEPEND="sys-libs/readline:=
|
|
||||||
sys-libs/ncurses
|
|
||||||
>=net-misc/curl-7.18.0
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
>=dev-libs/libxml2-2.7.6
|
|
||||||
dev-libs/libnl:3
|
|
||||||
>=net-libs/gnutls-1.0.25
|
|
||||||
net-libs/libssh2
|
|
||||||
sys-apps/dmidecode
|
|
||||||
>=sys-apps/util-linux-2.17
|
|
||||||
sys-devel/gettext
|
|
||||||
>=net-analyzer/netcat6-1.0-r2
|
|
||||||
app-misc/scrub
|
|
||||||
audit? ( sys-process/audit )
|
|
||||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
|
||||||
caps? ( sys-libs/libcap-ng )
|
|
||||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
|
||||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
|
||||||
iscsi? ( sys-block/open-iscsi )
|
|
||||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
|
||||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
|
||||||
nfs? ( net-fs/nfs-utils )
|
|
||||||
numa? (
|
|
||||||
>sys-process/numactl-2.0.2
|
|
||||||
sys-process/numad
|
|
||||||
)
|
|
||||||
openvz? ( sys-kernel/openvz-sources:* )
|
|
||||||
parted? (
|
|
||||||
>=sys-block/parted-1.8[device-mapper]
|
|
||||||
sys-fs/lvm2
|
|
||||||
)
|
|
||||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
|
||||||
policykit? ( >=sys-auth/polkit-0.9 )
|
|
||||||
qemu? (
|
|
||||||
>=app-emulation/qemu-0.13.0
|
|
||||||
dev-libs/yajl
|
|
||||||
!systemd? ( sys-power/pm-utils )
|
|
||||||
)
|
|
||||||
rbd? ( sys-cluster/ceph )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl )
|
|
||||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
|
||||||
systemd? ( sys-apps/systemd )
|
|
||||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
|
||||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
|
||||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
|
||||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
|
||||||
virt-network? ( net-dns/dnsmasq[script]
|
|
||||||
>=net-firewall/iptables-1.4.10[ipv6]
|
|
||||||
net-misc/radvd
|
|
||||||
net-firewall/ebtables
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
firewalld? ( net-firewall/firewalld )
|
|
||||||
)
|
|
||||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
app-text/xhtml1
|
|
||||||
dev-lang/perl
|
|
||||||
dev-perl/XML-XPath
|
|
||||||
dev-libs/libxslt"
|
|
||||||
|
|
||||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
|
||||||
you don't need any extra software. For more complex network modes
|
|
||||||
including but not limited to NATed network, you can enable the
|
|
||||||
'virt-network' USE flag.\n\n
|
|
||||||
If you are using dnsmasq on your system, you will have
|
|
||||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
|
||||||
bind-interfaces\n
|
|
||||||
interface or except-interface\n\n
|
|
||||||
Otherwise you might have issues with your existing DNS server."
|
|
||||||
|
|
||||||
LXC_CONFIG_CHECK="
|
|
||||||
~CGROUPS
|
|
||||||
~CGROUP_FREEZER
|
|
||||||
~CGROUP_DEVICE
|
|
||||||
~CGROUP_CPUACCT
|
|
||||||
~CGROUP_SCHED
|
|
||||||
~CGROUP_PERF
|
|
||||||
~BLK_CGROUP
|
|
||||||
~NET_CLS_CGROUP
|
|
||||||
~CGROUP_NET_PRIO
|
|
||||||
~CPUSETS
|
|
||||||
~RESOURCE_COUNTERS
|
|
||||||
~NAMESPACES
|
|
||||||
~UTS_NS
|
|
||||||
~IPC_NS
|
|
||||||
~PID_NS
|
|
||||||
~NET_NS
|
|
||||||
~USER_NS
|
|
||||||
~DEVPTS_MULTIPLE_INSTANCES
|
|
||||||
~VETH
|
|
||||||
~MACVLAN
|
|
||||||
~POSIX_MQUEUE
|
|
||||||
~SECURITYFS
|
|
||||||
~!GRKERNSEC_CHROOT_MOUNT
|
|
||||||
~!GRKERNSEC_CHROOT_DOUBLE
|
|
||||||
~!GRKERNSEC_CHROOT_PIVOT
|
|
||||||
~!GRKERNSEC_CHROOT_CHMOD
|
|
||||||
~!GRKERNSEC_CHROOT_CAPS
|
|
||||||
"
|
|
||||||
|
|
||||||
VIRTNET_CONFIG_CHECK="
|
|
||||||
~BRIDGE_NF_EBTABLES
|
|
||||||
~BRIDGE_EBT_MARK_T
|
|
||||||
~NETFILTER_ADVANCED
|
|
||||||
~NETFILTER_XT_TARGET_CHECKSUM
|
|
||||||
~NETFILTER_XT_CONNMARK
|
|
||||||
~NETFILTER_XT_MARK
|
|
||||||
"
|
|
||||||
|
|
||||||
BWLMT_CONFIG_CHECK="
|
|
||||||
~BRIDGE_EBT_T_NAT
|
|
||||||
~NET_SCH_HTB
|
|
||||||
~NET_SCH_SFQ
|
|
||||||
~NET_SCH_INGRESS
|
|
||||||
~NET_CLS_FW
|
|
||||||
~NET_CLS_U32
|
|
||||||
~NET_ACT_POLICE
|
|
||||||
"
|
|
||||||
|
|
||||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
|
||||||
|
|
||||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
|
||||||
|
|
||||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup qemu 77
|
|
||||||
enewuser qemu 77 -1 -1 qemu kvm
|
|
||||||
|
|
||||||
# Some people used the masked ebuild which was not adding the qemu
|
|
||||||
# user to the kvm group originally. This results in VMs failing to
|
|
||||||
# start for some users. bug #430808
|
|
||||||
egetent group kvm | grep -q qemu
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
gpasswd -a qemu kvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle specific kernel versions for different features
|
|
||||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
|
||||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
|
||||||
|
|
||||||
CONFIG_CHECK=""
|
|
||||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
|
||||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
|
||||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
|
||||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
|
||||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
|
||||||
# Bandwidth Limiting Support
|
|
||||||
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}"
|
|
||||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
|
||||||
linux-info_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
touch "${S}/.mailmap"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# git checkouts require bootstrapping to create the configure script.
|
|
||||||
# Additionally the submodules must be cloned to the right locations
|
|
||||||
# bug #377279
|
|
||||||
./bootstrap || die "bootstrap failed"
|
|
||||||
(
|
|
||||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
|
||||||
git hash-object bootstrap.conf
|
|
||||||
) >.git-module-status
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch
|
|
||||||
|
|
||||||
[[ -n ${BACKPORTS} ]] && \
|
|
||||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
|
||||||
|
|
||||||
# Tweak the init script
|
|
||||||
local avahi_init=
|
|
||||||
local iscsi_init=
|
|
||||||
local rbd_init=
|
|
||||||
local firewalld_init=
|
|
||||||
cp "${FILESDIR}/libvirtd.init-r14" "${S}/libvirtd.init"
|
|
||||||
use avahi && avahi_init='avahi-daemon'
|
|
||||||
use iscsi && iscsi_init='iscsid'
|
|
||||||
use rbd && rbd_init='ceph'
|
|
||||||
use firewalld && firewalld_init='need firewalld'
|
|
||||||
|
|
||||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
## enable/disable daemon, otherwise client only utils
|
|
||||||
myconf+=" $(use_with libvirtd)"
|
|
||||||
|
|
||||||
## enable/disable the daemon using avahi to find VMs
|
|
||||||
myconf+=" $(use_with avahi)"
|
|
||||||
|
|
||||||
## hypervisors on the local host
|
|
||||||
myconf+=" $(use_with xen) $(use_with xen xen-inotify)"
|
|
||||||
myconf+=" --without-xenapi"
|
|
||||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
|
||||||
myconf+=" --with-libxl"
|
|
||||||
else
|
|
||||||
myconf+=" --without-libxl"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with openvz)"
|
|
||||||
myconf+=" $(use_with lxc)"
|
|
||||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
|
||||||
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/"
|
|
||||||
else
|
|
||||||
myconf+=" $(use_with virtualbox vbox)"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with uml)"
|
|
||||||
myconf+=" $(use_with qemu)"
|
|
||||||
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP
|
|
||||||
myconf+=" $(use_with phyp)"
|
|
||||||
myconf+=" --with-esx"
|
|
||||||
myconf+=" --with-vmware"
|
|
||||||
|
|
||||||
## additional host drivers
|
|
||||||
myconf+=" $(use_with virt-network network)"
|
|
||||||
myconf+=" --with-storage-fs"
|
|
||||||
myconf+=" $(use_with lvm storage-lvm)"
|
|
||||||
myconf+=" $(use_with iscsi storage-iscsi)"
|
|
||||||
myconf+=" $(use_with parted storage-disk)"
|
|
||||||
mycond+=" $(use_with glusterfs)"
|
|
||||||
mycond+=" $(use_with glusterfs storage-gluster)"
|
|
||||||
myconf+=" $(use_with lvm storage-mpath)"
|
|
||||||
myconf+=" $(use_with rbd storage-rbd)"
|
|
||||||
myconf+=" $(use_with numa numactl)"
|
|
||||||
myconf+=" $(use_with numa numad)"
|
|
||||||
myconf+=" $(use_with selinux)"
|
|
||||||
myconf+=" $(use_with fuse)"
|
|
||||||
|
|
||||||
# udev for device support details
|
|
||||||
myconf+=" $(use_with udev)"
|
|
||||||
myconf+=" --without-hal"
|
|
||||||
|
|
||||||
# linux capability support so we don't need privileged accounts
|
|
||||||
myconf+=" $(use_with caps capng)"
|
|
||||||
|
|
||||||
## auth stuff
|
|
||||||
myconf+=" $(use_with policykit polkit)"
|
|
||||||
myconf+=" $(use_with sasl)"
|
|
||||||
|
|
||||||
# network bits
|
|
||||||
myconf+=" $(use_with macvtap)"
|
|
||||||
myconf+=" $(use_with pcap libpcap)"
|
|
||||||
myconf+=" $(use_with vepa virtualport)"
|
|
||||||
myconf+=" $(use_with firewalld)"
|
|
||||||
|
|
||||||
## other
|
|
||||||
myconf+=" $(use_enable nls)"
|
|
||||||
|
|
||||||
# user privilege bits fir qemu/kvm
|
|
||||||
if use caps; then
|
|
||||||
myconf+=" --with-qemu-user=qemu"
|
|
||||||
myconf+=" --with-qemu-group=qemu"
|
|
||||||
else
|
|
||||||
myconf+=" --with-qemu-user=root"
|
|
||||||
myconf+=" --with-qemu-group=root"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# audit support
|
|
||||||
myconf+=" $(use_with audit)"
|
|
||||||
|
|
||||||
# wireshark dissector
|
|
||||||
myconf+=" $(use_with wireshark-plugins wireshark-dissector)"
|
|
||||||
|
|
||||||
## stuff we don't yet support
|
|
||||||
myconf+=" --without-netcf"
|
|
||||||
|
|
||||||
# locking support
|
|
||||||
myconf+=" --without-sanlock"
|
|
||||||
|
|
||||||
# systemd unit files
|
|
||||||
myconf+=" $(use_with systemd systemd-daemon)"
|
|
||||||
use systemd && myconf+=" --with-init-script=systemd"
|
|
||||||
|
|
||||||
# this is a nasty trick to work around the problem in bug
|
|
||||||
# #275073. The reason why we don't solve this properly is that
|
|
||||||
# it'll require us to rebuild autotools (and we don't really want
|
|
||||||
# to do that right now). The proper solution has been sent
|
|
||||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
|
||||||
# mime the same functionality with this.
|
|
||||||
case ${CHOST} in
|
|
||||||
*cygwin* | *mingw* )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
ac_cv_prog_WINDRES=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
econf \
|
|
||||||
${myconf} \
|
|
||||||
--disable-static \
|
|
||||||
--disable-werror \
|
|
||||||
--with-remote \
|
|
||||||
--docdir=/usr/share/doc/${PF} \
|
|
||||||
--localstatedir=/var
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# Restore gnulib's config.sub and config.guess
|
|
||||||
# bug #377279
|
|
||||||
(cd .gnulib && git reset --hard > /dev/null)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Explicitly allow parallel build of tests
|
|
||||||
export VIR_TEST_DEBUG=1
|
|
||||||
HOME="${T}" emake check || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake install \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
|
||||||
DOCS_DIR=/usr/share/doc/${PF} \
|
|
||||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
|
||||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
|
||||||
|| die "emake install failed"
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# Remove bogus, empty directories. They are either not used, or
|
|
||||||
# libvirtd is able to create them on demand
|
|
||||||
rm -rf "${D}"/etc/sysconf
|
|
||||||
rm -rf "${D}"/var/cache
|
|
||||||
rm -rf "${D}"/var/run
|
|
||||||
rm -rf "${D}"/var/log
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
use systemd && \
|
|
||||||
systemd_install_serviced "${FILESDIR}"/libvirtd.service.conf libvirtd
|
|
||||||
|
|
||||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
|
||||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
|
||||||
newinitd "${FILESDIR}/virtlockd.init" virtlockd || die
|
|
||||||
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# we only ever want to generate this once
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We really don't want to use or support old PolicyKit cause it
|
|
||||||
# screws with the new polkit integration
|
|
||||||
if has_version sys-auth/policykit; then
|
|
||||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only sysctl files ending in .conf work
|
|
||||||
dodir /etc/sysctl.d
|
|
||||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use policykit; then
|
|
||||||
elog "To allow normal users to connect to libvirtd you must change the"
|
|
||||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
|
|
||||||
if use caps && use qemu; then
|
|
||||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
|
||||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
|
||||||
elog ""
|
|
||||||
elog "The systemd service-file configuration under /etc/sysconfig has"
|
|
||||||
elog "been removed. Please use"
|
|
||||||
elog " /etc/systemd/system/libvirt.d/00gentoo.conf"
|
|
||||||
elog "to control the '--listen' parameter for libvirtd. The configuration"
|
|
||||||
elog "for the libvirt-guests.service is now found under"
|
|
||||||
elog " /etc/libvirt/libvirt-guests.conf"
|
|
||||||
elog "The openrc configuration has not been changed. Thus no action is"
|
|
||||||
elog "required for the openrc service manager."
|
|
||||||
elog ""
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,465 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.14-r2.ebuild,v 1.6 2015/05/24 19:32:06 tamiko Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
|
||||||
|
|
||||||
BACKPORTS=""
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
SLOT="0"
|
|
||||||
else
|
|
||||||
# Versions with 4 numbers are stable updates:
|
|
||||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
|
||||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" ${BACKPORTS:+
|
|
||||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
|
||||||
http://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
|
||||||
HOMEPAGE="http://www.libvirt.org/"
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
# TODO: Reenable IUSE wireshark-plugins
|
|
||||||
IUSE="audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc \
|
|
||||||
+macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
|
||||||
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \
|
|
||||||
elibc_glibc systemd"
|
|
||||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
|
||||||
lxc? ( caps libvirtd )
|
|
||||||
openvz? ( libvirtd )
|
|
||||||
qemu? ( libvirtd )
|
|
||||||
uml? ( libvirtd )
|
|
||||||
vepa? ( macvtap )
|
|
||||||
virtualbox? ( libvirtd )
|
|
||||||
xen? ( libvirtd )
|
|
||||||
virt-network? ( libvirtd )
|
|
||||||
firewalld? ( virt-network )"
|
|
||||||
|
|
||||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
|
||||||
# non-optional, so put it into RDEPEND.
|
|
||||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
|
||||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
|
||||||
# we must go with the most recent
|
|
||||||
RDEPEND="sys-libs/readline:0
|
|
||||||
sys-libs/ncurses
|
|
||||||
>=net-misc/curl-7.18.0
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
>=dev-libs/libxml2-2.7.6
|
|
||||||
dev-libs/libnl:3
|
|
||||||
>=net-libs/gnutls-1.0.25
|
|
||||||
net-libs/libssh2
|
|
||||||
sys-apps/dmidecode
|
|
||||||
>=sys-apps/util-linux-2.17
|
|
||||||
sys-devel/gettext
|
|
||||||
>=net-analyzer/netcat6-1.0-r2
|
|
||||||
app-misc/scrub
|
|
||||||
audit? ( sys-process/audit )
|
|
||||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
|
||||||
caps? ( sys-libs/libcap-ng )
|
|
||||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
|
||||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
|
||||||
iscsi? ( sys-block/open-iscsi )
|
|
||||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
|
||||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
|
||||||
nfs? ( net-fs/nfs-utils )
|
|
||||||
numa? (
|
|
||||||
>sys-process/numactl-2.0.2
|
|
||||||
sys-process/numad
|
|
||||||
)
|
|
||||||
openvz? ( sys-kernel/openvz-sources:* )
|
|
||||||
parted? (
|
|
||||||
>=sys-block/parted-1.8[device-mapper]
|
|
||||||
sys-fs/lvm2
|
|
||||||
)
|
|
||||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
|
||||||
policykit? ( >=sys-auth/polkit-0.9 )
|
|
||||||
qemu? (
|
|
||||||
>=app-emulation/qemu-0.13.0
|
|
||||||
dev-libs/yajl
|
|
||||||
!systemd? ( sys-power/pm-utils )
|
|
||||||
)
|
|
||||||
rbd? ( sys-cluster/ceph )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl )
|
|
||||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
|
||||||
systemd? ( sys-apps/systemd )
|
|
||||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
|
||||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
|
||||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
|
||||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
|
||||||
virt-network? ( net-dns/dnsmasq[script]
|
|
||||||
>=net-firewall/iptables-1.4.10[ipv6]
|
|
||||||
net-misc/radvd
|
|
||||||
net-firewall/ebtables
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
firewalld? ( net-firewall/firewalld )
|
|
||||||
)
|
|
||||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
app-text/xhtml1
|
|
||||||
dev-lang/perl
|
|
||||||
dev-perl/XML-XPath
|
|
||||||
dev-libs/libxslt"
|
|
||||||
|
|
||||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
|
||||||
you don't need any extra software. For more complex network modes
|
|
||||||
including but not limited to NATed network, you can enable the
|
|
||||||
'virt-network' USE flag.\n\n
|
|
||||||
If you are using dnsmasq on your system, you will have
|
|
||||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
|
||||||
bind-interfaces\n
|
|
||||||
interface or except-interface\n\n
|
|
||||||
Otherwise you might have issues with your existing DNS server."
|
|
||||||
|
|
||||||
LXC_CONFIG_CHECK="
|
|
||||||
~CGROUPS
|
|
||||||
~CGROUP_FREEZER
|
|
||||||
~CGROUP_DEVICE
|
|
||||||
~CGROUP_CPUACCT
|
|
||||||
~CGROUP_SCHED
|
|
||||||
~CGROUP_PERF
|
|
||||||
~BLK_CGROUP
|
|
||||||
~NET_CLS_CGROUP
|
|
||||||
~CGROUP_NET_PRIO
|
|
||||||
~CPUSETS
|
|
||||||
~RESOURCE_COUNTERS
|
|
||||||
~NAMESPACES
|
|
||||||
~UTS_NS
|
|
||||||
~IPC_NS
|
|
||||||
~PID_NS
|
|
||||||
~NET_NS
|
|
||||||
~USER_NS
|
|
||||||
~DEVPTS_MULTIPLE_INSTANCES
|
|
||||||
~VETH
|
|
||||||
~MACVLAN
|
|
||||||
~POSIX_MQUEUE
|
|
||||||
~SECURITYFS
|
|
||||||
~!GRKERNSEC_CHROOT_MOUNT
|
|
||||||
~!GRKERNSEC_CHROOT_DOUBLE
|
|
||||||
~!GRKERNSEC_CHROOT_PIVOT
|
|
||||||
~!GRKERNSEC_CHROOT_CHMOD
|
|
||||||
~!GRKERNSEC_CHROOT_CAPS
|
|
||||||
"
|
|
||||||
|
|
||||||
VIRTNET_CONFIG_CHECK="
|
|
||||||
~BRIDGE_NF_EBTABLES
|
|
||||||
~BRIDGE_EBT_MARK_T
|
|
||||||
~NETFILTER_ADVANCED
|
|
||||||
~NETFILTER_XT_TARGET_CHECKSUM
|
|
||||||
~NETFILTER_XT_CONNMARK
|
|
||||||
~NETFILTER_XT_MARK
|
|
||||||
"
|
|
||||||
|
|
||||||
BWLMT_CONFIG_CHECK="
|
|
||||||
~BRIDGE_EBT_T_NAT
|
|
||||||
~NET_SCH_HTB
|
|
||||||
~NET_SCH_SFQ
|
|
||||||
~NET_SCH_INGRESS
|
|
||||||
~NET_CLS_FW
|
|
||||||
~NET_CLS_U32
|
|
||||||
~NET_ACT_POLICE
|
|
||||||
"
|
|
||||||
|
|
||||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
|
||||||
|
|
||||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
|
||||||
|
|
||||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup qemu 77
|
|
||||||
enewuser qemu 77 -1 -1 qemu kvm
|
|
||||||
|
|
||||||
# Some people used the masked ebuild which was not adding the qemu
|
|
||||||
# user to the kvm group originally. This results in VMs failing to
|
|
||||||
# start for some users. bug #430808
|
|
||||||
egetent group kvm | grep -q qemu
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
gpasswd -a qemu kvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle specific kernel versions for different features
|
|
||||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
|
||||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
|
||||||
|
|
||||||
CONFIG_CHECK=""
|
|
||||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
|
||||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
|
||||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
|
||||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
|
||||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
|
||||||
# Bandwidth Limiting Support
|
|
||||||
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}"
|
|
||||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
|
||||||
linux-info_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
touch "${S}/.mailmap"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# git checkouts require bootstrapping to create the configure script.
|
|
||||||
# Additionally the submodules must be cloned to the right locations
|
|
||||||
# bug #377279
|
|
||||||
./bootstrap || die "bootstrap failed"
|
|
||||||
(
|
|
||||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
|
||||||
git hash-object bootstrap.conf
|
|
||||||
) >.git-module-status
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch
|
|
||||||
|
|
||||||
[[ -n ${BACKPORTS} ]] && \
|
|
||||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
|
||||||
|
|
||||||
# Tweak the init script
|
|
||||||
local avahi_init=
|
|
||||||
local iscsi_init=
|
|
||||||
local rbd_init=
|
|
||||||
local firewalld_init=
|
|
||||||
cp "${FILESDIR}/libvirtd.init-r14" "${S}/libvirtd.init"
|
|
||||||
use avahi && avahi_init='avahi-daemon'
|
|
||||||
use iscsi && iscsi_init='iscsid'
|
|
||||||
use rbd && rbd_init='ceph'
|
|
||||||
use firewalld && firewalld_init='need firewalld'
|
|
||||||
|
|
||||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
## enable/disable daemon, otherwise client only utils
|
|
||||||
myconf+=" $(use_with libvirtd)"
|
|
||||||
|
|
||||||
## enable/disable the daemon using avahi to find VMs
|
|
||||||
myconf+=" $(use_with avahi)"
|
|
||||||
|
|
||||||
## hypervisors on the local host
|
|
||||||
myconf+=" $(use_with xen) $(use_with xen xen-inotify)"
|
|
||||||
myconf+=" --without-xenapi"
|
|
||||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
|
||||||
myconf+=" --with-libxl"
|
|
||||||
else
|
|
||||||
myconf+=" --without-libxl"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with openvz)"
|
|
||||||
myconf+=" $(use_with lxc)"
|
|
||||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
|
||||||
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/"
|
|
||||||
else
|
|
||||||
myconf+=" $(use_with virtualbox vbox)"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with uml)"
|
|
||||||
myconf+=" $(use_with qemu)"
|
|
||||||
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP
|
|
||||||
myconf+=" $(use_with phyp)"
|
|
||||||
myconf+=" --with-esx"
|
|
||||||
myconf+=" --with-vmware"
|
|
||||||
|
|
||||||
## additional host drivers
|
|
||||||
myconf+=" $(use_with virt-network network)"
|
|
||||||
myconf+=" --with-storage-fs"
|
|
||||||
myconf+=" $(use_with lvm storage-lvm)"
|
|
||||||
myconf+=" $(use_with iscsi storage-iscsi)"
|
|
||||||
myconf+=" $(use_with parted storage-disk)"
|
|
||||||
mycond+=" $(use_with glusterfs)"
|
|
||||||
mycond+=" $(use_with glusterfs storage-gluster)"
|
|
||||||
myconf+=" $(use_with lvm storage-mpath)"
|
|
||||||
myconf+=" $(use_with rbd storage-rbd)"
|
|
||||||
myconf+=" $(use_with numa numactl)"
|
|
||||||
myconf+=" $(use_with numa numad)"
|
|
||||||
myconf+=" $(use_with selinux)"
|
|
||||||
myconf+=" $(use_with fuse)"
|
|
||||||
|
|
||||||
# udev for device support details
|
|
||||||
myconf+=" $(use_with udev)"
|
|
||||||
myconf+=" --without-hal"
|
|
||||||
|
|
||||||
# linux capability support so we don't need privileged accounts
|
|
||||||
myconf+=" $(use_with caps capng)"
|
|
||||||
|
|
||||||
## auth stuff
|
|
||||||
myconf+=" $(use_with policykit polkit)"
|
|
||||||
myconf+=" $(use_with sasl)"
|
|
||||||
|
|
||||||
# network bits
|
|
||||||
myconf+=" $(use_with macvtap)"
|
|
||||||
myconf+=" $(use_with pcap libpcap)"
|
|
||||||
myconf+=" $(use_with vepa virtualport)"
|
|
||||||
myconf+=" $(use_with firewalld)"
|
|
||||||
|
|
||||||
## other
|
|
||||||
myconf+=" $(use_enable nls)"
|
|
||||||
|
|
||||||
# user privilege bits fir qemu/kvm
|
|
||||||
if use caps; then
|
|
||||||
myconf+=" --with-qemu-user=qemu"
|
|
||||||
myconf+=" --with-qemu-group=qemu"
|
|
||||||
else
|
|
||||||
myconf+=" --with-qemu-user=root"
|
|
||||||
myconf+=" --with-qemu-group=root"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# audit support
|
|
||||||
myconf+=" $(use_with audit)"
|
|
||||||
|
|
||||||
# wireshark dissector
|
|
||||||
myconf+=" $(use_with wireshark-plugins wireshark-dissector)"
|
|
||||||
|
|
||||||
## stuff we don't yet support
|
|
||||||
myconf+=" --without-netcf"
|
|
||||||
|
|
||||||
# locking support
|
|
||||||
myconf+=" --without-sanlock"
|
|
||||||
|
|
||||||
# systemd unit files
|
|
||||||
myconf+=" $(use_with systemd systemd-daemon)"
|
|
||||||
use systemd && myconf+=" --with-init-script=systemd"
|
|
||||||
|
|
||||||
# this is a nasty trick to work around the problem in bug
|
|
||||||
# #275073. The reason why we don't solve this properly is that
|
|
||||||
# it'll require us to rebuild autotools (and we don't really want
|
|
||||||
# to do that right now). The proper solution has been sent
|
|
||||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
|
||||||
# mime the same functionality with this.
|
|
||||||
case ${CHOST} in
|
|
||||||
*cygwin* | *mingw* )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
ac_cv_prog_WINDRES=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
econf \
|
|
||||||
${myconf} \
|
|
||||||
--disable-static \
|
|
||||||
--disable-werror \
|
|
||||||
--with-remote \
|
|
||||||
--docdir=/usr/share/doc/${PF} \
|
|
||||||
--localstatedir=/var
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# Restore gnulib's config.sub and config.guess
|
|
||||||
# bug #377279
|
|
||||||
(cd .gnulib && git reset --hard > /dev/null)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Explicitly allow parallel build of tests
|
|
||||||
export VIR_TEST_DEBUG=1
|
|
||||||
HOME="${T}" emake check || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake install \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
|
||||||
DOCS_DIR=/usr/share/doc/${PF} \
|
|
||||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
|
||||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
|
||||||
|| die "emake install failed"
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# Remove bogus, empty directories. They are either not used, or
|
|
||||||
# libvirtd is able to create them on demand
|
|
||||||
rm -rf "${D}"/etc/sysconf
|
|
||||||
rm -rf "${D}"/var/cache
|
|
||||||
rm -rf "${D}"/var/run
|
|
||||||
rm -rf "${D}"/var/log
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
use systemd && systemd_install_serviced \
|
|
||||||
"${FILESDIR}"/libvirtd.service.conf libvirtd.service
|
|
||||||
|
|
||||||
systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
|
|
||||||
|
|
||||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
|
||||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
|
||||||
newinitd "${FILESDIR}/virtlockd.init" virtlockd || die
|
|
||||||
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# we only ever want to generate this once
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We really don't want to use or support old PolicyKit cause it
|
|
||||||
# screws with the new polkit integration
|
|
||||||
if has_version sys-auth/policykit; then
|
|
||||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only sysctl files ending in .conf work
|
|
||||||
dodir /etc/sysctl.d
|
|
||||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use policykit; then
|
|
||||||
elog "To allow normal users to connect to libvirtd you must change the"
|
|
||||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
|
|
||||||
if use caps && use qemu; then
|
|
||||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
|
||||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
|
||||||
elog ""
|
|
||||||
elog "The systemd service-file configuration under /etc/sysconfig has"
|
|
||||||
elog "been removed. Please use"
|
|
||||||
elog " /etc/systemd/system/libvirtd.service.d/00gentoo.conf"
|
|
||||||
elog "to control the '--listen' parameter for libvirtd. The configuration"
|
|
||||||
elog "for the libvirt-guests.service is now found under"
|
|
||||||
elog " /etc/libvirt/libvirt-guests.conf"
|
|
||||||
elog "The openrc configuration has not been changed. Thus no action is"
|
|
||||||
elog "required for the openrc service manager."
|
|
||||||
elog ""
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,465 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.14-r3.ebuild,v 1.2 2015/06/20 18:26:49 zlogene Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
|
||||||
|
|
||||||
BACKPORTS="20150524"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
SLOT="0"
|
|
||||||
else
|
|
||||||
# Versions with 4 numbers are stable updates:
|
|
||||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
|
||||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" ${BACKPORTS:+
|
|
||||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
|
||||||
http://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
|
||||||
KEYWORDS="amd64 ~x86"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
|
||||||
HOMEPAGE="http://www.libvirt.org/"
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
# TODO: Reenable IUSE wireshark-plugins
|
|
||||||
IUSE="audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc \
|
|
||||||
+macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
|
||||||
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \
|
|
||||||
elibc_glibc systemd"
|
|
||||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
|
||||||
lxc? ( caps libvirtd )
|
|
||||||
openvz? ( libvirtd )
|
|
||||||
qemu? ( libvirtd )
|
|
||||||
uml? ( libvirtd )
|
|
||||||
vepa? ( macvtap )
|
|
||||||
virtualbox? ( libvirtd )
|
|
||||||
xen? ( libvirtd )
|
|
||||||
virt-network? ( libvirtd )
|
|
||||||
firewalld? ( virt-network )"
|
|
||||||
|
|
||||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
|
||||||
# non-optional, so put it into RDEPEND.
|
|
||||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
|
||||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
|
||||||
# we must go with the most recent
|
|
||||||
RDEPEND="sys-libs/readline:0
|
|
||||||
sys-libs/ncurses
|
|
||||||
>=net-misc/curl-7.18.0
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
>=dev-libs/libxml2-2.7.6
|
|
||||||
dev-libs/libnl:3
|
|
||||||
>=net-libs/gnutls-1.0.25
|
|
||||||
net-libs/libssh2
|
|
||||||
sys-apps/dmidecode
|
|
||||||
>=sys-apps/util-linux-2.17
|
|
||||||
sys-devel/gettext
|
|
||||||
>=net-analyzer/netcat6-1.0-r2
|
|
||||||
app-misc/scrub
|
|
||||||
audit? ( sys-process/audit )
|
|
||||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
|
||||||
caps? ( sys-libs/libcap-ng )
|
|
||||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
|
||||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
|
||||||
iscsi? ( sys-block/open-iscsi )
|
|
||||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
|
||||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
|
||||||
nfs? ( net-fs/nfs-utils )
|
|
||||||
numa? (
|
|
||||||
>sys-process/numactl-2.0.2
|
|
||||||
sys-process/numad
|
|
||||||
)
|
|
||||||
openvz? ( sys-kernel/openvz-sources:* )
|
|
||||||
parted? (
|
|
||||||
>=sys-block/parted-1.8[device-mapper]
|
|
||||||
sys-fs/lvm2
|
|
||||||
)
|
|
||||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
|
||||||
policykit? ( >=sys-auth/polkit-0.9 )
|
|
||||||
qemu? (
|
|
||||||
>=app-emulation/qemu-0.13.0
|
|
||||||
dev-libs/yajl
|
|
||||||
!systemd? ( sys-power/pm-utils )
|
|
||||||
)
|
|
||||||
rbd? ( sys-cluster/ceph )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl )
|
|
||||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
|
||||||
systemd? ( sys-apps/systemd )
|
|
||||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
|
||||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
|
||||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
|
||||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
|
||||||
virt-network? ( net-dns/dnsmasq[script]
|
|
||||||
>=net-firewall/iptables-1.4.10[ipv6]
|
|
||||||
net-misc/radvd
|
|
||||||
net-firewall/ebtables
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
firewalld? ( net-firewall/firewalld )
|
|
||||||
)
|
|
||||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
app-text/xhtml1
|
|
||||||
dev-lang/perl
|
|
||||||
dev-perl/XML-XPath
|
|
||||||
dev-libs/libxslt"
|
|
||||||
|
|
||||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
|
||||||
you don't need any extra software. For more complex network modes
|
|
||||||
including but not limited to NATed network, you can enable the
|
|
||||||
'virt-network' USE flag.\n\n
|
|
||||||
If you are using dnsmasq on your system, you will have
|
|
||||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
|
||||||
bind-interfaces\n
|
|
||||||
interface or except-interface\n\n
|
|
||||||
Otherwise you might have issues with your existing DNS server."
|
|
||||||
|
|
||||||
LXC_CONFIG_CHECK="
|
|
||||||
~CGROUPS
|
|
||||||
~CGROUP_FREEZER
|
|
||||||
~CGROUP_DEVICE
|
|
||||||
~CGROUP_CPUACCT
|
|
||||||
~CGROUP_SCHED
|
|
||||||
~CGROUP_PERF
|
|
||||||
~BLK_CGROUP
|
|
||||||
~NET_CLS_CGROUP
|
|
||||||
~CGROUP_NET_PRIO
|
|
||||||
~CPUSETS
|
|
||||||
~RESOURCE_COUNTERS
|
|
||||||
~NAMESPACES
|
|
||||||
~UTS_NS
|
|
||||||
~IPC_NS
|
|
||||||
~PID_NS
|
|
||||||
~NET_NS
|
|
||||||
~USER_NS
|
|
||||||
~DEVPTS_MULTIPLE_INSTANCES
|
|
||||||
~VETH
|
|
||||||
~MACVLAN
|
|
||||||
~POSIX_MQUEUE
|
|
||||||
~SECURITYFS
|
|
||||||
~!GRKERNSEC_CHROOT_MOUNT
|
|
||||||
~!GRKERNSEC_CHROOT_DOUBLE
|
|
||||||
~!GRKERNSEC_CHROOT_PIVOT
|
|
||||||
~!GRKERNSEC_CHROOT_CHMOD
|
|
||||||
~!GRKERNSEC_CHROOT_CAPS
|
|
||||||
"
|
|
||||||
|
|
||||||
VIRTNET_CONFIG_CHECK="
|
|
||||||
~BRIDGE_NF_EBTABLES
|
|
||||||
~BRIDGE_EBT_MARK_T
|
|
||||||
~NETFILTER_ADVANCED
|
|
||||||
~NETFILTER_XT_TARGET_CHECKSUM
|
|
||||||
~NETFILTER_XT_CONNMARK
|
|
||||||
~NETFILTER_XT_MARK
|
|
||||||
"
|
|
||||||
|
|
||||||
BWLMT_CONFIG_CHECK="
|
|
||||||
~BRIDGE_EBT_T_NAT
|
|
||||||
~NET_SCH_HTB
|
|
||||||
~NET_SCH_SFQ
|
|
||||||
~NET_SCH_INGRESS
|
|
||||||
~NET_CLS_FW
|
|
||||||
~NET_CLS_U32
|
|
||||||
~NET_ACT_POLICE
|
|
||||||
"
|
|
||||||
|
|
||||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
|
||||||
|
|
||||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
|
||||||
|
|
||||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup qemu 77
|
|
||||||
enewuser qemu 77 -1 -1 qemu kvm
|
|
||||||
|
|
||||||
# Some people used the masked ebuild which was not adding the qemu
|
|
||||||
# user to the kvm group originally. This results in VMs failing to
|
|
||||||
# start for some users. bug #430808
|
|
||||||
egetent group kvm | grep -q qemu
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
gpasswd -a qemu kvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle specific kernel versions for different features
|
|
||||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
|
||||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
|
||||||
|
|
||||||
CONFIG_CHECK=""
|
|
||||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
|
||||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
|
||||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
|
||||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
|
||||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
|
||||||
# Bandwidth Limiting Support
|
|
||||||
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}"
|
|
||||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
|
||||||
linux-info_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
touch "${S}/.mailmap"
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# git checkouts require bootstrapping to create the configure script.
|
|
||||||
# Additionally the submodules must be cloned to the right locations
|
|
||||||
# bug #377279
|
|
||||||
./bootstrap || die "bootstrap failed"
|
|
||||||
(
|
|
||||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
|
||||||
git hash-object bootstrap.conf
|
|
||||||
) >.git-module-status
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch
|
|
||||||
|
|
||||||
[[ -n ${BACKPORTS} ]] && \
|
|
||||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
|
||||||
|
|
||||||
# Tweak the init script
|
|
||||||
local avahi_init=
|
|
||||||
local iscsi_init=
|
|
||||||
local rbd_init=
|
|
||||||
local firewalld_init=
|
|
||||||
cp "${FILESDIR}/libvirtd.init-r14" "${S}/libvirtd.init"
|
|
||||||
use avahi && avahi_init='avahi-daemon'
|
|
||||||
use iscsi && iscsi_init='iscsid'
|
|
||||||
use rbd && rbd_init='ceph'
|
|
||||||
use firewalld && firewalld_init='need firewalld'
|
|
||||||
|
|
||||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
|
||||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
## enable/disable daemon, otherwise client only utils
|
|
||||||
myconf+=" $(use_with libvirtd)"
|
|
||||||
|
|
||||||
## enable/disable the daemon using avahi to find VMs
|
|
||||||
myconf+=" $(use_with avahi)"
|
|
||||||
|
|
||||||
## hypervisors on the local host
|
|
||||||
myconf+=" $(use_with xen) $(use_with xen xen-inotify)"
|
|
||||||
myconf+=" --without-xenapi"
|
|
||||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
|
||||||
myconf+=" --with-libxl"
|
|
||||||
else
|
|
||||||
myconf+=" --without-libxl"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with openvz)"
|
|
||||||
myconf+=" $(use_with lxc)"
|
|
||||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
|
||||||
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/"
|
|
||||||
else
|
|
||||||
myconf+=" $(use_with virtualbox vbox)"
|
|
||||||
fi
|
|
||||||
myconf+=" $(use_with uml)"
|
|
||||||
myconf+=" $(use_with qemu)"
|
|
||||||
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP
|
|
||||||
myconf+=" $(use_with phyp)"
|
|
||||||
myconf+=" --with-esx"
|
|
||||||
myconf+=" --with-vmware"
|
|
||||||
|
|
||||||
## additional host drivers
|
|
||||||
myconf+=" $(use_with virt-network network)"
|
|
||||||
myconf+=" --with-storage-fs"
|
|
||||||
myconf+=" $(use_with lvm storage-lvm)"
|
|
||||||
myconf+=" $(use_with iscsi storage-iscsi)"
|
|
||||||
myconf+=" $(use_with parted storage-disk)"
|
|
||||||
mycond+=" $(use_with glusterfs)"
|
|
||||||
mycond+=" $(use_with glusterfs storage-gluster)"
|
|
||||||
myconf+=" $(use_with lvm storage-mpath)"
|
|
||||||
myconf+=" $(use_with rbd storage-rbd)"
|
|
||||||
myconf+=" $(use_with numa numactl)"
|
|
||||||
myconf+=" $(use_with numa numad)"
|
|
||||||
myconf+=" $(use_with selinux)"
|
|
||||||
myconf+=" $(use_with fuse)"
|
|
||||||
|
|
||||||
# udev for device support details
|
|
||||||
myconf+=" $(use_with udev)"
|
|
||||||
myconf+=" --without-hal"
|
|
||||||
|
|
||||||
# linux capability support so we don't need privileged accounts
|
|
||||||
myconf+=" $(use_with caps capng)"
|
|
||||||
|
|
||||||
## auth stuff
|
|
||||||
myconf+=" $(use_with policykit polkit)"
|
|
||||||
myconf+=" $(use_with sasl)"
|
|
||||||
|
|
||||||
# network bits
|
|
||||||
myconf+=" $(use_with macvtap)"
|
|
||||||
myconf+=" $(use_with pcap libpcap)"
|
|
||||||
myconf+=" $(use_with vepa virtualport)"
|
|
||||||
myconf+=" $(use_with firewalld)"
|
|
||||||
|
|
||||||
## other
|
|
||||||
myconf+=" $(use_enable nls)"
|
|
||||||
|
|
||||||
# user privilege bits fir qemu/kvm
|
|
||||||
if use caps; then
|
|
||||||
myconf+=" --with-qemu-user=qemu"
|
|
||||||
myconf+=" --with-qemu-group=qemu"
|
|
||||||
else
|
|
||||||
myconf+=" --with-qemu-user=root"
|
|
||||||
myconf+=" --with-qemu-group=root"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# audit support
|
|
||||||
myconf+=" $(use_with audit)"
|
|
||||||
|
|
||||||
# wireshark dissector
|
|
||||||
myconf+=" $(use_with wireshark-plugins wireshark-dissector)"
|
|
||||||
|
|
||||||
## stuff we don't yet support
|
|
||||||
myconf+=" --without-netcf"
|
|
||||||
|
|
||||||
# locking support
|
|
||||||
myconf+=" --without-sanlock"
|
|
||||||
|
|
||||||
# systemd unit files
|
|
||||||
myconf+=" $(use_with systemd systemd-daemon)"
|
|
||||||
use systemd && myconf+=" --with-init-script=systemd"
|
|
||||||
|
|
||||||
# this is a nasty trick to work around the problem in bug
|
|
||||||
# #275073. The reason why we don't solve this properly is that
|
|
||||||
# it'll require us to rebuild autotools (and we don't really want
|
|
||||||
# to do that right now). The proper solution has been sent
|
|
||||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
|
||||||
# mime the same functionality with this.
|
|
||||||
case ${CHOST} in
|
|
||||||
*cygwin* | *mingw* )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
ac_cv_prog_WINDRES=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
econf \
|
|
||||||
${myconf} \
|
|
||||||
--disable-static \
|
|
||||||
--disable-werror \
|
|
||||||
--with-remote \
|
|
||||||
--docdir=/usr/share/doc/${PF} \
|
|
||||||
--localstatedir=/var
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
# Restore gnulib's config.sub and config.guess
|
|
||||||
# bug #377279
|
|
||||||
(cd .gnulib && git reset --hard > /dev/null)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Explicitly allow parallel build of tests
|
|
||||||
export VIR_TEST_DEBUG=1
|
|
||||||
HOME="${T}" emake check || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake install \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
|
||||||
DOCS_DIR=/usr/share/doc/${PF} \
|
|
||||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
|
||||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
|
||||||
|| die "emake install failed"
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# Remove bogus, empty directories. They are either not used, or
|
|
||||||
# libvirtd is able to create them on demand
|
|
||||||
rm -rf "${D}"/etc/sysconf
|
|
||||||
rm -rf "${D}"/var/cache
|
|
||||||
rm -rf "${D}"/var/run
|
|
||||||
rm -rf "${D}"/var/log
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
use systemd && systemd_install_serviced \
|
|
||||||
"${FILESDIR}"/libvirtd.service.conf libvirtd.service
|
|
||||||
|
|
||||||
systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
|
|
||||||
|
|
||||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
|
||||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
|
||||||
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die
|
|
||||||
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# we only ever want to generate this once
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We really don't want to use or support old PolicyKit cause it
|
|
||||||
# screws with the new polkit integration
|
|
||||||
if has_version sys-auth/policykit; then
|
|
||||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only sysctl files ending in .conf work
|
|
||||||
dodir /etc/sysctl.d
|
|
||||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
|
||||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use policykit; then
|
|
||||||
elog "To allow normal users to connect to libvirtd you must change the"
|
|
||||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use libvirtd || return 0
|
|
||||||
# From here, only libvirtd-related instructions, be warned!
|
|
||||||
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
|
|
||||||
if use caps && use qemu; then
|
|
||||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
|
||||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
|
||||||
elog ""
|
|
||||||
elog "The systemd service-file configuration under /etc/sysconfig has"
|
|
||||||
elog "been removed. Please use"
|
|
||||||
elog " /etc/systemd/system/libvirtd.service.d/00gentoo.conf"
|
|
||||||
elog "to control the '--listen' parameter for libvirtd. The configuration"
|
|
||||||
elog "for the libvirt-guests.service is now found under"
|
|
||||||
elog " /etc/libvirt/libvirt-guests.conf"
|
|
||||||
elog "The openrc configuration has not been changed. Thus no action is"
|
|
||||||
elog "required for the openrc service manager."
|
|
||||||
elog ""
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,62 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/cw/cw-1.0.16-r2.ebuild,v 1.5 2011/08/13 07:27:27 xarthisius Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands"
|
|
||||||
HOMEPAGE="http://cwrapper.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch \
|
|
||||||
"${FILESDIR}"/${PV}-ldflags.patch \
|
|
||||||
"${FILESDIR}"/${PV}-path.patch \
|
|
||||||
"${FILESDIR}"/${PV}-collision.patch
|
|
||||||
tc-export CC
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake local || die "emake failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/cw
|
|
||||||
doins etc/* || die
|
|
||||||
|
|
||||||
exeinto /usr/libexec/cw
|
|
||||||
doexe def/* || die
|
|
||||||
|
|
||||||
doman man/cwu* || die
|
|
||||||
newman man/cw.* color-wrapper || die
|
|
||||||
dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* || die
|
|
||||||
|
|
||||||
dobin bin/{cwu,colorcfg} || die
|
|
||||||
# app-misc/color currently conflicts; hopefully 'colors' is safe
|
|
||||||
newbin bin/color colors || die
|
|
||||||
# media-radio/unixcw currently conflicts;
|
|
||||||
newbin bin/cw color-wrapper || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
ebegin "Updating definition files"
|
|
||||||
cwu /usr/libexec/cw /usr/bin/color-wrapper # >/dev/null
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
elog "To enable color-wrapper, as your user, run:"
|
|
||||||
elog " colorcfg [1|2|3]"
|
|
||||||
elog "to add relevant environment variables to your ~/.bash_profile"
|
|
||||||
elog "Run colorcfg without options to see what [1|2|3] means."
|
|
||||||
elog
|
|
||||||
elog "After sourcing your ~/.bash_profile, commands for which definitions"
|
|
||||||
elog "are provided should have colored output."
|
|
||||||
elog
|
|
||||||
elog "To enable/disable colored output, run: 'colors [on|off]'."
|
|
||||||
}
|
|
@ -0,0 +1,47 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-misc/detox/detox-1.2.0-r3.ebuild,v 1.2 2015/06/23 09:01:14 ago Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils
|
||||||
|
|
||||||
|
MY_P="${PN}-${PV/_/-}"
|
||||||
|
|
||||||
|
DESCRIPTION="Safely remove spaces and strange characters from filenames"
|
||||||
|
HOMEPAGE="http://detox.sourceforge.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 ~hppa ~mips ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
S="${WORKDIR}"/${MY_P}
|
||||||
|
|
||||||
|
RDEPEND="dev-libs/popt"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-devel/flex
|
||||||
|
sys-devel/bison"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-parallel.patch
|
||||||
|
"${FILESDIR}"/${P}-LDFLAGS.patch
|
||||||
|
"${FILESDIR}"/${P}-change-default-sequence-to-use-utf8-table.patch
|
||||||
|
"${FILESDIR}"/${P}-install-missing-file.patch
|
||||||
|
"${FILESDIR}"/${P}-format-security.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed \
|
||||||
|
-e 's:Fl c Ar:Fl f Ar:g' \
|
||||||
|
-i ${PN}.1 || die
|
||||||
|
epatch "${PATCHES[@]}"
|
||||||
|
sed \
|
||||||
|
-e '/detoxrc.sample/d' \
|
||||||
|
-i Makefile.in || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf --with-popt="${EPREFIX}/usr"
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
parse_options_getopt.c | 8 ++++----
|
||||||
|
parse_options_popt.c | 8 ++++----
|
||||||
|
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/parse_options_getopt.c b/parse_options_getopt.c
|
||||||
|
index 1f80966..ea2b266 100644
|
||||||
|
--- a/parse_options_getopt.c
|
||||||
|
+++ b/parse_options_getopt.c
|
||||||
|
@@ -98,9 +98,9 @@ struct detox_options *parse_options_getopt(int argc, char **argv)
|
||||||
|
#endif
|
||||||
|
switch (optcode) {
|
||||||
|
case 'h':
|
||||||
|
- printf(usage_message);
|
||||||
|
+ printf("%s", usage_message);
|
||||||
|
printf("\n");
|
||||||
|
- printf(help_message);
|
||||||
|
+ printf("%s", help_message);
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
|
case 'f':
|
||||||
|
@@ -138,7 +138,7 @@ struct detox_options *parse_options_getopt(int argc, char **argv)
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
|
case '?':
|
||||||
|
- printf(usage_message);
|
||||||
|
+ printf("%s", usage_message);
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
|
case 0:
|
||||||
|
@@ -195,7 +195,7 @@ struct detox_options *parse_options_getopt(int argc, char **argv)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
#ifndef INLINE_MODE
|
||||||
|
- printf(usage_message);
|
||||||
|
+ printf("%s", usage_message);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
diff --git a/parse_options_popt.c b/parse_options_popt.c
|
||||||
|
index 60dad7a..370c3cc 100644
|
||||||
|
--- a/parse_options_popt.c
|
||||||
|
+++ b/parse_options_popt.c
|
||||||
|
@@ -94,9 +94,9 @@ struct detox_options *parse_options_popt(int argc, const char **argv)
|
||||||
|
while ((c = poptGetNextOpt(optCon)) >= 0) {
|
||||||
|
switch (c) {
|
||||||
|
case 'h':
|
||||||
|
- printf(usage_message);
|
||||||
|
+ printf("%s", usage_message);
|
||||||
|
printf("\n");
|
||||||
|
- printf(help_message);
|
||||||
|
+ printf("%s", help_message);
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
|
case 'f':
|
||||||
|
@@ -142,7 +142,7 @@ struct detox_options *parse_options_popt(int argc, const char **argv)
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '?':
|
||||||
|
- printf(usage_message);
|
||||||
|
+ printf("%s", usage_message);
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
|
}
|
||||||
|
@@ -177,7 +177,7 @@ struct detox_options *parse_options_popt(int argc, const char **argv)
|
||||||
|
|
||||||
|
#ifndef INLINE_MODE
|
||||||
|
if (i == 0) {
|
||||||
|
- fprintf(stderr, usage_message);
|
||||||
|
+ fprintf(stderr, "%s", usage_message);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
#endif
|
@ -1,3 +1,4 @@
|
|||||||
DIST libinput-0.13.0.tar.xz 540300 SHA256 6cecaf7fde525f1d81474cbd495ce526d5e34c845d3e9d6f3e2565b7048cc61a SHA512 d07b35cec8d8cd3f75d7f8916fda4723e6a7b94bf457e249ee2b93e9a7c60b9999508d071b8959c7fb3676d13a3b5430c71f2bf579572cab87bcc4e655ab69ab WHIRLPOOL 944a1336d764d6359f65a4d3ac8d3150caf1b0db649a6dea2eaf52fae2b2e14a2ffac8b3de93280115d296c773bb7fc0d6c771e98514f76061fb8814bf0d56ff
|
DIST libinput-0.13.0.tar.xz 540300 SHA256 6cecaf7fde525f1d81474cbd495ce526d5e34c845d3e9d6f3e2565b7048cc61a SHA512 d07b35cec8d8cd3f75d7f8916fda4723e6a7b94bf457e249ee2b93e9a7c60b9999508d071b8959c7fb3676d13a3b5430c71f2bf579572cab87bcc4e655ab69ab WHIRLPOOL 944a1336d764d6359f65a4d3ac8d3150caf1b0db649a6dea2eaf52fae2b2e14a2ffac8b3de93280115d296c773bb7fc0d6c771e98514f76061fb8814bf0d56ff
|
||||||
|
DIST libinput-0.18.0.tar.xz 623740 SHA256 64a70f96bab17a22eaf2fd7af17cf83def3388374096c7623be9448f62808cda SHA512 352a941a03942ed486f4d0d1ce09c928b5230bb041f71d6d906307cd208d23071b85f885658e9118cf29a72686dcd76c2c66c1b3291f48745efd40e6e5dfe38b WHIRLPOOL 50a6e2f58ef35746fec615bb61f9859347853f3fbc6044903975668e50f92fa6713a4bf05e6e038ebe5184a7fd496778b6b64d582607b0f183d44404e327587b
|
||||||
DIST libinput-0.7.0.tar.xz 440228 SHA256 129f485afe5e4a9394641293991c97cb99f5f3338340d0d65b704ff463d1579e SHA512 0e03ab7ca98c4574997742b7d8912000fb176d7a3e2c381b7e63139f78455374f8f38284e226fe443d5a524f34be8995317b91fc0190795a97b10af060423b77 WHIRLPOOL 664510fc33cb718b56600553332bb3eb587b3f4a40f81d4a80dd218882aba204522bcbbfab98f3ae0c6447d3a39cc98b9d88aea5f8e3c21da0803b93d64ad321
|
DIST libinput-0.7.0.tar.xz 440228 SHA256 129f485afe5e4a9394641293991c97cb99f5f3338340d0d65b704ff463d1579e SHA512 0e03ab7ca98c4574997742b7d8912000fb176d7a3e2c381b7e63139f78455374f8f38284e226fe443d5a524f34be8995317b91fc0190795a97b10af060423b77 WHIRLPOOL 664510fc33cb718b56600553332bb3eb587b3f4a40f81d4a80dd218882aba204522bcbbfab98f3ae0c6447d3a39cc98b9d88aea5f8e3c21da0803b93d64ad321
|
||||||
DIST libinput-0.9.0.tar.xz 510512 SHA256 309043976f41f5451c2a4b1c25bc2993b18aecb22524d797f21eb6b6c968ff0d SHA512 a6f718215428eda45ac00c25d0b62ada84bf924822cb66e0a9b28f4cfc36e7d1678f2dfb47afae16ce4c277d589adcf97aefe8e2e5a154873b649fe4a84527a1 WHIRLPOOL 23da6dbcd7b17000cea641e0931db8a9b2ad34b0655e4e31b0419ff4799adc59d2646b10316e073ad49695ebd652c150abf05c39d15c735ecb1d97f6f8c1d8de
|
DIST libinput-0.9.0.tar.xz 510512 SHA256 309043976f41f5451c2a4b1c25bc2993b18aecb22524d797f21eb6b6c968ff0d SHA512 a6f718215428eda45ac00c25d0b62ada84bf924822cb66e0a9b28f4cfc36e7d1678f2dfb47afae16ce4c277d589adcf97aefe8e2e5a154873b649fe4a84527a1 WHIRLPOOL 23da6dbcd7b17000cea641e0931db8a9b2ad34b0655e4e31b0419ff4799adc59d2646b10316e073ad49695ebd652c150abf05c39d15c735ecb1d97f6f8c1d8de
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
From 984dec0ed1c52087a4a32e181a1c09817881de39 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gilles Dartiguelongue <eva@gentoo.org>
|
||||||
|
Date: Tue, 23 Jun 2015 11:31:56 +0200
|
||||||
|
Subject: [PATCH] Add missing includes for *stat
|
||||||
|
|
||||||
|
---
|
||||||
|
src/evdev.c | 1 +
|
||||||
|
src/path.c | 1 +
|
||||||
|
2 files changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/evdev.c b/src/evdev.c
|
||||||
|
index 7e1e5c8..cfcdc34 100644
|
||||||
|
--- a/src/evdev.c
|
||||||
|
+++ b/src/evdev.c
|
||||||
|
@@ -29,6 +29,7 @@
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <sys/stat.h>
|
||||||
|
#include "linux/input.h"
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
diff --git a/src/path.c b/src/path.c
|
||||||
|
index 92535cd..ab4d065 100644
|
||||||
|
--- a/src/path.c
|
||||||
|
+++ b/src/path.c
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <sys/stat.h>
|
||||||
|
#include <libudev.h>
|
||||||
|
|
||||||
|
#include "path.h"
|
||||||
|
--
|
||||||
|
2.4.3
|
||||||
|
|
@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libinput/libinput-0.18.0.ebuild,v 1.1 2015/06/23 09:44:43 eva Exp $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit eutils udev
|
||||||
|
|
||||||
|
DESCRIPTION="Library to handle input devices in Wayland"
|
||||||
|
HOMEPAGE="http://www.freedesktop.org/wiki/Software/libinput/"
|
||||||
|
SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0/10"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
# Tests require write access to udev rules directory which is a no-no for live system.
|
||||||
|
# Other tests are just about logs, exported symbols and autotest of the test library.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-libs/libevdev-0.4
|
||||||
|
>=sys-libs/mtdev-1.1
|
||||||
|
virtual/libudev
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
# test? (
|
||||||
|
# >=dev-libs/check-0.9.10
|
||||||
|
# dev-util/valgrind
|
||||||
|
# sys-libs/libunwind )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Fix missing include for *stat, upstream #91069
|
||||||
|
epatch "${FILESDIR}"/${PN}-0.18.0-includes.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Doc handling in kinda strange but everything
|
||||||
|
# is available in the tarball already.
|
||||||
|
sed -e 's/^\(SUBDIRS =.*\)doc\(.*\)$/\1\2/' \
|
||||||
|
-i Makefile.am Makefile.in || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# gui can be built but will not be installed
|
||||||
|
# building documentation silently fails with graphviz syntax errors
|
||||||
|
econf \
|
||||||
|
--disable-documentation \
|
||||||
|
--disable-event-gui \
|
||||||
|
$(use_enable test tests) \
|
||||||
|
--with-udev-dir="$(get_udevdir)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake install DESTDIR="${D}"
|
||||||
|
dodoc -r doc/html
|
||||||
|
prune_libtool_files
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST Unicode-LineBreak-2013.11.tar.gz 289906 SHA256 8946b883ae687ff652e93d6185e23a936c7f337f2e115851fdfed72e1f73c7f9 SHA512 2b24ec1ab32127d2860d3e6bc060af95e0d3079191e17f00afed143cda0b8d8af5f0516180299ffa9cc8c2e1f047f022b64c39a308a8ac785362fac5aa166e86 WHIRLPOOL 928ff680803e888c68bc027c511ecc6611d09ac94466bbf6a1fc2da188180adedb757b64645e438a97c73b0f17e894d0d5f4bca15129e48dc27a854210fd6781
|
DIST Unicode-LineBreak-2013.11.tar.gz 289906 SHA256 8946b883ae687ff652e93d6185e23a936c7f337f2e115851fdfed72e1f73c7f9 SHA512 2b24ec1ab32127d2860d3e6bc060af95e0d3079191e17f00afed143cda0b8d8af5f0516180299ffa9cc8c2e1f047f022b64c39a308a8ac785362fac5aa166e86 WHIRLPOOL 928ff680803e888c68bc027c511ecc6611d09ac94466bbf6a1fc2da188180adedb757b64645e438a97c73b0f17e894d0d5f4bca15129e48dc27a854210fd6781
|
||||||
DIST Unicode-LineBreak-2014.06.tar.gz 299755 SHA256 5c06dfb5036bbcc1043b366df48fd3a993a6cfaa1c2c5b4efd2b0d87fec54f8d SHA512 35c0ff92b02a152142d66bf47d976e616f24e9cc08d5ec101fb881a87d951e71b45674082b73677391180c20d4a8ad56acbb523b25c53726f2d0d80c619d75a3 WHIRLPOOL e651349974ba1c7525604c2a6a5068b46f6526ffb1501a255ca620cd2addb59aee42d9ca3330078558776b407ae46f1691df3a25c5e27557ee6d566b83ac7933
|
DIST Unicode-LineBreak-2014.06.tar.gz 299755 SHA256 5c06dfb5036bbcc1043b366df48fd3a993a6cfaa1c2c5b4efd2b0d87fec54f8d SHA512 35c0ff92b02a152142d66bf47d976e616f24e9cc08d5ec101fb881a87d951e71b45674082b73677391180c20d4a8ad56acbb523b25c53726f2d0d80c619d75a3 WHIRLPOOL e651349974ba1c7525604c2a6a5068b46f6526ffb1501a255ca620cd2addb59aee42d9ca3330078558776b407ae46f1691df3a25c5e27557ee6d566b83ac7933
|
||||||
|
DIST Unicode-LineBreak-2015.06.tar.gz 243243 SHA256 4ecea8c87f35dff9e0281c846e3d5140d5323b64b5dc2c8f0d36020354e03881 SHA512 0bbe6b6a0c79ac5c6efac97bae2cda6a1c29997599a270966cfa7af006e7a08a240f9fc3f5bf68a26adc4398ca4219525c023127041917a0daf31641a94bb886 WHIRLPOOL 489acf0d8b8fbae613d598d3158e2d029aaaeff420a0b29d870854d63206e98f5d5eb0632b62945c722cfd9b57a1b96246ed53bcd20577c236d6aabeec5bc34f
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Unicode-LineBreak/Unicode-LineBreak-2015.60.0.ebuild,v 1.1 2015/06/23 09:55:46 mrueg Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
MODULE_AUTHOR="NEZUMI"
|
||||||
|
MODULE_VERSION="2015.06"
|
||||||
|
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="UAX #14 Unicode Line Breaking Algorithm"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="dev-perl/MIME-Charset
|
||||||
|
virtual/perl-Encode"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
SRC_TEST="do"
|
@ -1,42 +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/adodb-py/adodb-py-2.20.ebuild,v 1.8 2013/01/17 16:11:04 mgorny Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.*"
|
|
||||||
PYTHON_USE_WITH=sqlite?
|
|
||||||
|
|
||||||
inherit distutils eutils
|
|
||||||
|
|
||||||
MY_PV=${PV//./}
|
|
||||||
MY_P=${PN/-py/}-${MY_PV}
|
|
||||||
|
|
||||||
DESCRIPTION="Active Data Objects Data Base library for Python"
|
|
||||||
HOMEPAGE="http://adodb.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/adodb/${MY_P}.zip"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ia64 ppc ~ppc64 x86"
|
|
||||||
IUSE="mysql postgres sqlite"
|
|
||||||
|
|
||||||
RDEPEND="postgres? ( dev-python/psycopg:0 )
|
|
||||||
mysql? ( >=dev-python/mysql-python-0.9.2 )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
PYTHON_MODNAME="adodb"
|
|
||||||
|
|
||||||
src_prepare(){
|
|
||||||
distutils_src_prepare
|
|
||||||
epatch "${FILESDIR}/${PN}_sandbox_violation.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils_src_install
|
|
||||||
dohtml adodb-py-docs.htm *.gif || die "dohtml failed"
|
|
||||||
}
|
|
@ -1,2 +1,3 @@
|
|||||||
DIST alembic-0.6.7.tar.gz 467942 SHA256 55c35e897d2970bae45345ff4c8a190e773a08f4289299de694ebfebfb0c6946 SHA512 21bf62bb035cac6686599ec3a5a7dcd8505ca590f37f5667990f18b3070b1490ca083950cec9714fe10947ca05df9598e14c69eb915d3e5d5d958414d00dc5f6 WHIRLPOOL b3a10fbef104167cbd89f08e6dfe00a2559b2e6d620026539af64911d23f5db60873c91c995d55204bbaed6646f2f7f9b834e477c690d0b5abd8050de3e1fdd9
|
DIST alembic-0.6.7.tar.gz 467942 SHA256 55c35e897d2970bae45345ff4c8a190e773a08f4289299de694ebfebfb0c6946 SHA512 21bf62bb035cac6686599ec3a5a7dcd8505ca590f37f5667990f18b3070b1490ca083950cec9714fe10947ca05df9598e14c69eb915d3e5d5d958414d00dc5f6 WHIRLPOOL b3a10fbef104167cbd89f08e6dfe00a2559b2e6d620026539af64911d23f5db60873c91c995d55204bbaed6646f2f7f9b834e477c690d0b5abd8050de3e1fdd9
|
||||||
DIST alembic-0.7.4.tar.gz 604836 SHA256 550f10b2266f689778eced2fed899bfd05755737478454b97fb99385f2e780e5 SHA512 258d2f7fe046e7fd662fae0b68ba19988cc59fd1d0d8bb6e1b3b0ea133d076d649d6bc99933ac50be538d1c4d64062b2b2d259cb042d9bbddf7346d0283af383 WHIRLPOOL eaa17f8b0bd91ca8eb11292bc0be45443b43564b06ec1461c5d6b60dcbd3777c443c6a355164057334080a7dbf37f32cf591f176deb52afdb12d7ca79de4a766
|
DIST alembic-0.7.4.tar.gz 604836 SHA256 550f10b2266f689778eced2fed899bfd05755737478454b97fb99385f2e780e5 SHA512 258d2f7fe046e7fd662fae0b68ba19988cc59fd1d0d8bb6e1b3b0ea133d076d649d6bc99933ac50be538d1c4d64062b2b2d259cb042d9bbddf7346d0283af383 WHIRLPOOL eaa17f8b0bd91ca8eb11292bc0be45443b43564b06ec1461c5d6b60dcbd3777c443c6a355164057334080a7dbf37f32cf591f176deb52afdb12d7ca79de4a766
|
||||||
|
DIST alembic-0.7.6.tar.gz 623931 SHA256 864fa461265d6c97bcefee603e9ef0b6385bda9063d41b3db3e010abbba5ef61 SHA512 08d04f4ad0d5e8fe5741fab7480e6652f26449e393af4406c62acd7aa039618cce8db64ebf113565ee5b98c5e19a813b4ebd2ad15d68a717c48080a3418d517e WHIRLPOOL ce2a5894df399b773a1ee8e8163391fd05c3df8d8b5f6f31bd949f8e5a1ec7b4f837f1eb32e231ce5b5b831faedf35f685b02b02f88075125df2561b2ab64846
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/alembic/alembic-0.7.6.ebuild,v 1.1 2015/06/23 07:05:09 patrick Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="database migrations tool, written by the author of SQLAlchemy"
|
||||||
|
HOMEPAGE="https://bitbucket.org/zzzeek/alembic"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="test doc"
|
||||||
|
|
||||||
|
# requires.txt cites 'SQLAlchemy>=0.7.3' which is really both old and silly
|
||||||
|
# because it shatters the testsuite. If 'someone' cares to adhere to correct form
|
||||||
|
# and edit to -0.7.3, feel free, and then pick up the pieces.
|
||||||
|
RDEPEND=">=dev-python/sqlalchemy-0.8.4[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mako[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
test? ( ${RDEPEND}
|
||||||
|
dev-python/nose[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}] )"
|
||||||
|
# For test phase
|
||||||
|
DISTUTILS_IN_SOURCE_BUILD=1
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# suite passes all if run from source. The residual fail & error are quite erroneous
|
||||||
|
rm tests/test_script_consumption.py
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
${EPYTHON} run_tests.py || die "Testing failed with ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
use doc && local HTML_DOCS=( docs/. )
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST anyjson-0.2.4.tar.gz 4781 SHA256 27ddec5bc9220c13f405cb30adee9b5db17a608f56935618785219348c8a90ac SHA512 b916c8c950a927a6da341e67b0e123527fc54496040c8c71231e98aad1a7f39df3b0a090648127aa3fbca298268774aa6441c83267b04dd720a8c890223e5fbe WHIRLPOOL 229342c7ba6c2a73b1d582d9ca321d0c63c87f4d002a639df7d273327dec28c9fbc3f8f484c8d31c34bf4724e05b2d0f2558cc76ca8ce2166547621f357726ff
|
|
||||||
DIST anyjson-0.3.3.tar.gz 8332 SHA256 37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba SHA512 9e70df3cb8bfe2348fdb0eb03cf3c33ca5a1171aca6467787fc28c161354b5ebe89b2f73badfa00708774d6825799860493ddcac7f5da8cc9c251b92b5a343bc WHIRLPOOL 9a17b6296ddf6359c217a7deea989a6dd3c07c2f11125f934c5c4325a909b9a923c08b03fd49a96c30df8ed06c81cdba54ae5391240c7d288edaafb9c44b50a7
|
DIST anyjson-0.3.3.tar.gz 8332 SHA256 37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba SHA512 9e70df3cb8bfe2348fdb0eb03cf3c33ca5a1171aca6467787fc28c161354b5ebe89b2f73badfa00708774d6825799860493ddcac7f5da8cc9c251b92b5a343bc WHIRLPOOL 9a17b6296ddf6359c217a7deea989a6dd3c07c2f11125f934c5c4325a909b9a923c08b03fd49a96c30df8ed06c81cdba54ae5391240c7d288edaafb9c44b50a7
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/anyjson/anyjson-0.2.4.ebuild,v 1.5 2015/04/08 08:05:15 mgorny Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 pypy )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Wraps the best available JSON implementation available in a common interface"
|
|
||||||
HOMEPAGE="http://bitbucket.org/runeh/anyjson"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
# please keep all supported implementations in 'test?'
|
|
||||||
# to make sure the package is used in the widest way
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
dev-python/simplejson[$(python_gen_usedep 'python2*' python3_3 'pypy*')]
|
|
||||||
)"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
cp -r -l tests "${BUILD_DIR}"/lib || die
|
|
||||||
if [[ ${EPYTHON} == python3* ]]; then
|
|
||||||
2to3 -w --no-diffs "${BUILD_DIR}"/lib || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/anyjson/anyjson-0.3.3.ebuild,v 1.4 2014/08/10 21:06:44 slyfox Exp $
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
PYTHON_DEPEND="*"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
|
|
||||||
inherit distutils
|
|
||||||
|
|
||||||
DESCRIPTION="Wraps the best available JSON implementation available in a common interface"
|
|
||||||
HOMEPAGE="http://bitbucket.org/runeh/anyjson"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND=""
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools"
|
|
@ -1,3 +1 @@
|
|||||||
DIST apsw-3.7.13-r1.zip 632647 SHA256 5f26b670069b1bde2635a219db2314c674bb7d7d9ffffd24fd8a32ee637eda2c SHA512 abd0e59575b66ce70b8edded1fcb46beb259edb2b05438881144e041bef7e541277c4fed66863430e75b8846752b6b9776f179fd8accf04b9095b4253cf7e58c WHIRLPOOL 94b05fdd660460091720629ca49fe553de77feb03b33ebf5bedf2c4c0fecc772c30b2f5ea04561ae1b664d023bf6f1ee7b49a8204aa16c424aadf9bebc639e07
|
|
||||||
DIST apsw-3.8.5_p1.tar.gz 303479 SHA256 f828556f88926eff858e7b5a43e36edd18ed2c1c62c6925a60aa5ed5aa1f96cd SHA512 f62f3c3bbb39ffe63d1eaaeacf7a3e7562e4964774047923cce7fae2f947a14b41b51ee93546a15b27dde216b009e0fd8664bf86569ec94cb8f9f16d2d6e245f WHIRLPOOL 85390d53bba173f1b1118675830743cf282325f73bf5bf8d7205d954fbac37755c502a0c0e48ba5e1463a9a30d7832ae78dea5818e3f99c26e5638c2eb625822
|
|
||||||
DIST apsw-3.8.7.1_p1.tar.gz 303446 SHA256 7aee29cc170332aa1a16fb80753152e809208bbc91823f64178e4afc32526fec SHA512 104aad3a8cec07647b71c77814cc069587daf84450b41f992d0b3c752c476105351b28912768a29f7952bfd75e9b2d3fcd8e6ae758b3bab8b986bf8e1300c256 WHIRLPOOL cc95728b07e384ee88002afce4b68abcfb259a62188cc77bad1154a83bf3e1979fec8761fe8a3c9e5ae35d5027cdf42c1b4a4b7749ad76d7935e032e253c8167
|
DIST apsw-3.8.7.1_p1.tar.gz 303446 SHA256 7aee29cc170332aa1a16fb80753152e809208bbc91823f64178e4afc32526fec SHA512 104aad3a8cec07647b71c77814cc069587daf84450b41f992d0b3c752c476105351b28912768a29f7952bfd75e9b2d3fcd8e6ae758b3bab8b986bf8e1300c256 WHIRLPOOL cc95728b07e384ee88002afce4b68abcfb259a62188cc77bad1154a83bf3e1979fec8761fe8a3c9e5ae35d5027cdf42c1b4a4b7749ad76d7935e032e253c8167
|
||||||
|
@ -1,54 +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/apsw/apsw-3.7.13.1.ebuild,v 1.5 2013/08/28 16:01:09 floppym Exp $
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
|
|
||||||
|
|
||||||
inherit distutils eutils versionator
|
|
||||||
|
|
||||||
MY_PV="$(replace_version_separator 3 -r)"
|
|
||||||
|
|
||||||
DESCRIPTION="APSW - Another Python SQLite Wrapper"
|
|
||||||
HOMEPAGE="http://code.google.com/p/apsw/"
|
|
||||||
SRC_URI="http://apsw.googlecode.com/files/${PN}-${MY_PV}.zip"
|
|
||||||
|
|
||||||
LICENSE="ZLIB"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~ppc64 x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-db/sqlite-$(get_version_component_range 1-3)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
distutils_src_prepare
|
|
||||||
epatch "${FILESDIR}/${PN}-3.6.20.1-fix_tests.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
distutils_src_compile --enable=load_extension
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
echo "$(PYTHON -f)" setup.py build_test_extension
|
|
||||||
"$(PYTHON -f)" setup.py build_test_extension || die "Building of test loadable extension failed"
|
|
||||||
|
|
||||||
testing() {
|
|
||||||
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" tests.py -v
|
|
||||||
}
|
|
||||||
python_execute_function testing
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils_src_install
|
|
||||||
if use doc ; then
|
|
||||||
dohtml -r doc/*
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,55 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/apsw/apsw-3.8.5_p1.ebuild,v 1.4 2015/01/26 10:22:11 ago Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
MY_PV=${PV/_p/-r}
|
|
||||||
MY_P=${PN}-${MY_PV}
|
|
||||||
|
|
||||||
DESCRIPTION="APSW - Another Python SQLite Wrapper"
|
|
||||||
HOMEPAGE="http://code.google.com/p/apsw/"
|
|
||||||
HOMEPAGE="https://github.com/rogerbinns/apsw/"
|
|
||||||
SRC_URI="https://github.com/rogerbinns/apsw/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="ZLIB"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm ~ppc64 x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-db/sqlite-${PV%_p*}"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${PN}-3.6.20.1-fix_tests.patch )
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
if ! python_is_python3; then
|
|
||||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
|
||||||
export CFLAGS
|
|
||||||
fi
|
|
||||||
distutils-r1_python_compile --enable=load_extension
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# tests use overlapping database files
|
|
||||||
local DISTUTILS_NO_PARALLEL_BUILD=1
|
|
||||||
distutils-r1_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
"${PYTHON}" setup.py build_test_extension || die "Building of test loadable extension failed"
|
|
||||||
"${PYTHON}" tests.py -v || die
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
if use doc ; then
|
|
||||||
dohtml -r doc/*
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST casuarius-1.0.tar.gz 129907 SHA256 dac01b1d5edd9c1e886c63516c2ae818891f5e94109c3a1bf0b622e237dac1fc SHA512 c48f51e3c085ccdbea7e8c5be144978b88b1645e214fece3a4fc6ce65dfdfd5e9c2dfe69733741a6074629b9e2996b8489e81597071e8d16b6f8e96e9a5143e9 WHIRLPOOL e225947160419946be2becf8ec19af55e13cee0bc29d90d9477691ccbffa38b5f64853cd7c2fb23584b3504321131796c386091f1b68126177bc2a35d3ee23d8
|
|
||||||
DIST casuarius-1.1.tar.gz 139555 SHA256 8ebec38cb8ced80e8a1def9a7e5cb07a4a2a5fca723e26008ff5cecc030c1ab5 SHA512 d0a77b285b923f72274b13240ab4ae079c4f69587093c43bb7375c8ba24517ba6a7e2ba429b3e9a6ee9c73736efafff00da9cde7d533f05de0c7675de1e62080 WHIRLPOOL 1ff87430bc933973a445d7dde3af4854d796ead5bc1998a6cc56e10886b259cf0d5c8f08612894ce68ecf32e0e81227b7e8e030af69180c9dca2c373fabdfb2d
|
DIST casuarius-1.1.tar.gz 139555 SHA256 8ebec38cb8ced80e8a1def9a7e5cb07a4a2a5fca723e26008ff5cecc030c1ab5 SHA512 d0a77b285b923f72274b13240ab4ae079c4f69587093c43bb7375c8ba24517ba6a7e2ba429b3e9a6ee9c73736efafff00da9cde7d533f05de0c7675de1e62080 WHIRLPOOL 1ff87430bc933973a445d7dde3af4854d796ead5bc1998a6cc56e10886b259cf0d5c8f08612894ce68ecf32e0e81227b7e8e030af69180c9dca2c373fabdfb2d
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/casuarius/casuarius-1.0.ebuild,v 1.1 2012/12/06 18:12:11 bicatali Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
PYTHON_DEPEND="2:2.6"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
|
||||||
PYTHON_TESTS_RESTRICTED_ABIS="2.6"
|
|
||||||
DISTUTILS_SRC_TEST="nosetests"
|
|
||||||
|
|
||||||
inherit distutils
|
|
||||||
|
|
||||||
DESCRIPTION="Cython wrapper for the Cassowary incremental constraint solver"
|
|
||||||
HOMEPAGE="https://github.com/enthought/casuarius"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="doc examples"
|
|
||||||
|
|
||||||
RDEPEND=""
|
|
||||||
DEPEND=">=dev-python/cython-0.15.1"
|
|
@ -1,2 +1 @@
|
|||||||
DIST codetools-4.1.0.tar.gz 272082 SHA256 31996678036f93cfa96d2c29536dc6b55db862f08d0753b06639aa56f136615f SHA512 f1a189785cc58e9de8390ea8cc8cd78e84bab568ffafbe6bb7f96d515ef0280818ce3de140465e1e56cd808192c0d70bb06a56dbfbac8a22476544c2d75bd7e5 WHIRLPOOL 141696c4fa3b346890e3e15d83dd9a5194012b48c3d523a52ffba186a6e016b6becca1cb876118e1360bbd16384e37d7abd1ef5bc9fb37a444eb9dec5d0f7046
|
|
||||||
DIST codetools-4.2.0.tar.gz 117891 SHA256 a93452b3f421bb5f9f18a74d404661433e189e29de3a4b9cfe92544e69be9c2c SHA512 8b63b9cb65966db72f3d2b054559fadf3008a4f4a7fc66ff12b046ca18568694c9d11066d6450e38b053b73df31c8a136729d7052bf8e21f287eac220ddf5dbb WHIRLPOOL adf4f8f3a516cf14cb8c71a4874b80c09814b017872be5dbb7768e506fecfc76d59805763d1cf3dbfdf941f86efd3893545e314932bad93c461a4468cee5c15e
|
DIST codetools-4.2.0.tar.gz 117891 SHA256 a93452b3f421bb5f9f18a74d404661433e189e29de3a4b9cfe92544e69be9c2c SHA512 8b63b9cb65966db72f3d2b054559fadf3008a4f4a7fc66ff12b046ca18568694c9d11066d6450e38b053b73df31c8a136729d7052bf8e21f287eac220ddf5dbb WHIRLPOOL adf4f8f3a516cf14cb8c71a4874b80c09814b017872be5dbb7768e506fecfc76d59805763d1cf3dbfdf941f86efd3893545e314932bad93c461a4468cee5c15e
|
||||||
|
@ -1,52 +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/codetools/codetools-4.1.0-r1.ebuild,v 1.1 2013/04/16 06:57:13 idella4 Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
inherit distutils-r1 virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Enthought Tool Suite: Code analysis and execution tools"
|
|
||||||
HOMEPAGE="http://code.enthought.com/projects/code_tools/ http://pypi.python.org/pypi/codetools"
|
|
||||||
SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz"
|
|
||||||
|
|
||||||
IUSE="doc examples test"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
LICENSE="BSD"
|
|
||||||
|
|
||||||
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/scimath-4[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/traits-4[${PYTHON_USEDEP}]"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
media-fonts/font-cursor-misc
|
|
||||||
media-fonts/font-misc-misc
|
|
||||||
)"
|
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${PN}-4.0.0-test.patch )
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use doc && emake -C docs html
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
VIRTUALX_COMMAND="nosetests" virtualmake
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
use doc && dohtml -r docs/build/html/
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
docompress -x usr/share/doc/${PF}/examples/
|
|
||||||
insinto /usr/share/doc/${PF}
|
|
||||||
doins -r examples
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,58 +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/codetools/codetools-4.1.0.ebuild,v 1.1 2013/04/03 08:55:43 patrick Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="2.5 3.* *-jython"
|
|
||||||
DISTUTILS_SRC_TEST="nosetests"
|
|
||||||
|
|
||||||
inherit distutils virtualx eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Enthought Tool Suite: Code analysis and execution tools"
|
|
||||||
HOMEPAGE="http://code.enthought.com/projects/code_tools/ http://pypi.python.org/pypi/codetools"
|
|
||||||
SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz"
|
|
||||||
|
|
||||||
IUSE="doc examples test"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
LICENSE="BSD"
|
|
||||||
|
|
||||||
RDEPEND="dev-python/numpy
|
|
||||||
>=dev-python/scimath-4
|
|
||||||
>=dev-python/traits-4"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools
|
|
||||||
doc? ( dev-python/sphinx )
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
media-fonts/font-cursor-misc
|
|
||||||
media-fonts/font-misc-misc
|
|
||||||
)"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.0.0-test.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
distutils_src_compile
|
|
||||||
use doc && emake -C docs html
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
VIRTUALX_COMMAND="distutils_src_test" virtualmake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
find -name "*LICENSE*.txt" -delete
|
|
||||||
distutils_src_install
|
|
||||||
|
|
||||||
use doc && dohtml -r docs/build/html/*
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
insinto /usr/share/doc/${PF}
|
|
||||||
doins -r examples
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
Patch confirmed by upstream adding missing call to SkipTest
|
|
||||||
https://github.com/enthought/codetools/issues/3
|
|
||||||
|
|
||||||
diff -ur codetools-4.0.0.orig/codetools/blocks2/tests/test_block.py codetools-4.0.0/codetools/blocks2/tests/test_block.py
|
|
||||||
--- codetools/blocks2/tests/test_block.py 2011-06-22 06:36:59.000000000 +0800
|
|
||||||
+++ codetools/blocks2/tests/test_block.py 2012-11-04 19:14:01.996051488 +0800
|
|
||||||
@@ -9,6 +9,9 @@
|
|
||||||
|
|
||||||
def test_basic_01():
|
|
||||||
"""Test basic use of a Block."""
|
|
||||||
+
|
|
||||||
+ raise SkipTest
|
|
||||||
+
|
|
||||||
code = 'x = 100\ny = x + 1'
|
|
||||||
b = Block(code)
|
|
||||||
assert_equal(b.inputs, set([]))
|
|
@ -1,2 +1 @@
|
|||||||
DIST envisage-4.3.0.tar.gz 498475 SHA256 290d031b57670eb78fd4b8065317618e70f9869f55643e480bdfa1adf5f99c15 SHA512 f6c008917e0a7f70624fd7fb771e3560c3af57a2cb15d37e3e69c3fd6a6870ff6d19b3aab0b6131ee5150f207e6c0920e01547912deb666504159a916b9e2389 WHIRLPOOL 8665b5edb2be026c7a14062c9dc89c7fe2f63c28f81c4286dd40f8bdb96c123d190e71a7e7fb6228a1287a19d93e876d57706a03ae2fe618b4141f626b484460
|
|
||||||
DIST envisage-4.4.0.tar.gz 192529 SHA256 ce9274a1afef8e4b660344eda2b32c4aa23fa35aa61dadc33d5a85eb284270f6 SHA512 7cc8fa82ea9bfd53f1a6cc90551d97972dd4b7abe9476515ea617ab6a32d7f2f65b2815ed934633f96b0f1445b763b9350e5d0e37ed99768c9a2ca32e588f91f WHIRLPOOL a108b28877821fe7acc0841726f7357c75eeb6b2734fcec12fd7c700b5fff41b9c0bb84b47be95f0776529fb70b58481b6a2b1ec1ad70763799e58ac152286db
|
DIST envisage-4.4.0.tar.gz 192529 SHA256 ce9274a1afef8e4b660344eda2b32c4aa23fa35aa61dadc33d5a85eb284270f6 SHA512 7cc8fa82ea9bfd53f1a6cc90551d97972dd4b7abe9476515ea617ab6a32d7f2f65b2815ed934633f96b0f1445b763b9350e5d0e37ed99768c9a2ca32e588f91f WHIRLPOOL a108b28877821fe7acc0841726f7357c75eeb6b2734fcec12fd7c700b5fff41b9c0bb84b47be95f0776529fb70b58481b6a2b1ec1ad70763799e58ac152286db
|
||||||
|
@ -1,51 +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/envisage/envisage-4.3.0-r1.ebuild,v 1.1 2013/04/14 06:35:17 idella4 Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
# py2.6 fails testsuite horribly
|
|
||||||
PYTHON_COMPAT=python2_7
|
|
||||||
|
|
||||||
inherit distutils-r1 virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Enthought Tool Suite: Extensible application framework"
|
|
||||||
HOMEPAGE="http://code.enthought.com/projects/envisage/ http://pypi.python.org/pypi/envisage"
|
|
||||||
SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="doc examples test"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-python/traits-4[${PYTHON_USEDEP}]"
|
|
||||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
|
||||||
test? (
|
|
||||||
>=dev-python/traits-4[${PYTHON_USEDEP}]
|
|
||||||
dev-python/apptools
|
|
||||||
media-fonts/font-cursor-misc
|
|
||||||
media-fonts/font-misc-misc
|
|
||||||
)"
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use doc && emake -C docs html
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# Delete these on action from https://github.com/enthought/envisage/issues/21
|
|
||||||
VIRTUALX_COMMAND="nosetests -e test_dynamically_added_category* \
|
|
||||||
-e test_dynamically_added_class_load_hooks* \
|
|
||||||
-e test_only_find_plugins_matching_a_wildcard_in_the_include_list* \
|
|
||||||
-e test_only_find_plugins_whose_ids_are_in_the_include_list" virtualmake
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
use doc && dohtml -r docs/build/html/
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
insinto /usr/share/doc/${PF}
|
|
||||||
doins -r examples
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,51 +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/envisage/envisage-4.3.0.ebuild,v 1.1 2013/04/03 07:57:56 patrick Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="2.5 3.* *-jython"
|
|
||||||
DISTUTILS_SRC_TEST="nosetests"
|
|
||||||
|
|
||||||
inherit distutils virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Enthought Tool Suite: Extensible application framework"
|
|
||||||
HOMEPAGE="http://code.enthought.com/projects/envisage/ http://pypi.python.org/pypi/envisage"
|
|
||||||
SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="doc examples test"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-python/traits-4"
|
|
||||||
DEPEND="dev-python/setuptools
|
|
||||||
doc? ( dev-python/sphinx )
|
|
||||||
test? (
|
|
||||||
>=dev-python/traits-4
|
|
||||||
dev-python/apptools
|
|
||||||
media-fonts/font-cursor-misc
|
|
||||||
media-fonts/font-misc-misc
|
|
||||||
)"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
distutils_src_compile
|
|
||||||
use doc && emake -C docs html
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
VIRTUALX_COMMAND="distutils_src_test" virtualmake || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
find -name "*LICENSE*.txt" -delete
|
|
||||||
distutils_src_install
|
|
||||||
|
|
||||||
use doc && dohtml -r docs/build/html/*
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
insinto /usr/share/doc/${PF}
|
|
||||||
doins -r examples
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,40 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/feedparser-5.1.3-r1.ebuild,v 1.10 2015/04/08 08:05:29 mgorny Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3} pypy )
|
|
||||||
|
|
||||||
inherit distutils-r1 eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Parse RSS and Atom feeds in Python"
|
|
||||||
HOMEPAGE="http://code.google.com/p/feedparser/ http://pypi.python.org/pypi/feedparser"
|
|
||||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
|
|
||||||
|
|
||||||
# sgmllib is licensed under PSF-2.
|
|
||||||
LICENSE="BSD-2 PSF-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
# Tests have issues with chardet installed, and are just kind of buggy.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
mv feedparser/sgmllib3.py feedparser/_feedparser_sgmllib.py || die
|
|
||||||
epatch "${FILESDIR}/${PN}-5.1-sgmllib.patch"
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
cp feedparser/feedparsertest.py "${BUILD_DIR}" || die
|
|
||||||
ln -s "${S}/feedparser/tests" "${BUILD_DIR}/tests" || die
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
if [[ ${EPYTHON} == python3* ]]; then
|
|
||||||
2to3 --no-diffs -w -n feedparsertest.py || die
|
|
||||||
fi
|
|
||||||
"${PYTHON}" feedparsertest.py || die "Testing failed with ${EPYTHON}"
|
|
||||||
}
|
|
@ -1,53 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/feedparser-5.1.3.ebuild,v 1.1 2012/12/09 21:45:45 rafaelmartins Exp $
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
PYTHON_TESTS_RESTRICTED_ABIS="*-jython"
|
|
||||||
PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*"
|
|
||||||
|
|
||||||
inherit distutils eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Parse RSS and Atom feeds in Python"
|
|
||||||
HOMEPAGE="http://code.google.com/p/feedparser/ http://pypi.python.org/pypi/feedparser"
|
|
||||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
|
|
||||||
|
|
||||||
# sgmllib is licensed under PSF-2.
|
|
||||||
LICENSE="BSD-2 PSF-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools"
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
|
|
||||||
PYTHON_MODNAME="feedparser.py _feedparser_sgmllib.py"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
mv feedparser/sgmllib3.py feedparser/_feedparser_sgmllib.py || die "Renaming sgmllib3.py failed"
|
|
||||||
epatch "${FILESDIR}/${PN}-5.1-sgmllib.patch"
|
|
||||||
|
|
||||||
sed -e "/import feedparser/isys.path.insert(0, '../build/lib')" -i feedparser/feedparsertest.py
|
|
||||||
|
|
||||||
distutils_src_prepare
|
|
||||||
|
|
||||||
preparation() {
|
|
||||||
if [[ "${PYTHON_ABI}" == 3.* ]]; then
|
|
||||||
2to3-${PYTHON_ABI} -nw --no-diffs feedparser/feedparsertest.py
|
|
||||||
else
|
|
||||||
# Avoid SyntaxErrors with Python 2.
|
|
||||||
echo "raise ImportError" > feedparser/_feedparser_sgmllib.py
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
python_execute_function -s preparation
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
testing() {
|
|
||||||
cd feedparser || return 1
|
|
||||||
"$(PYTHON)" feedparsertest.py
|
|
||||||
}
|
|
||||||
python_execute_function -s testing
|
|
||||||
}
|
|
@ -1,2 +1,2 @@
|
|||||||
DIST json-rpc-1.6.0.tar.gz 19919 SHA256 45eaf6c27f6e5265d7639f7c92bbeed10728ec507942f21e38610f63ed74be8f SHA512 8b2b906962aede9b7257b6919f71be6cc7ea43cb1d76cf2f6d4950da5c992bde81a32e784b02f1ce672c800762b4e03c7f0fc72a19b801902a77a387a910f961 WHIRLPOOL 37e40c67042340e0f33b4e6d1f66ae24b89cf05b351cded3fb5c184e0d5d9e9e90121c0e3077a7c8ca21408ea8312cd4be50d9d149f2f5d733a5b4c0b8349ef2
|
|
||||||
DIST json-rpc-1.7.0.tar.gz 21699 SHA256 9961113fc66bb4e34abd4fa6e8eb2086d14aee88c789e00a023751b5c84dd34b SHA512 f89ae1c2da9f0fa3e3a6552ea89a13ef1806b1a5d4d03ab7c420a1648dde6980af6743a5c70d500224ad5d0d8a5aa6b74ad7de43ea3aeefb1cba0e5dc6cc5fa4 WHIRLPOOL 02bd37b82b6259b9b8fb513615499b1105a0cbbea8b4e6e37800560b6114beb237efa397bf6f50312a26e500eedd0ddc89bf798162742788200f51a563a713ab
|
DIST json-rpc-1.7.0.tar.gz 21699 SHA256 9961113fc66bb4e34abd4fa6e8eb2086d14aee88c789e00a023751b5c84dd34b SHA512 f89ae1c2da9f0fa3e3a6552ea89a13ef1806b1a5d4d03ab7c420a1648dde6980af6743a5c70d500224ad5d0d8a5aa6b74ad7de43ea3aeefb1cba0e5dc6cc5fa4 WHIRLPOOL 02bd37b82b6259b9b8fb513615499b1105a0cbbea8b4e6e37800560b6114beb237efa397bf6f50312a26e500eedd0ddc89bf798162742788200f51a563a713ab
|
||||||
|
DIST json-rpc-1.9.2.tar.gz 25100 SHA256 42414af4aeab786bb9643c88238f91253251ce301e5f3cdbf385f778ad9b6399 SHA512 9e43c96c54dc07f1cf3d6167e978dc9cab94fd45759148302c13d665384bbc9373d588edae1a17aa06d4804b4c176900165c401ef9801c6af88f7d1af1e0b7ec WHIRLPOOL 8299a1c928394a4fd3bb8e47c535d2d749984fef7fe421d733320dde6e370dc0f2267365a252af083d324f914a6c52f8b1690bb07096e46c0ef847d09af86b9b
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/json-rpc/json-rpc-1.6.0.ebuild,v 1.2 2015/03/25 08:21:56 mgorny Exp $
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/json-rpc/json-rpc-1.9.2.ebuild,v 1.1 2015/06/23 06:24:24 idella4 Exp $
|
||||||
|
|
||||||
EAPI=5
|
EAPI=5
|
||||||
PYTHON_COMPAT=(python{2_7,3_{3,4}})
|
PYTHON_COMPAT=( python{2_7,3_{3,4}} )
|
||||||
|
|
||||||
inherit distutils-r1
|
inherit distutils-r1
|
||||||
|
|
@ -1,2 +1,2 @@
|
|||||||
DIST json_tools-0.3.2.tar.gz 8922 SHA256 246f287787582c206bf31a5a01bb823c0daaa979753d711c71bbf6f4d597bd1d SHA512 b6fe64f1acff8805bb30a01759a2f12536b6864ec4382ebc4c366a89a58e0a309136b49404007cb6df83800b0cfc33dd21c94fa7a5390a75760e1dd89da2198b WHIRLPOOL 72e20b29efb558322c657f6c98a4fd1c86c5e37fad1347e20d7cf685dca3136b18d375b93cf0932556f44a3e7ba993715dc3153320134d87847fab5a7bd42098
|
|
||||||
DIST json_tools-0.3.3.tar.gz 8093 SHA256 d651d10326447b7a039305661b0fa6c44bb54ca2313494e20dda1e4c8c63b7d6 SHA512 34bb34d52f7f230a13071a9a5c3de79f2c76de6b4a8ce60d0acb4447f68893faeb79ee9a98133ba72f1c1acebd9e8beb34dba0953242aee97799e8b97fcf6537 WHIRLPOOL 203666696b13d95b4c918c604c8b968ac1b64603f3559fec4251c2d80792c1d0674fd7a7a086e4536110f241c93fe28457921023183daa3697bf7deee352a11f
|
DIST json_tools-0.3.3.tar.gz 8093 SHA256 d651d10326447b7a039305661b0fa6c44bb54ca2313494e20dda1e4c8c63b7d6 SHA512 34bb34d52f7f230a13071a9a5c3de79f2c76de6b4a8ce60d0acb4447f68893faeb79ee9a98133ba72f1c1acebd9e8beb34dba0953242aee97799e8b97fcf6537 WHIRLPOOL 203666696b13d95b4c918c604c8b968ac1b64603f3559fec4251c2d80792c1d0674fd7a7a086e4536110f241c93fe28457921023183daa3697bf7deee352a11f
|
||||||
|
DIST json_tools-0.4.0.tar.gz 7277 SHA256 ec704468805d898da89c5c88157e8aa6559df0cfdcf29ed60a1076a45f79d19a SHA512 b3f86493d17f97eeaecec6572adfc6e16c113c1755f49655863e84f17467c9dae9a57911d66639eb6e6d8548a99887adc827ff28bd26b6180e523b145bba2d5b WHIRLPOOL aaac4a58404a77043cd977c198b5ffe71ec9be9fe0a7fb727bd2efb94802861b961355ce52c0b515456c404a3c855d5a38d4c15a9d9e03cdd9fb4d8bb4989cc5
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/json-tools/json-tools-0.3.2.ebuild,v 1.2 2015/04/08 08:04:56 mgorny Exp $
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/json-tools/json-tools-0.4.0.ebuild,v 1.1 2015/06/23 06:38:06 idella4 Exp $
|
||||||
|
|
||||||
EAPI=5
|
EAPI=5
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
# 'Programming Language :: ... in setup.py requires updating"
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||||
inherit distutils-r1
|
inherit distutils-r1
|
||||||
|
|
||||||
MY_PN="json_tools"
|
MY_PN="json_tools"
|
@ -1,2 +1,3 @@
|
|||||||
DIST kazoo-1.3.1.zip 138816 SHA256 51c6dec001b0ffabeab2f1516c92999e1554d0072e517a5a39d4428decf4d7c8 SHA512 fa93210a361086ca40c2b2eebeb0062e055420cf4de4fecb94c96b9cddc5b0404135b0344cce37d7e91462c3022f348a5b007a6ec20c4bb29e1817335f1fbcc3 WHIRLPOOL 8f2ce9b9db8450bb011d59b956997406a672a38331a86b2a79b5270da1a733d086b1f88a10acf75803f64f1781bcd8f2645ab34b4daf3d397a4b8ecf1ffcc740
|
DIST kazoo-1.3.1.zip 138816 SHA256 51c6dec001b0ffabeab2f1516c92999e1554d0072e517a5a39d4428decf4d7c8 SHA512 fa93210a361086ca40c2b2eebeb0062e055420cf4de4fecb94c96b9cddc5b0404135b0344cce37d7e91462c3022f348a5b007a6ec20c4bb29e1817335f1fbcc3 WHIRLPOOL 8f2ce9b9db8450bb011d59b956997406a672a38331a86b2a79b5270da1a733d086b1f88a10acf75803f64f1781bcd8f2645ab34b4daf3d397a4b8ecf1ffcc740
|
||||||
DIST kazoo-2.0.zip 145663 SHA256 f0c42cc7752a331ba59269827bd19cb271210399a9dcab32b6a91465b4431a18 SHA512 99ea48e5c763adc18f579a6066a63b55b615e5bf0350e60b8e2ec1e6bb8608cbf0acf67fe7937ff6d68cb79ace765806fed38ecaf8ace600a0c20166be8d8ef4 WHIRLPOOL 00aa5257b9061c0477feac00c1ee1a92a26700cee7ab0c6ca5702a3ca03907b69f66437dbf61896ee3a95a9eb06beee85650c9f9bdf1bd9a2b3c4ba11433180f
|
DIST kazoo-2.0.zip 145663 SHA256 f0c42cc7752a331ba59269827bd19cb271210399a9dcab32b6a91465b4431a18 SHA512 99ea48e5c763adc18f579a6066a63b55b615e5bf0350e60b8e2ec1e6bb8608cbf0acf67fe7937ff6d68cb79ace765806fed38ecaf8ace600a0c20166be8d8ef4 WHIRLPOOL 00aa5257b9061c0477feac00c1ee1a92a26700cee7ab0c6ca5702a3ca03907b69f66437dbf61896ee3a95a9eb06beee85650c9f9bdf1bd9a2b3c4ba11433180f
|
||||||
|
DIST kazoo-2.2.1.tar.gz 108037 SHA256 525a9959b98a1203530bee01446b365a9f7f1caa69399af0151127178941eb82 SHA512 a2590441a9e3bfb3d14913051453e195d275b82bd6a4ce5e32d0a7bbc09b00e475ffac68fd06cb065aa439ea580b61bbeaa3ccfefa413723e46f4b1d3ce05707 WHIRLPOOL 6e43b27683382f4fb4054b85017e94e4fddd2d1416eea1566b87fc4cbc3edce37093e8c001211d324162d35f4c0f0da3632de1cf543eef2b171971a0f05b7357
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/kazoo/kazoo-2.2.1.ebuild,v 1.1 2015/06/23 06:30:08 patrick Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A high-level Python library that makes it easier to use Apache Zookeeper"
|
||||||
|
HOMEPAGE="https://kazoo.readthedocs.org/ https://github.com/python-zk/kazoo/ https://pypi.python.org/pypi/kazoo/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc gevent test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
gevent? ( dev-python/gevent[$(python_gen_usedep 'python2*')] )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-arch/unzip
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||||
|
test? ( dev-python/mock[${PYTHON_USEDEP}] )
|
||||||
|
"
|
||||||
|
|
||||||
|
# not all test deps are in the tree
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
python_compile_all() {
|
||||||
|
use doc && { sphinx-build -b html docs docs/_build/html || die; }
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
esetup.py test
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||||
|
local DOCS=( {CHANGES,CONTRIBUTING,README}.rst )
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
@ -1,5 +1,2 @@
|
|||||||
DIST libvirt-python-1.2.10.tar.gz 162075 SHA256 fd38d589da34de523756e2b39980453bd1149fe162d109fbb7cf65df0c250ba7 SHA512 faec1209c2d1ce170225677cc0080d60c39dcc3ef6bf1e50ccf347519e051490cf4a019fe4a15e32e9de2e137f70904dabc3d288b44bb00c5de465ffc2104837 WHIRLPOOL a3b192bbef5b24ab00d9a9565cfc04972b6b4d5288fc9ac5077232b23d2bb54424a147b789b8b230299f7ac68af8c78febd84dc5db97a007680202de97006a61
|
|
||||||
DIST libvirt-python-1.2.12.tar.gz 164708 SHA256 432f438f9759e216424490f51a8804398b70fb1b2f2211f45fb05f72f5ad849f SHA512 f9196734fd91f135671b75e2e967bdcdcbf9daec7d898a57080251bf306c29b7367f99361098924ffd7eb321809b61ef28147f395465d3d84b99389d505ea1f2 WHIRLPOOL 191d4ae091ac7903a0927a72e63c1bb075aac23341dcd000b8ab2bb423a12e62d324d667ffc213da1748b995218b1fcb90a4e6d819d17e75af7157c4a863f603
|
|
||||||
DIST libvirt-python-1.2.14.tar.gz 165276 SHA256 0dc3c2bd8eeb570921e7c5cc7cfc202795e5ffd63b0f356ae89dbe0575ee0581 SHA512 38b7af055f92ac1e7473174368db75aa4c3b2ec090ab73bf8728c622e6576b3da04789ffda4388168f5b051701f021a6b8eecd8e83f6f36ecb46565c53a04714 WHIRLPOOL 029c8dfad830f8c7647d209ab117ea6a68baca3b78629530fa8e55550de7da72282ec90b68501218e9ecb5510a9e4e3eb78f6d87b9b54fd1ed6623f86ac7b2cf
|
|
||||||
DIST libvirt-python-1.2.15.tar.gz 166128 SHA256 9a6dfbd487d49f887a41aca4bfb1b4e043fd9fbdfc041252cae84023f5c387ba SHA512 5687308c2f16199ecc4ec935719da1e2d34d0fb3752437a4c662d7c83d972f49ee5e852daf7233fa9aa29f25bbaed1c26d17740faf56c1771bbc2134bcb8958b WHIRLPOOL d2173060d5d3763ba367fbf3140800d6534c27f36b91d7a944ff2f5ce36f9ac54bd86fb6df1399cfa8610ef62c0b0b87427fc68dc1e0be77b0c7b3f94f7d9e30
|
DIST libvirt-python-1.2.15.tar.gz 166128 SHA256 9a6dfbd487d49f887a41aca4bfb1b4e043fd9fbdfc041252cae84023f5c387ba SHA512 5687308c2f16199ecc4ec935719da1e2d34d0fb3752437a4c662d7c83d972f49ee5e852daf7233fa9aa29f25bbaed1c26d17740faf56c1771bbc2134bcb8958b WHIRLPOOL d2173060d5d3763ba367fbf3140800d6534c27f36b91d7a944ff2f5ce36f9ac54bd86fb6df1399cfa8610ef62c0b0b87427fc68dc1e0be77b0c7b3f94f7d9e30
|
||||||
DIST libvirt-python-1.2.16.tar.gz 167711 SHA256 44eddd353d66f24380d90503bf16f3155c08f3d84d9cc4375d3529f312a7d8fe SHA512 97eaad16cd4561bf1319ff047ab73ed4794ad40ebf962eedd964015d9c83859f897514eaa60273e8f82393d0afc6fd1131909b277ac4e8eaf11ee9f96d542a28 WHIRLPOOL 4cf9381dc664bc7593ada8b0bc1a92742514907661eb59e0ffc29438d131f093d4d0b5e2c925a1d251c771d7e7b2017c27644be6da19ab3efc551bf537b25e4e
|
DIST libvirt-python-1.2.16.tar.gz 167711 SHA256 44eddd353d66f24380d90503bf16f3155c08f3d84d9cc4375d3529f312a7d8fe SHA512 97eaad16cd4561bf1319ff047ab73ed4794ad40ebf962eedd964015d9c83859f897514eaa60273e8f82393d0afc6fd1131909b277ac4e8eaf11ee9f96d542a28 WHIRLPOOL 4cf9381dc664bc7593ada8b0bc1a92742514907661eb59e0ffc29438d131f093d4d0b5e2c925a1d251c771d7e7b2017c27644be6da19ab3efc551bf537b25e4e
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/libvirt-python/libvirt-python-1.2.10.ebuild,v 1.8 2014/12/24 13:19:18 ago Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils distutils-r1
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt-python.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
RDEPEND="app-emulation/libvirt:=[-python(-)]"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/python/${MY_P}.tar.gz"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
RDEPEND="app-emulation/libvirt:0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="libvirt Python bindings"
|
|
||||||
HOMEPAGE="http://www.libvirt.org"
|
|
||||||
LICENSE="LGPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
# testsuite is currently not included in upstream tarball
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
|
||||||
distutils-r1_python_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install() {
|
|
||||||
python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
|
||||||
distutils-r1_python_install
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
esetup.py test
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/libvirt-python/libvirt-python-1.2.12.ebuild,v 1.3 2015/03/13 13:53:43 ago Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils distutils-r1
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt-python.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
RDEPEND="app-emulation/libvirt:=[-python(-)]"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/python/${MY_P}.tar.gz"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
RDEPEND="app-emulation/libvirt:0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="libvirt Python bindings"
|
|
||||||
HOMEPAGE="http://www.libvirt.org"
|
|
||||||
LICENSE="LGPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
# testsuite is currently not included in upstream tarball
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
esetup.py test
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/libvirt-python/libvirt-python-1.2.14.ebuild,v 1.3 2015/05/13 09:40:25 ago Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
AUTOTOOLIZE=yes
|
|
||||||
|
|
||||||
MY_P="${P/_rc/-rc}"
|
|
||||||
|
|
||||||
inherit eutils distutils-r1
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://libvirt.org/libvirt-python.git"
|
|
||||||
SRC_URI=""
|
|
||||||
KEYWORDS=""
|
|
||||||
RDEPEND="app-emulation/libvirt:=[-python(-)]"
|
|
||||||
else
|
|
||||||
SRC_URI="http://libvirt.org/sources/python/${MY_P}.tar.gz"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
RDEPEND="app-emulation/libvirt:0/${PV}"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P%_rc*}"
|
|
||||||
|
|
||||||
DESCRIPTION="libvirt Python bindings"
|
|
||||||
HOMEPAGE="http://www.libvirt.org"
|
|
||||||
LICENSE="LGPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
# testsuite is currently not included in upstream tarball
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
esetup.py test
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST mecab-python-0.98.tar.gz 51651 SHA256 d3a4b2c602b7e6baae8465c859fe8b1e2d5ceb04b619a07a35bd68daef275014 SHA512 7941b8043e20586491ae95e70b9702b2b30043e59852afbdcf3a32a19ee46b304761f103da05a53f88d480f1671b26ea8da61ad9c23008228c292a2a827f9fb3 WHIRLPOOL c31c522a6763b82cc7e6940366bf8fca16b369bcb42f2455e23c8126f2cca1cfa05bf54c4839654729222e93c3386a06e8107b2945e37fb546f4459525916246
|
|
||||||
DIST mecab-python-0.996.tar.gz 62338 SHA256 d305c30af9e781e70f7619a0b444ac1101f2faaf3922415a0d6c49da85a63511 SHA512 08954ed801419fd7f65d055244227364bc37b063f8d21babb6ceeb02ca40e0146fa4401d1426255f3656ac1a5e51439bde981414613153dca5972f624289447e WHIRLPOOL bae9a50996fa46bc0cf70b0d76c1d0377b84165a07d3ebeaa4a4731c6eafe8f3a952942c85e38bf6db0f1d56abfc6f85664e1cad5f5259dd2083ce28e08d8ca9
|
DIST mecab-python-0.996.tar.gz 62338 SHA256 d305c30af9e781e70f7619a0b444ac1101f2faaf3922415a0d6c49da85a63511 SHA512 08954ed801419fd7f65d055244227364bc37b063f8d21babb6ceeb02ca40e0146fa4401d1426255f3656ac1a5e51439bde981414613153dca5972f624289447e WHIRLPOOL bae9a50996fa46bc0cf70b0d76c1d0377b84165a07d3ebeaa4a4731c6eafe8f3a952942c85e38bf6db0f1d56abfc6f85664e1cad5f5259dd2083ce28e08d8ca9
|
||||||
|
@ -1,30 +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/mecab-python/mecab-python-0.98.ebuild,v 1.6 2013/08/03 09:09:07 hattya Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.* *-jython"
|
|
||||||
|
|
||||||
inherit distutils
|
|
||||||
|
|
||||||
DESCRIPTION="Python binding for MeCab"
|
|
||||||
HOMEPAGE="http://mecab.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN/-*}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( BSD LGPL-2.1 GPL-2 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~ia64 ppc64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="~app-text/mecab-${PV}"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
DOCS="test.py"
|
|
||||||
PYTHON_MODNAME="MeCab.py"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils_src_install
|
|
||||||
dohtml bindings.html || die
|
|
||||||
}
|
|
@ -1,73 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/paste/paste-1.7.5.1.ebuild,v 1.6 2014/10/15 23:08:08 blueness Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.*"
|
|
||||||
DISTUTILS_SRC_TEST="nosetests"
|
|
||||||
|
|
||||||
inherit distutils eutils
|
|
||||||
|
|
||||||
MY_PN="Paste"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="Tools for using a Web Server Gateway Interface stack"
|
|
||||||
HOMEPAGE="http://pythonpaste.org http://pypi.python.org/pypi/Paste"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~ppc ~ppc64 x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris"
|
|
||||||
IUSE="doc flup openid"
|
|
||||||
|
|
||||||
RDEPEND="dev-python/setuptools
|
|
||||||
flup? ( dev-python/flup )
|
|
||||||
openid? ( dev-python/python-openid )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
doc? ( dev-python/sphinx )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
distutils_src_prepare
|
|
||||||
|
|
||||||
# Disable failing tests.
|
|
||||||
rm -f tests/test_cgiapp.py
|
|
||||||
sed \
|
|
||||||
-e "s/test_find_file/_&/" \
|
|
||||||
-e "s/test_deep/_&/" \
|
|
||||||
-e "s/test_static_parser/_&/" \
|
|
||||||
-i tests/test_urlparser.py || die "sed failed"
|
|
||||||
|
|
||||||
# Remove a test that runs against the paste website.
|
|
||||||
rm tests/test_proxy.py
|
|
||||||
|
|
||||||
epatch "${FILESDIR}/${P}-fix-tests-for-pypy.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
distutils_src_compile
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
einfo "Generation of documentation"
|
|
||||||
PYTHONPATH="." "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Define custom src_test() due to requirement of PYTHONPATH=".".
|
|
||||||
src_test() {
|
|
||||||
python_execute_nosetests -P .
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils_src_install
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
pushd build/sphinx/html > /dev/null
|
|
||||||
docinto html
|
|
||||||
cp -R [a-z]* _static "${ED}usr/share/doc/${PF}/html" || die "Installation of documentation failed"
|
|
||||||
popd > /dev/null
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,56 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild,v 1.25 2014/12/28 15:41:58 titanofold Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
|
|
||||||
|
|
||||||
inherit python
|
|
||||||
|
|
||||||
DESCRIPTION="PostgreSQL database adapter for Python"
|
|
||||||
HOMEPAGE="http://www.initd.org/software/psycopg"
|
|
||||||
SRC_URI="http://initd.org/pub/software/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha ~amd64 ~arm ia64 ppc ppc64 sparc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=">=dev-python/egenix-mx-base-2.0.3
|
|
||||||
dev-db/postgresql"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# fix for bug #134873
|
|
||||||
sed -e '1245s/static //' -i cursor.c
|
|
||||||
|
|
||||||
sed -e 's:$(PY_MOD_DIR):$(D)&/$$mod:' -i Makefile.pre.in
|
|
||||||
|
|
||||||
python_copy_sources
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
configuration() {
|
|
||||||
econf \
|
|
||||||
--with-mxdatetime-includes="$(python_get_includedir)/mx" \
|
|
||||||
--with-postgres-includes="/usr/include/postgresql/server" || return 1
|
|
||||||
sed -e 's:$(BLDSHARED):& $(LDFLAGS):' -i Makefile
|
|
||||||
}
|
|
||||||
python_execute_function -s configuration
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
python_src_compile OPT="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
python_src_install
|
|
||||||
|
|
||||||
dodoc AUTHORS ChangeLog CREDITS README NEWS RELEASE-1.0 SUCCESS TODO
|
|
||||||
docinto doc
|
|
||||||
dodoc doc/python-taylor.txt doc/README
|
|
||||||
insinto /usr/share/doc/${PF}/examples
|
|
||||||
doins doc/examples/*
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-2.5.1.ebuild,v 1.15 2015/04/08 08:04:54 mgorny Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3} )
|
|
||||||
|
|
||||||
inherit distutils-r1 flag-o-matic
|
|
||||||
|
|
||||||
MY_PN="${PN}2"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="PostgreSQL database adapter for Python"
|
|
||||||
HOMEPAGE="http://initd.org/psycopg/ http://pypi.python.org/pypi/psycopg2"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-3+"
|
|
||||||
SLOT="2"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
|
||||||
IUSE="debug doc examples"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-db/postgresql-8.1"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
|
|
||||||
|
|
||||||
[[ ${EPYTHON} != python3* ]] && append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
distutils-r1_python_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.4.2-setup.py.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use debug; then
|
|
||||||
sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if use mxdatetime; then
|
|
||||||
# sed -i 's/\(use_pydatetime=\)1/\10/' setup.cfg || die
|
|
||||||
# fi
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use doc && emake -C doc -j1 html text
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
dodoc doc/{HACKING,SUCCESS}
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
dodoc doc/psycopg2.txt
|
|
||||||
dohtml -r doc/html/.
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
insinto /usr/share/doc/${PF}/examples
|
|
||||||
doins -r examples/.
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-2.5.2.ebuild,v 1.6 2015/04/08 08:04:54 mgorny Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
inherit distutils-r1 flag-o-matic
|
|
||||||
|
|
||||||
MY_PN="${PN}2"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="PostgreSQL database adapter for Python"
|
|
||||||
HOMEPAGE="http://initd.org/psycopg/ http://pypi.python.org/pypi/psycopg2"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-3+"
|
|
||||||
SLOT="2"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
|
||||||
IUSE="debug doc examples"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-db/postgresql-8.1"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
|
|
||||||
|
|
||||||
[[ ${EPYTHON} != python3* ]] && append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
distutils-r1_python_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.4.2-setup.py.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use debug; then
|
|
||||||
sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if use mxdatetime; then
|
|
||||||
# sed -i 's/\(use_pydatetime=\)1/\10/' setup.cfg || die
|
|
||||||
# fi
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use doc && emake -C doc -j1 html text
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
dodoc doc/{HACKING,SUCCESS}
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
dodoc doc/psycopg2.txt
|
|
||||||
dohtml -r doc/html/.
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
insinto /usr/share/doc/${PF}/examples
|
|
||||||
doins -r examples/.
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST pycryptopp-0.5.29.tar.gz 1114525 SHA256 d504775b73d30fb05a3237f83c4e9e1ff3312cbba90a4a23e6cbb7d32219502b SHA512 b70afbf0cd638a7afa4b41528cc4412f7f5a0cfcfd533ab0c89e9597e299e54a483991c33078dd606784e0b8a30b5b9c01cb5ff0f882fa7f70662eb2a4c4d0b6 WHIRLPOOL cb80012bfa2bf50600dedbd4ef79ae1a47601ae248c2d7205b4e3429fe30ad6cfaee319cc2028c42a81cfacfe17ab97caab203766692cac76c07b88f93bde8ec
|
|
||||||
DIST pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz 2009822 SHA256 116158917bd243da2701cfeba9a6374854bc9a599d1466e1a2dbadf37c802059 SHA512 bdd7d983bc0f8ef50c140a8da0c532883f0f1461d4a91d2761c872403133e9474d4fdbd78e275adbaacd2066cab4121034002a4730258162a618b3af913fdf7a WHIRLPOOL 809aecb84ff38232351b0700225564672d082528d0a98ec071ce40b97e02df59ac41647ae6356ecafca916655555cf533787db5182cd9536177affedbd7b89c3
|
DIST pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz 2009822 SHA256 116158917bd243da2701cfeba9a6374854bc9a599d1466e1a2dbadf37c802059 SHA512 bdd7d983bc0f8ef50c140a8da0c532883f0f1461d4a91d2761c872403133e9474d4fdbd78e275adbaacd2066cab4121034002a4730258162a618b3af913fdf7a WHIRLPOOL 809aecb84ff38232351b0700225564672d082528d0a98ec071ce40b97e02df59ac41647ae6356ecafca916655555cf533787db5182cd9536177affedbd7b89c3
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycryptopp/pycryptopp-0.5.29.ebuild,v 1.4 2012/02/22 09:11:59 patrick Exp $
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
|
|
||||||
DISTUTILS_SRC_TEST="setup.py"
|
|
||||||
DISTUTILS_GLOBAL_OPTIONS=("2.*-cpython --disable-embedded-cryptopp")
|
|
||||||
|
|
||||||
inherit distutils
|
|
||||||
|
|
||||||
DESCRIPTION="Python wrappers for a few algorithms from the Crypto++ library"
|
|
||||||
HOMEPAGE="http://tahoe-lafs.org/trac/pycryptopp http://pypi.python.org/pypi/pycryptopp"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="dev-libs/crypto++"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools"
|
|
||||||
|
|
||||||
DOCS="NEWS.rst"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Don't install license files
|
|
||||||
sed -i -e "/data_files=data_files,/d" setup.py || die
|
|
||||||
}
|
|
@ -1,50 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfltk/pyfltk-1.3.0.ebuild,v 1.5 2012/02/20 14:27:11 patrick Exp $
|
|
||||||
|
|
||||||
# FIXME: MakeSwig.py execution should be made work from pyfltk-1.1.5.ebuild
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-**"
|
|
||||||
|
|
||||||
inherit distutils eutils
|
|
||||||
|
|
||||||
MY_P=pyFltk-${PV}
|
|
||||||
|
|
||||||
DESCRIPTION="Python interface to Fltk library"
|
|
||||||
HOMEPAGE="http://pyfltk.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ppc ppc64 x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
DEPEND=">=x11-libs/fltk-1.3.0:1[opengl]"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing")
|
|
||||||
|
|
||||||
DOCS="CHANGES README TODO"
|
|
||||||
PYTHON_MODNAME="fltk"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
distutils_src_prepare
|
|
||||||
epatch "${FILESDIR}"/${P}-linux-3.x-detection.patch
|
|
||||||
|
|
||||||
# Disable installation of documentation and tests.
|
|
||||||
sed -i -e '/package_data=/d' setup.py || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils_src_install
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
dohtml fltk/docs/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-daemon/python-daemon-1.6.ebuild,v 1.8 2014/08/10 21:18:39 slyfox Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
DISTUTILS_SRC_TEST="setup.py"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.* *-jython"
|
|
||||||
|
|
||||||
inherit distutils
|
|
||||||
|
|
||||||
DESCRIPTION="Library to implement a well-behaved Unix daemon process"
|
|
||||||
HOMEPAGE="http://pypi.python.org/pypi/python-daemon"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="PSF-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm x86"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-python/lockfile-0.9"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools
|
|
||||||
test? ( dev-python/minimock )"
|
|
||||||
|
|
||||||
PYTHON_MODNAME="daemon"
|
|
||||||
DOCS="ChangeLog"
|
|
@ -1,4 +1,3 @@
|
|||||||
DIST python-distutils-extra-2.23.tar.gz 26349 SHA256 bb862f24e5b5c3a297b7b57221088dd8ca6e42fb3e92bc1a2b742aae06a84883 SHA512 547879ea4b3a245c9b7d0ca6896654fea37324dc83f62d68556ecc9531f4dd5fb9d7b3347203c18ef700fcf1d797604fc0f8033992dfb594298a4ff06b148fab WHIRLPOOL c724cf12f2636b1900787ef7163d5573dced8f6d1ef14fe890c5854808db11a89ebb7e63670747c1063ae12763630f3346c4eb26291b26960b1927dd6ee58fec
|
|
||||||
DIST python-distutils-extra-2.33.tar.gz 27053 SHA256 9ae0afefc19c7788a96869816ad9d39bbb187b2c61fae663d30ef2d4bbd51bd6 SHA512 aa1fac86482ee5bcb06591d334504dafb70a9f1b65076591e853cb7ef6854b913f7ae1415fbd6021df4cc9f9f232d1e114316e58db059334698af00b2da827a3 WHIRLPOOL ecc1b44479f359f5d30c3f66d3928268cc67e3ccf9877006db297abff739a830b79ee9b987a4393628e17925db7894b38ce63982827b1082ae0811cbf0f7c5f3
|
DIST python-distutils-extra-2.33.tar.gz 27053 SHA256 9ae0afefc19c7788a96869816ad9d39bbb187b2c61fae663d30ef2d4bbd51bd6 SHA512 aa1fac86482ee5bcb06591d334504dafb70a9f1b65076591e853cb7ef6854b913f7ae1415fbd6021df4cc9f9f232d1e114316e58db059334698af00b2da827a3 WHIRLPOOL ecc1b44479f359f5d30c3f66d3928268cc67e3ccf9877006db297abff739a830b79ee9b987a4393628e17925db7894b38ce63982827b1082ae0811cbf0f7c5f3
|
||||||
DIST python-distutils-extra-2.37.tar.gz 27518 SHA256 5c9539badfdc7e0ebb463ee66b9c09d48a08ca121c84ec7316b1fbb799a72878 SHA512 757ef3f3b3c5baa4598ac2e76fc7257fa1d3f3153b842a6a55707150414199b699f460f3b0797674d6ba23824032362a470f500d2b90d9c95a0aae1a71a2d472 WHIRLPOOL f3eb3c3a9462fdf920e52dcbabe21ae8de7e60ad6b0377c5415c34e8ce91c7e3c1cfb80d75776049de081f2fb9a5d88e30161affd2cffa9cf0ef8aaa0602e48e
|
DIST python-distutils-extra-2.37.tar.gz 27518 SHA256 5c9539badfdc7e0ebb463ee66b9c09d48a08ca121c84ec7316b1fbb799a72878 SHA512 757ef3f3b3c5baa4598ac2e76fc7257fa1d3f3153b842a6a55707150414199b699f460f3b0797674d6ba23824032362a470f500d2b90d9c95a0aae1a71a2d472 WHIRLPOOL f3eb3c3a9462fdf920e52dcbabe21ae8de7e60ad6b0377c5415c34e8ce91c7e3c1cfb80d75776049de081f2fb9a5d88e30161affd2cffa9cf0ef8aaa0602e48e
|
||||||
DIST python-distutils-extra-2.38.tar.gz 27748 SHA256 3d100d5d3492f40b3e7a6a4500f71290bfa91e2c50dc31ba8e3ff9b5d82ca153 SHA512 bbaea59a8f251f354e6cf3799b67c12225095cc869c7c4e299e719ad7bcfd1292cff99f95ab25f04fb9c3e2432da5ea614ee76154781388c47960fdf2c90a3d7 WHIRLPOOL 10ca7754985aa634aaef7f7fc80777ca4a2b79ecc11e80c48bb2e6c1765cc9f38fbf9696957f974533f50f06db3d1bdb6527f1ed6dbe05619f3d0a17184b885d
|
DIST python-distutils-extra-2.38.tar.gz 27748 SHA256 3d100d5d3492f40b3e7a6a4500f71290bfa91e2c50dc31ba8e3ff9b5d82ca153 SHA512 bbaea59a8f251f354e6cf3799b67c12225095cc869c7c4e299e719ad7bcfd1292cff99f95ab25f04fb9c3e2432da5ea614ee76154781388c47960fdf2c90a3d7 WHIRLPOOL 10ca7754985aa634aaef7f7fc80777ca4a2b79ecc11e80c48bb2e6c1765cc9f38fbf9696957f974533f50f06db3d1bdb6527f1ed6dbe05619f3d0a17184b885d
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-distutils-extra/python-distutils-extra-2.23.ebuild,v 1.5 2014/08/10 21:18:50 slyfox Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.*"
|
|
||||||
|
|
||||||
inherit distutils
|
|
||||||
|
|
||||||
DESCRIPTION="You can integrate gettext support, themed icons and scrollkeeper based documentation in distutils"
|
|
||||||
HOMEPAGE="https://launchpad.net/python-distutils-extra"
|
|
||||||
SRC_URI="http://launchpad.net/python-distutils-extra/trunk/${PV}/+download/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ppc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
DOCS="doc/FAQ doc/README doc/setup.cfg.example doc/setup.py.example"
|
|
||||||
PYTHON_MODNAME="DistUtilsExtra"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
distutils_src_prepare
|
|
||||||
|
|
||||||
# Disable broken tests.
|
|
||||||
sed \
|
|
||||||
-e "s/test_desktop/_&/" \
|
|
||||||
-e "s/test_po(/_&/" \
|
|
||||||
-e "s/test_policykit/_&/" \
|
|
||||||
-e "s/test_requires_provides/_&/" \
|
|
||||||
-i test/auto.py
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# 5 tests fail with disabled byte-compilation.
|
|
||||||
python_enable_pyc
|
|
||||||
|
|
||||||
testing() {
|
|
||||||
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/auto.py
|
|
||||||
}
|
|
||||||
python_execute_function testing
|
|
||||||
|
|
||||||
python_disable_pyc
|
|
||||||
}
|
|
@ -1,41 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gudev/python-gudev-147.2.ebuild,v 1.10 2014/07/24 17:23:28 ssuominen Exp $
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
PYTHON_DEPEND="2:2.5"
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="2.4 3.* *-jython 2.7-pypy-*"
|
|
||||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
|
||||||
|
|
||||||
inherit autotools python
|
|
||||||
|
|
||||||
DESCRIPTION="Python binding to the GUDev udev helper library"
|
|
||||||
HOMEPAGE="http://github.com/nzjrs/python-gudev"
|
|
||||||
SRC_URI="https://github.com/nzjrs/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="dev-python/pygobject:2
|
|
||||||
virtual/libgudev"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
S=${WORKDIR}/nzjrs-${PN}-ee8a644
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eautoreconf
|
|
||||||
python_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
python_src_configure --disable-static
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
python_src_install
|
|
||||||
python_clean_installation_image
|
|
||||||
dodoc AUTHORS NEWS README || die
|
|
||||||
}
|
|
@ -1,48 +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/scimath/scimath-4.1.2.ebuild,v 1.1 2013/04/03 08:50:40 patrick Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
SUPPORT_PYTHON_ABIS="1"
|
|
||||||
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
|
||||||
DISTUTILS_SRC_TEST="nosetests"
|
|
||||||
|
|
||||||
inherit distutils virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Enthought Tool Suite: Scientific and mathematical tools"
|
|
||||||
HOMEPAGE="http://code.enthought.com/projects/sci_math/ http://pypi.python.org/pypi/scimath"
|
|
||||||
SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="doc test"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-python/traits-4.1
|
|
||||||
>=dev-python/traitsui-4.1
|
|
||||||
sci-libs/scipy"
|
|
||||||
DEPEND="dev-python/setuptools
|
|
||||||
doc? ( dev-python/sphinx )
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
media-fonts/font-cursor-misc
|
|
||||||
media-fonts/font-misc-misc
|
|
||||||
x11-apps/xhost
|
|
||||||
)"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
distutils_src_compile
|
|
||||||
use doc && emake -C docs html
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
VIRTUALX_COMMAND="distutils_src_test" virtualmake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
find -name "*LICENSE*.txt" -delete
|
|
||||||
distutils_src_install
|
|
||||||
|
|
||||||
use doc && dohtml -r docs/build/html/*
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST virtualenv-clone-0.2.4.tar.gz 6192 SHA256 6797e96bc2a1ab41995bcabdfe08ac1b02c55c719c62036ccf53a0ed5430b935 SHA512 0cfcbd32cbffe4c913fabd3f8e609112920f3952cfdc9b8e25080f39d2e3e1062246c04035ad0989d5fce313f1eea228449cd428ea0eda70da1124ef9a4c3c17 WHIRLPOOL 2e71196caeb30d5e6e2c6a15512425b5736a9f7086c340c9d54a5f18864be92bf18c28b22ff2606fce9c4c57676fc43806f26db5104ecbc45d529e63859e5e84
|
DIST virtualenv-clone-0.2.4.tar.gz 6192 SHA256 6797e96bc2a1ab41995bcabdfe08ac1b02c55c719c62036ccf53a0ed5430b935 SHA512 0cfcbd32cbffe4c913fabd3f8e609112920f3952cfdc9b8e25080f39d2e3e1062246c04035ad0989d5fce313f1eea228449cd428ea0eda70da1124ef9a4c3c17 WHIRLPOOL 2e71196caeb30d5e6e2c6a15512425b5736a9f7086c340c9d54a5f18864be92bf18c28b22ff2606fce9c4c57676fc43806f26db5104ecbc45d529e63859e5e84
|
||||||
|
DIST virtualenv-clone-0.2.5.tar.gz 5311 SHA256 7087ba4eb48acfd5209a3fd03e15d072f28742619127c98333057e32748d91c4 SHA512 be3e6a5497e776a127612d248be07fbf43d974b9d8b8c65f35c60c7edc05cf7b717fdba79b5590cef4feda37ba10ba7fbc1efd72096f8deb4318822f7564e2a4 WHIRLPOOL 4c2f1b2dc5ebce0e1eabe04c6bffbacb2140152fec72d8b2b7e1d5fc1797fa056c121159e596e2e154f03963fd9805a3924f34fd75a6a5ad6623c6aa6c5f03c8
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/virtualenv-clone/virtualenv-clone-0.2.5.ebuild,v 1.1 2015/06/23 07:34:12 patrick Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A script for cloning a non-relocatable virtualenv"
|
||||||
|
HOMEPAGE="http://github.com/edwardgeorge/virtualenv-clone"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="${DEPEND}"
|
@ -1,3 +1,4 @@
|
|||||||
DIST jwt-1.2.1.gem 9216 SHA256 b0cfc9e85b2f851aa49931a4c07156127888fbf003e7ef971d4d6c2e91f98661 SHA512 d9d53b2b7766c9315de9dad3b63f85bbbbc2c8d980098ae5c570ba4890f87dfa1aad21132580210bc622e78172f5ed6fea0a8de4049cc5da5e910620abdfa4a6 WHIRLPOOL f63f18cb18d30b57b8549a5367b0319ad7dc9c8a58e34ba3022662dad6951b9cdbe26da14df6c133c68b2b2df2f75614fb5e2e984e5e9869a28ea2363b78cfc5
|
DIST jwt-1.2.1.gem 9216 SHA256 b0cfc9e85b2f851aa49931a4c07156127888fbf003e7ef971d4d6c2e91f98661 SHA512 d9d53b2b7766c9315de9dad3b63f85bbbbc2c8d980098ae5c570ba4890f87dfa1aad21132580210bc622e78172f5ed6fea0a8de4049cc5da5e910620abdfa4a6 WHIRLPOOL f63f18cb18d30b57b8549a5367b0319ad7dc9c8a58e34ba3022662dad6951b9cdbe26da14df6c133c68b2b2df2f75614fb5e2e984e5e9869a28ea2363b78cfc5
|
||||||
DIST jwt-1.4.1.gem 10752 SHA256 9c29b4b45e805a351e124f32a5c54b20653badf10065b6d410de084668493d0d SHA512 d05a9f08cab8b232d8d11fa97f85ee0b6a261d55a2c3c27f4592e8a649c5986e2cf30e98438112154e9ab59a6d3b9daf2d914f18d6fd39b8ca640d396b9626bf WHIRLPOOL 7d2325f88930c723d3f82c16be15d9408bcfc37fae0e861961c96a3df2dac78b86943b59cd17e81afeb484c7d769e2e3cde14b010f7e954f04b917852eb21677
|
DIST jwt-1.4.1.gem 10752 SHA256 9c29b4b45e805a351e124f32a5c54b20653badf10065b6d410de084668493d0d SHA512 d05a9f08cab8b232d8d11fa97f85ee0b6a261d55a2c3c27f4592e8a649c5986e2cf30e98438112154e9ab59a6d3b9daf2d914f18d6fd39b8ca640d396b9626bf WHIRLPOOL 7d2325f88930c723d3f82c16be15d9408bcfc37fae0e861961c96a3df2dac78b86943b59cd17e81afeb484c7d769e2e3cde14b010f7e954f04b917852eb21677
|
||||||
DIST jwt-1.5.0.gem 11264 SHA256 0bd816489c49052070c9be711cb01c4181f213308d41d5d4bb220bc16041e500 SHA512 fbaf8cae0e388eea9777e539b41f8b53ac4be67a6cbb3ec5a20864360f24da2d8d401c1f7e9b4b7c236767bc692538a3e3fbcbe1bfc0d96536ea1a24904f561b WHIRLPOOL 2de9601a077fc054ebfb6afbb81be805a44e0b9641a014357e0c9a55eca9b134c53eb884d7fa17cc09cd2a05a1f1f0319a5af7a6ace323198b11fd8b24814558
|
DIST jwt-1.5.0.gem 11264 SHA256 0bd816489c49052070c9be711cb01c4181f213308d41d5d4bb220bc16041e500 SHA512 fbaf8cae0e388eea9777e539b41f8b53ac4be67a6cbb3ec5a20864360f24da2d8d401c1f7e9b4b7c236767bc692538a3e3fbcbe1bfc0d96536ea1a24904f561b WHIRLPOOL 2de9601a077fc054ebfb6afbb81be805a44e0b9641a014357e0c9a55eca9b134c53eb884d7fa17cc09cd2a05a1f1f0319a5af7a6ace323198b11fd8b24814558
|
||||||
|
DIST jwt-1.5.1.gem 12288 SHA256 d3d39adde503148c2f35eb37d4b0ef3da85fc0b295ee339b59b6d76c2763658d SHA512 a0ea17ce11046041316a9dcad63bf5af3b501d257716398cd23b50ea72ecb04f82670552246f71e9731a2a92429f7652d0ad5944ea97e4a9a6e98f612fecbf0e WHIRLPOOL b845fed75bb5403d721cb5b60cb097942988187e620314a79bc011855e767499b1a53a6df354c36d1901a857c70e48a756dd13f4f5491b5a9a2618e9ca8f0660
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/jwt/jwt-1.5.1.ebuild,v 1.1 2015/06/23 09:17:46 mrueg Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="A Ruby implementation of JSON Web Token draft 06"
|
||||||
|
HOMEPAGE="https://github.com/progrium/ruby-jwt"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
sed -i -e "/simplecov/,+13d" spec/helper.rb || die
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
DIST d-feet-0.3.8.tar.xz 173512 SHA256 e8423feb18fdff9b1465bf8442b78994ba13c12f8fa3b08e6a2f05768b4feee5 SHA512 d8f300d1dd1bbb90a53f33d50749336260e6291a5113921489400385cc9439603c191b775ff148f8a9cf0dfd9d2dd91ae634523452c6ecf0d581742d98043ed5 WHIRLPOOL 4ba106a33f8cd4dd315c1bf97134a362c1fea87d6fd9a903a38688b05c116cbce9e0aabdc27b3a396cb44eb9bd75a214b847cfe9175c807f7a800554ddfa20cc
|
DIST d-feet-0.3.10.tar.xz 179500 SHA256 88f0df5fcb862387ff3d1793873c5eb368c3e4db0bbd82ea65f748cbf70a6359 SHA512 7a6832367b32eae204c456598ac4ad38ead585e916e2d2179203f63f4e87f2e9d9afbc8448324660552ebe4aaf2bd394f73e48f325513c3b0f5fa33f91fce40b WHIRLPOOL 559135be86d13bb7e2ff1c10d753d1c770e2fc0d0a849b643c626fb5db5e3779e5f7b7208086d6e2e92e3f1f81e06f5cb9e3cbc41510c0acab30b3b71fdf99ca
|
||||||
DIST d-feet-0.3.9.tar.xz 176652 SHA256 6df917fc1c2ef43217fbeea94dc12ecfc2d136cac4c84dac2c89f03dfbca7953 SHA512 fa61f926dd0493ae5de3d81676aad78879062ade30f77e4054d1ca20e80b876c30fb61b4780a7e33a610c50f3d7df3b7cee10e91cfc69759a1228b38e9b2e1ab WHIRLPOOL 7bd1d5c7246138f4b80d1a0d1fb52de604b5b127bd6b7d8629966e42e257631efd2fc38b5d8de2d572a727a4830668dce981d4cfc42f8017897b81865039f42d
|
DIST d-feet-0.3.9.tar.xz 176652 SHA256 6df917fc1c2ef43217fbeea94dc12ecfc2d136cac4c84dac2c89f03dfbca7953 SHA512 fa61f926dd0493ae5de3d81676aad78879062ade30f77e4054d1ca20e80b876c30fb61b4780a7e33a610c50f3d7df3b7cee10e91cfc69759a1228b38e9b2e1ab WHIRLPOOL 7bd1d5c7246138f4b80d1a0d1fb52de604b5b127bd6b7d8629966e42e257631efd2fc38b5d8de2d572a727a4830668dce981d4cfc42f8017897b81865039f42d
|
||||||
|
@ -0,0 +1,53 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-util/scons/scons-2.3.5.ebuild,v 1.1 2015/06/23 06:19:58 patrick Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
PYTHON_COMPAT=( python2_7 pypy )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Extensible Python-based build utility"
|
||||||
|
HOMEPAGE="http://www.scons.org/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
|
||||||
|
doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
|
||||||
|
http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="doc"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/${PN}-2.1.0-jython.patch" )
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# https://bugs.gentoo.org/show_bug.cgi?id=361061
|
||||||
|
sed -i -e "s|/usr/local/bin:/opt/bin:/bin:/usr/bin|${EPREFIX}/usr/local/bin:${EPREFIX}/opt/bin:${EPREFIX}/bin:${EPREFIX}/usr/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin|g" engine/SCons/Platform/posix.py || die
|
||||||
|
# and make sure the build system doesn't "force" /usr/local/ :(
|
||||||
|
sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
distutils-r1_python_install \
|
||||||
|
--standard-lib \
|
||||||
|
--no-version-script \
|
||||||
|
--install-data "${EPREFIX}"/usr/share
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
local DOCS=( {CHANGES,README,RELEASE}.txt )
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
distutils-r1_src_install
|
||||||
|
|
||||||
|
# Build system does not use build_scripts properly.
|
||||||
|
# http://scons.tigris.org/issues/show_bug.cgi?id=2891
|
||||||
|
python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/lv2-ui/lv2-ui-2.4.ebuild,v 1.4 2015/01/03 15:00:17 mgorny Exp $
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/lv2-ui/lv2-ui-2.4-r1.ebuild,v 1.1 2015/06/23 07:51:09 jlec Exp $
|
||||||
|
|
||||||
EAPI=3
|
EAPI=5
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||||
PYTHON_REQ_USE='threads'
|
PYTHON_REQ_USE='threads'
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<herd>proaudio</herd>
|
<herd>proaudio</herd>
|
||||||
<longdescription lang="en">
|
<longdescription lang="en">
|
||||||
This extension defines an interface that can be used in LV2 plugins and hosts to create UIs for plugins. The UIs are similar to plugins and reside in shared object files in an LV2 bundle.
|
This extension defines an interface that can be used in LV2 plugins and hosts to create UIs for plugins. The UIs are similar to plugins and reside in shared object files in an LV2 bundle.
|
||||||
</longdescription>
|
</longdescription>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1 +1 @@
|
|||||||
Tue, 23 Jun 2015 06:06:49 +0000
|
Tue, 23 Jun 2015 11:36:50 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
Tue, 23 Jun 2015 06:06:50 +0000
|
Tue, 23 Jun 2015 11:36:50 +0000
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=configure install postinst preinst prepare setup test
|
|
||||||
DEPEND=sys-libs/readline:= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) ) virtual/pkgconfig app-text/xhtml1 dev-lang/perl dev-libs/libxslt !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
|
||||||
DESCRIPTION=C toolkit to manipulate virtual machines
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.libvirt.org/
|
|
||||||
IUSE=audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen elibc_glibc systemd
|
|
||||||
KEYWORDS=amd64 x86
|
|
||||||
LICENSE=LGPL-2.1
|
|
||||||
RDEPEND=sys-libs/readline:= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
|
|
||||||
REQUIRED_USE=libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) lxc? ( caps libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) vepa? ( macvtap ) virtualbox? ( libvirtd ) xen? ( libvirtd ) virt-network? ( libvirtd ) firewalld? ( virt-network )
|
|
||||||
SLOT=0/1.2.10
|
|
||||||
SRC_URI=http://libvirt.org/sources/libvirt-1.2.10.tar.gz http://dev.gentoo.org/~cardoe/distfiles/libvirt-1.2.10-20150127.tar.xz http://dev.gentoo.org/~tamiko/distfiles/libvirt-1.2.10-20150127.tar.xz
|
|
||||||
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 linux-info 8cbc678e083c23e4ad546ca6509cf304 multilib 62927b3db3a589b0806255f3a002d5d3 readme.gentoo 106edea5533517715013de909a333abd systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4 user f54e098dd38ba1c0847a13e685b87747 versionator cd0bcdb170807e4a1984115e9d53a26f
|
|
||||||
_md5_=fedfe1b7470477f564468388c775c74f
|
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=configure install postinst preinst prepare setup test
|
|
||||||
DEPEND=sys-libs/readline:0= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) ) virtual/pkgconfig app-text/xhtml1 dev-lang/perl dev-libs/libxslt !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
|
||||||
DESCRIPTION=C toolkit to manipulate virtual machines
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.libvirt.org/
|
|
||||||
IUSE=audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen elibc_glibc systemd
|
|
||||||
KEYWORDS=amd64 ~x86
|
|
||||||
LICENSE=LGPL-2.1
|
|
||||||
RDEPEND=sys-libs/readline:0= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
|
|
||||||
REQUIRED_USE=libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) lxc? ( caps libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) vepa? ( macvtap ) virtualbox? ( libvirtd ) xen? ( libvirtd ) virt-network? ( libvirtd ) firewalld? ( virt-network )
|
|
||||||
SLOT=0/1.2.10
|
|
||||||
SRC_URI=http://libvirt.org/sources/libvirt-1.2.10.tar.gz http://dev.gentoo.org/~cardoe/distfiles/libvirt-1.2.10-20150524.tar.xz http://dev.gentoo.org/~tamiko/distfiles/libvirt-1.2.10-20150524.tar.xz
|
|
||||||
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 linux-info 8cbc678e083c23e4ad546ca6509cf304 multilib 62927b3db3a589b0806255f3a002d5d3 readme.gentoo 106edea5533517715013de909a333abd systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4 user f54e098dd38ba1c0847a13e685b87747 versionator cd0bcdb170807e4a1984115e9d53a26f
|
|
||||||
_md5_=80f8fee5e01e9fb5bb74e86bf65704a8
|
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=configure install postinst preinst prepare setup test
|
|
||||||
DEPEND=sys-libs/readline:= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) ) virtual/pkgconfig app-text/xhtml1 dev-lang/perl dev-perl/XML-XPath dev-libs/libxslt !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
|
||||||
DESCRIPTION=C toolkit to manipulate virtual machines
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.libvirt.org/
|
|
||||||
IUSE=audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen elibc_glibc systemd
|
|
||||||
KEYWORDS=amd64 x86
|
|
||||||
LICENSE=LGPL-2.1
|
|
||||||
RDEPEND=sys-libs/readline:= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
|
|
||||||
REQUIRED_USE=libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) lxc? ( caps libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) vepa? ( macvtap ) virtualbox? ( libvirtd ) xen? ( libvirtd ) virt-network? ( libvirtd ) firewalld? ( virt-network )
|
|
||||||
SLOT=0/1.2.12
|
|
||||||
SRC_URI=http://libvirt.org/sources/libvirt-1.2.12.tar.gz
|
|
||||||
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 linux-info 8cbc678e083c23e4ad546ca6509cf304 multilib 62927b3db3a589b0806255f3a002d5d3 readme.gentoo 106edea5533517715013de909a333abd systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4 user f54e098dd38ba1c0847a13e685b87747 versionator cd0bcdb170807e4a1984115e9d53a26f
|
|
||||||
_md5_=9acfc625917abd04480c443af2fa508d
|
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=configure install postinst preinst prepare setup test
|
|
||||||
DEPEND=sys-libs/readline:0= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) ) virtual/pkgconfig app-text/xhtml1 dev-lang/perl dev-perl/XML-XPath dev-libs/libxslt !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
|
||||||
DESCRIPTION=C toolkit to manipulate virtual machines
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.libvirt.org/
|
|
||||||
IUSE=audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen elibc_glibc systemd
|
|
||||||
KEYWORDS=amd64 ~x86
|
|
||||||
LICENSE=LGPL-2.1
|
|
||||||
RDEPEND=sys-libs/readline:0= sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
|
|
||||||
REQUIRED_USE=libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) lxc? ( caps libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) vepa? ( macvtap ) virtualbox? ( libvirtd ) xen? ( libvirtd ) virt-network? ( libvirtd ) firewalld? ( virt-network )
|
|
||||||
SLOT=0/1.2.12
|
|
||||||
SRC_URI=http://libvirt.org/sources/libvirt-1.2.12.tar.gz http://dev.gentoo.org/~cardoe/distfiles/libvirt-1.2.12-20150524.tar.xz http://dev.gentoo.org/~tamiko/distfiles/libvirt-1.2.12-20150524.tar.xz
|
|
||||||
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 linux-info 8cbc678e083c23e4ad546ca6509cf304 multilib 62927b3db3a589b0806255f3a002d5d3 readme.gentoo 106edea5533517715013de909a333abd systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4 user f54e098dd38ba1c0847a13e685b87747 versionator cd0bcdb170807e4a1984115e9d53a26f
|
|
||||||
_md5_=b46f8dc244ce518706ec6b1360c808de
|
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=configure install postinst preinst prepare setup test
|
|
||||||
DEPEND=sys-libs/readline:0 sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) ) virtual/pkgconfig app-text/xhtml1 dev-lang/perl dev-perl/XML-XPath dev-libs/libxslt !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
|
||||||
DESCRIPTION=C toolkit to manipulate virtual machines
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.libvirt.org/
|
|
||||||
IUSE=audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen elibc_glibc systemd
|
|
||||||
KEYWORDS=amd64 x86
|
|
||||||
LICENSE=LGPL-2.1
|
|
||||||
RDEPEND=sys-libs/readline:0 sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
|
|
||||||
REQUIRED_USE=libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) lxc? ( caps libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) vepa? ( macvtap ) virtualbox? ( libvirtd ) xen? ( libvirtd ) virt-network? ( libvirtd ) firewalld? ( virt-network )
|
|
||||||
SLOT=0/1.2.14
|
|
||||||
SRC_URI=http://libvirt.org/sources/libvirt-1.2.14.tar.gz
|
|
||||||
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 linux-info 8cbc678e083c23e4ad546ca6509cf304 multilib 62927b3db3a589b0806255f3a002d5d3 readme.gentoo 106edea5533517715013de909a333abd systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4 user f54e098dd38ba1c0847a13e685b87747 versionator cd0bcdb170807e4a1984115e9d53a26f
|
|
||||||
_md5_=036310d0fcd412a3a32f51924393d9e3
|
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=configure install postinst preinst prepare setup test
|
|
||||||
DEPEND=sys-libs/readline:0 sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) ) virtual/pkgconfig app-text/xhtml1 dev-lang/perl dev-perl/XML-XPath dev-libs/libxslt !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
|
||||||
DESCRIPTION=C toolkit to manipulate virtual machines
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=http://www.libvirt.org/
|
|
||||||
IUSE=audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen elibc_glibc systemd
|
|
||||||
KEYWORDS=amd64 ~x86
|
|
||||||
LICENSE=LGPL-2.1
|
|
||||||
RDEPEND=sys-libs/readline:0 sys-libs/ncurses >=net-misc/curl-7.18.0 dev-libs/libgcrypt:0 >=dev-libs/libxml2-2.7.6 dev-libs/libnl:3 >=net-libs/gnutls-1.0.25 net-libs/libssh2 sys-apps/dmidecode >=sys-apps/util-linux-2.17 sys-devel/gettext >=net-analyzer/netcat6-1.0-r2 app-misc/scrub audit? ( sys-process/audit ) avahi? ( >=net-dns/avahi-0.6[dbus] ) caps? ( sys-libs/libcap-ng ) fuse? ( >=sys-fs/fuse-2.8.6 ) glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) iscsi? ( sys-block/open-iscsi ) lxc? ( !systemd? ( sys-power/pm-utils ) ) lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) nfs? ( net-fs/nfs-utils ) numa? ( >sys-process/numactl-2.0.2 sys-process/numad ) openvz? ( sys-kernel/openvz-sources:* ) parted? ( >=sys-block/parted-1.8[device-mapper] sys-fs/lvm2 ) pcap? ( >=net-libs/libpcap-1.0.0 ) policykit? ( >=sys-auth/polkit-0.9 ) qemu? ( >=app-emulation/qemu-0.13.0 dev-libs/yajl !systemd? ( sys-power/pm-utils ) ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) selinux? ( >=sys-libs/libselinux-2.0.85 ) systemd? ( sys-apps/systemd ) virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) wireshark-plugins? ( net-analyzer/wireshark:= ) xen? ( app-emulation/xen-tools app-emulation/xen ) udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) virt-network? ( net-dns/dnsmasq[script] >=net-firewall/iptables-1.4.10[ipv6] net-misc/radvd net-firewall/ebtables sys-apps/iproute2[-minimal] firewalld? ( net-firewall/firewalld ) ) elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
|
|
||||||
REQUIRED_USE=libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) lxc? ( caps libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) vepa? ( macvtap ) virtualbox? ( libvirtd ) xen? ( libvirtd ) virt-network? ( libvirtd ) firewalld? ( virt-network )
|
|
||||||
SLOT=0/1.2.14
|
|
||||||
SRC_URI=http://libvirt.org/sources/libvirt-1.2.14.tar.gz http://dev.gentoo.org/~cardoe/distfiles/libvirt-1.2.14-20150524.tar.xz http://dev.gentoo.org/~tamiko/distfiles/libvirt-1.2.14-20150524.tar.xz
|
|
||||||
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 linux-info 8cbc678e083c23e4ad546ca6509cf304 multilib 62927b3db3a589b0806255f3a002d5d3 readme.gentoo 106edea5533517715013de909a333abd systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4 user f54e098dd38ba1c0847a13e685b87747 versionator cd0bcdb170807e4a1984115e9d53a26f
|
|
||||||
_md5_=bef5e05cbc8ed3b6fc94a05e87775deb
|
|
@ -1,10 +0,0 @@
|
|||||||
DEFINED_PHASES=compile install postinst prepare
|
|
||||||
DESCRIPTION=A non-intrusive real-time ANSI color wrapper for common unix-based commands
|
|
||||||
EAPI=3
|
|
||||||
HOMEPAGE=http://cwrapper.sourceforge.net/
|
|
||||||
KEYWORDS=amd64 x86
|
|
||||||
LICENSE=GPL-2
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=mirror://sourceforge/cwrapper/cw-1.0.16.tar.bz2
|
|
||||||
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de multilib 62927b3db3a589b0806255f3a002d5d3 toolchain-funcs 42408102d713fbad60ca21349865edb4
|
|
||||||
_md5_=af068173692bfa067006a860f2044c5a
|
|
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=configure prepare
|
||||||
|
DEPEND=dev-libs/popt sys-devel/flex sys-devel/bison
|
||||||
|
DESCRIPTION=Safely remove spaces and strange characters from filenames
|
||||||
|
EAPI=5
|
||||||
|
HOMEPAGE=http://detox.sourceforge.net/
|
||||||
|
KEYWORDS=amd64 ~hppa ~mips ~ppc ~x86 ~amd64-linux ~x86-linux
|
||||||
|
LICENSE=BSD
|
||||||
|
RDEPEND=dev-libs/popt
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=mirror://sourceforge/detox/detox-1.2.0.tar.bz2
|
||||||
|
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de multilib 62927b3db3a589b0806255f3a002d5d3 toolchain-funcs 42408102d713fbad60ca21349865edb4
|
||||||
|
_md5_=b73c08639d0574712465574f347989ea
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue